twenty-sdk 2.35.0 → 2.35.1

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.
@@ -3,7 +3,7 @@ import { fileURLToPath as t } from "node:url";
3
3
  import { dirname as n } from "node:path";
4
4
  e(import.meta.url);
5
5
  const r = n(t(import.meta.url));
6
- import { $ as i, A as a, B as o, C as s, Ct as c, D as l, E as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, O as b, P as x, Q as S, R as C, S as w, T, U as E, V as ee, W as D, X as O, Y as te, Z as ne, _ as re, _t as ie, a as k, at as A, b as ae, bt as j, ct as M, d as oe, dt as se, f as ce, ft as le, g as N, gt as ue, h as P, ht as de, i as fe, it as pe, j as F, k as me, l as he, lt as I, m as ge, mt as L, n as _e, nt as ve, o as ye, ot as be, p as xe, pt as Se, r as Ce, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, vt as Me, w as Ne, x as Pe, xt as Fe, y as Ie, yt as R, z as Le } from "./get-front-component-build-plugins-BZ1HBS5Y.mjs";
6
+ import { $ as i, A as a, B as o, C as s, Ct as c, D as l, E as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, O as b, P as x, Q as S, R as C, S as w, T, U as E, V as ee, W as D, X as O, Y as te, Z as ne, _ as re, _t as ie, a as k, at as A, b as ae, bt as j, ct as M, d as oe, dt as se, f as ce, ft as le, g as N, gt as ue, h as P, ht as de, i as fe, it as pe, j as F, k as me, l as he, lt as I, m as ge, mt as L, n as _e, nt as ve, o as ye, ot as be, p as xe, pt as Se, r as Ce, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, vt as Me, w as Ne, x as Pe, xt as Fe, y as Ie, yt as R, z as Le } from "./get-front-component-build-plugins-D9VJQHw7.mjs";
7
7
  import * as Re from "path";
8
8
  import z, { basename as ze, dirname as Be, extname as Ve, join as He, relative as Ue } from "path";
9
9
  import { execFileSync as We, execSync as Ge } from "child_process";
@@ -421,7 +421,7 @@ var Vt = process.env.INIT_CWD || process.cwd(), Ht = (e) => B(e) ? e[0].toUpperC
421
421
  O.RAW_JSON
422
422
  ]), f.DAY, f.WEEK, f.MONTH, f.QUARTER, f.YEAR, O.FILES, O.LINKS, O.TEXT, O.FULL_NAME, O.UUID;
423
423
  //#endregion
424
- //#region ../twenty-shared/dist/constants-B5WtObnr.mjs
424
+ //#region ../twenty-shared/dist/constants-6SPPJ25c.mjs
425
425
  var Kt = [
426
426
  "RATING_1",
427
427
  "RATING_2",
@@ -48065,7 +48065,7 @@ function ev() {
48065
48065
  }
48066
48066
  Hh();
48067
48067
  //#endregion
48068
- //#region ../twenty-shared/dist/utils-CdSPheUD.mjs
48068
+ //#region ../twenty-shared/dist/utils-BB6ksrL7.mjs
48069
48069
  var tv = /* @__PURE__ */ c(kg(), 1), nv = /* @__PURE__ */ c(Ag(), 1);
48070
48070
  jg(), C_(), O_(), O.TEXT, O.FULL_NAME, O.EMAILS, O.ADDRESS, O.LINKS, O.PHONES, O.RICH_TEXT, O.UUID;
48071
48071
  var rv = (e) => /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);
@@ -51165,7 +51165,6 @@ var Hx = "M6.822 14.174c0-2.435 1.996-4.411 4.456-4.411h8.574c.125 0 .241.075.29
51165
51165
  }) }])), $ = {
51166
51166
  timelineActivity: {
51167
51167
  ...Q(Z.timelineActivity),
51168
- name: { universalIdentifier: "20202020-7207-46e8-9dab-849505ae8497" },
51169
51168
  timelineActivityTypeId: { universalIdentifier: "20202020-e5f8-4839-9dcf-781e260624ee" },
51170
51169
  timelineActivityTypeSnapshot: { universalIdentifier: "20202020-e006-493a-9b07-f2a768a204ca" },
51171
51170
  happensAt: { universalIdentifier: "20202020-9526-4993-b339-c4318c4d39f0" },
@@ -55367,7 +55366,7 @@ WE({
55367
55366
  //#endregion
55368
55367
  //#region ../twenty-shared/dist/logic-function.mjs
55369
55368
  var GE = async (e) => {
55370
- let { getFunctionInputSchema: t } = await import("./get-function-input-schema-GNk3NRLJ-BimwLfRN.mjs"), n = t(e)[0];
55369
+ let { getFunctionInputSchema: t } = await import("./get-function-input-schema-GNk3NRLJ-Dm0Ljlg4.mjs"), n = t(e)[0];
55371
55370
  return n?.type === "object" && R(n.properties) ? {
55372
55371
  type: "object",
55373
55372
  properties: n.properties
@@ -57121,7 +57120,7 @@ var GE = async (e) => {
57121
57120
  };
57122
57121
  }, sO = (e) => TD(() => oO(e), DD.PUBLISH_FAILED), cO = {
57123
57122
  name: "twenty-sdk",
57124
- version: "2.35.0",
57123
+ version: "2.35.1",
57125
57124
  sideEffects: !1,
57126
57125
  bin: { twenty: "dist/cli.cjs" },
57127
57126
  files: [
@@ -36,7 +36,7 @@ Expecting `+S.join(`, `)+`, got '`+(this.terminals_[p]||p)+`'`:`Parse error on l
36
36
  `;case K.VARIABLE_TAG:return typeof e.attrs?.variable==`string`?e.attrs.variable:``;case K.MENTION_TAG:return Py(e);case K.HEADING:{let t=typeof e.attrs?.level==`number`?e.attrs.level:1;return`${`#`.repeat(Math.min(Math.max(t,1),6))} ${ky(e)}\n\n`}case K.PARAGRAPH:return`${ky(e)}\n\n`;case K.BULLET_LIST:return`${(e.content??[]).map(e=>Fy(e,`- `)).join(``)}\n`;case K.ORDERED_LIST:{let t=typeof e.attrs?.start==`number`?e.attrs.start:1;return`${(e.content??[]).map((e,n)=>Fy(e,`${t+n}. `)).join(``)}\n`}case K.IMAGE:{let t=typeof e.attrs?.alt==`string`?e.attrs.alt:``,n=typeof e.attrs?.src==`string`?e.attrs.src:``;return n===``?Ay(t):`![${Ay(t)}](${My(n)})\n\n`}case K.BUTTON:{let t=ky(e),n=e.attrs?.href;return`${typeof n==`string`?`[${t}](${My(n)})`:t}\n\n`}case K.HTML:return typeof e.attrs?.html==`string`?e.attrs.html:``;case K.DIVIDER:return`---
37
37
 
38
38
  `;default:return ky(e)}},Ly=(t,n,r)=>e.yt(t)?Object.entries(n).reduce((t,[n,i])=>{let a=t[n];return typeof a==`string`&&e.yt(i)?{...t,[n]:r(a,i)}:t},t):t,Ry=(e,t)=>{let n=ry(e.type)?ny[e.type]:void 0,r=Ly(e.attrs,n?.stringAttributes??{},t),i=e.marks?.map(e=>typeof e!=`object`||!e||!(`type`in e)||typeof e.type!=`string`||!ty(e.type)?e:{...e,...`attrs`in e&&typeof e.attrs==`object`&&e.attrs!==null&&{attrs:Ly(e.attrs,ey[e.type].stringAttributes,t)}});return{...e,...typeof e.text==`string`&&{text:t(e.text,`text`)},...r&&{attrs:r},...i&&{marks:i},...e.content&&{content:e.content.map(e=>Ry(e,t))}}},zy=e=>typeof e==`object`&&!!e&&!Array.isArray(e),By=e=>{let t=e.trim();return t.startsWith(`http://`)||t.startsWith(`https://`)||t.startsWith(`HTTPS://`)||t.startsWith(`HTTP://`)?t:`https://${t}`},Vy=(e,t)=>{let n=t?.allowIp??!0,r=t?.allowLocalhost??!0,i=/^(((?!-))(xn--|_)?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.){1,10}(xn--)?([a-z0-9][a-z0-9-]{0,60}|[a-z0-9-]{1,30}\.[a-z]{2,})$/.test(e),a=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(e),o=e===`localhost`||e===`127.0.0.1`;return o&&!r||a&&!n?!1:i||o||a};e.mt().transform((t,n)=>{let r=By(t.trim()),i=r.replace(`https://`,``).replace(`http://`,``).replace(`HTTPS://`,``).replace(`HTTP://`,``);if(/^\d+(?:\/[a-zA-Z]*)?$/.test(i))return n.addIssue({code:`custom`,message:`domain is not a valid url`}),e.vt;try{return Vy(new URL(r).hostname)?r:(n.addIssue({code:`custom`,message:`domain is not a valid url`}),e.vt)}catch{return n.addIssue({code:`custom`,message:`domain is not a valid url`}),e.vt}});var Hy=e=>/^https?:\/\//i.test(e),Uy=t=>{let n=Zv(t);return e.yt(n)?(n.origin+n.pathname+n.search+n.hash).replace(/\/$/,``):t},Wy=e=>{let t=e.trim();return t===``?t:Uy(By(t))};e.at({pattern:e._t}).max(255);var Gy=new Map;for(let e of ng()){let t=rg(e),n=Gy.get(t);n?n.push(e):Gy.set(t,[e])}new Set(ng());var Ky=e=>typeof e==`string`,qy=RegExp(`\\{\\{([^{}]+)\\}\\}`,`g`),Jy=(t,n)=>e.yt(t)?Ky(t)?Zy(t,n):Array.isArray(t)?Yy(t,n):typeof t==`object`&&t?Xy(t,n):t:t,Yy=(e,t)=>{let n=e;for(let r=0;r<e.length;++r)n[r]=Jy(e[r],t);return n},Xy=(e,t)=>Object.entries(e).reduce((e,[n,r])=>{let i=Jy(n,t);return e[typeof i==`string`?i:String(i)]=Jy(r,t),e},{}),Zy=(e,t)=>{let n=e.match(qy);return!n||n.length===0?e:n.length===1&&n[0]===e?L_(e,t):e.replace(qy,(e,n)=>{let r=L_(e,t);return typeof r==`object`&&r?JSON.stringify(r):r})};e.j.TABLE,e.j.TABLE,e.j.KANBAN,e.j.KANBAN,e.j.CALENDAR,e.j.CALENDAR,e.j.LIST,e.j.LIST,e.j.FIELDS_WIDGET,e.j.FIELDS_WIDGET,e.j.TABLE_WIDGET,e.j.TABLE,e.j.KANBAN_WIDGET,e.j.KANBAN,e.j.LIST_WIDGET,e.j.LIST,e.j.CALENDAR_WIDGET,e.j.CALENDAR,e.j.FIELDS_WIDGET,e.j.TABLE_WIDGET,e.j.KANBAN_WIDGET,e.j.LIST_WIDGET,e.j.CALENDAR_WIDGET;var Qy=`M6.822 14.174c0-2.435 1.996-4.411 4.456-4.411h8.574c.125 0 .241.075.293.19a.31.31 0 0 1-.056.344l-1.88 2.023c-.326.35-.787.552-1.27.552H11.3c-.738 0-1.338.594-1.338 1.325v3.336a.78.78 0 0 1-.783.777H7.61a.78.78 0 0 1-.783-.777v-3.36zM33.5 25.553c0 2.434-1.996 4.411-4.456 4.411h-3.642c-2.46 0-4.454-1.977-4.454-4.411v-6.315c0-.43.16-.842.456-1.16l2.124-2.285a.33.33 0 0 1 .355-.081.32.32 0 0 1 .205.295v9.527c0 .73.598 1.322 1.337 1.322h3.6a1.33 1.33 0 0 0 1.337-1.322V14.197c0-.73-.599-1.325-1.337-1.325H24.84c-.481 0-.938.201-1.265.547L11.088 26.856h7.503a.78.78 0 0 1 .784.778v1.552a.78.78 0 0 1-.784.778H8.481a1.655 1.655 0 0 1-1.662-1.644v-.824c0-.412.156-.809.44-1.114l13.999-15.06a4.9 4.9 0 0 1 3.594-1.56h4.189c2.46 0 4.454 1.977 4.454 4.412v11.379z`,$y=async()=>`data:image/png;base64,${(await(0,r.readFile)((0,o.join)(__dirname,`assets`,`halftone-backdrop.png`))).toString(`base64`)}`,eb=1388,tb=858,nb=156,rb=16,ib=351,ab=434,ob=798,sb=eb/2,cb=tb/2,lb=19,ub=8,db=`#b3b3b3`,fb=nb/40,pb=async({logoBuffer:e})=>{let t=`data:image/png;base64,${(await(0,s.default)(e).resize(nb,nb,{fit:`cover`,position:`centre`}).png().toBuffer()).toString(`base64`)}`,n=await $y(),r=[`<svg xmlns="http://www.w3.org/2000/svg" width="${eb}" height="${tb}" viewBox="0 0 ${eb} ${tb}">`,`<image href="${n}" x="0" y="0" width="${eb}" height="${tb}" preserveAspectRatio="none" />`,`<defs>`,`<filter id="tileShadow" x="-40%" y="-40%" width="180%" height="180%">`,`<feDropShadow dx="0" dy="6" stdDeviation="10" flood-color="#0b0b0f" flood-opacity="0.14" />`,`</filter>`,`<clipPath id="leftLogoClip"><rect x="${ab}" y="${ib}" width="${nb}" height="${nb}" rx="${rb}" /></clipPath>`,`</defs>`,`<g filter="url(#tileShadow)">`,`<rect x="${ab}" y="${ib}" width="${nb}" height="${nb}" rx="${rb}" fill="#ffffff" />`,`<rect x="${ob}" y="${ib}" width="${nb}" height="${nb}" rx="${rb}" fill="#000000" />`,`</g>`,`<image href="${t}" x="${ab}" y="${ib}" width="${nb}" height="${nb}" preserveAspectRatio="xMidYMid slice" clip-path="url(#leftLogoClip)" />`,`<rect x="${ab}" y="${ib}" width="${nb}" height="${nb}" rx="${rb}" fill="none" stroke="#000000" stroke-opacity="0.08" stroke-width="1" />`,`<g transform="translate(${ob} ${ib}) scale(${fb})"><path d="${Qy}" fill="#ffffff" /></g>`,`<line x1="${sb-lb}" y1="${cb-lb}" x2="713" y2="448" stroke="${db}" stroke-width="${ub}" stroke-linecap="round" />`,`<line x1="${sb-lb}" y1="448" x2="713" y2="${cb-lb}" stroke="${db}" stroke-width="${ub}" stroke-linecap="round" />`,`</svg>`].join(``);return(0,s.default)(Buffer.from(r)).png().toBuffer()},mb=`${e.s}/cover.generated.png`,hb=async e=>{try{return await(0,r.access)(e),!0}catch{return!1}},gb=e=>(0,c.existsSync)(e),_b=e=>(0,r.mkdir)(e,{recursive:!0}),vb=async e=>{await(0,r.mkdir)((0,o.dirname)(e),{recursive:!0});try{await(0,r.access)(e)}catch{await(0,r.writeFile)(e,``)}},yb=async e=>{let t;try{t=await(0,r.readdir)(e)}catch(t){if(t instanceof Error&&`code`in t&&t.code===`ENOENT`){await(0,r.mkdir)(e,{recursive:!0});return}throw t}await Promise.all(t.map(t=>(0,r.rm)((0,o.join)(e,t),{recursive:!0,force:!0})))},bb=(e,t)=>(0,r.cp)(e,t,{recursive:!0}),xb=e=>(0,r.rm)(e,{recursive:!0,force:!0}),Sb=async e=>{let t=await(0,r.readFile)(e,`utf-8`);return JSON.parse(t)},Cb=async(e,t)=>{await(0,r.writeFile)(e,JSON.stringify(t,null,2)+`
39
- `)},wb=e=>e.startsWith(`http://`)||e.startsWith(`https://`),Tb=async({appPath:n,manifest:i})=>{let{logo:a,galleryImages:o}=i.application;if(!e.yt(a)||wb(a)||(o??[]).length>0)return{manifest:i,generatedAssets:[]};let s=(0,t.join)(n,a);if(!await hb(s))return{manifest:i,generatedAssets:[]};let c=await pb({logoBuffer:await(0,r.readFile)(s)}),l={filePath:mb,fileName:(0,t.basename)(mb),fileType:(0,t.extname)(mb).replace(/^\./,``),checksum:null},u=[...i.publicAssets.filter(e=>e.filePath!==mb),l];return{manifest:{...i,application:{...i.application,galleryImages:[mb]},publicAssets:u},generatedAssets:[{relativePath:mb,content:c}]}},Eb=/^readme(\.[^.]+)?$/i,Db=e=>{let t=e.filter(e=>Eb.test(e));return t.find(e=>/\.md$/i.test(e))??t[0]},Ob=async t=>{let n=Db(await(0,r.readdir)(t));if(n===void 0)return;let i=(0,o.join)(t,e.i);await _b(i),await bb((0,o.join)(t,n),(0,o.join)(i,n))},kb=`twenty-client-sdk`,Ab=async({result:n,appPath:i,fileFolder:a,lastChecksums:o,onFileBuilt:s})=>{let c=Object.keys(n.metafile?.outputs??{}).filter(e=>e.endsWith(`.mjs`));for(let u of c){let c=t.default.resolve(u),d=t.default.relative(i,c),f=n.metafile?.outputs?.[u]?.entryPoint||``,p=t.default.relative(i,f),m=await(0,r.readFile)(c),h=a===e.M.BuiltFrontComponent?`sha256`:`md5`,g=l.default.createHash(h).update(m).digest(`hex`);if(o.get(d)===g)continue;o.set(d,g);let _=(n.metafile?.outputs?.[u])?.imports?.some(e=>e.external===!0&&e.path.startsWith(kb))??!1;s&&await s({fileFolder:a,builtPath:d,sourcePath:p,checksum:g,usesSdkClient:_})}},jb=async({appPath:e,sourcePaths:n,fileFolder:r,buildOptions:i,onFileBuilt:a})=>{if(n.length===0)return;let o={};for(let r of n){let n=r.replace(/\.tsx?$/,``);o[n]=t.default.join(e,r)}await Ab({result:await u.build({...i,entryPoints:o}),appPath:e,fileFolder:r,lastChecksums:new Map,onFileBuilt:a})},Mb=async(e,n,r)=>{let i=new Set(r),a=n.filter(e=>!i.has(e));for(let n of a){let r=n.replace(/\.tsx?$/,`.mjs`),i=t.default.join(e,r),a=`${i}.map`;await xb(i),await xb(a)}},Nb=({config:e,errors:t=[],warnings:n=[]})=>({success:t.length===0,config:e,errors:t,warnings:n}),Pb=e=>{let t=[],n=[];return e.universalIdentifier||t.push(`Agent must have a universalIdentifier`),e.name||t.push(`Agent must have a name`),e.label||t.push(`Agent must have a label`),e.prompt||t.push(`Agent must have a prompt`),e.responseFormat||n.push(`Agent '${e.name}' has no responseFormat, it will default to { type: 'text' }. Set it explicitly to control the agent's output shape.`),(0,i.isNonEmptyString)(e.roleUniversalIdentifier)&&!(0,a.validate)(e.roleUniversalIdentifier)&&t.push(`Agent '${e.name}' roleUniversalIdentifier must be a valid UUID`),Nb({config:e,errors:t,warnings:n})},Fb=e=>{let t=[],n=e.logo;n&&Hy(n)&&(t.push(`Application logo "${n}" is an external URL. External asset URLs are no longer supported and are ignored. Bundle the image in your public/ folder instead.`),n=void 0),!n&&e.logoUrl&&(Hy(e.logoUrl)?t.push(`Application logoUrl "${e.logoUrl}" is an external URL. External asset URLs are no longer supported and are ignored. Bundle the image in your public/ folder and reference it via logo.`):(t.push("`logoUrl` is deprecated. Use `logo` to reference an image bundled in your public/ folder."),n=e.logoUrl)),!e.galleryImages&&(e.screenshots?.length??0)>0&&t.push("`screenshots` is deprecated. Use `galleryImages` referencing images bundled in your public/ folder.");let r=(e.galleryImages??e.screenshots??[]).filter(e=>Hy(e)?(t.push(`Gallery image "${e}" is an external URL. External asset URLs are no longer supported and are ignored.`),!1):!0);return{logo:n,galleryImages:r,warnings:t}},Ib=t=>{let n=[],r=[];t.universalIdentifier||n.push(`Application must have a universalIdentifier`),(!t.displayName||t.displayName.length===0)&&n.push(`Application must have a non empty display name`);for(let[r,i]of Object.entries(t.applicationVariables??{}))(i.type===e.X.SELECT||i.type===e.X.MULTI_SELECT)&&!sg(i.options)&&n.push(`Application variable "${r}" of type ${i.type} must define non-empty options`);for(let[e,n]of Object.entries(t.serverVariables??{}))n.isRequired&&n.isDeprecated&&r.push(`Server variable "${e}" is both required and deprecated. \`isDeprecated\` wins: the variable is excluded from the application configuration check.`);t.defaultRoleUniversalIdentifier&&r.push("`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead.");let{category:a}=t;(0,i.isNonEmptyString)(a)&&!e.l(a)&&r.push(`Application category "${a}" is not a known ApplicationCategory (${e.u.join(`, `)}). Arbitrary category strings are kept for backward compatibility and may be removed. Ask for a new category at https://github.com/twentyhq/twenty.`);let o=Fb(t);return r.push(...o.warnings),Nb({config:{...t,logo:o.logo,galleryImages:o.galleryImages},errors:n,warnings:r})},Lb=e=>e.length>=2&&e.startsWith(`'`)&&e.endsWith(`'`),Rb=t=>Object.values(e.U).includes(t),zb=t=>{let{defaultValue:n,type:r}=t;return e.yt(n)?(0,i.isString)(n)?Lb(n)||Rb(n)?[]:[n]:Array.isArray(n)&&(r===e.X.MULTI_SELECT||r===e.X.ARRAY)?n.filter(e=>typeof e==`string`&&!Lb(e)):r in A&&zy(n)?Object.values(n).filter(e=>typeof e==`string`&&!Lb(e)):[]:[]},Bb=t=>e.yt(t)?t.flatMap(e=>{let t=zb(e);if(t.length===0)return[];let n=t[0];return[`Field "${e.label}" has string defaultValue(s) without surrounding single quotes: ${t.map(e=>`"${e}"`).join(`, `)}. Unquoted strings are reserved for computed defaults ('uuid', 'now'). To define a literal string default, wrap it in single quotes: "'${n}'" instead of "${n}".`]}):[],Vb=t=>{if(!t)return[];let n=[];for(let r of t)(0,i.isNonEmptyString)(r.label)||n.push(`Field must have a label`),(0,i.isNonEmptyString)(r.name)||n.push(`Field "${r.label}" must have a name`),(0,i.isNonEmptyString)(r.universalIdentifier)||n.push(`Field "${r.label}" must have a universalIdentifier`),(r.type===e.X.SELECT||r.type===e.X.MULTI_SELECT)&&(!Array.isArray(r.options)||r.options.length===0)&&n.push(`Field "${r.label}" is a SELECT/MULTI_SELECT type and must have options`),r.isUnique===!0&&(r.type===e.X.RELATION||r.type===e.X.MORPH_RELATION||r.type===e.X.FILES)&&n.push(`Field "${r.label}" of type ${r.type} cannot be unique`);return n},Hb=e=>{let t=[];e.objectUniversalIdentifier||t.push(`Field must have an objectUniversalIdentifier`);let n=Vb([e]);return t.push(...n),Nb({config:e,errors:t,warnings:Bb([e])})},Ub=e=>{let t=[],n=[];return e.universalIdentifier||t.push(`CommandMenuItem must have a universalIdentifier`),e.label||t.push(`CommandMenuItem must have a label`),e.frontComponentUniversalIdentifier||t.push(`CommandMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this command opens)`),e.icon&&n.push(`CommandMenuItem icon will be ignored in favor of application icon, you should remove it`),Nb({config:e,errors:t,warnings:n})},Wb=[`created`,`updated`,`deleted`,`restored`,`linked`,`unlinked`],Gb=t=>e.yt(t)&&Wb.includes(t),Kb=e=>{let t=[];e.universalIdentifier||t.push(`TimelineActivityType must have a universalIdentifier`),e.name||t.push(`TimelineActivityType must have a name`),e.label||t.push(`TimelineActivityType must have a label`),e.emit?.on&&!Gb(e.emit.on)&&t.push(`TimelineActivityType emit.on ${e.emit.on} is not supported`),e.emit&&!(0,i.isNonEmptyString)(e.emit.on)&&t.push(`TimelineActivityType emit must have an on action`),e.emit&&!(0,i.isNonEmptyString)(e.emit.objectUniversalIdentifier)&&t.push(`TimelineActivityType emit must have an objectUniversalIdentifier`),e.emit?.through&&!(0,i.isNonEmptyString)(e.emit.through.relationFieldUniversalIdentifier)&&t.push(`TimelineActivityType emit.through must have a relationFieldUniversalIdentifier`),(e.emit?.on===`linked`||e.emit?.on===`unlinked`)&&!e.emit.through&&t.push(`TimelineActivityType linked and unlinked emitters require through routing`);let n=e.emit?.through?.triggerFieldUniversalIdentifiers;return n&&(e.emit?.on!==`updated`||!sg(n))&&t.push(`TimelineActivityType emit.through.triggerFieldUniversalIdentifiers requires an updated event`),n&&new Set(n).size!==n.length&&t.push(`TimelineActivityType emit.through.triggerFieldUniversalIdentifiers must be unique`),e.replacesTimelineActivityTypeUniversalIdentifier&&!e.emit&&t.push(`TimelineActivityType replacesTimelineActivityTypeUniversalIdentifier requires emit`),Nb({config:e,errors:t})},qb=e=>e===`then`,Jb=e=>typeof e==`symbol`,q=e=>{let t=()=>{throw Error(`"${e}" from twenty-sdk can only be used inside a command's conditionalAvailabilityExpression, not at runtime.`)};return new Proxy(function(){},{get:(e,n)=>{if(!(qb(n)||Jb(n)))return t()},apply:t,construct:t,has:t})},Yb=q(`pageType`),Xb=q(`isInSidePanel`),Zb=q(`isDashboardPageLayoutInEditMode`),Qb=q(`isLayoutCustomizationModeEnabled`),$b=q(`favoriteRecordIds`),ex=q(`isSelectAll`),tx=q(`hasAnySoftDeleteFilterOnView`),nx=q(`numberOfSelectedRecords`),rx=q(`objectPermissions`),ix=q(`selectedRecords`),ax=q(`featureFlags`),ox=q(`targetObjectReadPermissions`),sx=q(`targetObjectWritePermissions`),cx=q(`canImpersonate`),lx=q(`canAccessFullAdminPanel`),ux=q(`objectMetadataItem`),dx=q(`objectMetadataLabel`),fx=q(`isDefined`),px=q(`isNonEmptyString`),mx=q(`includes`),hx=q(`every`),gx=q(`everyDefined`),_x=q(`everyEquals`),vx=q(`some`),yx=q(`someDefined`),bx=q(`someEquals`),xx=q(`none`),Sx=q(`noneDefined`),Cx=q(`noneEquals`),wx=q(`someNonEmptyString`),Tx=q(`includesEvery`),Ex=e=>{let t=[];return e.universalIdentifier||t.push(`Front component must have a universalIdentifier`),e.component||t.push(`Front component must have a component`),typeof e.component!=`function`&&t.push(`Front component component must be a React component`),Nb({config:e,errors:t})},Dx=e=>{let t=[];return e.universalIdentifier||t.push(`Settings front component must have a universalIdentifier`),e.component?typeof e.component!=`function`&&t.push(`Settings front component component must be a React component`):t.push(`Settings front component must have a component`),Nb({config:e,errors:t})},Ox=e=>typeof e==`string`&&e.trim().length>0,kx=e=>{let t=[];if(Ox(e.universalIdentifier)||t.push(`Index must have a universalIdentifier`),Ox(e.objectUniversalIdentifier)||t.push(`Index must reference an objectUniversalIdentifier`),!sg(e.fields))t.push(`Index must have at least one field`);else{for(let n of e.fields)Ox(n.universalIdentifier)||t.push(`IndexField must have a universalIdentifier`),Ox(n.fieldUniversalIdentifier)||t.push(`IndexField must reference a fieldUniversalIdentifier`);let n=e.fields.map(e=>`${e.fieldUniversalIdentifier}::${e.subFieldName??``}`);new Set(n).size!==n.length&&t.push(`Index lists the same column twice`)}return Nb({config:e,errors:t})},Ax=t=>{let n=[];return t.universalIdentifier||n.push(`Logic function must have a universalIdentifier`),t.handler||n.push(`Logic function must have a handler`),typeof t.handler!=`function`&&n.push(`Logic function handler must be a function`),t.httpRouteTriggerSettings&&(t.httpRouteTriggerSettings.path||n.push(`Route trigger must have a path`),t.httpRouteTriggerSettings.httpMethod||n.push(`Route trigger must have an httpMethod`)),t.serverRouteTriggerSettings?.httpMethods?.some(t=>t!==e.N.GET&&t!==e.N.POST)&&n.push(`Server route trigger only supports the GET and POST http methods`),t.cronTriggerSettings&&(t.cronTriggerSettings.pattern||n.push(`Cron trigger must have a pattern`)),t.databaseEventTriggerSettings&&(t.databaseEventTriggerSettings.eventName||n.push(`Database event trigger must have an eventName`)),Nb({config:t,errors:n})},jx=e=>{let t=[];return e.universalIdentifier||t.push(`Post install logic function must have a universalIdentifier`),e.handler||t.push(`Post install logic function must have a handler`),typeof e.handler!=`function`&&t.push(`Post install logic function handler must be a function`),Nb({config:e,errors:t})},Mx=e=>{let t=[];return e.universalIdentifier||t.push(`Pre install logic function must have a universalIdentifier`),e.handler||t.push(`Pre install logic function must have a handler`),typeof e.handler!=`function`&&t.push(`Pre install logic function handler must be a function`),Nb({config:e,errors:t})},Nx=e=>{let t=[];return e.universalIdentifier||t.push(`Uninstall logic function must have a universalIdentifier`),e.handler||t.push(`Uninstall logic function must have a handler`),typeof e.handler!=`function`&&t.push(`Uninstall logic function handler must be a function`),Nb({config:e,errors:t})},Px=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Fx=e=>Px.test(e),Ix=/^[a-z][a-z0-9-]*$/,Lx=[`oauth`],Rx=[`onConnectLogicFunction`,`onDisconnectLogicFunction`],zx=t=>{let n=[];t.universalIdentifier?Fx(t.universalIdentifier)||n.push(`Connection provider universalIdentifier "${t.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`):n.push(`Connection provider must have a universalIdentifier`),t.name?Ix.test(t.name)||n.push(`Connection provider name "${t.name}" must match ${Ix} (used in URLs)`):n.push(`Connection provider must have a name`),t.displayName||n.push(`Connection provider must have a displayName`);for(let r of Rx){let i=t[r];e.yt(i)&&!Fx(i.universalIdentifier)&&n.push(`Connection provider ${r}.universalIdentifier "${i.universalIdentifier}" must be the UUID universalIdentifier of a logic function in this app.`)}if(t.type?Lx.includes(t.type)||n.push(`Connection provider type "${t.type}" is not supported. Supported types: ${Lx.join(`, `)}.`):n.push("Connection provider must declare a `type` (e.g. 'oauth')"),t.type===`oauth`){let e=t.oauth;e?(e.authorizationEndpoint||n.push(`OAuth connection provider must have an authorizationEndpoint`),e.tokenEndpoint||n.push(`OAuth connection provider must have a tokenEndpoint`),e.clientIdVariable||n.push(`OAuth connection provider must reference a clientIdVariable (key of a serverVariable on defineApplication)`),e.clientSecretVariable||n.push(`OAuth connection provider must reference a clientSecretVariable (key of a serverVariable on defineApplication)`),Array.isArray(e.scopes)||n.push(`OAuth connection provider must declare a scopes array`)):n.push("Connection provider with type 'oauth' must declare an `oauth` config block")}return Nb({config:t,errors:n})},Bx=e=>{let t=[];return e.universalIdentifier||t.push(`NavigationMenuItem must have a universalIdentifier`),typeof e.position!=`number`&&t.push(`NavigationMenuItem must have a position`),Nb({config:e,errors:t})},Vx=t=>{let n=[];t.universalIdentifier||n.push(`Object must have a universalIdentifier`),t.nameSingular||n.push(`Object must have a nameSingular`),t.namePlural||n.push(`Object must have a namePlural`),t.labelSingular||n.push(`Object must have a labelSingular`),t.labelPlural||n.push(`Object must have a labelPlural`);let r=Vb(t.fields);return n.push(...r),e.yt(t.labelIdentifierFieldMetadataUniversalIdentifier)&&!t.fields.some(e=>e.universalIdentifier===t.labelIdentifierFieldMetadataUniversalIdentifier)&&n.push(`labelIdentifierFieldMetadataUniversalIdentifier must reference a field defined in the fields array`),Nb({config:t,errors:n,warnings:Bb(t.fields)})},J={timelineActivity:`20202020-6736-4337-b5c4-8b39fae325a5`,attachment:`20202020-bd3d-4c60-8dca-571c71d4447a`,blocklist:`20202020-0408-4f38-b8a8-4d5e3e26e24d`,calendarChannelEventAssociation:`20202020-491b-4aaa-9825-afd1bae6ae00`,calendarEvent:`20202020-8f1d-4eef-9f85-0d1965e27221`,calendarEventParticipant:`20202020-a1c3-47a6-9732-27e5b1e8436d`,callRecording:`ce19efb9-710f-45b2-b141-473abbeea60b`,noteTarget:`20202020-fff0-4b44-be82-bda313884400`,taskTarget:`20202020-5a9a-44e8-95df-771cd06d0fb1`,person:`20202020-e674-48e5-a542-72570eee7213`,company:`20202020-b374-4779-a561-80086cb2e17f`,opportunity:`20202020-9549-49dd-b2b2-883999db8938`,note:`20202020-0b00-45cd-b6f6-6cd806fc6804`,task:`20202020-1ba1-48ba-bc83-ef7e5990ed10`,workflow:`20202020-62be-406c-b9ca-8caa50d51392`,workflowAutomatedTrigger:`20202020-3319-4234-a34c-7f3b9d2e4d1f`,workflowVersion:`20202020-d65d-4ab9-9344-d77bfb376a3d`,workflowRun:`20202020-4e28-4e95-a9d7-6c00874f843c`,workspaceMember:`20202020-3319-4234-a34c-82d5c0e881a6`,dashboard:`20202020-3840-4b6d-9425-0c5188b05ca8`,message:`20202020-3f6b-4425-80ab-e468899ab4b2`,messageChannelMessageAssociation:`20202020-ad1e-4127-bccb-d83ae04d2ccb`,messageChannelMessageAssociationMessageFolder:`20202020-a1b0-40b0-8ab0-5b6c7d8e9f0a`,messageList:`826561ea-4816-411c-baa0-eec5e6ca8866`,messageListMember:`27773d24-8ce3-40f8-aa6c-1f590f2c08d2`,messageCampaign:`238acb94-dd4c-4036-bc55-19b99d821efd`,messageParticipant:`20202020-a433-4456-aa2d-fd9cb26b774a`,messageThread:`20202020-849a-4c3e-84f5-a25a7d802271`},Hx=[`id`,`createdAt`,`updatedAt`,`deletedAt`,`createdBy`,`updatedBy`,`position`,`searchVector`],Y=t=>Object.fromEntries(Hx.map(n=>[n,{universalIdentifier:e.m({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:t,name:n})}])),X={timelineActivity:{...Y(J.timelineActivity),name:{universalIdentifier:`20202020-7207-46e8-9dab-849505ae8497`},timelineActivityTypeId:{universalIdentifier:`20202020-e5f8-4839-9dcf-781e260624ee`},timelineActivityTypeSnapshot:{universalIdentifier:`20202020-e006-493a-9b07-f2a768a204ca`},happensAt:{universalIdentifier:`20202020-9526-4993-b339-c4318c4d39f0`},properties:{universalIdentifier:`20202020-f142-4b04-b91b-6a2b4af3bf11`},workspaceMember:{universalIdentifier:`20202020-af23-4479-9a30-868edc474b36`},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.opportunity})},targetTask:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.task})},targetNote:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.note})},targetWorkflow:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.workflow})},targetWorkflowVersion:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.workflowVersion})},targetWorkflowRun:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.workflowRun})},targetDashboard:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.dashboard})},targetMessageList:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.messageList})},targetMessageCampaign:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.messageCampaign})},linkedRecordCachedName:{universalIdentifier:`20202020-cfdb-4bef-bbce-a29f41230934`},linkedRecordId:{universalIdentifier:`20202020-2e0e-48c0-b445-ee6c1e61687d`},linkedObjectMetadataId:{universalIdentifier:`20202020-c595-449d-9f89-562758c9ee69`}},attachment:{...Y(J.attachment),name:{universalIdentifier:`20202020-87a5-48f8-bbf7-ade388825a57`},file:{universalIdentifier:`20202020-15db-460e-8166-c7b5d87ad4be`},fullPath:{universalIdentifier:`20202020-0d19-453d-8e8d-fbcda8ca3747`},fileCategory:{universalIdentifier:`20202020-8c3f-4d9e-9a1b-2e5f7a8c9d0e`},targetTask:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.task})},targetNote:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.note})},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.opportunity})},targetDashboard:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.dashboard})},targetWorkflow:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.workflow})}},blocklist:{...Y(J.blocklist),handle:{universalIdentifier:`20202020-eef3-44ed-aa32-4641d7fd4a3e`},workspaceMember:{universalIdentifier:`20202020-548d-4084-a947-fa20a39f7c06`}},calendarChannelEventAssociation:{...Y(J.calendarChannelEventAssociation),calendarChannelId:{universalIdentifier:`20202020-93ee-4da4-8d58-0282c4a9cb7d`},calendarEvent:{universalIdentifier:`20202020-5aa5-437e-bb86-f42d457783e3`},eventExternalId:{universalIdentifier:`20202020-9ec8-48bb-b279-21d0734a75a1`},recurringEventExternalId:{universalIdentifier:`20202020-c58f-4c69-9bf8-9518fa31aa50`}},calendarEventParticipant:{...Y(J.calendarEventParticipant),calendarEvent:{universalIdentifier:`20202020-fe3a-401c-b889-af4f4657a861`},handle:{universalIdentifier:`20202020-8692-4580-8210-9e09cbd031a7`},displayName:{universalIdentifier:`20202020-ee1e-4f9f-8ac1-5c0b2f69691e`},isOrganizer:{universalIdentifier:`20202020-66e7-4e00-9e06-d06c92650580`},responseStatus:{universalIdentifier:`20202020-cec0-4be8-8fba-c366abc23147`},person:{universalIdentifier:`20202020-5761-4842-8186-e1898ef93966`},workspaceMember:{universalIdentifier:`20202020-20e4-4591-93ed-aeb17a4dcbd2`}},calendarEvent:{...Y(J.calendarEvent),title:{universalIdentifier:`20202020-080e-49d1-b21d-9702a7e2525c`},isCanceled:{universalIdentifier:`20202020-335b-4e04-b470-43b84b64863c`},isFullDay:{universalIdentifier:`20202020-551c-402c-bb6d-dfe9efe86bcb`},startsAt:{universalIdentifier:`20202020-2c57-4c75-93c5-2ac950a6ed67`},endsAt:{universalIdentifier:`20202020-2554-4ee1-a617-17907f6bab21`},externalCreatedAt:{universalIdentifier:`20202020-9f03-4058-a898-346c62181599`},externalUpdatedAt:{universalIdentifier:`20202020-b355-4c18-8825-ef42c8a5a755`},description:{universalIdentifier:`20202020-52c4-4266-a98f-e90af0b4d271`},location:{universalIdentifier:`20202020-641a-4ffe-960d-c3c186d95b17`},iCalUid:{universalIdentifier:`20202020-f24b-45f4-b6a3-d2f9fcb98714`},conferenceSolution:{universalIdentifier:`20202020-1c3f-4b5a-b526-5411a82179eb`},conferenceLink:{universalIdentifier:`20202020-35da-43ef-9ca0-e936e9dc237b`},calendarChannelEventAssociations:{universalIdentifier:`20202020-bdf8-4572-a2cc-ecbb6bcc3a02`},calendarEventParticipants:{universalIdentifier:`20202020-e07e-4ccb-88f5-6f3d00458eec`},callRecordings:{universalIdentifier:`48d6d151-18e2-4111-b405-d85fb9d860d8`}},callRecording:{...Y(J.callRecording),title:{universalIdentifier:`4cff8863-a1d1-45fd-a370-4eb6aa1f2a5b`},status:{universalIdentifier:`3e617680-d93e-4309-a54f-90f69528bfd7`},recordingRequestStatus:{universalIdentifier:`7fd681c9-244c-4e98-8939-7b175d472638`},applicationId:{universalIdentifier:`24ec1239-1240-42cb-8a2d-302632378e09`},externalBotId:{universalIdentifier:`0a2da128-9bcc-488b-bc31-65318c41bdf9`},externalRecordingId:{universalIdentifier:`6d17fb71-324b-4625-a5be-b3580607e2c7`},startedAt:{universalIdentifier:`6c56c23f-1987-410a-860a-df3b2b3f9a33`},endedAt:{universalIdentifier:`7a38a9cf-8424-4d6e-b80a-6883d3c662ef`},video:{universalIdentifier:`bb9523d3-457e-4f4b-8c79-27a77afb87da`},audio:{universalIdentifier:`2eafc2d0-8fec-430c-a939-65ca5fbc0f08`},transcript:{universalIdentifier:`27b86d68-57d1-4607-aca0-191896b1ad43`},summary:{universalIdentifier:`adb0f472-756b-4d3f-b21e-ea32bf73a5e4`},calendarEvent:{universalIdentifier:`49e64b28-bd98-4775-80ea-4781bdd45e35`}},company:{...Y(J.company),name:{universalIdentifier:`20202020-4d99-4e2e-a84c-4a27837b1ece`},domainName:{universalIdentifier:`20202020-0c28-43d8-8ba5-3659924d3489`},address:{universalIdentifier:`20202020-c5ce-4adc-b7b6-9c0979fc55e7`},linkedinLink:{universalIdentifier:`20202020-ebeb-4beb-b9ad-6848036fb451`},annualRevenue:{universalIdentifier:`60f533b7-2166-4071-a767-ceb0286822fd`},people:{universalIdentifier:`20202020-3213-4ddf-9494-6422bcff8d7c`},accountOwner:{universalIdentifier:`20202020-95b8-4e10-9881-edb5d4765f9d`},taskTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.taskTarget})},noteTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.noteTarget})},opportunities:{universalIdentifier:`20202020-add3-4658-8e23-d70dccb6d0ec`},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.attachment})},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},dashboard:{...Y(J.dashboard),title:{universalIdentifier:`20202020-20ee-4091-95dc-44b57eda3a89`},pageLayoutId:{universalIdentifier:`20202020-bb53-4648-aa36-1d9d54e6f7f2`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.dashboard,relationTargetObjectUniversalIdentifier:J.timelineActivity})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.dashboard,relationTargetObjectUniversalIdentifier:J.attachment})}},messageCampaign:{...Y(J.messageCampaign),name:{universalIdentifier:`dc8bca0e-37c4-4b78-814d-2e91124274e3`},subject:{universalIdentifier:`7251544c-b07a-4f0d-9d0a-48514367f230`},bodyTemplate:{universalIdentifier:`b3a69d08-31ca-4a8d-8359-5ca462899342`},fromAddress:{universalIdentifier:`91e1a33c-c1ff-411a-b720-9085e13c05db`},status:{universalIdentifier:`c7117256-3de6-48e1-87df-c99c32bad610`},sentAt:{universalIdentifier:`e2315b4f-9edf-4df2-96b9-961e76368671`},sentCount:{universalIdentifier:`2f333d2b-37b8-4ddc-ad0d-c07c6ce066ad`},failedCount:{universalIdentifier:`d373fcd7-b1ce-4c77-8031-a5785c475028`},bouncedCount:{universalIdentifier:`20d884a9-34dd-4667-8ecb-ceec224258e2`},complainedCount:{universalIdentifier:`82842cfa-f12a-4bab-bbde-b2cf587d0406`},unsubscribeTopicId:{universalIdentifier:`0648e7ad-1769-4ff6-a4d5-72da79ef169c`},list:{universalIdentifier:`cb24dcdf-f0e8-4c71-8cff-70b714e86530`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.messageCampaign,relationTargetObjectUniversalIdentifier:J.timelineActivity})},messages:{universalIdentifier:`e5a177a7-512b-4778-928e-69777a528f7c`},recipients:{universalIdentifier:`05a3271c-5b91-493c-8f30-2d27b31d019e`}},messageList:{...Y(J.messageList),name:{universalIdentifier:`69b9ed8b-7b26-4108-894f-05700ef7e8ee`},members:{universalIdentifier:`92df3493-91cf-4665-8587-1b08917d299b`},campaigns:{universalIdentifier:`e098d838-31ab-4812-91a8-f055f45a6832`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.messageList,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},messageListMember:{...Y(J.messageListMember),person:{universalIdentifier:`34288425-8805-42fb-8b98-ee13d09be3d3`},list:{universalIdentifier:`d5402005-e8f9-4fbe-8696-b6723cd85018`}},messageChannelMessageAssociation:{...Y(J.messageChannelMessageAssociation),messageChannelId:{universalIdentifier:`20202020-b658-408f-bd46-3bd2d15d7e52`},message:{universalIdentifier:`20202020-da5d-4ac5-8743-342ab0a0336b`},messageExternalId:{universalIdentifier:`20202020-37d6-438f-b6fd-6503596c8f34`},messageThread:{universalIdentifier:`20202020-fac8-42a8-94dd-44dbc920ae16`},messageThreadExternalId:{universalIdentifier:`20202020-35fb-421e-afa0-0b8e8f7f9018`},direction:{universalIdentifier:`75c9b0f7-9e76-44d4-a2f9-47051e61eec7`},messageFolders:{universalIdentifier:`9bfc9da7-ae2d-44fd-9563-ede90c5d6222`}},messageChannelMessageAssociationMessageFolder:{...Y(J.messageChannelMessageAssociationMessageFolder),messageChannelMessageAssociation:{universalIdentifier:`7411cfa3-4fd9-4b90-a636-940015fd7243`},messageFolderId:{universalIdentifier:`b3369d31-3856-4a7a-b007-ee353918127c`}},messageParticipant:{...Y(J.messageParticipant),message:{universalIdentifier:`20202020-985b-429a-9db9-9e55f4898a2a`},role:{universalIdentifier:`20202020-65d1-42f4-8729-c9ec1f52aecd`},handle:{universalIdentifier:`20202020-2456-464e-b422-b965a4db4a0b`},displayName:{universalIdentifier:`20202020-36dd-4a4f-ac02-228425be9fac`},person:{universalIdentifier:`20202020-249d-4e0f-82cd-1b9df5cd3da2`},workspaceMember:{universalIdentifier:`20202020-77a7-4845-99ed-1bcbb478be6f`},messageCampaign:{universalIdentifier:`5bc768db-919f-41da-8c43-df08084d526f`}},messageThread:{...Y(J.messageThread),messages:{universalIdentifier:`20202020-3115-404f-aade-e1154b28e35a`},messageChannelMessageAssociations:{universalIdentifier:`20202020-314e-40a4-906d-a5d5d6c285f6`},subject:{universalIdentifier:`a8ddbf8c-1137-45d1-b89e-5ffbd83f67c8`}},message:{...Y(J.message),headerMessageId:{universalIdentifier:`20202020-72b5-416d-aed8-b55609067d01`},messageThread:{universalIdentifier:`20202020-30f2-4ccd-9f5c-e41bb9d26214`},subject:{universalIdentifier:`20202020-52d1-4036-b9ae-84bd722bb37a`},text:{universalIdentifier:`20202020-d2ee-4e7e-89de-9a0a9044a143`},receivedAt:{universalIdentifier:`20202020-140a-4a2a-9f86-f13b6a979afc`},messageParticipants:{universalIdentifier:`20202020-7cff-4a74-b63c-73228448cbd9`},messageChannelMessageAssociations:{universalIdentifier:`20202020-3cef-43a3-82c6-50e7cfbc9ae4`},messageCampaign:{universalIdentifier:`77cff00b-a0ba-48d6-80de-0d5ccf14e45b`},deliveryStatus:{universalIdentifier:`209254fa-2b89-429d-a72a-c401c4bd5a78`},isDraft:{universalIdentifier:`20202020-4d3a-4b6e-9c1f-2a5e7b9d0c34`}},note:{...Y(J.note),title:{universalIdentifier:`20202020-faeb-4c76-8ba6-ccbb0b4a965f`},bodyV2:{universalIdentifier:`20202020-a7bb-4d94-be51-8f25181502c8`},noteTargets:{universalIdentifier:`20202020-1f25-43fe-8b00-af212fdde823`},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.note,relationTargetObjectUniversalIdentifier:J.attachment})},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.note,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},noteTarget:{...Y(J.noteTarget),note:{universalIdentifier:`20202020-57f3-4f50-9599-fc0f671df003`},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.noteTarget,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.noteTarget,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.noteTarget,relationTargetObjectUniversalIdentifier:J.opportunity})}},opportunity:{...Y(J.opportunity),name:{universalIdentifier:`20202020-8609-4f65-a2d9-44009eb422b5`},amount:{universalIdentifier:`20202020-583e-4642-8533-db761d5fa82f`},closeDate:{universalIdentifier:`20202020-527e-44d6-b1ac-c4158d307b97`},stage:{universalIdentifier:`20202020-6f76-477d-8551-28cd65b2b4b9`},pointOfContact:{universalIdentifier:`20202020-8dfb-42fc-92b6-01afb759ed16`},company:{universalIdentifier:`20202020-cbac-457e-b565-adece5fc815f`},owner:{universalIdentifier:`20202020-be7e-4d1e-8e19-3d5c7c4b9f2a`},taskTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.taskTarget})},noteTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.noteTarget})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.attachment})},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},person:{...Y(J.person),name:{universalIdentifier:`20202020-3875-44d5-8c33-a6239011cab8`},emails:{universalIdentifier:`20202020-3c51-43fa-8b6e-af39e29368ab`},linkedinLink:{universalIdentifier:`20202020-f1af-48f7-893b-2007a73dd508`},jobTitle:{universalIdentifier:`20202020-b0d0-415a-bef9-640a26dacd9b`},phones:{universalIdentifier:`20202020-0638-448e-8825-439134618022`},avatarUrl:{universalIdentifier:`20202020-b8a6-40df-961c-373dc5d2ec21`},avatarFile:{universalIdentifier:`20202020-a7c9-4e3d-8f1b-2d5a6b7c8e9f`},company:{universalIdentifier:`20202020-e2f3-448e-b34c-2d625f0025fd`},pointOfContactForOpportunities:{universalIdentifier:`20202020-911b-4a7d-b67b-918aa9a5b33a`},taskTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.taskTarget})},noteTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.noteTarget})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.attachment})},messageParticipants:{universalIdentifier:`20202020-498e-4c61-8158-fa04f0638334`},calendarEventParticipants:{universalIdentifier:`20202020-52ee-45e9-a702-b64b3753e3a9`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.timelineActivity})},listMemberships:{universalIdentifier:`8b8d1be0-4c94-4413-a2c9-c7ede205a81d`}},task:{...Y(J.task),title:{universalIdentifier:`20202020-b386-4cb7-aa5a-08d4a4d92680`},bodyV2:{universalIdentifier:`20202020-4aa0-4ae8-898d-7df0afd47ab1`},dueAt:{universalIdentifier:`20202020-fd99-40da-951b-4cb9a352fce3`},status:{universalIdentifier:`20202020-70bc-48f9-89c5-6aa730b151e0`},taskTargets:{universalIdentifier:`20202020-de9c-4d0e-a452-713d4a3e5fc7`},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.task,relationTargetObjectUniversalIdentifier:J.attachment})},assignee:{universalIdentifier:`20202020-065a-4f42-a906-e20422c1753f`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.task,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},taskTarget:{...Y(J.taskTarget),task:{universalIdentifier:`20202020-e881-457a-8758-74aaef4ae78a`},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.taskTarget,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.taskTarget,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.taskTarget,relationTargetObjectUniversalIdentifier:J.opportunity})}},workflow:{...Y(J.workflow),name:{universalIdentifier:`20202020-b3d3-478f-acc0-5d901e725b20`},lastPublishedVersionId:{universalIdentifier:`20202020-326a-4fba-8639-3456c0a169e8`},coreWorkflowId:{universalIdentifier:`20202020-058a-42ad-8eb8-0662a5552aad`},statuses:{universalIdentifier:`20202020-357c-4432-8c50-8c31b4a552d9`},versions:{universalIdentifier:`20202020-9432-416e-8f3c-27ee3153d099`},runs:{universalIdentifier:`20202020-759b-4340-b58b-e73595c4df4f`},automatedTriggers:{universalIdentifier:`20202020-3319-4234-a34c-117ecad2b8a9`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflow,relationTargetObjectUniversalIdentifier:J.timelineActivity})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflow,relationTargetObjectUniversalIdentifier:J.attachment})}},workflowAutomatedTrigger:{...Y(J.workflowAutomatedTrigger),type:{universalIdentifier:`20202020-3319-4234-a34c-3f92c1ab56e7`},settings:{universalIdentifier:`20202020-3319-4234-a34c-bac8f903de12`},workflow:{universalIdentifier:`20202020-3319-4234-a34c-8e1a4d2f7c03`}},workflowRun:{...Y(J.workflowRun),name:{universalIdentifier:`20202020-b840-4253-aef9-4e5013694587`},workflowVersion:{universalIdentifier:`20202020-2f52-4ba8-8dc4-d0d6adb9578d`},workflow:{universalIdentifier:`20202020-8c57-4e7f-84f5-f373f68e1b82`},enqueuedAt:{universalIdentifier:`20202020-f1e3-4de1-a461-b5c4fdbc861d`},startedAt:{universalIdentifier:`20202020-a234-4e2d-bd15-85bcea6bb183`},endedAt:{universalIdentifier:`20202020-e1c1-4b6b-bbbd-b2beaf2e159e`},status:{universalIdentifier:`20202020-6b3e-4f9c-8c2b-2e5b8e6d6f3b`},state:{universalIdentifier:`20202020-611f-45f3-9cde-d64927e8ec57`},stepLogs:{universalIdentifier:`20202020-7c4e-4e1a-8fc1-1e3a55d6c2a1`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflowRun,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},workflowVersion:{...Y(J.workflowVersion),name:{universalIdentifier:`20202020-a12f-4cca-9937-a2e40cc65509`},workflow:{universalIdentifier:`20202020-afa3-46c3-91b0-0631ca6aa1c8`},trigger:{universalIdentifier:`20202020-4eae-43e7-86e0-212b41a30b48`},status:{universalIdentifier:`20202020-5a34-440e-8a25-39d8c3d1d4cf`},runs:{universalIdentifier:`20202020-1d08-46df-901a-85045f18099a`},steps:{universalIdentifier:`20202020-5988-4a64-b94a-1f9b7b989039`},coreWorkflowVersionId:{universalIdentifier:`20202020-58b4-46e8-b6d2-f1f3c74cf7f4`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflowVersion,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},workspaceMember:{...Y(J.workspaceMember),name:{universalIdentifier:`20202020-e914-43a6-9c26-3603c59065f4`},colorScheme:{universalIdentifier:`20202020-66bc-47f2-adac-f2ef7c598b63`},uiScale:{universalIdentifier:`20202020-1581-4bfb-b87d-58fa9cd5b817`},openRecordIn:{universalIdentifier:`20202020-1b16-419d-9323-6f3ea850e5d9`},locale:{universalIdentifier:`20202020-402e-4695-b169-794fa015afbe`},avatarUrl:{universalIdentifier:`20202020-0ced-4c4f-a376-c98a966af3f6`},userEmail:{universalIdentifier:`20202020-4c5f-4e09-bebc-9e624e21ecf4`},jobTitle:{universalIdentifier:`20202020-4dd4-4619-826e-08f6c06b374d`},userId:{universalIdentifier:`20202020-75a9-4dfc-bf25-2e4b43e89820`},assignedTasks:{universalIdentifier:`20202020-61dc-4a1c-99e8-38ebf8d2bbeb`},ownedOpportunities:{universalIdentifier:`20202020-9e4d-4b3a-8c1f-6d7e8f9a0b1c`},accountOwnerForCompanies:{universalIdentifier:`20202020-dc29-4bd4-a3c1-29eafa324bee`},messageParticipants:{universalIdentifier:`20202020-8f99-48bc-a5eb-edd33dd54188`},blocklist:{universalIdentifier:`20202020-6cb2-4161-9f29-a4b7f1283859`},calendarEventParticipants:{universalIdentifier:`20202020-0dbc-4841-9ce1-3e793b5b3512`},timelineActivities:{universalIdentifier:`20202020-e15b-47b8-94fe-8200e3c66615`},timeZone:{universalIdentifier:`20202020-2d33-4c21-a86e-5943b050dd54`},dateFormat:{universalIdentifier:`20202020-af13-4e11-b1e7-b8cf5ea13dc0`},timeFormat:{universalIdentifier:`20202020-8acb-4cf8-a851-a6ed443c8d81`},calendarStartDay:{universalIdentifier:`20202020-1ecc-4562-84c9-ff3a2f6cce85`},numberFormat:{universalIdentifier:`20202020-7f40-4e7f-b126-11c0eda6b141`}}},Z=({objectUniversalIdentifier:t,fields:n,viewFieldNames:r})=>{let i=e.v({objectMetadataApplicationUniversalIdentifier:e.g,objectUniversalIdentifier:t,viewKey:e.p.INDEX});return{universalIdentifier:i,viewFields:Object.fromEntries(r.map(r=>{let a=n[r];if(a===void 0)throw Error(`Missing field "${r}" for the INDEX view of object ${t}`);return[r,{universalIdentifier:e.f({fieldMetadataApplicationUniversalIdentifier:e.g,viewUniversalIdentifier:i,fieldMetadataUniversalIdentifier:a.universalIdentifier})}]}))}},Ux=({objectUniversalIdentifier:t,fields:n,viewFieldNames:r,viewFieldGroupNames:i})=>{let a=e.v({objectMetadataApplicationUniversalIdentifier:e.g,objectUniversalIdentifier:t,viewKey:e.p.FIELDS_WIDGET});return{universalIdentifier:a,viewFields:Object.fromEntries(r.map(r=>{let i=n[r];if(i===void 0)throw Error(`Missing field "${r}" for the record-page view of object ${t}`);return[r,{universalIdentifier:e.f({fieldMetadataApplicationUniversalIdentifier:e.g,viewUniversalIdentifier:a,fieldMetadataUniversalIdentifier:i.universalIdentifier})}]})),viewFieldGroups:Object.fromEntries(Object.entries(i).map(([t,n])=>[t,{universalIdentifier:e.b({objectMetadataApplicationUniversalIdentifier:e.g,viewUniversalIdentifier:a,name:n})}]))}},Wx={attachment:{universalIdentifier:J.attachment,fields:X.attachment,morphIds:{targetMorphId:{morphId:`20202020-f634-435d-ab8d-e1168b375c69`}},indexes:{taskIdIndex:{universalIdentifier:`b8d4f9a3-0c25-4e7b-9f6a-2d3e4c5b6f70`},noteIdIndex:{universalIdentifier:`9d31ea73-13b6-4e06-84ee-c66c72bf7787`},personIdIndex:{universalIdentifier:`55637a5a-1edc-4351-8d76-d40020bf8944`},companyIdIndex:{universalIdentifier:`4137ba06-184d-438f-b484-080f02a97659`},opportunityIdIndex:{universalIdentifier:`8cc162d1-c127-4981-878d-f78622f8f12d`},dashboardIdIndex:{universalIdentifier:`c10eba2d-ff1a-4eab-9285-50481c12a003`},workflowIdIndex:{universalIdentifier:`fadeab4b-79ee-4173-af79-72c51fbad888`}},views:{allAttachments:Z({objectUniversalIdentifier:J.attachment,fields:X.attachment,viewFieldNames:[`name`,`file`,`createdBy`,`createdAt`,`targetPerson`,`targetCompany`,`targetOpportunity`,`targetTask`,`targetNote`,`targetDashboard`,`targetWorkflow`]})}},blocklist:{universalIdentifier:J.blocklist,fields:X.blocklist,indexes:{workspaceMemberIdIndex:{universalIdentifier:`4daf320e-74d0-4f24-a45a-af3a09d741cb`}},views:{allBlocklists:Z({objectUniversalIdentifier:J.blocklist,fields:X.blocklist,viewFieldNames:[`handle`,`workspaceMember`,`createdAt`]}),blocklistRecordPageFields:Ux({objectUniversalIdentifier:J.blocklist,fields:X.blocklist,viewFieldNames:[`workspaceMember`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},calendarChannelEventAssociation:{universalIdentifier:J.calendarChannelEventAssociation,fields:X.calendarChannelEventAssociation,indexes:{calendarChannelIdIndex:{universalIdentifier:`ff6b86c1-3112-4dfa-b734-c4789111a716`},calendarEventIdIndex:{universalIdentifier:`47a3c8d2-9f14-4b6e-8c5d-1a2b3f4e5c69`}},views:{allCalendarChannelEventAssociations:Z({objectUniversalIdentifier:J.calendarChannelEventAssociation,fields:X.calendarChannelEventAssociation,viewFieldNames:[`calendarChannelId`,`calendarEvent`,`eventExternalId`,`createdAt`]}),calendarChannelEventAssociationRecordPageFields:Ux({objectUniversalIdentifier:J.calendarChannelEventAssociation,fields:X.calendarChannelEventAssociation,viewFieldNames:[`calendarChannelId`,`calendarEvent`,`eventExternalId`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},calendarEventParticipant:{universalIdentifier:J.calendarEventParticipant,fields:X.calendarEventParticipant,indexes:{calendarEventIdIndex:{universalIdentifier:`c458ad97-8b95-43de-9003-88eb68576049`},personIdIndex:{universalIdentifier:`30e9b75a-881f-4a85-aaf1-f2d2464be1cf`},workspaceMemberIdIndex:{universalIdentifier:`898aa202-428f-4a7a-a3b3-8f0a17a6658e`}},views:{allCalendarEventParticipants:Z({objectUniversalIdentifier:J.calendarEventParticipant,fields:X.calendarEventParticipant,viewFieldNames:[`calendarEvent`,`handle`,`displayName`,`isOrganizer`,`responseStatus`,`person`,`workspaceMember`,`createdAt`]}),calendarEventParticipantRecordPageFields:Ux({objectUniversalIdentifier:J.calendarEventParticipant,fields:X.calendarEventParticipant,viewFieldNames:[`calendarEvent`,`handle`,`displayName`,`isOrganizer`,`responseStatus`,`person`,`workspaceMember`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},calendarEvent:{universalIdentifier:J.calendarEvent,fields:X.calendarEvent,indexes:{},views:{allCalendarEvents:Z({objectUniversalIdentifier:J.calendarEvent,fields:X.calendarEvent,viewFieldNames:[`title`,`startsAt`,`endsAt`,`isFullDay`,`location`,`conferenceLink`,`isCanceled`,`createdAt`]}),calendarEventRecordPageFields:Ux({objectUniversalIdentifier:J.calendarEvent,fields:X.calendarEvent,viewFieldNames:[`title`,`startsAt`,`endsAt`,`isFullDay`,`isCanceled`,`conferenceLink`,`location`,`description`,`externalCreatedAt`,`externalUpdatedAt`,`iCalUid`,`conferenceSolution`],viewFieldGroupNames:{general:`General`,system:`System`}})}},callRecording:{universalIdentifier:J.callRecording,fields:X.callRecording,indexes:{calendarEventIdIndex:{universalIdentifier:`8be3cc47-9352-4a1b-ad19-bb186bc0865d`}},views:{allCallRecordings:Z({objectUniversalIdentifier:J.callRecording,fields:X.callRecording,viewFieldNames:[`status`,`recordingRequestStatus`,`title`,`startedAt`]}),callRecordingRecordPageFields:Ux({objectUniversalIdentifier:J.callRecording,fields:X.callRecording,viewFieldNames:[`title`,`status`,`recordingRequestStatus`,`startedAt`,`endedAt`,`video`,`audio`,`transcript`,`summary`],viewFieldGroupNames:{general:`General`}})}},company:{universalIdentifier:J.company,fields:X.company,indexes:{accountOwnerIdIndex:{universalIdentifier:`ec2ebfc9-0c9b-4597-a87d-aa295e2d8bfe`},domainNameUniqueIndex:{universalIdentifier:`dd300c61-f422-467a-91f4-de4f83c4175b`},searchVectorGinIndex:{universalIdentifier:`c3eb62df-2cc1-4cc3-b7aa-e96a4d65c633`}},views:{allCompanies:Z({objectUniversalIdentifier:J.company,fields:X.company,viewFieldNames:[`name`,`domainName`,`createdBy`,`accountOwner`,`createdAt`,`linkedinLink`,`address`]}),companyRecordPageFields:Ux({objectUniversalIdentifier:J.company,fields:X.company,viewFieldNames:[`domainName`,`accountOwner`,`annualRevenue`,`linkedinLink`,`address`,`createdAt`,`createdBy`,`updatedAt`,`updatedBy`,`people`,`taskTargets`,`noteTargets`,`opportunities`,`attachments`,`timelineActivities`],viewFieldGroupNames:{general:`General`,business:`Business`,contact:`Contact`,system:`System`}})}},dashboard:{universalIdentifier:J.dashboard,fields:X.dashboard,indexes:{searchVectorGinIndex:{universalIdentifier:`e69f71aa-de0f-4b70-845f-7a8369c47928`}},views:{allDashboards:Z({objectUniversalIdentifier:J.dashboard,fields:X.dashboard,viewFieldNames:[`title`,`createdBy`,`createdAt`,`updatedAt`]})}},messageCampaign:{universalIdentifier:J.messageCampaign,fields:X.messageCampaign,indexes:{unsubscribeTopicIdIndex:{universalIdentifier:`efe8c20e-d12b-4475-969e-e86e0bbfe444`},listIdIndex:{universalIdentifier:`17bffd6a-714a-458d-a547-f9e2183d9520`},searchVectorGinIndex:{universalIdentifier:`975823ad-9b97-4f39-b2c7-fbd7d77f4bd1`}},views:{allMessageCampaigns:Z({objectUniversalIdentifier:J.messageCampaign,fields:X.messageCampaign,viewFieldNames:[`name`,`subject`,`status`,`list`,`fromAddress`,`sentAt`,`sentCount`,`failedCount`,`bouncedCount`,`complainedCount`,`recipients`,`createdAt`]}),messageCampaignRecordPageFields:Ux({objectUniversalIdentifier:J.messageCampaign,fields:X.messageCampaign,viewFieldNames:[`status`,`sentAt`,`sentCount`,`failedCount`,`bouncedCount`,`complainedCount`],viewFieldGroupNames:{stats:`Stats`}})}},messageList:{universalIdentifier:J.messageList,fields:X.messageList,indexes:{searchVectorGinIndex:{universalIdentifier:`8e205171-ed74-4620-b7d2-674aab85033a`}},views:{allMessageLists:Z({objectUniversalIdentifier:J.messageList,fields:X.messageList,viewFieldNames:[`name`,`members`,`campaigns`,`createdAt`]})}},messageListMember:{universalIdentifier:J.messageListMember,fields:X.messageListMember,indexes:{listIdIndex:{universalIdentifier:`61188470-6dcb-4b2a-b1a9-baeb688bccae`},personListUniqueIndex:{universalIdentifier:`e5497dc2-1d72-418c-a389-a0645ca0195a`}}},messageChannelMessageAssociation:{universalIdentifier:J.messageChannelMessageAssociation,fields:X.messageChannelMessageAssociation,indexes:{messageChannelIdIndex:{universalIdentifier:`9894f9a3-0225-4e7b-9f6a-23d4e2576784`},messageIdIndex:{universalIdentifier:`9bb24d40-60dd-4beb-8c64-a74e8c67f9ee`},messageChannelIdMessageIdUniqueIndex:{universalIdentifier:`1b86ece8-7ce3-4df3-8771-fd4b5d45b2f2`}},views:{allMessageChannelMessageAssociations:Z({objectUniversalIdentifier:J.messageChannelMessageAssociation,fields:X.messageChannelMessageAssociation,viewFieldNames:[`messageChannelId`,`message`,`messageExternalId`,`direction`,`createdAt`]}),messageChannelMessageAssociationRecordPageFields:Ux({objectUniversalIdentifier:J.messageChannelMessageAssociation,fields:X.messageChannelMessageAssociation,viewFieldNames:[`messageChannelId`,`message`,`messageExternalId`,`direction`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},messageChannelMessageAssociationMessageFolder:{universalIdentifier:J.messageChannelMessageAssociationMessageFolder,fields:X.messageChannelMessageAssociationMessageFolder,indexes:{messageChannelMessageAssociationIdIndex:{universalIdentifier:`8e6038aa-1f79-4a84-87b5-f33caa172e98`},messageFolderIdIndex:{universalIdentifier:`905299c3-ca81-435d-901c-f68b87562516`},messageChannelMessageAssociationIdMessageFolderIdUniqueIndex:{universalIdentifier:`a3de1788-5dff-4849-ac5a-0dabe5fab216`}},views:{allMessageChannelMessageAssociationMessageFolders:Z({objectUniversalIdentifier:J.messageChannelMessageAssociationMessageFolder,fields:X.messageChannelMessageAssociationMessageFolder,viewFieldNames:[`messageChannelMessageAssociation`,`messageFolderId`,`createdAt`]}),messageChannelMessageAssociationMessageFolderRecordPageFields:Ux({objectUniversalIdentifier:J.messageChannelMessageAssociationMessageFolder,fields:X.messageChannelMessageAssociationMessageFolder,viewFieldNames:[`messageChannelMessageAssociation`,`messageFolderId`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},messageParticipant:{universalIdentifier:J.messageParticipant,fields:X.messageParticipant,indexes:{messageIdIndex:{universalIdentifier:`ab0863ba-f95e-493c-b86c-56e1bc7e5bc2`},personIdIndex:{universalIdentifier:`df805c2e-3bfe-4d51-8309-75e5eb4052fe`},workspaceMemberIdIndex:{universalIdentifier:`ce1e3a9e-afe9-439d-abb7-6cc98a6fa405`},messageCampaignIdIndex:{universalIdentifier:`e9bcdd77-cc8b-4532-833c-124dfdc8e5ff`}},views:{allMessageParticipants:Z({objectUniversalIdentifier:J.messageParticipant,fields:X.messageParticipant,viewFieldNames:[`message`,`role`,`handle`,`displayName`,`person`,`workspaceMember`,`createdAt`]}),messageParticipantRecordPageFields:Ux({objectUniversalIdentifier:J.messageParticipant,fields:X.messageParticipant,viewFieldNames:[`message`,`role`,`displayName`,`person`,`workspaceMember`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},messageThread:{universalIdentifier:J.messageThread,fields:X.messageThread,indexes:{},views:{allMessageThreads:Z({objectUniversalIdentifier:J.messageThread,fields:X.messageThread,viewFieldNames:[`subject`,`messages`,`updatedAt`,`createdAt`]})}},message:{universalIdentifier:J.message,fields:X.message,indexes:{messageThreadIdIndex:{universalIdentifier:`7a05b45e-7aa6-4a7e-9bbc-299cbed53c96`},messageCampaignIdIndex:{universalIdentifier:`79e777ca-7008-46c5-b3a6-3108b7c7dfb6`}},views:{allMessages:Z({objectUniversalIdentifier:J.message,fields:X.message,viewFieldNames:[`subject`,`messageThread`,`messageParticipants`,`receivedAt`,`headerMessageId`,`text`,`createdAt`]})}},note:{universalIdentifier:J.note,fields:X.note,indexes:{searchVectorGinIndex:{universalIdentifier:`8183c8d2-9114-4b6e-8c5d-12a3b14a5a13`}},views:{allNotes:Z({objectUniversalIdentifier:J.note,fields:X.note,viewFieldNames:[`title`,`noteTargets`,`bodyV2`,`createdBy`,`createdAt`]}),noteRecordPageFields:Ux({objectUniversalIdentifier:J.note,fields:X.note,viewFieldNames:[`createdAt`,`createdBy`,`noteTargets`,`bodyV2`,`updatedAt`,`updatedBy`,`attachments`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},noteTarget:{universalIdentifier:J.noteTarget,fields:X.noteTarget,morphIds:{targetMorphId:{morphId:`20202020-f635-435d-ab8d-e1168b375c70`}},indexes:{noteIdIndex:{universalIdentifier:`9294d9e3-0225-4c7f-9d6e-23b4c25b6b24`},personIdIndex:{universalIdentifier:`7c069dc0-e83b-4cd5-aaa2-cac7f3e00d80`},companyIdIndex:{universalIdentifier:`2d83909a-a383-4e82-b00a-8b7739f3f906`},opportunityIdIndex:{universalIdentifier:`0d1a59b4-cc87-4b7d-804a-656e8504f371`}},views:{allNoteTargets:Z({objectUniversalIdentifier:J.noteTarget,fields:X.noteTarget,viewFieldNames:[`id`,`note`,`targetPerson`,`targetCompany`,`targetOpportunity`]})}},opportunity:{universalIdentifier:J.opportunity,fields:X.opportunity,indexes:{pointOfContactIdIndex:{universalIdentifier:`b8c2a673-a981-4357-a43d-313a358e4daa`},companyIdIndex:{universalIdentifier:`e161072d-37b1-477a-b944-ef0d65289574`},stageIndex:{universalIdentifier:`ae60d580-b562-44f2-a24d-7b8040063f83`},searchVectorGinIndex:{universalIdentifier:`f53fdd28-a26b-47ba-81b5-6813ad622720`}},views:{allOpportunities:Z({objectUniversalIdentifier:J.opportunity,fields:X.opportunity,viewFieldNames:[`name`,`amount`,`createdBy`,`closeDate`,`company`,`pointOfContact`]}),byStage:{universalIdentifier:`20202020-a004-4a04-8a04-0aa0b1ca1ba0`,viewFields:{name:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2baf`},amount:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb0`},createdBy:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb1`},closeDate:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb2`},company:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb3`},pointOfContact:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb4`}},viewGroups:{new:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf1`},screening:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf2`},meeting:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf3`},proposal:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf4`},customer:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf5`}}},opportunityRecordPageFields:Ux({objectUniversalIdentifier:J.opportunity,fields:X.opportunity,viewFieldNames:[`amount`,`closeDate`,`stage`,`company`,`pointOfContact`,`owner`,`createdAt`,`createdBy`,`updatedAt`,`updatedBy`,`taskTargets`,`noteTargets`,`attachments`,`timelineActivities`],viewFieldGroupNames:{deal:`Deal`,relations:`Relations`,system:`System`}})}},person:{universalIdentifier:J.person,fields:X.person,indexes:{companyIdIndex:{universalIdentifier:`8a265a5c-d3ae-47dc-bdf9-b42cfa2ba639`},emailsUniqueIndex:{universalIdentifier:`8183a8b2-9114-4f6c-8a5b-12e3f14e5e13`},searchVectorGinIndex:{universalIdentifier:`9294b9c3-0225-4a7d-9b6c-23f4a25f6f24`}},views:{allPeople:Z({objectUniversalIdentifier:J.person,fields:X.person,viewFieldNames:[`name`,`emails`,`createdBy`,`company`,`phones`,`createdAt`,`jobTitle`,`linkedinLink`]}),personRecordPageFields:Ux({objectUniversalIdentifier:J.person,fields:X.person,viewFieldNames:[`emails`,`phones`,`company`,`jobTitle`,`linkedinLink`,`avatarUrl`,`createdAt`,`createdBy`,`updatedAt`,`updatedBy`,`avatarFile`,`pointOfContactForOpportunities`,`taskTargets`,`noteTargets`,`attachments`,`messageParticipants`,`calendarEventParticipants`,`timelineActivities`],viewFieldGroupNames:{general:`General`,work:`Work`,social:`Social`,system:`System`}})}},task:{universalIdentifier:J.task,fields:X.task,indexes:{assigneeIdIndex:{universalIdentifier:`f48fa3b1-0cec-44da-a9e5-f8a5e766637e`},searchVectorGinIndex:{universalIdentifier:`a86b32b3-01d3-4302-a152-8b7f247db7b4`}},views:{allTasks:Z({objectUniversalIdentifier:J.task,fields:X.task,viewFieldNames:[`title`,`status`,`taskTargets`,`createdBy`,`dueAt`,`assignee`,`bodyV2`,`createdAt`]}),assignedToMe:{universalIdentifier:`20202020-a007-4a07-8a07-ba5ca551aaed`,viewFields:{title:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaed`},taskTargets:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaee`},createdBy:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaef`},dueAt:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf0`},assignee:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf1`},bodyV2:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf2`},createdAt:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf3`}},viewFilters:{assigneeIsMe:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf1`}},viewGroups:{todo:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf2`},inProgress:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf3`},done:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf4`},empty:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf5`}}},byStatus:{universalIdentifier:`20202020-a008-4a08-8a08-ba5cba51aba5`,viewFields:{title:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf0`},status:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf1`},dueAt:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf2`},assignee:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf3`},createdAt:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf4`}},viewGroups:{todo:{universalIdentifier:`20202020-af18-4a08-8a08-ba5cba5bbf01`},inProgress:{universalIdentifier:`20202020-af18-4a08-8a08-ba5cba5bbf02`},done:{universalIdentifier:`20202020-af18-4a08-8a08-ba5cba5bbf03`}}},taskRecordPageFields:Ux({objectUniversalIdentifier:J.task,fields:X.task,viewFieldNames:[`dueAt`,`status`,`assignee`,`createdAt`,`createdBy`,`taskTargets`,`bodyV2`,`updatedAt`,`updatedBy`,`attachments`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},taskTarget:{universalIdentifier:J.taskTarget,fields:X.taskTarget,morphIds:{targetMorphId:{morphId:`20202020-f636-435d-ab8d-e1168b375c71`}},indexes:{taskIdIndex:{universalIdentifier:`c882f7a4-b025-4d32-aa26-5ef2595bdbf9`},personIdIndex:{universalIdentifier:`b7d305d1-6fae-4ed6-9bdc-354fe9032c0e`},companyIdIndex:{universalIdentifier:`c0af54c7-751b-4bb2-b102-677cc4e47402`},opportunityIdIndex:{universalIdentifier:`6942e0ba-90f6-4c33-bf40-7f00b1ec35ab`}},views:{allTaskTargets:Z({objectUniversalIdentifier:J.taskTarget,fields:X.taskTarget,viewFieldNames:[`id`,`task`,`targetPerson`,`targetCompany`,`targetOpportunity`]})}},timelineActivity:{universalIdentifier:J.timelineActivity,fields:X.timelineActivity,morphIds:{targetMorphId:{morphId:`20202020-9a2b-4c3d-a4e5-f6a7b8c9d0e1`}},indexes:{workspaceMemberIdIndex:{universalIdentifier:`5e0b2391-85ca-4a66-aef4-52d74245bec2`},personIdIndex:{universalIdentifier:`3e89a914-7bec-47bd-9cf9-743c6b83d001`},companyIdIndex:{universalIdentifier:`8183e8f2-9114-4d6a-8e5f-12c3d14c5c13`},opportunityIdIndex:{universalIdentifier:`9294f9a3-0225-4e7b-9f6a-23d4e25d6d24`},noteIdIndex:{universalIdentifier:`995db1d8-0d3e-40f7-b0eb-5e6897bc9966`},taskIdIndex:{universalIdentifier:`609cf622-86ef-48d1-812b-e1cab610a46c`},workflowIdIndex:{universalIdentifier:`d6059ec2-92b0-4cfc-9fd8-78050f03108f`},workflowVersionIdIndex:{universalIdentifier:`d94329b3-5dc8-4141-ae28-31afe28f7135`},workflowRunIdIndex:{universalIdentifier:`1a2bd046-7c23-4e0a-9f8a-c3ca3a16d3b9`},dashboardIdIndex:{universalIdentifier:`e8821da9-728d-470a-bf5b-5a981fff7880`}},views:{allTimelineActivities:Z({objectUniversalIdentifier:J.timelineActivity,fields:X.timelineActivity,viewFieldNames:[`linkedRecordCachedName`,`happensAt`,`workspaceMember`,`targetPerson`,`targetCompany`,`targetOpportunity`,`targetTask`,`targetNote`,`targetWorkflow`,`targetWorkflowVersion`,`targetWorkflowRun`,`targetDashboard`]})}},workflow:{universalIdentifier:J.workflow,fields:X.workflow,indexes:{searchVectorGinIndex:{universalIdentifier:`c7e64c55-eb0c-4b93-b076-5cfcf2e2e042`}},views:{allWorkflows:Z({objectUniversalIdentifier:J.workflow,fields:X.workflow,viewFieldNames:[`name`,`statuses`,`updatedAt`,`createdBy`,`versions`,`runs`]})}},workflowAutomatedTrigger:{universalIdentifier:J.workflowAutomatedTrigger,fields:X.workflowAutomatedTrigger,indexes:{workflowIdIndex:{universalIdentifier:`7331ff89-a3f9-4ac0-9fa9-0de5663ae7b2`}},views:{allWorkflowAutomatedTriggers:Z({objectUniversalIdentifier:J.workflowAutomatedTrigger,fields:X.workflowAutomatedTrigger,viewFieldNames:[`type`,`workflow`,`createdAt`]}),workflowAutomatedTriggerRecordPageFields:Ux({objectUniversalIdentifier:J.workflowAutomatedTrigger,fields:X.workflowAutomatedTrigger,viewFieldNames:[`type`,`workflow`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},workflowRun:{universalIdentifier:J.workflowRun,fields:X.workflowRun,indexes:{workflowVersionIdIndex:{universalIdentifier:`8183c8d2-9114-4b6e-8c5d-12a3b14a5a14`},workflowIdIndex:{universalIdentifier:`9294d9e3-0225-4c7f-9d6e-23b4c25b6b25`},searchVectorGinIndex:{universalIdentifier:`e0ac5ad2-d0c8-4f72-b710-8e53b9dc18d9`}},views:{allWorkflowRuns:Z({objectUniversalIdentifier:J.workflowRun,fields:X.workflowRun,viewFieldNames:[`name`,`workflow`,`status`]}),workflowRunRecordPageFields:Ux({objectUniversalIdentifier:J.workflowRun,fields:X.workflowRun,viewFieldNames:[`status`,`workflow`,`workflowVersion`,`startedAt`,`endedAt`,`createdAt`,`createdBy`,`enqueuedAt`,`state`,`updatedAt`,`updatedBy`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},workflowVersion:{universalIdentifier:J.workflowVersion,fields:X.workflowVersion,indexes:{workflowIdIndex:{universalIdentifier:`8138c3b3-0b14-4ee1-be0e-debdde6b3219`},searchVectorGinIndex:{universalIdentifier:`6f3a65eb-2aee-4108-b8a0-c62da419d1dc`}},views:{allWorkflowVersions:Z({objectUniversalIdentifier:J.workflowVersion,fields:X.workflowVersion,viewFieldNames:[`name`,`workflow`,`status`,`updatedAt`,`runs`]}),workflowVersionRecordPageFields:Ux({objectUniversalIdentifier:J.workflowVersion,fields:X.workflowVersion,viewFieldNames:[`status`,`workflow`,`trigger`,`createdAt`,`steps`,`createdBy`,`updatedAt`,`updatedBy`,`runs`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},workspaceMember:{universalIdentifier:J.workspaceMember,fields:X.workspaceMember,indexes:{userEmailUniqueIndex:{universalIdentifier:`76da5f27-523c-44b6-ad06-12954f6b949f`},searchVectorGinIndex:{universalIdentifier:`8678dde9-a804-4a9e-80e3-9af35e471ec5`}},views:{allWorkspaceMembers:Z({objectUniversalIdentifier:J.workspaceMember,fields:X.workspaceMember,viewFieldNames:[`name`,`createdAt`,`ownedOpportunities`,`assignedTasks`]})}}},Gx=({objectUniversalIdentifier:t,tabs:n})=>{let r=e.d({objectMetadataApplicationUniversalIdentifier:e.g,objectUniversalIdentifier:t});return{universalIdentifier:r,tabs:Object.fromEntries(Object.entries(n).map(([t,{title:n,widgets:i}])=>{let a=e._({objectMetadataApplicationUniversalIdentifier:e.g,pageLayoutUniversalIdentifier:r,title:n});return[t,{universalIdentifier:a,widgets:Object.fromEntries(Object.entries(i).map(([t,n])=>[t,{universalIdentifier:e.y({objectMetadataApplicationUniversalIdentifier:e.g,pageLayoutTabUniversalIdentifier:a,title:n})}]))}]}))}},Kx={myFirstDashboard:{universalIdentifier:`20202020-d001-4d01-8d01-da5ab0a00001`,tabs:{tab1:{universalIdentifier:`20202020-d011-4d11-8d11-da5ab0a01001`,widgets:{welcomeRichText:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11001`},dealsByCompany:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11002`},pipelineValueByStage:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11003`},revenueTimeline:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11004`},opportunitiesByOwner:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11005`},stockMarketIframe:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11006`},dealsCreatedThisMonth:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11007`},dealValueCreatedThisMonth:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11008`}}}}},companyRecordPage:Gx({objectUniversalIdentifier:J.company,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,people:`People`,opportunities:`Opportunities`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},tasks:{title:`Tasks`,widgets:{tasks:`Tasks`}},notes:{title:`Notes`,widgets:{notes:`Notes`}},files:{title:`Files`,widgets:{files:`Files`}},emails:{title:`Emails`,widgets:{emails:`Emails`}},calendar:{title:`Calendar`,widgets:{calendar:`Calendar`}}}}),personRecordPage:Gx({objectUniversalIdentifier:J.person,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,company:`Company`,pointOfContactForOpportunities:`Opportunities`,listMemberships:`Lists`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},tasks:{title:`Tasks`,widgets:{tasks:`Tasks`}},notes:{title:`Notes`,widgets:{notes:`Notes`}},files:{title:`Files`,widgets:{files:`Files`}},emails:{title:`Emails`,widgets:{emails:`Emails`}},calendar:{title:`Calendar`,widgets:{calendar:`Calendar`}}}}),opportunityRecordPage:Gx({objectUniversalIdentifier:J.opportunity,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,pointOfContact:`Point of Contact`,company:`Company`,owner:`Owner`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},tasks:{title:`Tasks`,widgets:{tasks:`Tasks`}},notes:{title:`Notes`,widgets:{notes:`Notes`}},files:{title:`Files`,widgets:{files:`Files`}},emails:{title:`Emails`,widgets:{emails:`Emails`}},calendar:{title:`Calendar`,widgets:{calendar:`Calendar`}}}}),noteRecordPage:Gx({objectUniversalIdentifier:J.note,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,noteRichText:`Note`}},note:{title:`Note`,widgets:{noteRichText:`Note`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},files:{title:`Files`,widgets:{files:`Files`}}}}),taskRecordPage:Gx({objectUniversalIdentifier:J.task,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,taskRichText:`Task`}},note:{title:`Note`,widgets:{taskRichText:`Task`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},files:{title:`Files`,widgets:{files:`Files`}}}}),workflowRecordPage:Gx({objectUniversalIdentifier:J.workflow,tabs:{flow:{title:`Flow`,widgets:{workflow:`Flow`}}}}),workflowVersionRecordPage:Gx({objectUniversalIdentifier:J.workflowVersion,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,workflow:`Workflow`}},flow:{title:`Flow`,widgets:{workflowVersion:`Flow`}}}}),workflowRunRecordPage:Gx({objectUniversalIdentifier:J.workflowRun,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,workflow:`Workflow`}},flow:{title:`Flow`,widgets:{workflowRun:`Flow`}}}}),blocklistRecordPage:Gx({objectUniversalIdentifier:J.blocklist,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),calendarChannelEventAssociationRecordPage:Gx({objectUniversalIdentifier:J.calendarChannelEventAssociation,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),calendarEventRecordPage:Gx({objectUniversalIdentifier:J.calendarEvent,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,participants:`Participants`,callRecordings:`Call Recordings`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},summary:{title:`Summary`,widgets:{summary:`Summary`}},callRecording:{title:`Call Recording`,widgets:{transcript:`Transcript`}}}}),calendarEventParticipantRecordPage:Gx({objectUniversalIdentifier:J.calendarEventParticipant,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),callRecordingRecordPage:Gx({objectUniversalIdentifier:J.callRecording,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageChannelMessageAssociationRecordPage:Gx({objectUniversalIdentifier:J.messageChannelMessageAssociation,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageChannelMessageAssociationMessageFolderRecordPage:Gx({objectUniversalIdentifier:J.messageChannelMessageAssociationMessageFolder,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageParticipantRecordPage:Gx({objectUniversalIdentifier:J.messageParticipant,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),workflowAutomatedTriggerRecordPage:Gx({objectUniversalIdentifier:J.workflowAutomatedTrigger,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageThreadRecordPage:Gx({objectUniversalIdentifier:J.messageThread,tabs:{home:{title:`Home`,widgets:{emailThread:`Thread`}}}}),messageListRecordPage:Gx({objectUniversalIdentifier:J.messageList,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,members:`Members`}}}}),messageCampaignRecordPage:Gx({objectUniversalIdentifier:J.messageCampaign,tabs:{home:{title:`Home`,widgets:{details:`Details`,list:`List`,recipients:`Recipients`,fields:`Fields`}},composer:{title:`Email`,widgets:{messageCampaign:`Email`}}}})},qx=t=>{let n=[];if(t.universalIdentifier||n.push(`PageLayout must have a universalIdentifier`),t.name||n.push(`PageLayout must have a name`),t.type||n.push(`PageLayout must have a type`),t.tabs){for(let r of t.tabs)if(r.universalIdentifier||n.push(`PageLayoutTab must have a universalIdentifier`),r.title||n.push(`PageLayoutTab must have a title`),r.widgets){for(let t of r.widgets)if(t.universalIdentifier||n.push(`PageLayoutWidget must have a universalIdentifier`),t.title||n.push(`PageLayoutWidget must have a title`),t.type||n.push(`PageLayoutWidget must have a type`),t.configuration.configurationType===`FRONT_COMPONENT`&&e.yt(t.configuration.headerCommandMenuItemUniversalIdentifiers)){let e=t.configuration.headerCommandMenuItemUniversalIdentifiers;for(let t of e)Fx(t)||n.push(`PageLayoutWidget header command menu item universalIdentifier "${t}" must be a UUID`);new Set(e).size!==e.length&&n.push(`PageLayoutWidget header command menu item universalIdentifiers must be unique`)}}}return Nb({config:t,errors:n})},Jx=e=>{let t=[];if(e.universalIdentifier||t.push(`PageLayoutTab must have a universalIdentifier`),e.title||t.push(`PageLayoutTab must have a title`),e.pageLayoutUniversalIdentifier||t.push(`PageLayoutTab must have a pageLayoutUniversalIdentifier when defined standalone (use the parent page layout universalIdentifier)`),e.widgets)for(let n of e.widgets)n.universalIdentifier||t.push(`PageLayoutWidget must have a universalIdentifier`),n.title||t.push(`PageLayoutWidget must have a title`),n.type||t.push(`PageLayoutWidget must have a type`);return Nb({config:e,errors:t})},Yx=e=>{let t=[];return e.universalIdentifier||t.push(`Permission flag must have a universalIdentifier`),e.key||t.push(`Permission flag must have a key`),e.label||t.push(`Permission flag must have a label`),Nb({config:e,errors:t})},Xx=e=>{let t=[];if(e.universalIdentifier||t.push(`Role must have a universalIdentifier`),e.label||t.push(`Role must have a label`),e.objectPermissions)for(let n of e.objectPermissions)n.objectUniversalIdentifier||t.push(`Object permission must have an objectUniversalIdentifier`);if(e.fieldPermissions)for(let n of e.fieldPermissions)n.objectUniversalIdentifier||t.push(`Field permission must have an objectUniversalIdentifier`),n.fieldUniversalIdentifier||t.push(`Field permission must have a fieldUniversalIdentifier`);let n=new Set;if(e.rowLevelPermissionPredicateGroups)for(let r of e.rowLevelPermissionPredicateGroups)r.universalIdentifier?n.has(r.universalIdentifier)?t.push(`Duplicate row level permission predicate group universalIdentifier "${r.universalIdentifier}"`):n.add(r.universalIdentifier):t.push(`Row level permission predicate group must have a universalIdentifier`),r.objectUniversalIdentifier||t.push(`Row level permission predicate group must have an objectUniversalIdentifier`),r.logicalOperator||t.push(`Row level permission predicate group must have a logicalOperator`);let r=new Set;if(e.rowLevelPermissionPredicates)for(let i of e.rowLevelPermissionPredicates)i.universalIdentifier?r.has(i.universalIdentifier)?t.push(`Duplicate row level permission predicate universalIdentifier "${i.universalIdentifier}"`):r.add(i.universalIdentifier):t.push(`Row level permission predicate must have a universalIdentifier`),i.objectUniversalIdentifier||t.push(`Row level permission predicate must have an objectUniversalIdentifier`),i.fieldUniversalIdentifier||t.push(`Row level permission predicate must have a fieldUniversalIdentifier`),i.operand||t.push(`Row level permission predicate must have an operand`),i.predicateGroupUniversalIdentifier&&!n.has(i.predicateGroupUniversalIdentifier)&&t.push(`Row level permission predicate references unknown predicate group "${i.predicateGroupUniversalIdentifier}"`);return Nb({config:e,errors:t})},Zx=e=>Xx(e),Qx=e=>{let t=[];return e.universalIdentifier||t.push(`Skill must have a universalIdentifier`),e.name||t.push(`Skill must have a name`),e.label||t.push(`Skill must have a label`),e.content||t.push(`Skill must have content`),Nb({config:e,errors:t})},$x=t=>{let n=[];if(t.universalIdentifier||n.push(`View must have a universalIdentifier`),t.name||n.push(`View must have a name`),t.objectUniversalIdentifier||n.push(`View must have an objectUniversalIdentifier`),t.fields)for(let e of t.fields)e.universalIdentifier||n.push(`ViewField must have a universalIdentifier`),e.fieldMetadataUniversalIdentifier||n.push(`ViewField must have a fieldMetadataUniversalIdentifier`);if(t.filters)for(let e of t.filters)e.universalIdentifier||n.push(`ViewFilter must have a universalIdentifier`),e.fieldMetadataUniversalIdentifier||n.push(`ViewFilter must have a fieldMetadataUniversalIdentifier`);if(t.filterGroups)for(let e of t.filterGroups)e.universalIdentifier||n.push(`ViewFilterGroup must have a universalIdentifier`);if(t.groups)for(let e of t.groups)e.universalIdentifier||n.push(`ViewGroup must have a universalIdentifier`);if(t.fieldGroups)for(let e of t.fieldGroups)e.universalIdentifier||n.push(`ViewFieldGroup must have a universalIdentifier`);if(t.sorts)for(let r of t.sorts)r.universalIdentifier||n.push(`ViewSort must have a universalIdentifier`),r.fieldMetadataUniversalIdentifier||n.push(`ViewSort must have a fieldMetadataUniversalIdentifier`),r.direction!==e.k.ASC&&r.direction!==e.k.DESC&&n.push(`ViewSort direction must be '${e.k.ASC}' or '${e.k.DESC}'`);return Nb({config:t,errors:n})},eS=e=>{let t=[];return e.universalIdentifier||t.push(`View field must have a universalIdentifier`),e.viewUniversalIdentifier||t.push(`View field must have a viewUniversalIdentifier`),e.fieldMetadataUniversalIdentifier||t.push(`View field must have a fieldMetadataUniversalIdentifier`),Nb({config:e,errors:t})},tS=e.xt({AggregateOperations:()=>e.F,DateDisplayFormat:()=>e.E,FieldMetadataSettingsOnClickAction:()=>e.D,FieldType:()=>e.X,HTTPMethod:()=>e.N,MetadataWritability:()=>e.I,NavigationMenuItemType:()=>e.J,NumberDataType:()=>e.w,ObjectOpenRecordIn:()=>e.Z,ObjectRecordGroupByDateGranularity:()=>e.G,OnDeleteAction:()=>e.V,PageLayoutTabLayoutMode:()=>e.z,PageLayoutType:()=>e.Y,RelationType:()=>e.B,RowLevelPermissionPredicateGroupLogicalOperator:()=>e.P,RowLevelPermissionPredicateOperand:()=>e.Q,STANDARD_OBJECT:()=>Wx,STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS:()=>Wx,STANDARD_PAGE_LAYOUT:()=>Kx,STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS:()=>Kx,SYSTEM_VIEW_KEYS:()=>e.p,SystemPermissionFlag:()=>M,ViewCalendarLayout:()=>e.C,ViewFilterGroupLogicalOperator:()=>e.A,ViewFilterOperand:()=>e.W,ViewKey:()=>e.H,ViewOpenRecordIn:()=>e.O,ViewSortDirection:()=>e.k,ViewType:()=>e.j,ViewVisibility:()=>e.T,canAccessFullAdminPanel:()=>lx,canImpersonate:()=>cx,createValidationResult:()=>Nb,defineAgent:()=>Pb,defineApplication:()=>Ib,defineApplicationRole:()=>Zx,defineCommandMenuItem:()=>Ub,defineConnectionProvider:()=>zx,defineField:()=>Hb,defineFrontComponent:()=>Ex,defineIndex:()=>kx,defineLogicFunction:()=>Ax,defineNavigationMenuItem:()=>Bx,defineObject:()=>Vx,definePageLayout:()=>qx,definePageLayoutTab:()=>Jx,definePermissionFlag:()=>Yx,definePostInstallLogicFunction:()=>jx,definePreInstallLogicFunction:()=>Mx,defineRole:()=>Xx,defineSettingsFrontComponent:()=>Dx,defineSkill:()=>Qx,defineTimelineActivityType:()=>Kb,defineUninstallLogicFunction:()=>Nx,defineView:()=>$x,defineViewField:()=>eS,every:()=>hx,everyDefined:()=>gx,everyEquals:()=>_x,favoriteRecordIds:()=>$b,featureFlags:()=>ax,getFieldUniversalIdentifier:()=>e.m,getSystemRelationFieldUniversalIdentifier:()=>e.h,getSystemViewFieldUniversalIdentifier:()=>e.f,getSystemViewUniversalIdentifier:()=>e.v,hasAnySoftDeleteFilterOnView:()=>tx,includes:()=>mx,includesEvery:()=>Tx,isDashboardPageLayoutInEditMode:()=>Zb,isDefined:()=>fx,isInSidePanel:()=>Xb,isLayoutCustomizationModeEnabled:()=>Qb,isNonEmptyString:()=>px,isSelectAll:()=>ex,none:()=>xx,noneDefined:()=>Sx,noneEquals:()=>Cx,numberOfSelectedRecords:()=>nx,objectMetadataItem:()=>ux,objectMetadataLabel:()=>dx,objectPermissions:()=>rx,pageType:()=>Yb,selectedRecords:()=>ix,some:()=>vx,someDefined:()=>yx,someEquals:()=>bx,someNonEmptyString:()=>wx,targetObjectReadPermissions:()=>ox,targetObjectWritePermissions:()=>sx,validateFields:()=>Vb}),nS=e=>/^define[A-Z]/.test(e)||e===`createValidationResult`,rS=(e=>{let t=[],n=[];for(let r of Object.keys(e).sort())nS(r)?t.push(r):n.push(r);return{factories:t,any:n}})(tS),iS=`twenty-sdk-define-stub`,aS=`__twenty-sdk-define-stub__`,oS=`
39
+ `)},wb=e=>e.startsWith(`http://`)||e.startsWith(`https://`),Tb=async({appPath:n,manifest:i})=>{let{logo:a,galleryImages:o}=i.application;if(!e.yt(a)||wb(a)||(o??[]).length>0)return{manifest:i,generatedAssets:[]};let s=(0,t.join)(n,a);if(!await hb(s))return{manifest:i,generatedAssets:[]};let c=await pb({logoBuffer:await(0,r.readFile)(s)}),l={filePath:mb,fileName:(0,t.basename)(mb),fileType:(0,t.extname)(mb).replace(/^\./,``),checksum:null},u=[...i.publicAssets.filter(e=>e.filePath!==mb),l];return{manifest:{...i,application:{...i.application,galleryImages:[mb]},publicAssets:u},generatedAssets:[{relativePath:mb,content:c}]}},Eb=/^readme(\.[^.]+)?$/i,Db=e=>{let t=e.filter(e=>Eb.test(e));return t.find(e=>/\.md$/i.test(e))??t[0]},Ob=async t=>{let n=Db(await(0,r.readdir)(t));if(n===void 0)return;let i=(0,o.join)(t,e.i);await _b(i),await bb((0,o.join)(t,n),(0,o.join)(i,n))},kb=`twenty-client-sdk`,Ab=async({result:n,appPath:i,fileFolder:a,lastChecksums:o,onFileBuilt:s})=>{let c=Object.keys(n.metafile?.outputs??{}).filter(e=>e.endsWith(`.mjs`));for(let u of c){let c=t.default.resolve(u),d=t.default.relative(i,c),f=n.metafile?.outputs?.[u]?.entryPoint||``,p=t.default.relative(i,f),m=await(0,r.readFile)(c),h=a===e.M.BuiltFrontComponent?`sha256`:`md5`,g=l.default.createHash(h).update(m).digest(`hex`);if(o.get(d)===g)continue;o.set(d,g);let _=(n.metafile?.outputs?.[u])?.imports?.some(e=>e.external===!0&&e.path.startsWith(kb))??!1;s&&await s({fileFolder:a,builtPath:d,sourcePath:p,checksum:g,usesSdkClient:_})}},jb=async({appPath:e,sourcePaths:n,fileFolder:r,buildOptions:i,onFileBuilt:a})=>{if(n.length===0)return;let o={};for(let r of n){let n=r.replace(/\.tsx?$/,``);o[n]=t.default.join(e,r)}await Ab({result:await u.build({...i,entryPoints:o}),appPath:e,fileFolder:r,lastChecksums:new Map,onFileBuilt:a})},Mb=async(e,n,r)=>{let i=new Set(r),a=n.filter(e=>!i.has(e));for(let n of a){let r=n.replace(/\.tsx?$/,`.mjs`),i=t.default.join(e,r),a=`${i}.map`;await xb(i),await xb(a)}},Nb=({config:e,errors:t=[],warnings:n=[]})=>({success:t.length===0,config:e,errors:t,warnings:n}),Pb=e=>{let t=[],n=[];return e.universalIdentifier||t.push(`Agent must have a universalIdentifier`),e.name||t.push(`Agent must have a name`),e.label||t.push(`Agent must have a label`),e.prompt||t.push(`Agent must have a prompt`),e.responseFormat||n.push(`Agent '${e.name}' has no responseFormat, it will default to { type: 'text' }. Set it explicitly to control the agent's output shape.`),(0,i.isNonEmptyString)(e.roleUniversalIdentifier)&&!(0,a.validate)(e.roleUniversalIdentifier)&&t.push(`Agent '${e.name}' roleUniversalIdentifier must be a valid UUID`),Nb({config:e,errors:t,warnings:n})},Fb=e=>{let t=[],n=e.logo;n&&Hy(n)&&(t.push(`Application logo "${n}" is an external URL. External asset URLs are no longer supported and are ignored. Bundle the image in your public/ folder instead.`),n=void 0),!n&&e.logoUrl&&(Hy(e.logoUrl)?t.push(`Application logoUrl "${e.logoUrl}" is an external URL. External asset URLs are no longer supported and are ignored. Bundle the image in your public/ folder and reference it via logo.`):(t.push("`logoUrl` is deprecated. Use `logo` to reference an image bundled in your public/ folder."),n=e.logoUrl)),!e.galleryImages&&(e.screenshots?.length??0)>0&&t.push("`screenshots` is deprecated. Use `galleryImages` referencing images bundled in your public/ folder.");let r=(e.galleryImages??e.screenshots??[]).filter(e=>Hy(e)?(t.push(`Gallery image "${e}" is an external URL. External asset URLs are no longer supported and are ignored.`),!1):!0);return{logo:n,galleryImages:r,warnings:t}},Ib=t=>{let n=[],r=[];t.universalIdentifier||n.push(`Application must have a universalIdentifier`),(!t.displayName||t.displayName.length===0)&&n.push(`Application must have a non empty display name`);for(let[r,i]of Object.entries(t.applicationVariables??{}))(i.type===e.X.SELECT||i.type===e.X.MULTI_SELECT)&&!sg(i.options)&&n.push(`Application variable "${r}" of type ${i.type} must define non-empty options`);for(let[e,n]of Object.entries(t.serverVariables??{}))n.isRequired&&n.isDeprecated&&r.push(`Server variable "${e}" is both required and deprecated. \`isDeprecated\` wins: the variable is excluded from the application configuration check.`);t.defaultRoleUniversalIdentifier&&r.push("`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead.");let{category:a}=t;(0,i.isNonEmptyString)(a)&&!e.l(a)&&r.push(`Application category "${a}" is not a known ApplicationCategory (${e.u.join(`, `)}). Arbitrary category strings are kept for backward compatibility and may be removed. Ask for a new category at https://github.com/twentyhq/twenty.`);let o=Fb(t);return r.push(...o.warnings),Nb({config:{...t,logo:o.logo,galleryImages:o.galleryImages},errors:n,warnings:r})},Lb=e=>e.length>=2&&e.startsWith(`'`)&&e.endsWith(`'`),Rb=t=>Object.values(e.U).includes(t),zb=t=>{let{defaultValue:n,type:r}=t;return e.yt(n)?(0,i.isString)(n)?Lb(n)||Rb(n)?[]:[n]:Array.isArray(n)&&(r===e.X.MULTI_SELECT||r===e.X.ARRAY)?n.filter(e=>typeof e==`string`&&!Lb(e)):r in A&&zy(n)?Object.values(n).filter(e=>typeof e==`string`&&!Lb(e)):[]:[]},Bb=t=>e.yt(t)?t.flatMap(e=>{let t=zb(e);if(t.length===0)return[];let n=t[0];return[`Field "${e.label}" has string defaultValue(s) without surrounding single quotes: ${t.map(e=>`"${e}"`).join(`, `)}. Unquoted strings are reserved for computed defaults ('uuid', 'now'). To define a literal string default, wrap it in single quotes: "'${n}'" instead of "${n}".`]}):[],Vb=t=>{if(!t)return[];let n=[];for(let r of t)(0,i.isNonEmptyString)(r.label)||n.push(`Field must have a label`),(0,i.isNonEmptyString)(r.name)||n.push(`Field "${r.label}" must have a name`),(0,i.isNonEmptyString)(r.universalIdentifier)||n.push(`Field "${r.label}" must have a universalIdentifier`),(r.type===e.X.SELECT||r.type===e.X.MULTI_SELECT)&&(!Array.isArray(r.options)||r.options.length===0)&&n.push(`Field "${r.label}" is a SELECT/MULTI_SELECT type and must have options`),r.isUnique===!0&&(r.type===e.X.RELATION||r.type===e.X.MORPH_RELATION||r.type===e.X.FILES)&&n.push(`Field "${r.label}" of type ${r.type} cannot be unique`);return n},Hb=e=>{let t=[];e.objectUniversalIdentifier||t.push(`Field must have an objectUniversalIdentifier`);let n=Vb([e]);return t.push(...n),Nb({config:e,errors:t,warnings:Bb([e])})},Ub=e=>{let t=[],n=[];return e.universalIdentifier||t.push(`CommandMenuItem must have a universalIdentifier`),e.label||t.push(`CommandMenuItem must have a label`),e.frontComponentUniversalIdentifier||t.push(`CommandMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this command opens)`),e.icon&&n.push(`CommandMenuItem icon will be ignored in favor of application icon, you should remove it`),Nb({config:e,errors:t,warnings:n})},Wb=[`created`,`updated`,`deleted`,`restored`,`linked`,`unlinked`],Gb=t=>e.yt(t)&&Wb.includes(t),Kb=e=>{let t=[];e.universalIdentifier||t.push(`TimelineActivityType must have a universalIdentifier`),e.name||t.push(`TimelineActivityType must have a name`),e.label||t.push(`TimelineActivityType must have a label`),e.emit?.on&&!Gb(e.emit.on)&&t.push(`TimelineActivityType emit.on ${e.emit.on} is not supported`),e.emit&&!(0,i.isNonEmptyString)(e.emit.on)&&t.push(`TimelineActivityType emit must have an on action`),e.emit&&!(0,i.isNonEmptyString)(e.emit.objectUniversalIdentifier)&&t.push(`TimelineActivityType emit must have an objectUniversalIdentifier`),e.emit?.through&&!(0,i.isNonEmptyString)(e.emit.through.relationFieldUniversalIdentifier)&&t.push(`TimelineActivityType emit.through must have a relationFieldUniversalIdentifier`),(e.emit?.on===`linked`||e.emit?.on===`unlinked`)&&!e.emit.through&&t.push(`TimelineActivityType linked and unlinked emitters require through routing`);let n=e.emit?.through?.triggerFieldUniversalIdentifiers;return n&&(e.emit?.on!==`updated`||!sg(n))&&t.push(`TimelineActivityType emit.through.triggerFieldUniversalIdentifiers requires an updated event`),n&&new Set(n).size!==n.length&&t.push(`TimelineActivityType emit.through.triggerFieldUniversalIdentifiers must be unique`),e.replacesTimelineActivityTypeUniversalIdentifier&&!e.emit&&t.push(`TimelineActivityType replacesTimelineActivityTypeUniversalIdentifier requires emit`),Nb({config:e,errors:t})},qb=e=>e===`then`,Jb=e=>typeof e==`symbol`,q=e=>{let t=()=>{throw Error(`"${e}" from twenty-sdk can only be used inside a command's conditionalAvailabilityExpression, not at runtime.`)};return new Proxy(function(){},{get:(e,n)=>{if(!(qb(n)||Jb(n)))return t()},apply:t,construct:t,has:t})},Yb=q(`pageType`),Xb=q(`isInSidePanel`),Zb=q(`isDashboardPageLayoutInEditMode`),Qb=q(`isLayoutCustomizationModeEnabled`),$b=q(`favoriteRecordIds`),ex=q(`isSelectAll`),tx=q(`hasAnySoftDeleteFilterOnView`),nx=q(`numberOfSelectedRecords`),rx=q(`objectPermissions`),ix=q(`selectedRecords`),ax=q(`featureFlags`),ox=q(`targetObjectReadPermissions`),sx=q(`targetObjectWritePermissions`),cx=q(`canImpersonate`),lx=q(`canAccessFullAdminPanel`),ux=q(`objectMetadataItem`),dx=q(`objectMetadataLabel`),fx=q(`isDefined`),px=q(`isNonEmptyString`),mx=q(`includes`),hx=q(`every`),gx=q(`everyDefined`),_x=q(`everyEquals`),vx=q(`some`),yx=q(`someDefined`),bx=q(`someEquals`),xx=q(`none`),Sx=q(`noneDefined`),Cx=q(`noneEquals`),wx=q(`someNonEmptyString`),Tx=q(`includesEvery`),Ex=e=>{let t=[];return e.universalIdentifier||t.push(`Front component must have a universalIdentifier`),e.component||t.push(`Front component must have a component`),typeof e.component!=`function`&&t.push(`Front component component must be a React component`),Nb({config:e,errors:t})},Dx=e=>{let t=[];return e.universalIdentifier||t.push(`Settings front component must have a universalIdentifier`),e.component?typeof e.component!=`function`&&t.push(`Settings front component component must be a React component`):t.push(`Settings front component must have a component`),Nb({config:e,errors:t})},Ox=e=>typeof e==`string`&&e.trim().length>0,kx=e=>{let t=[];if(Ox(e.universalIdentifier)||t.push(`Index must have a universalIdentifier`),Ox(e.objectUniversalIdentifier)||t.push(`Index must reference an objectUniversalIdentifier`),!sg(e.fields))t.push(`Index must have at least one field`);else{for(let n of e.fields)Ox(n.universalIdentifier)||t.push(`IndexField must have a universalIdentifier`),Ox(n.fieldUniversalIdentifier)||t.push(`IndexField must reference a fieldUniversalIdentifier`);let n=e.fields.map(e=>`${e.fieldUniversalIdentifier}::${e.subFieldName??``}`);new Set(n).size!==n.length&&t.push(`Index lists the same column twice`)}return Nb({config:e,errors:t})},Ax=t=>{let n=[];return t.universalIdentifier||n.push(`Logic function must have a universalIdentifier`),t.handler||n.push(`Logic function must have a handler`),typeof t.handler!=`function`&&n.push(`Logic function handler must be a function`),t.httpRouteTriggerSettings&&(t.httpRouteTriggerSettings.path||n.push(`Route trigger must have a path`),t.httpRouteTriggerSettings.httpMethod||n.push(`Route trigger must have an httpMethod`)),t.serverRouteTriggerSettings?.httpMethods?.some(t=>t!==e.N.GET&&t!==e.N.POST)&&n.push(`Server route trigger only supports the GET and POST http methods`),t.cronTriggerSettings&&(t.cronTriggerSettings.pattern||n.push(`Cron trigger must have a pattern`)),t.databaseEventTriggerSettings&&(t.databaseEventTriggerSettings.eventName||n.push(`Database event trigger must have an eventName`)),Nb({config:t,errors:n})},jx=e=>{let t=[];return e.universalIdentifier||t.push(`Post install logic function must have a universalIdentifier`),e.handler||t.push(`Post install logic function must have a handler`),typeof e.handler!=`function`&&t.push(`Post install logic function handler must be a function`),Nb({config:e,errors:t})},Mx=e=>{let t=[];return e.universalIdentifier||t.push(`Pre install logic function must have a universalIdentifier`),e.handler||t.push(`Pre install logic function must have a handler`),typeof e.handler!=`function`&&t.push(`Pre install logic function handler must be a function`),Nb({config:e,errors:t})},Nx=e=>{let t=[];return e.universalIdentifier||t.push(`Uninstall logic function must have a universalIdentifier`),e.handler||t.push(`Uninstall logic function must have a handler`),typeof e.handler!=`function`&&t.push(`Uninstall logic function handler must be a function`),Nb({config:e,errors:t})},Px=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Fx=e=>Px.test(e),Ix=/^[a-z][a-z0-9-]*$/,Lx=[`oauth`],Rx=[`onConnectLogicFunction`,`onDisconnectLogicFunction`],zx=t=>{let n=[];t.universalIdentifier?Fx(t.universalIdentifier)||n.push(`Connection provider universalIdentifier "${t.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`):n.push(`Connection provider must have a universalIdentifier`),t.name?Ix.test(t.name)||n.push(`Connection provider name "${t.name}" must match ${Ix} (used in URLs)`):n.push(`Connection provider must have a name`),t.displayName||n.push(`Connection provider must have a displayName`);for(let r of Rx){let i=t[r];e.yt(i)&&!Fx(i.universalIdentifier)&&n.push(`Connection provider ${r}.universalIdentifier "${i.universalIdentifier}" must be the UUID universalIdentifier of a logic function in this app.`)}if(t.type?Lx.includes(t.type)||n.push(`Connection provider type "${t.type}" is not supported. Supported types: ${Lx.join(`, `)}.`):n.push("Connection provider must declare a `type` (e.g. 'oauth')"),t.type===`oauth`){let e=t.oauth;e?(e.authorizationEndpoint||n.push(`OAuth connection provider must have an authorizationEndpoint`),e.tokenEndpoint||n.push(`OAuth connection provider must have a tokenEndpoint`),e.clientIdVariable||n.push(`OAuth connection provider must reference a clientIdVariable (key of a serverVariable on defineApplication)`),e.clientSecretVariable||n.push(`OAuth connection provider must reference a clientSecretVariable (key of a serverVariable on defineApplication)`),Array.isArray(e.scopes)||n.push(`OAuth connection provider must declare a scopes array`)):n.push("Connection provider with type 'oauth' must declare an `oauth` config block")}return Nb({config:t,errors:n})},Bx=e=>{let t=[];return e.universalIdentifier||t.push(`NavigationMenuItem must have a universalIdentifier`),typeof e.position!=`number`&&t.push(`NavigationMenuItem must have a position`),Nb({config:e,errors:t})},Vx=t=>{let n=[];t.universalIdentifier||n.push(`Object must have a universalIdentifier`),t.nameSingular||n.push(`Object must have a nameSingular`),t.namePlural||n.push(`Object must have a namePlural`),t.labelSingular||n.push(`Object must have a labelSingular`),t.labelPlural||n.push(`Object must have a labelPlural`);let r=Vb(t.fields);return n.push(...r),e.yt(t.labelIdentifierFieldMetadataUniversalIdentifier)&&!t.fields.some(e=>e.universalIdentifier===t.labelIdentifierFieldMetadataUniversalIdentifier)&&n.push(`labelIdentifierFieldMetadataUniversalIdentifier must reference a field defined in the fields array`),Nb({config:t,errors:n,warnings:Bb(t.fields)})},J={timelineActivity:`20202020-6736-4337-b5c4-8b39fae325a5`,attachment:`20202020-bd3d-4c60-8dca-571c71d4447a`,blocklist:`20202020-0408-4f38-b8a8-4d5e3e26e24d`,calendarChannelEventAssociation:`20202020-491b-4aaa-9825-afd1bae6ae00`,calendarEvent:`20202020-8f1d-4eef-9f85-0d1965e27221`,calendarEventParticipant:`20202020-a1c3-47a6-9732-27e5b1e8436d`,callRecording:`ce19efb9-710f-45b2-b141-473abbeea60b`,noteTarget:`20202020-fff0-4b44-be82-bda313884400`,taskTarget:`20202020-5a9a-44e8-95df-771cd06d0fb1`,person:`20202020-e674-48e5-a542-72570eee7213`,company:`20202020-b374-4779-a561-80086cb2e17f`,opportunity:`20202020-9549-49dd-b2b2-883999db8938`,note:`20202020-0b00-45cd-b6f6-6cd806fc6804`,task:`20202020-1ba1-48ba-bc83-ef7e5990ed10`,workflow:`20202020-62be-406c-b9ca-8caa50d51392`,workflowAutomatedTrigger:`20202020-3319-4234-a34c-7f3b9d2e4d1f`,workflowVersion:`20202020-d65d-4ab9-9344-d77bfb376a3d`,workflowRun:`20202020-4e28-4e95-a9d7-6c00874f843c`,workspaceMember:`20202020-3319-4234-a34c-82d5c0e881a6`,dashboard:`20202020-3840-4b6d-9425-0c5188b05ca8`,message:`20202020-3f6b-4425-80ab-e468899ab4b2`,messageChannelMessageAssociation:`20202020-ad1e-4127-bccb-d83ae04d2ccb`,messageChannelMessageAssociationMessageFolder:`20202020-a1b0-40b0-8ab0-5b6c7d8e9f0a`,messageList:`826561ea-4816-411c-baa0-eec5e6ca8866`,messageListMember:`27773d24-8ce3-40f8-aa6c-1f590f2c08d2`,messageCampaign:`238acb94-dd4c-4036-bc55-19b99d821efd`,messageParticipant:`20202020-a433-4456-aa2d-fd9cb26b774a`,messageThread:`20202020-849a-4c3e-84f5-a25a7d802271`},Hx=[`id`,`createdAt`,`updatedAt`,`deletedAt`,`createdBy`,`updatedBy`,`position`,`searchVector`],Y=t=>Object.fromEntries(Hx.map(n=>[n,{universalIdentifier:e.m({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:t,name:n})}])),X={timelineActivity:{...Y(J.timelineActivity),timelineActivityTypeId:{universalIdentifier:`20202020-e5f8-4839-9dcf-781e260624ee`},timelineActivityTypeSnapshot:{universalIdentifier:`20202020-e006-493a-9b07-f2a768a204ca`},happensAt:{universalIdentifier:`20202020-9526-4993-b339-c4318c4d39f0`},properties:{universalIdentifier:`20202020-f142-4b04-b91b-6a2b4af3bf11`},workspaceMember:{universalIdentifier:`20202020-af23-4479-9a30-868edc474b36`},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.opportunity})},targetTask:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.task})},targetNote:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.note})},targetWorkflow:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.workflow})},targetWorkflowVersion:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.workflowVersion})},targetWorkflowRun:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.workflowRun})},targetDashboard:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.dashboard})},targetMessageList:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.messageList})},targetMessageCampaign:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.timelineActivity,relationTargetObjectUniversalIdentifier:J.messageCampaign})},linkedRecordCachedName:{universalIdentifier:`20202020-cfdb-4bef-bbce-a29f41230934`},linkedRecordId:{universalIdentifier:`20202020-2e0e-48c0-b445-ee6c1e61687d`},linkedObjectMetadataId:{universalIdentifier:`20202020-c595-449d-9f89-562758c9ee69`}},attachment:{...Y(J.attachment),name:{universalIdentifier:`20202020-87a5-48f8-bbf7-ade388825a57`},file:{universalIdentifier:`20202020-15db-460e-8166-c7b5d87ad4be`},fullPath:{universalIdentifier:`20202020-0d19-453d-8e8d-fbcda8ca3747`},fileCategory:{universalIdentifier:`20202020-8c3f-4d9e-9a1b-2e5f7a8c9d0e`},targetTask:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.task})},targetNote:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.note})},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.opportunity})},targetDashboard:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.dashboard})},targetWorkflow:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.attachment,relationTargetObjectUniversalIdentifier:J.workflow})}},blocklist:{...Y(J.blocklist),handle:{universalIdentifier:`20202020-eef3-44ed-aa32-4641d7fd4a3e`},workspaceMember:{universalIdentifier:`20202020-548d-4084-a947-fa20a39f7c06`}},calendarChannelEventAssociation:{...Y(J.calendarChannelEventAssociation),calendarChannelId:{universalIdentifier:`20202020-93ee-4da4-8d58-0282c4a9cb7d`},calendarEvent:{universalIdentifier:`20202020-5aa5-437e-bb86-f42d457783e3`},eventExternalId:{universalIdentifier:`20202020-9ec8-48bb-b279-21d0734a75a1`},recurringEventExternalId:{universalIdentifier:`20202020-c58f-4c69-9bf8-9518fa31aa50`}},calendarEventParticipant:{...Y(J.calendarEventParticipant),calendarEvent:{universalIdentifier:`20202020-fe3a-401c-b889-af4f4657a861`},handle:{universalIdentifier:`20202020-8692-4580-8210-9e09cbd031a7`},displayName:{universalIdentifier:`20202020-ee1e-4f9f-8ac1-5c0b2f69691e`},isOrganizer:{universalIdentifier:`20202020-66e7-4e00-9e06-d06c92650580`},responseStatus:{universalIdentifier:`20202020-cec0-4be8-8fba-c366abc23147`},person:{universalIdentifier:`20202020-5761-4842-8186-e1898ef93966`},workspaceMember:{universalIdentifier:`20202020-20e4-4591-93ed-aeb17a4dcbd2`}},calendarEvent:{...Y(J.calendarEvent),title:{universalIdentifier:`20202020-080e-49d1-b21d-9702a7e2525c`},isCanceled:{universalIdentifier:`20202020-335b-4e04-b470-43b84b64863c`},isFullDay:{universalIdentifier:`20202020-551c-402c-bb6d-dfe9efe86bcb`},startsAt:{universalIdentifier:`20202020-2c57-4c75-93c5-2ac950a6ed67`},endsAt:{universalIdentifier:`20202020-2554-4ee1-a617-17907f6bab21`},externalCreatedAt:{universalIdentifier:`20202020-9f03-4058-a898-346c62181599`},externalUpdatedAt:{universalIdentifier:`20202020-b355-4c18-8825-ef42c8a5a755`},description:{universalIdentifier:`20202020-52c4-4266-a98f-e90af0b4d271`},location:{universalIdentifier:`20202020-641a-4ffe-960d-c3c186d95b17`},iCalUid:{universalIdentifier:`20202020-f24b-45f4-b6a3-d2f9fcb98714`},conferenceSolution:{universalIdentifier:`20202020-1c3f-4b5a-b526-5411a82179eb`},conferenceLink:{universalIdentifier:`20202020-35da-43ef-9ca0-e936e9dc237b`},calendarChannelEventAssociations:{universalIdentifier:`20202020-bdf8-4572-a2cc-ecbb6bcc3a02`},calendarEventParticipants:{universalIdentifier:`20202020-e07e-4ccb-88f5-6f3d00458eec`},callRecordings:{universalIdentifier:`48d6d151-18e2-4111-b405-d85fb9d860d8`}},callRecording:{...Y(J.callRecording),title:{universalIdentifier:`4cff8863-a1d1-45fd-a370-4eb6aa1f2a5b`},status:{universalIdentifier:`3e617680-d93e-4309-a54f-90f69528bfd7`},recordingRequestStatus:{universalIdentifier:`7fd681c9-244c-4e98-8939-7b175d472638`},applicationId:{universalIdentifier:`24ec1239-1240-42cb-8a2d-302632378e09`},externalBotId:{universalIdentifier:`0a2da128-9bcc-488b-bc31-65318c41bdf9`},externalRecordingId:{universalIdentifier:`6d17fb71-324b-4625-a5be-b3580607e2c7`},startedAt:{universalIdentifier:`6c56c23f-1987-410a-860a-df3b2b3f9a33`},endedAt:{universalIdentifier:`7a38a9cf-8424-4d6e-b80a-6883d3c662ef`},video:{universalIdentifier:`bb9523d3-457e-4f4b-8c79-27a77afb87da`},audio:{universalIdentifier:`2eafc2d0-8fec-430c-a939-65ca5fbc0f08`},transcript:{universalIdentifier:`27b86d68-57d1-4607-aca0-191896b1ad43`},summary:{universalIdentifier:`adb0f472-756b-4d3f-b21e-ea32bf73a5e4`},calendarEvent:{universalIdentifier:`49e64b28-bd98-4775-80ea-4781bdd45e35`}},company:{...Y(J.company),name:{universalIdentifier:`20202020-4d99-4e2e-a84c-4a27837b1ece`},domainName:{universalIdentifier:`20202020-0c28-43d8-8ba5-3659924d3489`},address:{universalIdentifier:`20202020-c5ce-4adc-b7b6-9c0979fc55e7`},linkedinLink:{universalIdentifier:`20202020-ebeb-4beb-b9ad-6848036fb451`},annualRevenue:{universalIdentifier:`60f533b7-2166-4071-a767-ceb0286822fd`},people:{universalIdentifier:`20202020-3213-4ddf-9494-6422bcff8d7c`},accountOwner:{universalIdentifier:`20202020-95b8-4e10-9881-edb5d4765f9d`},taskTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.taskTarget})},noteTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.noteTarget})},opportunities:{universalIdentifier:`20202020-add3-4658-8e23-d70dccb6d0ec`},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.attachment})},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.company,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},dashboard:{...Y(J.dashboard),title:{universalIdentifier:`20202020-20ee-4091-95dc-44b57eda3a89`},pageLayoutId:{universalIdentifier:`20202020-bb53-4648-aa36-1d9d54e6f7f2`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.dashboard,relationTargetObjectUniversalIdentifier:J.timelineActivity})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.dashboard,relationTargetObjectUniversalIdentifier:J.attachment})}},messageCampaign:{...Y(J.messageCampaign),name:{universalIdentifier:`dc8bca0e-37c4-4b78-814d-2e91124274e3`},subject:{universalIdentifier:`7251544c-b07a-4f0d-9d0a-48514367f230`},bodyTemplate:{universalIdentifier:`b3a69d08-31ca-4a8d-8359-5ca462899342`},fromAddress:{universalIdentifier:`91e1a33c-c1ff-411a-b720-9085e13c05db`},status:{universalIdentifier:`c7117256-3de6-48e1-87df-c99c32bad610`},sentAt:{universalIdentifier:`e2315b4f-9edf-4df2-96b9-961e76368671`},sentCount:{universalIdentifier:`2f333d2b-37b8-4ddc-ad0d-c07c6ce066ad`},failedCount:{universalIdentifier:`d373fcd7-b1ce-4c77-8031-a5785c475028`},bouncedCount:{universalIdentifier:`20d884a9-34dd-4667-8ecb-ceec224258e2`},complainedCount:{universalIdentifier:`82842cfa-f12a-4bab-bbde-b2cf587d0406`},unsubscribeTopicId:{universalIdentifier:`0648e7ad-1769-4ff6-a4d5-72da79ef169c`},list:{universalIdentifier:`cb24dcdf-f0e8-4c71-8cff-70b714e86530`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.messageCampaign,relationTargetObjectUniversalIdentifier:J.timelineActivity})},messages:{universalIdentifier:`e5a177a7-512b-4778-928e-69777a528f7c`},recipients:{universalIdentifier:`05a3271c-5b91-493c-8f30-2d27b31d019e`}},messageList:{...Y(J.messageList),name:{universalIdentifier:`69b9ed8b-7b26-4108-894f-05700ef7e8ee`},members:{universalIdentifier:`92df3493-91cf-4665-8587-1b08917d299b`},campaigns:{universalIdentifier:`e098d838-31ab-4812-91a8-f055f45a6832`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.messageList,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},messageListMember:{...Y(J.messageListMember),person:{universalIdentifier:`34288425-8805-42fb-8b98-ee13d09be3d3`},list:{universalIdentifier:`d5402005-e8f9-4fbe-8696-b6723cd85018`}},messageChannelMessageAssociation:{...Y(J.messageChannelMessageAssociation),messageChannelId:{universalIdentifier:`20202020-b658-408f-bd46-3bd2d15d7e52`},message:{universalIdentifier:`20202020-da5d-4ac5-8743-342ab0a0336b`},messageExternalId:{universalIdentifier:`20202020-37d6-438f-b6fd-6503596c8f34`},messageThread:{universalIdentifier:`20202020-fac8-42a8-94dd-44dbc920ae16`},messageThreadExternalId:{universalIdentifier:`20202020-35fb-421e-afa0-0b8e8f7f9018`},direction:{universalIdentifier:`75c9b0f7-9e76-44d4-a2f9-47051e61eec7`},messageFolders:{universalIdentifier:`9bfc9da7-ae2d-44fd-9563-ede90c5d6222`}},messageChannelMessageAssociationMessageFolder:{...Y(J.messageChannelMessageAssociationMessageFolder),messageChannelMessageAssociation:{universalIdentifier:`7411cfa3-4fd9-4b90-a636-940015fd7243`},messageFolderId:{universalIdentifier:`b3369d31-3856-4a7a-b007-ee353918127c`}},messageParticipant:{...Y(J.messageParticipant),message:{universalIdentifier:`20202020-985b-429a-9db9-9e55f4898a2a`},role:{universalIdentifier:`20202020-65d1-42f4-8729-c9ec1f52aecd`},handle:{universalIdentifier:`20202020-2456-464e-b422-b965a4db4a0b`},displayName:{universalIdentifier:`20202020-36dd-4a4f-ac02-228425be9fac`},person:{universalIdentifier:`20202020-249d-4e0f-82cd-1b9df5cd3da2`},workspaceMember:{universalIdentifier:`20202020-77a7-4845-99ed-1bcbb478be6f`},messageCampaign:{universalIdentifier:`5bc768db-919f-41da-8c43-df08084d526f`}},messageThread:{...Y(J.messageThread),messages:{universalIdentifier:`20202020-3115-404f-aade-e1154b28e35a`},messageChannelMessageAssociations:{universalIdentifier:`20202020-314e-40a4-906d-a5d5d6c285f6`},subject:{universalIdentifier:`a8ddbf8c-1137-45d1-b89e-5ffbd83f67c8`}},message:{...Y(J.message),headerMessageId:{universalIdentifier:`20202020-72b5-416d-aed8-b55609067d01`},messageThread:{universalIdentifier:`20202020-30f2-4ccd-9f5c-e41bb9d26214`},subject:{universalIdentifier:`20202020-52d1-4036-b9ae-84bd722bb37a`},text:{universalIdentifier:`20202020-d2ee-4e7e-89de-9a0a9044a143`},receivedAt:{universalIdentifier:`20202020-140a-4a2a-9f86-f13b6a979afc`},messageParticipants:{universalIdentifier:`20202020-7cff-4a74-b63c-73228448cbd9`},messageChannelMessageAssociations:{universalIdentifier:`20202020-3cef-43a3-82c6-50e7cfbc9ae4`},messageCampaign:{universalIdentifier:`77cff00b-a0ba-48d6-80de-0d5ccf14e45b`},deliveryStatus:{universalIdentifier:`209254fa-2b89-429d-a72a-c401c4bd5a78`},isDraft:{universalIdentifier:`20202020-4d3a-4b6e-9c1f-2a5e7b9d0c34`}},note:{...Y(J.note),title:{universalIdentifier:`20202020-faeb-4c76-8ba6-ccbb0b4a965f`},bodyV2:{universalIdentifier:`20202020-a7bb-4d94-be51-8f25181502c8`},noteTargets:{universalIdentifier:`20202020-1f25-43fe-8b00-af212fdde823`},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.note,relationTargetObjectUniversalIdentifier:J.attachment})},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.note,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},noteTarget:{...Y(J.noteTarget),note:{universalIdentifier:`20202020-57f3-4f50-9599-fc0f671df003`},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.noteTarget,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.noteTarget,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.noteTarget,relationTargetObjectUniversalIdentifier:J.opportunity})}},opportunity:{...Y(J.opportunity),name:{universalIdentifier:`20202020-8609-4f65-a2d9-44009eb422b5`},amount:{universalIdentifier:`20202020-583e-4642-8533-db761d5fa82f`},closeDate:{universalIdentifier:`20202020-527e-44d6-b1ac-c4158d307b97`},stage:{universalIdentifier:`20202020-6f76-477d-8551-28cd65b2b4b9`},pointOfContact:{universalIdentifier:`20202020-8dfb-42fc-92b6-01afb759ed16`},company:{universalIdentifier:`20202020-cbac-457e-b565-adece5fc815f`},owner:{universalIdentifier:`20202020-be7e-4d1e-8e19-3d5c7c4b9f2a`},taskTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.taskTarget})},noteTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.noteTarget})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.attachment})},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.opportunity,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},person:{...Y(J.person),name:{universalIdentifier:`20202020-3875-44d5-8c33-a6239011cab8`},emails:{universalIdentifier:`20202020-3c51-43fa-8b6e-af39e29368ab`},linkedinLink:{universalIdentifier:`20202020-f1af-48f7-893b-2007a73dd508`},jobTitle:{universalIdentifier:`20202020-b0d0-415a-bef9-640a26dacd9b`},phones:{universalIdentifier:`20202020-0638-448e-8825-439134618022`},avatarUrl:{universalIdentifier:`20202020-b8a6-40df-961c-373dc5d2ec21`},avatarFile:{universalIdentifier:`20202020-a7c9-4e3d-8f1b-2d5a6b7c8e9f`},company:{universalIdentifier:`20202020-e2f3-448e-b34c-2d625f0025fd`},pointOfContactForOpportunities:{universalIdentifier:`20202020-911b-4a7d-b67b-918aa9a5b33a`},taskTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.taskTarget})},noteTargets:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.noteTarget})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.attachment})},messageParticipants:{universalIdentifier:`20202020-498e-4c61-8158-fa04f0638334`},calendarEventParticipants:{universalIdentifier:`20202020-52ee-45e9-a702-b64b3753e3a9`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.person,relationTargetObjectUniversalIdentifier:J.timelineActivity})},listMemberships:{universalIdentifier:`8b8d1be0-4c94-4413-a2c9-c7ede205a81d`}},task:{...Y(J.task),title:{universalIdentifier:`20202020-b386-4cb7-aa5a-08d4a4d92680`},bodyV2:{universalIdentifier:`20202020-4aa0-4ae8-898d-7df0afd47ab1`},dueAt:{universalIdentifier:`20202020-fd99-40da-951b-4cb9a352fce3`},status:{universalIdentifier:`20202020-70bc-48f9-89c5-6aa730b151e0`},taskTargets:{universalIdentifier:`20202020-de9c-4d0e-a452-713d4a3e5fc7`},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.task,relationTargetObjectUniversalIdentifier:J.attachment})},assignee:{universalIdentifier:`20202020-065a-4f42-a906-e20422c1753f`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.task,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},taskTarget:{...Y(J.taskTarget),task:{universalIdentifier:`20202020-e881-457a-8758-74aaef4ae78a`},targetPerson:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.taskTarget,relationTargetObjectUniversalIdentifier:J.person})},targetCompany:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.taskTarget,relationTargetObjectUniversalIdentifier:J.company})},targetOpportunity:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.taskTarget,relationTargetObjectUniversalIdentifier:J.opportunity})}},workflow:{...Y(J.workflow),name:{universalIdentifier:`20202020-b3d3-478f-acc0-5d901e725b20`},lastPublishedVersionId:{universalIdentifier:`20202020-326a-4fba-8639-3456c0a169e8`},coreWorkflowId:{universalIdentifier:`20202020-058a-42ad-8eb8-0662a5552aad`},statuses:{universalIdentifier:`20202020-357c-4432-8c50-8c31b4a552d9`},versions:{universalIdentifier:`20202020-9432-416e-8f3c-27ee3153d099`},runs:{universalIdentifier:`20202020-759b-4340-b58b-e73595c4df4f`},automatedTriggers:{universalIdentifier:`20202020-3319-4234-a34c-117ecad2b8a9`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflow,relationTargetObjectUniversalIdentifier:J.timelineActivity})},attachments:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflow,relationTargetObjectUniversalIdentifier:J.attachment})}},workflowAutomatedTrigger:{...Y(J.workflowAutomatedTrigger),type:{universalIdentifier:`20202020-3319-4234-a34c-3f92c1ab56e7`},settings:{universalIdentifier:`20202020-3319-4234-a34c-bac8f903de12`},workflow:{universalIdentifier:`20202020-3319-4234-a34c-8e1a4d2f7c03`}},workflowRun:{...Y(J.workflowRun),name:{universalIdentifier:`20202020-b840-4253-aef9-4e5013694587`},workflowVersion:{universalIdentifier:`20202020-2f52-4ba8-8dc4-d0d6adb9578d`},workflow:{universalIdentifier:`20202020-8c57-4e7f-84f5-f373f68e1b82`},enqueuedAt:{universalIdentifier:`20202020-f1e3-4de1-a461-b5c4fdbc861d`},startedAt:{universalIdentifier:`20202020-a234-4e2d-bd15-85bcea6bb183`},endedAt:{universalIdentifier:`20202020-e1c1-4b6b-bbbd-b2beaf2e159e`},status:{universalIdentifier:`20202020-6b3e-4f9c-8c2b-2e5b8e6d6f3b`},state:{universalIdentifier:`20202020-611f-45f3-9cde-d64927e8ec57`},stepLogs:{universalIdentifier:`20202020-7c4e-4e1a-8fc1-1e3a55d6c2a1`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflowRun,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},workflowVersion:{...Y(J.workflowVersion),name:{universalIdentifier:`20202020-a12f-4cca-9937-a2e40cc65509`},workflow:{universalIdentifier:`20202020-afa3-46c3-91b0-0631ca6aa1c8`},trigger:{universalIdentifier:`20202020-4eae-43e7-86e0-212b41a30b48`},status:{universalIdentifier:`20202020-5a34-440e-8a25-39d8c3d1d4cf`},runs:{universalIdentifier:`20202020-1d08-46df-901a-85045f18099a`},steps:{universalIdentifier:`20202020-5988-4a64-b94a-1f9b7b989039`},coreWorkflowVersionId:{universalIdentifier:`20202020-58b4-46e8-b6d2-f1f3c74cf7f4`},timelineActivities:{universalIdentifier:e.h({applicationUniversalIdentifier:e.g,objectUniversalIdentifier:J.workflowVersion,relationTargetObjectUniversalIdentifier:J.timelineActivity})}},workspaceMember:{...Y(J.workspaceMember),name:{universalIdentifier:`20202020-e914-43a6-9c26-3603c59065f4`},colorScheme:{universalIdentifier:`20202020-66bc-47f2-adac-f2ef7c598b63`},uiScale:{universalIdentifier:`20202020-1581-4bfb-b87d-58fa9cd5b817`},openRecordIn:{universalIdentifier:`20202020-1b16-419d-9323-6f3ea850e5d9`},locale:{universalIdentifier:`20202020-402e-4695-b169-794fa015afbe`},avatarUrl:{universalIdentifier:`20202020-0ced-4c4f-a376-c98a966af3f6`},userEmail:{universalIdentifier:`20202020-4c5f-4e09-bebc-9e624e21ecf4`},jobTitle:{universalIdentifier:`20202020-4dd4-4619-826e-08f6c06b374d`},userId:{universalIdentifier:`20202020-75a9-4dfc-bf25-2e4b43e89820`},assignedTasks:{universalIdentifier:`20202020-61dc-4a1c-99e8-38ebf8d2bbeb`},ownedOpportunities:{universalIdentifier:`20202020-9e4d-4b3a-8c1f-6d7e8f9a0b1c`},accountOwnerForCompanies:{universalIdentifier:`20202020-dc29-4bd4-a3c1-29eafa324bee`},messageParticipants:{universalIdentifier:`20202020-8f99-48bc-a5eb-edd33dd54188`},blocklist:{universalIdentifier:`20202020-6cb2-4161-9f29-a4b7f1283859`},calendarEventParticipants:{universalIdentifier:`20202020-0dbc-4841-9ce1-3e793b5b3512`},timelineActivities:{universalIdentifier:`20202020-e15b-47b8-94fe-8200e3c66615`},timeZone:{universalIdentifier:`20202020-2d33-4c21-a86e-5943b050dd54`},dateFormat:{universalIdentifier:`20202020-af13-4e11-b1e7-b8cf5ea13dc0`},timeFormat:{universalIdentifier:`20202020-8acb-4cf8-a851-a6ed443c8d81`},calendarStartDay:{universalIdentifier:`20202020-1ecc-4562-84c9-ff3a2f6cce85`},numberFormat:{universalIdentifier:`20202020-7f40-4e7f-b126-11c0eda6b141`}}},Z=({objectUniversalIdentifier:t,fields:n,viewFieldNames:r})=>{let i=e.v({objectMetadataApplicationUniversalIdentifier:e.g,objectUniversalIdentifier:t,viewKey:e.p.INDEX});return{universalIdentifier:i,viewFields:Object.fromEntries(r.map(r=>{let a=n[r];if(a===void 0)throw Error(`Missing field "${r}" for the INDEX view of object ${t}`);return[r,{universalIdentifier:e.f({fieldMetadataApplicationUniversalIdentifier:e.g,viewUniversalIdentifier:i,fieldMetadataUniversalIdentifier:a.universalIdentifier})}]}))}},Ux=({objectUniversalIdentifier:t,fields:n,viewFieldNames:r,viewFieldGroupNames:i})=>{let a=e.v({objectMetadataApplicationUniversalIdentifier:e.g,objectUniversalIdentifier:t,viewKey:e.p.FIELDS_WIDGET});return{universalIdentifier:a,viewFields:Object.fromEntries(r.map(r=>{let i=n[r];if(i===void 0)throw Error(`Missing field "${r}" for the record-page view of object ${t}`);return[r,{universalIdentifier:e.f({fieldMetadataApplicationUniversalIdentifier:e.g,viewUniversalIdentifier:a,fieldMetadataUniversalIdentifier:i.universalIdentifier})}]})),viewFieldGroups:Object.fromEntries(Object.entries(i).map(([t,n])=>[t,{universalIdentifier:e.b({objectMetadataApplicationUniversalIdentifier:e.g,viewUniversalIdentifier:a,name:n})}]))}},Wx={attachment:{universalIdentifier:J.attachment,fields:X.attachment,morphIds:{targetMorphId:{morphId:`20202020-f634-435d-ab8d-e1168b375c69`}},indexes:{taskIdIndex:{universalIdentifier:`b8d4f9a3-0c25-4e7b-9f6a-2d3e4c5b6f70`},noteIdIndex:{universalIdentifier:`9d31ea73-13b6-4e06-84ee-c66c72bf7787`},personIdIndex:{universalIdentifier:`55637a5a-1edc-4351-8d76-d40020bf8944`},companyIdIndex:{universalIdentifier:`4137ba06-184d-438f-b484-080f02a97659`},opportunityIdIndex:{universalIdentifier:`8cc162d1-c127-4981-878d-f78622f8f12d`},dashboardIdIndex:{universalIdentifier:`c10eba2d-ff1a-4eab-9285-50481c12a003`},workflowIdIndex:{universalIdentifier:`fadeab4b-79ee-4173-af79-72c51fbad888`}},views:{allAttachments:Z({objectUniversalIdentifier:J.attachment,fields:X.attachment,viewFieldNames:[`name`,`file`,`createdBy`,`createdAt`,`targetPerson`,`targetCompany`,`targetOpportunity`,`targetTask`,`targetNote`,`targetDashboard`,`targetWorkflow`]})}},blocklist:{universalIdentifier:J.blocklist,fields:X.blocklist,indexes:{workspaceMemberIdIndex:{universalIdentifier:`4daf320e-74d0-4f24-a45a-af3a09d741cb`}},views:{allBlocklists:Z({objectUniversalIdentifier:J.blocklist,fields:X.blocklist,viewFieldNames:[`handle`,`workspaceMember`,`createdAt`]}),blocklistRecordPageFields:Ux({objectUniversalIdentifier:J.blocklist,fields:X.blocklist,viewFieldNames:[`workspaceMember`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},calendarChannelEventAssociation:{universalIdentifier:J.calendarChannelEventAssociation,fields:X.calendarChannelEventAssociation,indexes:{calendarChannelIdIndex:{universalIdentifier:`ff6b86c1-3112-4dfa-b734-c4789111a716`},calendarEventIdIndex:{universalIdentifier:`47a3c8d2-9f14-4b6e-8c5d-1a2b3f4e5c69`}},views:{allCalendarChannelEventAssociations:Z({objectUniversalIdentifier:J.calendarChannelEventAssociation,fields:X.calendarChannelEventAssociation,viewFieldNames:[`calendarChannelId`,`calendarEvent`,`eventExternalId`,`createdAt`]}),calendarChannelEventAssociationRecordPageFields:Ux({objectUniversalIdentifier:J.calendarChannelEventAssociation,fields:X.calendarChannelEventAssociation,viewFieldNames:[`calendarChannelId`,`calendarEvent`,`eventExternalId`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},calendarEventParticipant:{universalIdentifier:J.calendarEventParticipant,fields:X.calendarEventParticipant,indexes:{calendarEventIdIndex:{universalIdentifier:`c458ad97-8b95-43de-9003-88eb68576049`},personIdIndex:{universalIdentifier:`30e9b75a-881f-4a85-aaf1-f2d2464be1cf`},workspaceMemberIdIndex:{universalIdentifier:`898aa202-428f-4a7a-a3b3-8f0a17a6658e`}},views:{allCalendarEventParticipants:Z({objectUniversalIdentifier:J.calendarEventParticipant,fields:X.calendarEventParticipant,viewFieldNames:[`calendarEvent`,`handle`,`displayName`,`isOrganizer`,`responseStatus`,`person`,`workspaceMember`,`createdAt`]}),calendarEventParticipantRecordPageFields:Ux({objectUniversalIdentifier:J.calendarEventParticipant,fields:X.calendarEventParticipant,viewFieldNames:[`calendarEvent`,`handle`,`displayName`,`isOrganizer`,`responseStatus`,`person`,`workspaceMember`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},calendarEvent:{universalIdentifier:J.calendarEvent,fields:X.calendarEvent,indexes:{},views:{allCalendarEvents:Z({objectUniversalIdentifier:J.calendarEvent,fields:X.calendarEvent,viewFieldNames:[`title`,`startsAt`,`endsAt`,`isFullDay`,`location`,`conferenceLink`,`isCanceled`,`createdAt`]}),calendarEventRecordPageFields:Ux({objectUniversalIdentifier:J.calendarEvent,fields:X.calendarEvent,viewFieldNames:[`title`,`startsAt`,`endsAt`,`isFullDay`,`isCanceled`,`conferenceLink`,`location`,`description`,`externalCreatedAt`,`externalUpdatedAt`,`iCalUid`,`conferenceSolution`],viewFieldGroupNames:{general:`General`,system:`System`}})}},callRecording:{universalIdentifier:J.callRecording,fields:X.callRecording,indexes:{calendarEventIdIndex:{universalIdentifier:`8be3cc47-9352-4a1b-ad19-bb186bc0865d`}},views:{allCallRecordings:Z({objectUniversalIdentifier:J.callRecording,fields:X.callRecording,viewFieldNames:[`status`,`recordingRequestStatus`,`title`,`startedAt`]}),callRecordingRecordPageFields:Ux({objectUniversalIdentifier:J.callRecording,fields:X.callRecording,viewFieldNames:[`title`,`status`,`recordingRequestStatus`,`startedAt`,`endedAt`,`video`,`audio`,`transcript`,`summary`],viewFieldGroupNames:{general:`General`}})}},company:{universalIdentifier:J.company,fields:X.company,indexes:{accountOwnerIdIndex:{universalIdentifier:`ec2ebfc9-0c9b-4597-a87d-aa295e2d8bfe`},domainNameUniqueIndex:{universalIdentifier:`dd300c61-f422-467a-91f4-de4f83c4175b`},searchVectorGinIndex:{universalIdentifier:`c3eb62df-2cc1-4cc3-b7aa-e96a4d65c633`}},views:{allCompanies:Z({objectUniversalIdentifier:J.company,fields:X.company,viewFieldNames:[`name`,`domainName`,`createdBy`,`accountOwner`,`createdAt`,`linkedinLink`,`address`]}),companyRecordPageFields:Ux({objectUniversalIdentifier:J.company,fields:X.company,viewFieldNames:[`domainName`,`accountOwner`,`annualRevenue`,`linkedinLink`,`address`,`createdAt`,`createdBy`,`updatedAt`,`updatedBy`,`people`,`taskTargets`,`noteTargets`,`opportunities`,`attachments`,`timelineActivities`],viewFieldGroupNames:{general:`General`,business:`Business`,contact:`Contact`,system:`System`}})}},dashboard:{universalIdentifier:J.dashboard,fields:X.dashboard,indexes:{searchVectorGinIndex:{universalIdentifier:`e69f71aa-de0f-4b70-845f-7a8369c47928`}},views:{allDashboards:Z({objectUniversalIdentifier:J.dashboard,fields:X.dashboard,viewFieldNames:[`title`,`createdBy`,`createdAt`,`updatedAt`]})}},messageCampaign:{universalIdentifier:J.messageCampaign,fields:X.messageCampaign,indexes:{unsubscribeTopicIdIndex:{universalIdentifier:`efe8c20e-d12b-4475-969e-e86e0bbfe444`},listIdIndex:{universalIdentifier:`17bffd6a-714a-458d-a547-f9e2183d9520`},searchVectorGinIndex:{universalIdentifier:`975823ad-9b97-4f39-b2c7-fbd7d77f4bd1`}},views:{allMessageCampaigns:Z({objectUniversalIdentifier:J.messageCampaign,fields:X.messageCampaign,viewFieldNames:[`name`,`subject`,`status`,`list`,`fromAddress`,`sentAt`,`sentCount`,`failedCount`,`bouncedCount`,`complainedCount`,`recipients`,`createdAt`]}),messageCampaignRecordPageFields:Ux({objectUniversalIdentifier:J.messageCampaign,fields:X.messageCampaign,viewFieldNames:[`status`,`sentAt`,`sentCount`,`failedCount`,`bouncedCount`,`complainedCount`],viewFieldGroupNames:{stats:`Stats`}})}},messageList:{universalIdentifier:J.messageList,fields:X.messageList,indexes:{searchVectorGinIndex:{universalIdentifier:`8e205171-ed74-4620-b7d2-674aab85033a`}},views:{allMessageLists:Z({objectUniversalIdentifier:J.messageList,fields:X.messageList,viewFieldNames:[`name`,`members`,`campaigns`,`createdAt`]})}},messageListMember:{universalIdentifier:J.messageListMember,fields:X.messageListMember,indexes:{listIdIndex:{universalIdentifier:`61188470-6dcb-4b2a-b1a9-baeb688bccae`},personListUniqueIndex:{universalIdentifier:`e5497dc2-1d72-418c-a389-a0645ca0195a`}}},messageChannelMessageAssociation:{universalIdentifier:J.messageChannelMessageAssociation,fields:X.messageChannelMessageAssociation,indexes:{messageChannelIdIndex:{universalIdentifier:`9894f9a3-0225-4e7b-9f6a-23d4e2576784`},messageIdIndex:{universalIdentifier:`9bb24d40-60dd-4beb-8c64-a74e8c67f9ee`},messageChannelIdMessageIdUniqueIndex:{universalIdentifier:`1b86ece8-7ce3-4df3-8771-fd4b5d45b2f2`}},views:{allMessageChannelMessageAssociations:Z({objectUniversalIdentifier:J.messageChannelMessageAssociation,fields:X.messageChannelMessageAssociation,viewFieldNames:[`messageChannelId`,`message`,`messageExternalId`,`direction`,`createdAt`]}),messageChannelMessageAssociationRecordPageFields:Ux({objectUniversalIdentifier:J.messageChannelMessageAssociation,fields:X.messageChannelMessageAssociation,viewFieldNames:[`messageChannelId`,`message`,`messageExternalId`,`direction`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},messageChannelMessageAssociationMessageFolder:{universalIdentifier:J.messageChannelMessageAssociationMessageFolder,fields:X.messageChannelMessageAssociationMessageFolder,indexes:{messageChannelMessageAssociationIdIndex:{universalIdentifier:`8e6038aa-1f79-4a84-87b5-f33caa172e98`},messageFolderIdIndex:{universalIdentifier:`905299c3-ca81-435d-901c-f68b87562516`},messageChannelMessageAssociationIdMessageFolderIdUniqueIndex:{universalIdentifier:`a3de1788-5dff-4849-ac5a-0dabe5fab216`}},views:{allMessageChannelMessageAssociationMessageFolders:Z({objectUniversalIdentifier:J.messageChannelMessageAssociationMessageFolder,fields:X.messageChannelMessageAssociationMessageFolder,viewFieldNames:[`messageChannelMessageAssociation`,`messageFolderId`,`createdAt`]}),messageChannelMessageAssociationMessageFolderRecordPageFields:Ux({objectUniversalIdentifier:J.messageChannelMessageAssociationMessageFolder,fields:X.messageChannelMessageAssociationMessageFolder,viewFieldNames:[`messageChannelMessageAssociation`,`messageFolderId`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},messageParticipant:{universalIdentifier:J.messageParticipant,fields:X.messageParticipant,indexes:{messageIdIndex:{universalIdentifier:`ab0863ba-f95e-493c-b86c-56e1bc7e5bc2`},personIdIndex:{universalIdentifier:`df805c2e-3bfe-4d51-8309-75e5eb4052fe`},workspaceMemberIdIndex:{universalIdentifier:`ce1e3a9e-afe9-439d-abb7-6cc98a6fa405`},messageCampaignIdIndex:{universalIdentifier:`e9bcdd77-cc8b-4532-833c-124dfdc8e5ff`}},views:{allMessageParticipants:Z({objectUniversalIdentifier:J.messageParticipant,fields:X.messageParticipant,viewFieldNames:[`message`,`role`,`handle`,`displayName`,`person`,`workspaceMember`,`createdAt`]}),messageParticipantRecordPageFields:Ux({objectUniversalIdentifier:J.messageParticipant,fields:X.messageParticipant,viewFieldNames:[`message`,`role`,`displayName`,`person`,`workspaceMember`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},messageThread:{universalIdentifier:J.messageThread,fields:X.messageThread,indexes:{},views:{allMessageThreads:Z({objectUniversalIdentifier:J.messageThread,fields:X.messageThread,viewFieldNames:[`subject`,`messages`,`updatedAt`,`createdAt`]})}},message:{universalIdentifier:J.message,fields:X.message,indexes:{messageThreadIdIndex:{universalIdentifier:`7a05b45e-7aa6-4a7e-9bbc-299cbed53c96`},messageCampaignIdIndex:{universalIdentifier:`79e777ca-7008-46c5-b3a6-3108b7c7dfb6`}},views:{allMessages:Z({objectUniversalIdentifier:J.message,fields:X.message,viewFieldNames:[`subject`,`messageThread`,`messageParticipants`,`receivedAt`,`headerMessageId`,`text`,`createdAt`]})}},note:{universalIdentifier:J.note,fields:X.note,indexes:{searchVectorGinIndex:{universalIdentifier:`8183c8d2-9114-4b6e-8c5d-12a3b14a5a13`}},views:{allNotes:Z({objectUniversalIdentifier:J.note,fields:X.note,viewFieldNames:[`title`,`noteTargets`,`bodyV2`,`createdBy`,`createdAt`]}),noteRecordPageFields:Ux({objectUniversalIdentifier:J.note,fields:X.note,viewFieldNames:[`createdAt`,`createdBy`,`noteTargets`,`bodyV2`,`updatedAt`,`updatedBy`,`attachments`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},noteTarget:{universalIdentifier:J.noteTarget,fields:X.noteTarget,morphIds:{targetMorphId:{morphId:`20202020-f635-435d-ab8d-e1168b375c70`}},indexes:{noteIdIndex:{universalIdentifier:`9294d9e3-0225-4c7f-9d6e-23b4c25b6b24`},personIdIndex:{universalIdentifier:`7c069dc0-e83b-4cd5-aaa2-cac7f3e00d80`},companyIdIndex:{universalIdentifier:`2d83909a-a383-4e82-b00a-8b7739f3f906`},opportunityIdIndex:{universalIdentifier:`0d1a59b4-cc87-4b7d-804a-656e8504f371`}},views:{allNoteTargets:Z({objectUniversalIdentifier:J.noteTarget,fields:X.noteTarget,viewFieldNames:[`id`,`note`,`targetPerson`,`targetCompany`,`targetOpportunity`]})}},opportunity:{universalIdentifier:J.opportunity,fields:X.opportunity,indexes:{pointOfContactIdIndex:{universalIdentifier:`b8c2a673-a981-4357-a43d-313a358e4daa`},companyIdIndex:{universalIdentifier:`e161072d-37b1-477a-b944-ef0d65289574`},stageIndex:{universalIdentifier:`ae60d580-b562-44f2-a24d-7b8040063f83`},searchVectorGinIndex:{universalIdentifier:`f53fdd28-a26b-47ba-81b5-6813ad622720`}},views:{allOpportunities:Z({objectUniversalIdentifier:J.opportunity,fields:X.opportunity,viewFieldNames:[`name`,`amount`,`createdBy`,`closeDate`,`company`,`pointOfContact`]}),byStage:{universalIdentifier:`20202020-a004-4a04-8a04-0aa0b1ca1ba0`,viewFields:{name:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2baf`},amount:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb0`},createdBy:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb1`},closeDate:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb2`},company:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb3`},pointOfContact:{universalIdentifier:`20202020-af04-4a04-8a04-0aa0b2ca2bb4`}},viewGroups:{new:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf1`},screening:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf2`},meeting:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf3`},proposal:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf4`},customer:{universalIdentifier:`20202020-af14-4a04-8a04-0aa0b2ca2bf5`}}},opportunityRecordPageFields:Ux({objectUniversalIdentifier:J.opportunity,fields:X.opportunity,viewFieldNames:[`amount`,`closeDate`,`stage`,`company`,`pointOfContact`,`owner`,`createdAt`,`createdBy`,`updatedAt`,`updatedBy`,`taskTargets`,`noteTargets`,`attachments`,`timelineActivities`],viewFieldGroupNames:{deal:`Deal`,relations:`Relations`,system:`System`}})}},person:{universalIdentifier:J.person,fields:X.person,indexes:{companyIdIndex:{universalIdentifier:`8a265a5c-d3ae-47dc-bdf9-b42cfa2ba639`},emailsUniqueIndex:{universalIdentifier:`8183a8b2-9114-4f6c-8a5b-12e3f14e5e13`},searchVectorGinIndex:{universalIdentifier:`9294b9c3-0225-4a7d-9b6c-23f4a25f6f24`}},views:{allPeople:Z({objectUniversalIdentifier:J.person,fields:X.person,viewFieldNames:[`name`,`emails`,`createdBy`,`company`,`phones`,`createdAt`,`jobTitle`,`linkedinLink`]}),personRecordPageFields:Ux({objectUniversalIdentifier:J.person,fields:X.person,viewFieldNames:[`emails`,`phones`,`company`,`jobTitle`,`linkedinLink`,`avatarUrl`,`createdAt`,`createdBy`,`updatedAt`,`updatedBy`,`avatarFile`,`pointOfContactForOpportunities`,`taskTargets`,`noteTargets`,`attachments`,`messageParticipants`,`calendarEventParticipants`,`timelineActivities`],viewFieldGroupNames:{general:`General`,work:`Work`,social:`Social`,system:`System`}})}},task:{universalIdentifier:J.task,fields:X.task,indexes:{assigneeIdIndex:{universalIdentifier:`f48fa3b1-0cec-44da-a9e5-f8a5e766637e`},searchVectorGinIndex:{universalIdentifier:`a86b32b3-01d3-4302-a152-8b7f247db7b4`}},views:{allTasks:Z({objectUniversalIdentifier:J.task,fields:X.task,viewFieldNames:[`title`,`status`,`taskTargets`,`createdBy`,`dueAt`,`assignee`,`bodyV2`,`createdAt`]}),assignedToMe:{universalIdentifier:`20202020-a007-4a07-8a07-ba5ca551aaed`,viewFields:{title:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaed`},taskTargets:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaee`},createdBy:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaef`},dueAt:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf0`},assignee:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf1`},bodyV2:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf2`},createdAt:{universalIdentifier:`20202020-af07-4a07-8a07-ba5ca551aaf3`}},viewFilters:{assigneeIsMe:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf1`}},viewGroups:{todo:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf2`},inProgress:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf3`},done:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf4`},empty:{universalIdentifier:`20202020-af17-4a07-8a07-ba5ca551abf5`}}},byStatus:{universalIdentifier:`20202020-a008-4a08-8a08-ba5cba51aba5`,viewFields:{title:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf0`},status:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf1`},dueAt:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf2`},assignee:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf3`},createdAt:{universalIdentifier:`20202020-af08-4a08-8a08-ba5cba5babf4`}},viewGroups:{todo:{universalIdentifier:`20202020-af18-4a08-8a08-ba5cba5bbf01`},inProgress:{universalIdentifier:`20202020-af18-4a08-8a08-ba5cba5bbf02`},done:{universalIdentifier:`20202020-af18-4a08-8a08-ba5cba5bbf03`}}},taskRecordPageFields:Ux({objectUniversalIdentifier:J.task,fields:X.task,viewFieldNames:[`dueAt`,`status`,`assignee`,`createdAt`,`createdBy`,`taskTargets`,`bodyV2`,`updatedAt`,`updatedBy`,`attachments`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},taskTarget:{universalIdentifier:J.taskTarget,fields:X.taskTarget,morphIds:{targetMorphId:{morphId:`20202020-f636-435d-ab8d-e1168b375c71`}},indexes:{taskIdIndex:{universalIdentifier:`c882f7a4-b025-4d32-aa26-5ef2595bdbf9`},personIdIndex:{universalIdentifier:`b7d305d1-6fae-4ed6-9bdc-354fe9032c0e`},companyIdIndex:{universalIdentifier:`c0af54c7-751b-4bb2-b102-677cc4e47402`},opportunityIdIndex:{universalIdentifier:`6942e0ba-90f6-4c33-bf40-7f00b1ec35ab`}},views:{allTaskTargets:Z({objectUniversalIdentifier:J.taskTarget,fields:X.taskTarget,viewFieldNames:[`id`,`task`,`targetPerson`,`targetCompany`,`targetOpportunity`]})}},timelineActivity:{universalIdentifier:J.timelineActivity,fields:X.timelineActivity,morphIds:{targetMorphId:{morphId:`20202020-9a2b-4c3d-a4e5-f6a7b8c9d0e1`}},indexes:{workspaceMemberIdIndex:{universalIdentifier:`5e0b2391-85ca-4a66-aef4-52d74245bec2`},personIdIndex:{universalIdentifier:`3e89a914-7bec-47bd-9cf9-743c6b83d001`},companyIdIndex:{universalIdentifier:`8183e8f2-9114-4d6a-8e5f-12c3d14c5c13`},opportunityIdIndex:{universalIdentifier:`9294f9a3-0225-4e7b-9f6a-23d4e25d6d24`},noteIdIndex:{universalIdentifier:`995db1d8-0d3e-40f7-b0eb-5e6897bc9966`},taskIdIndex:{universalIdentifier:`609cf622-86ef-48d1-812b-e1cab610a46c`},workflowIdIndex:{universalIdentifier:`d6059ec2-92b0-4cfc-9fd8-78050f03108f`},workflowVersionIdIndex:{universalIdentifier:`d94329b3-5dc8-4141-ae28-31afe28f7135`},workflowRunIdIndex:{universalIdentifier:`1a2bd046-7c23-4e0a-9f8a-c3ca3a16d3b9`},dashboardIdIndex:{universalIdentifier:`e8821da9-728d-470a-bf5b-5a981fff7880`}},views:{allTimelineActivities:Z({objectUniversalIdentifier:J.timelineActivity,fields:X.timelineActivity,viewFieldNames:[`linkedRecordCachedName`,`happensAt`,`workspaceMember`,`targetPerson`,`targetCompany`,`targetOpportunity`,`targetTask`,`targetNote`,`targetWorkflow`,`targetWorkflowVersion`,`targetWorkflowRun`,`targetDashboard`]})}},workflow:{universalIdentifier:J.workflow,fields:X.workflow,indexes:{searchVectorGinIndex:{universalIdentifier:`c7e64c55-eb0c-4b93-b076-5cfcf2e2e042`}},views:{allWorkflows:Z({objectUniversalIdentifier:J.workflow,fields:X.workflow,viewFieldNames:[`name`,`statuses`,`updatedAt`,`createdBy`,`versions`,`runs`]})}},workflowAutomatedTrigger:{universalIdentifier:J.workflowAutomatedTrigger,fields:X.workflowAutomatedTrigger,indexes:{workflowIdIndex:{universalIdentifier:`7331ff89-a3f9-4ac0-9fa9-0de5663ae7b2`}},views:{allWorkflowAutomatedTriggers:Z({objectUniversalIdentifier:J.workflowAutomatedTrigger,fields:X.workflowAutomatedTrigger,viewFieldNames:[`type`,`workflow`,`createdAt`]}),workflowAutomatedTriggerRecordPageFields:Ux({objectUniversalIdentifier:J.workflowAutomatedTrigger,fields:X.workflowAutomatedTrigger,viewFieldNames:[`type`,`workflow`,`createdAt`,`createdBy`],viewFieldGroupNames:{general:`General`,system:`System`}})}},workflowRun:{universalIdentifier:J.workflowRun,fields:X.workflowRun,indexes:{workflowVersionIdIndex:{universalIdentifier:`8183c8d2-9114-4b6e-8c5d-12a3b14a5a14`},workflowIdIndex:{universalIdentifier:`9294d9e3-0225-4c7f-9d6e-23b4c25b6b25`},searchVectorGinIndex:{universalIdentifier:`e0ac5ad2-d0c8-4f72-b710-8e53b9dc18d9`}},views:{allWorkflowRuns:Z({objectUniversalIdentifier:J.workflowRun,fields:X.workflowRun,viewFieldNames:[`name`,`workflow`,`status`]}),workflowRunRecordPageFields:Ux({objectUniversalIdentifier:J.workflowRun,fields:X.workflowRun,viewFieldNames:[`status`,`workflow`,`workflowVersion`,`startedAt`,`endedAt`,`createdAt`,`createdBy`,`enqueuedAt`,`state`,`updatedAt`,`updatedBy`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},workflowVersion:{universalIdentifier:J.workflowVersion,fields:X.workflowVersion,indexes:{workflowIdIndex:{universalIdentifier:`8138c3b3-0b14-4ee1-be0e-debdde6b3219`},searchVectorGinIndex:{universalIdentifier:`6f3a65eb-2aee-4108-b8a0-c62da419d1dc`}},views:{allWorkflowVersions:Z({objectUniversalIdentifier:J.workflowVersion,fields:X.workflowVersion,viewFieldNames:[`name`,`workflow`,`status`,`updatedAt`,`runs`]}),workflowVersionRecordPageFields:Ux({objectUniversalIdentifier:J.workflowVersion,fields:X.workflowVersion,viewFieldNames:[`status`,`workflow`,`trigger`,`createdAt`,`steps`,`createdBy`,`updatedAt`,`updatedBy`,`runs`,`timelineActivities`],viewFieldGroupNames:{general:`General`,system:`System`}})}},workspaceMember:{universalIdentifier:J.workspaceMember,fields:X.workspaceMember,indexes:{userEmailUniqueIndex:{universalIdentifier:`76da5f27-523c-44b6-ad06-12954f6b949f`},searchVectorGinIndex:{universalIdentifier:`8678dde9-a804-4a9e-80e3-9af35e471ec5`}},views:{allWorkspaceMembers:Z({objectUniversalIdentifier:J.workspaceMember,fields:X.workspaceMember,viewFieldNames:[`name`,`createdAt`,`ownedOpportunities`,`assignedTasks`]})}}},Gx=({objectUniversalIdentifier:t,tabs:n})=>{let r=e.d({objectMetadataApplicationUniversalIdentifier:e.g,objectUniversalIdentifier:t});return{universalIdentifier:r,tabs:Object.fromEntries(Object.entries(n).map(([t,{title:n,widgets:i}])=>{let a=e._({objectMetadataApplicationUniversalIdentifier:e.g,pageLayoutUniversalIdentifier:r,title:n});return[t,{universalIdentifier:a,widgets:Object.fromEntries(Object.entries(i).map(([t,n])=>[t,{universalIdentifier:e.y({objectMetadataApplicationUniversalIdentifier:e.g,pageLayoutTabUniversalIdentifier:a,title:n})}]))}]}))}},Kx={myFirstDashboard:{universalIdentifier:`20202020-d001-4d01-8d01-da5ab0a00001`,tabs:{tab1:{universalIdentifier:`20202020-d011-4d11-8d11-da5ab0a01001`,widgets:{welcomeRichText:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11001`},dealsByCompany:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11002`},pipelineValueByStage:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11003`},revenueTimeline:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11004`},opportunitiesByOwner:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11005`},stockMarketIframe:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11006`},dealsCreatedThisMonth:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11007`},dealValueCreatedThisMonth:{universalIdentifier:`20202020-d111-4d11-8d11-da5ab0a11008`}}}}},companyRecordPage:Gx({objectUniversalIdentifier:J.company,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,people:`People`,opportunities:`Opportunities`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},tasks:{title:`Tasks`,widgets:{tasks:`Tasks`}},notes:{title:`Notes`,widgets:{notes:`Notes`}},files:{title:`Files`,widgets:{files:`Files`}},emails:{title:`Emails`,widgets:{emails:`Emails`}},calendar:{title:`Calendar`,widgets:{calendar:`Calendar`}}}}),personRecordPage:Gx({objectUniversalIdentifier:J.person,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,company:`Company`,pointOfContactForOpportunities:`Opportunities`,listMemberships:`Lists`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},tasks:{title:`Tasks`,widgets:{tasks:`Tasks`}},notes:{title:`Notes`,widgets:{notes:`Notes`}},files:{title:`Files`,widgets:{files:`Files`}},emails:{title:`Emails`,widgets:{emails:`Emails`}},calendar:{title:`Calendar`,widgets:{calendar:`Calendar`}}}}),opportunityRecordPage:Gx({objectUniversalIdentifier:J.opportunity,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,pointOfContact:`Point of Contact`,company:`Company`,owner:`Owner`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},tasks:{title:`Tasks`,widgets:{tasks:`Tasks`}},notes:{title:`Notes`,widgets:{notes:`Notes`}},files:{title:`Files`,widgets:{files:`Files`}},emails:{title:`Emails`,widgets:{emails:`Emails`}},calendar:{title:`Calendar`,widgets:{calendar:`Calendar`}}}}),noteRecordPage:Gx({objectUniversalIdentifier:J.note,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,noteRichText:`Note`}},note:{title:`Note`,widgets:{noteRichText:`Note`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},files:{title:`Files`,widgets:{files:`Files`}}}}),taskRecordPage:Gx({objectUniversalIdentifier:J.task,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,taskRichText:`Task`}},note:{title:`Note`,widgets:{taskRichText:`Task`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},files:{title:`Files`,widgets:{files:`Files`}}}}),workflowRecordPage:Gx({objectUniversalIdentifier:J.workflow,tabs:{flow:{title:`Flow`,widgets:{workflow:`Flow`}}}}),workflowVersionRecordPage:Gx({objectUniversalIdentifier:J.workflowVersion,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,workflow:`Workflow`}},flow:{title:`Flow`,widgets:{workflowVersion:`Flow`}}}}),workflowRunRecordPage:Gx({objectUniversalIdentifier:J.workflowRun,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,workflow:`Workflow`}},flow:{title:`Flow`,widgets:{workflowRun:`Flow`}}}}),blocklistRecordPage:Gx({objectUniversalIdentifier:J.blocklist,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),calendarChannelEventAssociationRecordPage:Gx({objectUniversalIdentifier:J.calendarChannelEventAssociation,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),calendarEventRecordPage:Gx({objectUniversalIdentifier:J.calendarEvent,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,participants:`Participants`,callRecordings:`Call Recordings`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}},summary:{title:`Summary`,widgets:{summary:`Summary`}},callRecording:{title:`Call Recording`,widgets:{transcript:`Transcript`}}}}),calendarEventParticipantRecordPage:Gx({objectUniversalIdentifier:J.calendarEventParticipant,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),callRecordingRecordPage:Gx({objectUniversalIdentifier:J.callRecording,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageChannelMessageAssociationRecordPage:Gx({objectUniversalIdentifier:J.messageChannelMessageAssociation,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageChannelMessageAssociationMessageFolderRecordPage:Gx({objectUniversalIdentifier:J.messageChannelMessageAssociationMessageFolder,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageParticipantRecordPage:Gx({objectUniversalIdentifier:J.messageParticipant,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),workflowAutomatedTriggerRecordPage:Gx({objectUniversalIdentifier:J.workflowAutomatedTrigger,tabs:{home:{title:`Home`,widgets:{fields:`Fields`}},timeline:{title:`Timeline`,widgets:{timeline:`Timeline`}}}}),messageThreadRecordPage:Gx({objectUniversalIdentifier:J.messageThread,tabs:{home:{title:`Home`,widgets:{emailThread:`Thread`}}}}),messageListRecordPage:Gx({objectUniversalIdentifier:J.messageList,tabs:{home:{title:`Home`,widgets:{fields:`Fields`,members:`Members`}}}}),messageCampaignRecordPage:Gx({objectUniversalIdentifier:J.messageCampaign,tabs:{home:{title:`Home`,widgets:{details:`Details`,list:`List`,recipients:`Recipients`,fields:`Fields`}},composer:{title:`Email`,widgets:{messageCampaign:`Email`}}}})},qx=t=>{let n=[];if(t.universalIdentifier||n.push(`PageLayout must have a universalIdentifier`),t.name||n.push(`PageLayout must have a name`),t.type||n.push(`PageLayout must have a type`),t.tabs){for(let r of t.tabs)if(r.universalIdentifier||n.push(`PageLayoutTab must have a universalIdentifier`),r.title||n.push(`PageLayoutTab must have a title`),r.widgets){for(let t of r.widgets)if(t.universalIdentifier||n.push(`PageLayoutWidget must have a universalIdentifier`),t.title||n.push(`PageLayoutWidget must have a title`),t.type||n.push(`PageLayoutWidget must have a type`),t.configuration.configurationType===`FRONT_COMPONENT`&&e.yt(t.configuration.headerCommandMenuItemUniversalIdentifiers)){let e=t.configuration.headerCommandMenuItemUniversalIdentifiers;for(let t of e)Fx(t)||n.push(`PageLayoutWidget header command menu item universalIdentifier "${t}" must be a UUID`);new Set(e).size!==e.length&&n.push(`PageLayoutWidget header command menu item universalIdentifiers must be unique`)}}}return Nb({config:t,errors:n})},Jx=e=>{let t=[];if(e.universalIdentifier||t.push(`PageLayoutTab must have a universalIdentifier`),e.title||t.push(`PageLayoutTab must have a title`),e.pageLayoutUniversalIdentifier||t.push(`PageLayoutTab must have a pageLayoutUniversalIdentifier when defined standalone (use the parent page layout universalIdentifier)`),e.widgets)for(let n of e.widgets)n.universalIdentifier||t.push(`PageLayoutWidget must have a universalIdentifier`),n.title||t.push(`PageLayoutWidget must have a title`),n.type||t.push(`PageLayoutWidget must have a type`);return Nb({config:e,errors:t})},Yx=e=>{let t=[];return e.universalIdentifier||t.push(`Permission flag must have a universalIdentifier`),e.key||t.push(`Permission flag must have a key`),e.label||t.push(`Permission flag must have a label`),Nb({config:e,errors:t})},Xx=e=>{let t=[];if(e.universalIdentifier||t.push(`Role must have a universalIdentifier`),e.label||t.push(`Role must have a label`),e.objectPermissions)for(let n of e.objectPermissions)n.objectUniversalIdentifier||t.push(`Object permission must have an objectUniversalIdentifier`);if(e.fieldPermissions)for(let n of e.fieldPermissions)n.objectUniversalIdentifier||t.push(`Field permission must have an objectUniversalIdentifier`),n.fieldUniversalIdentifier||t.push(`Field permission must have a fieldUniversalIdentifier`);let n=new Set;if(e.rowLevelPermissionPredicateGroups)for(let r of e.rowLevelPermissionPredicateGroups)r.universalIdentifier?n.has(r.universalIdentifier)?t.push(`Duplicate row level permission predicate group universalIdentifier "${r.universalIdentifier}"`):n.add(r.universalIdentifier):t.push(`Row level permission predicate group must have a universalIdentifier`),r.objectUniversalIdentifier||t.push(`Row level permission predicate group must have an objectUniversalIdentifier`),r.logicalOperator||t.push(`Row level permission predicate group must have a logicalOperator`);let r=new Set;if(e.rowLevelPermissionPredicates)for(let i of e.rowLevelPermissionPredicates)i.universalIdentifier?r.has(i.universalIdentifier)?t.push(`Duplicate row level permission predicate universalIdentifier "${i.universalIdentifier}"`):r.add(i.universalIdentifier):t.push(`Row level permission predicate must have a universalIdentifier`),i.objectUniversalIdentifier||t.push(`Row level permission predicate must have an objectUniversalIdentifier`),i.fieldUniversalIdentifier||t.push(`Row level permission predicate must have a fieldUniversalIdentifier`),i.operand||t.push(`Row level permission predicate must have an operand`),i.predicateGroupUniversalIdentifier&&!n.has(i.predicateGroupUniversalIdentifier)&&t.push(`Row level permission predicate references unknown predicate group "${i.predicateGroupUniversalIdentifier}"`);return Nb({config:e,errors:t})},Zx=e=>Xx(e),Qx=e=>{let t=[];return e.universalIdentifier||t.push(`Skill must have a universalIdentifier`),e.name||t.push(`Skill must have a name`),e.label||t.push(`Skill must have a label`),e.content||t.push(`Skill must have content`),Nb({config:e,errors:t})},$x=t=>{let n=[];if(t.universalIdentifier||n.push(`View must have a universalIdentifier`),t.name||n.push(`View must have a name`),t.objectUniversalIdentifier||n.push(`View must have an objectUniversalIdentifier`),t.fields)for(let e of t.fields)e.universalIdentifier||n.push(`ViewField must have a universalIdentifier`),e.fieldMetadataUniversalIdentifier||n.push(`ViewField must have a fieldMetadataUniversalIdentifier`);if(t.filters)for(let e of t.filters)e.universalIdentifier||n.push(`ViewFilter must have a universalIdentifier`),e.fieldMetadataUniversalIdentifier||n.push(`ViewFilter must have a fieldMetadataUniversalIdentifier`);if(t.filterGroups)for(let e of t.filterGroups)e.universalIdentifier||n.push(`ViewFilterGroup must have a universalIdentifier`);if(t.groups)for(let e of t.groups)e.universalIdentifier||n.push(`ViewGroup must have a universalIdentifier`);if(t.fieldGroups)for(let e of t.fieldGroups)e.universalIdentifier||n.push(`ViewFieldGroup must have a universalIdentifier`);if(t.sorts)for(let r of t.sorts)r.universalIdentifier||n.push(`ViewSort must have a universalIdentifier`),r.fieldMetadataUniversalIdentifier||n.push(`ViewSort must have a fieldMetadataUniversalIdentifier`),r.direction!==e.k.ASC&&r.direction!==e.k.DESC&&n.push(`ViewSort direction must be '${e.k.ASC}' or '${e.k.DESC}'`);return Nb({config:t,errors:n})},eS=e=>{let t=[];return e.universalIdentifier||t.push(`View field must have a universalIdentifier`),e.viewUniversalIdentifier||t.push(`View field must have a viewUniversalIdentifier`),e.fieldMetadataUniversalIdentifier||t.push(`View field must have a fieldMetadataUniversalIdentifier`),Nb({config:e,errors:t})},tS=e.xt({AggregateOperations:()=>e.F,DateDisplayFormat:()=>e.E,FieldMetadataSettingsOnClickAction:()=>e.D,FieldType:()=>e.X,HTTPMethod:()=>e.N,MetadataWritability:()=>e.I,NavigationMenuItemType:()=>e.J,NumberDataType:()=>e.w,ObjectOpenRecordIn:()=>e.Z,ObjectRecordGroupByDateGranularity:()=>e.G,OnDeleteAction:()=>e.V,PageLayoutTabLayoutMode:()=>e.z,PageLayoutType:()=>e.Y,RelationType:()=>e.B,RowLevelPermissionPredicateGroupLogicalOperator:()=>e.P,RowLevelPermissionPredicateOperand:()=>e.Q,STANDARD_OBJECT:()=>Wx,STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS:()=>Wx,STANDARD_PAGE_LAYOUT:()=>Kx,STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS:()=>Kx,SYSTEM_VIEW_KEYS:()=>e.p,SystemPermissionFlag:()=>M,ViewCalendarLayout:()=>e.C,ViewFilterGroupLogicalOperator:()=>e.A,ViewFilterOperand:()=>e.W,ViewKey:()=>e.H,ViewOpenRecordIn:()=>e.O,ViewSortDirection:()=>e.k,ViewType:()=>e.j,ViewVisibility:()=>e.T,canAccessFullAdminPanel:()=>lx,canImpersonate:()=>cx,createValidationResult:()=>Nb,defineAgent:()=>Pb,defineApplication:()=>Ib,defineApplicationRole:()=>Zx,defineCommandMenuItem:()=>Ub,defineConnectionProvider:()=>zx,defineField:()=>Hb,defineFrontComponent:()=>Ex,defineIndex:()=>kx,defineLogicFunction:()=>Ax,defineNavigationMenuItem:()=>Bx,defineObject:()=>Vx,definePageLayout:()=>qx,definePageLayoutTab:()=>Jx,definePermissionFlag:()=>Yx,definePostInstallLogicFunction:()=>jx,definePreInstallLogicFunction:()=>Mx,defineRole:()=>Xx,defineSettingsFrontComponent:()=>Dx,defineSkill:()=>Qx,defineTimelineActivityType:()=>Kb,defineUninstallLogicFunction:()=>Nx,defineView:()=>$x,defineViewField:()=>eS,every:()=>hx,everyDefined:()=>gx,everyEquals:()=>_x,favoriteRecordIds:()=>$b,featureFlags:()=>ax,getFieldUniversalIdentifier:()=>e.m,getSystemRelationFieldUniversalIdentifier:()=>e.h,getSystemViewFieldUniversalIdentifier:()=>e.f,getSystemViewUniversalIdentifier:()=>e.v,hasAnySoftDeleteFilterOnView:()=>tx,includes:()=>mx,includesEvery:()=>Tx,isDashboardPageLayoutInEditMode:()=>Zb,isDefined:()=>fx,isInSidePanel:()=>Xb,isLayoutCustomizationModeEnabled:()=>Qb,isNonEmptyString:()=>px,isSelectAll:()=>ex,none:()=>xx,noneDefined:()=>Sx,noneEquals:()=>Cx,numberOfSelectedRecords:()=>nx,objectMetadataItem:()=>ux,objectMetadataLabel:()=>dx,objectPermissions:()=>rx,pageType:()=>Yb,selectedRecords:()=>ix,some:()=>vx,someDefined:()=>yx,someEquals:()=>bx,someNonEmptyString:()=>wx,targetObjectReadPermissions:()=>ox,targetObjectWritePermissions:()=>sx,validateFields:()=>Vb}),nS=e=>/^define[A-Z]/.test(e)||e===`createValidationResult`,rS=(e=>{let t=[],n=[];for(let r of Object.keys(e).sort())nS(r)?t.push(r):n.push(r);return{factories:t,any:n}})(tS),iS=`twenty-sdk-define-stub`,aS=`__twenty-sdk-define-stub__`,oS=`
40
40
  // Auto-generated stub for twenty-sdk/define injected by the SDK CLI build.
41
41
  // Real implementations would pull in zod, twenty-shared and ~1MB of code; at
42
42
  // runtime only \`default.config.handler\` is consumed, so tiny no-ops suffice.
@@ -332,7 +332,7 @@ Please compile your catalog first.
332
332
  logs
333
333
  }
334
334
  }
335
- `,variables:a},{next:({data:e})=>console.log(e?.logicFunctionLogs.logs),error:e=>console.error(e),complete:()=>console.log(`Completed`)})}},lE=class{constructor(e){this.client=e}async getSchema(e){return this.introspectEndpoint(`/graphql`,e)}async getMetadataSchema(e){return this.introspectEndpoint(`/metadata`,e)}async introspectEndpoint(e,t){try{let n=(0,T.getIntrospectionQuery)(),r={"Content-Type":`application/json`,Accept:`*/*`};t?.appAccessToken&&(r.Authorization=`Bearer ${t.appAccessToken}`);let i=await this.client.post(e,{query:n},{headers:r});return i.data.errors?{success:!1,error:`GraphQL introspection errors: ${JSON.stringify(i.data.errors)}`}:{success:!0,data:(0,T.printSchema)((0,T.buildClientSchema)(i.data.data)),message:`Successfully loaded schema from ${e}`}}catch(t){if(y.default.isAxiosError(t)&&t.response)return{success:!1,error:t.response.data?.errors?.[0]?.message||`Failed to load schema from ${e}`};throw t}}},uE=class{constructor(e){this.apiClient=new tE(e),this.applicationApi=new iE(this.apiClient.client),this.schemaApi=new lE(this.apiClient.client),this.logicFunctionApi=new cE(this.apiClient),this.fileApi=new sE(this.apiClient.client)}validateAuth(){return this.apiClient.validateAuth()}getWorkspaceFrontendUrl(){return this.apiClient.getWorkspaceFrontendUrl()}refreshToken(){return this.apiClient.refreshToken()}findApplicationRegistrationByUniversalIdentifier(...e){return this.applicationApi.findApplicationRegistrationByUniversalIdentifier(...e)}createApplicationRegistration(...e){return this.applicationApi.createApplicationRegistration(...e)}rotateApplicationRegistrationClientSecret(...e){return this.applicationApi.rotateApplicationRegistrationClientSecret(...e)}createDevelopmentApplication(...e){return this.applicationApi.createDevelopmentApplication(...e)}generateApplicationToken(...e){return this.applicationApi.generateApplicationToken(...e)}syncApplication(e,t){return this.applicationApi.syncApplication(e,t)}uninstallApplication(e){return this.applicationApi.uninstallApplication(e)}syncMarketplaceCatalog(){return this.applicationApi.syncMarketplaceCatalog()}getSchema(e){return this.schemaApi.getSchema(e)}getMetadataSchema(e){return this.schemaApi.getMetadataSchema(e)}findLogicFunctions(...e){return this.logicFunctionApi.findLogicFunctions(...e)}executeLogicFunction(...e){return this.logicFunctionApi.executeLogicFunction(...e)}subscribeToLogs(...e){return this.logicFunctionApi.subscribeToLogs(...e)}uploadAppTarball(...e){return this.fileApi.uploadAppTarball(...e)}installTarballApp(...e){return this.fileApi.installTarballApp(...e)}uploadFile(...e){return this.fileApi.uploadFile(...e)}},dE=async e=>{let{tarballPath:t,onProgress:n}=e;e.remote&&$.setActiveRemote(e.remote),n?.(`Uploading ${t}...`);let r=v.default.readFileSync(t),i=await new uE({serverUrl:e.serverUrl,token:e.token}).uploadAppTarball({tarballBuffer:r});return i.success?{success:!0,data:i.data}:{success:!1,error:{code:Q.DEPLOY_FAILED,message:`Upload failed: ${i.error}`}}},fE=e=>PT(()=>dE(e),Q.DEPLOY_FAILED),pE=async e=>{let{appPath:t,onProgress:r}=e,i=await zT({appPath:t,onProgress:r});if(!i.success)return i;if(r?.(`Publishing to npm...`),e.npmTag&&!/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(e.npmTag))return{success:!1,error:{code:Q.PUBLISH_FAILED,message:`Invalid npm tag: ${e.npmTag}`}};let a=process.env.TWENTY_APP_PUBLISH_DISABLE_PROVENANCE===`true`,o=[`publish`,`--access`,`public`,...process.env.ACTIONS_ID_TOKEN_REQUEST_URL!=null&&!a?[`--provenance`]:[],...e.npmTag?[`--tag`,e.npmTag]:[]],s=process.platform===`win32`;try{(0,n.execFileSync)(s?`npm.cmd`:`npm`,o,{cwd:i.data.outputDir,stdio:`inherit`,shell:s})}catch{return{success:!1,error:{code:Q.PUBLISH_FAILED,message:`npm publish failed`}}}return{success:!0,data:{target:`npm`}}},mE=e=>PT(()=>pE(e),Q.PUBLISH_FAILED),hE={name:`twenty-sdk`,version:`2.35.0`,sideEffects:!1,bin:{twenty:`dist/cli.cjs`},files:[`dist`,`README.md`,`CHANGELOG.md`,`package.json`],scripts:{build:`npx rimraf dist && npx vite build`},keywords:[`twenty`,`cli`,`sdk`,`crm`,`application`,`development`],exports:{"./billing":{types:`./dist/billing/index.d.ts`,import:`./dist/billing/index.mjs`,require:`./dist/billing/index.cjs`},"./define":{types:`./dist/define/index.d.ts`,import:`./dist/define/index.mjs`,require:`./dist/define/index.cjs`},"./front-component":{types:`./dist/front-component/index.d.ts`,import:`./dist/front-component/index.mjs`,require:`./dist/front-component/index.cjs`},"./logic-function":{types:`./dist/logic-function/index.d.ts`,import:`./dist/logic-function/index.mjs`,require:`./dist/logic-function/index.cjs`},"./utils":{types:`./dist/utils/index.d.ts`,import:`./dist/utils/index.mjs`,require:`./dist/utils/index.cjs`},"./cli":{types:`./dist/cli/operations/index.d.ts`,import:`./dist/operations.mjs`,require:`./dist/operations.cjs`},"./front-component-renderer":{types:`./dist/front-component-renderer/index.d.ts`,import:`./dist/front-component-renderer.mjs`,require:`./dist/front-component-renderer.cjs`},"./front-component-renderer/build":{types:`./dist/front-component-renderer/build/index.d.ts`,import:`./dist/front-component-renderer/build.mjs`,require:`./dist/front-component-renderer/build.cjs`}},license:`MIT`,dependencies:{"@sniptt/guards":`^0.2.0`,axios:`^1.16.0`,chalk:`^5.3.0`,chokidar:`^4.0.0`,commander:`^12.0.0`,esbuild:`^0.28.1`,graphql:`^16.8.1`,"graphql-sse":`^2.5.4`,ink:`^6.8.0`,inquirer:`^14.0.0`,"jsonc-parser":`^3.2.0`,preact:`^10.28.3`,react:`^19.2.0`,"react-dom":`^19.2.0`,semver:`7.6.3`,sharp:`^0.35.3`,tinyglobby:`^0.2.15`,"twenty-client-sdk":`workspace:*`,typescript:`^5.9.3`,uuid:`^13.0.2`},devDependencies:{"@prettier/sync":`^0.5.2`,"@types/node":`^24.0.0`,"@types/react":`^19.2.0`,"@types/react-dom":`^19.2.0`,"@types/semver":`^7.5.8`,"@typescript/native-preview":`^7.0.0-dev.20260116.1`,"@vitest/coverage-v8":`^4.0.18`,prettier:`^3.1.1`,"rollup-plugin-dts":`^6.4.1`,"ts-morph":`^25.0.0`,"tsc-alias":`^1.8.16`,tsx:`^4.7.0`,"twenty-shared":`workspace:*`,"twenty-ui":`workspace:*`,vite:`^8.0.0`,"vite-plugin-dts":`^4.5.4`,"wait-on":`^9.0.10`},engines:{node:`^24.5.0`,yarn:`^4.0.2`},typesVersions:{"*":{billing:[`dist/billing/index.d.ts`],define:[`dist/define/index.d.ts`],"front-component":[`dist/front-component/index.d.ts`],"logic-function":[`dist/logic-function/index.d.ts`],utils:[`dist/utils/index.d.ts`],cli:[`dist/cli/operations/index.d.ts`],"front-component-renderer":[`dist/front-component-renderer/index.d.ts`],"front-component-renderer/build":[`dist/front-component-renderer/build/index.d.ts`]}}},gE=async n=>{let r=t.default.join(n,e.i);await _b(r);let i=t.default.join(r,`manifest.json`);if(!await hb(i)){let{manifest:e}=await fT(n);return e}return await Sb(i)},_E=t=>{if(!e.yt(t?.errors)||!e.yt(t?.summary))return null;let n=[],r=t.summary.totalErrors;n.push({message:`Sync failed with ${r} error${r===1?``:`s`}`,status:`error`});for(let[r,a]of Object.entries(t.errors)){if(!e.yt(a))continue;let o=t.summary[r]??a.length;n.push({message:`${r}: ${o} error${o===1?``:`s`}`,status:`error`});let s=1;for(let t of a){let r=t.flatEntityMinimalInformation?.universalIdentifier;for(let a of t.errors){let t=[];e.yt(a.value)&&t.push(`value: ${String(a.value)}`),(0,i.isNonEmptyString)(r)&&t.push(`universalIdentifier: ${r}`);let o=t.length>0?` (${t.join(`, `)})`:``;n.push({message:` ${s}. ${a.code}: ${a.message}${o}`,status:`error`}),s++}}}return n},vE=async e=>{e.remote&&$.setActiveRemote(e.remote);let t=new uE,n=await gE(e.appPath);if(!n)return{success:!1,error:{code:Q.MANIFEST_NOT_FOUND,message:"Manifest not found. Run `build` or `dev` first."}};let r=await t.installTarballApp({universalIdentifier:n.application.universalIdentifier});if(!r.success){let e=_E(r.error),t=e?e.map(e=>e.message).join(`
335
+ `,variables:a},{next:({data:e})=>console.log(e?.logicFunctionLogs.logs),error:e=>console.error(e),complete:()=>console.log(`Completed`)})}},lE=class{constructor(e){this.client=e}async getSchema(e){return this.introspectEndpoint(`/graphql`,e)}async getMetadataSchema(e){return this.introspectEndpoint(`/metadata`,e)}async introspectEndpoint(e,t){try{let n=(0,T.getIntrospectionQuery)(),r={"Content-Type":`application/json`,Accept:`*/*`};t?.appAccessToken&&(r.Authorization=`Bearer ${t.appAccessToken}`);let i=await this.client.post(e,{query:n},{headers:r});return i.data.errors?{success:!1,error:`GraphQL introspection errors: ${JSON.stringify(i.data.errors)}`}:{success:!0,data:(0,T.printSchema)((0,T.buildClientSchema)(i.data.data)),message:`Successfully loaded schema from ${e}`}}catch(t){if(y.default.isAxiosError(t)&&t.response)return{success:!1,error:t.response.data?.errors?.[0]?.message||`Failed to load schema from ${e}`};throw t}}},uE=class{constructor(e){this.apiClient=new tE(e),this.applicationApi=new iE(this.apiClient.client),this.schemaApi=new lE(this.apiClient.client),this.logicFunctionApi=new cE(this.apiClient),this.fileApi=new sE(this.apiClient.client)}validateAuth(){return this.apiClient.validateAuth()}getWorkspaceFrontendUrl(){return this.apiClient.getWorkspaceFrontendUrl()}refreshToken(){return this.apiClient.refreshToken()}findApplicationRegistrationByUniversalIdentifier(...e){return this.applicationApi.findApplicationRegistrationByUniversalIdentifier(...e)}createApplicationRegistration(...e){return this.applicationApi.createApplicationRegistration(...e)}rotateApplicationRegistrationClientSecret(...e){return this.applicationApi.rotateApplicationRegistrationClientSecret(...e)}createDevelopmentApplication(...e){return this.applicationApi.createDevelopmentApplication(...e)}generateApplicationToken(...e){return this.applicationApi.generateApplicationToken(...e)}syncApplication(e,t){return this.applicationApi.syncApplication(e,t)}uninstallApplication(e){return this.applicationApi.uninstallApplication(e)}syncMarketplaceCatalog(){return this.applicationApi.syncMarketplaceCatalog()}getSchema(e){return this.schemaApi.getSchema(e)}getMetadataSchema(e){return this.schemaApi.getMetadataSchema(e)}findLogicFunctions(...e){return this.logicFunctionApi.findLogicFunctions(...e)}executeLogicFunction(...e){return this.logicFunctionApi.executeLogicFunction(...e)}subscribeToLogs(...e){return this.logicFunctionApi.subscribeToLogs(...e)}uploadAppTarball(...e){return this.fileApi.uploadAppTarball(...e)}installTarballApp(...e){return this.fileApi.installTarballApp(...e)}uploadFile(...e){return this.fileApi.uploadFile(...e)}},dE=async e=>{let{tarballPath:t,onProgress:n}=e;e.remote&&$.setActiveRemote(e.remote),n?.(`Uploading ${t}...`);let r=v.default.readFileSync(t),i=await new uE({serverUrl:e.serverUrl,token:e.token}).uploadAppTarball({tarballBuffer:r});return i.success?{success:!0,data:i.data}:{success:!1,error:{code:Q.DEPLOY_FAILED,message:`Upload failed: ${i.error}`}}},fE=e=>PT(()=>dE(e),Q.DEPLOY_FAILED),pE=async e=>{let{appPath:t,onProgress:r}=e,i=await zT({appPath:t,onProgress:r});if(!i.success)return i;if(r?.(`Publishing to npm...`),e.npmTag&&!/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(e.npmTag))return{success:!1,error:{code:Q.PUBLISH_FAILED,message:`Invalid npm tag: ${e.npmTag}`}};let a=process.env.TWENTY_APP_PUBLISH_DISABLE_PROVENANCE===`true`,o=[`publish`,`--access`,`public`,...process.env.ACTIONS_ID_TOKEN_REQUEST_URL!=null&&!a?[`--provenance`]:[],...e.npmTag?[`--tag`,e.npmTag]:[]],s=process.platform===`win32`;try{(0,n.execFileSync)(s?`npm.cmd`:`npm`,o,{cwd:i.data.outputDir,stdio:`inherit`,shell:s})}catch{return{success:!1,error:{code:Q.PUBLISH_FAILED,message:`npm publish failed`}}}return{success:!0,data:{target:`npm`}}},mE=e=>PT(()=>pE(e),Q.PUBLISH_FAILED),hE={name:`twenty-sdk`,version:`2.35.1`,sideEffects:!1,bin:{twenty:`dist/cli.cjs`},files:[`dist`,`README.md`,`CHANGELOG.md`,`package.json`],scripts:{build:`npx rimraf dist && npx vite build`},keywords:[`twenty`,`cli`,`sdk`,`crm`,`application`,`development`],exports:{"./billing":{types:`./dist/billing/index.d.ts`,import:`./dist/billing/index.mjs`,require:`./dist/billing/index.cjs`},"./define":{types:`./dist/define/index.d.ts`,import:`./dist/define/index.mjs`,require:`./dist/define/index.cjs`},"./front-component":{types:`./dist/front-component/index.d.ts`,import:`./dist/front-component/index.mjs`,require:`./dist/front-component/index.cjs`},"./logic-function":{types:`./dist/logic-function/index.d.ts`,import:`./dist/logic-function/index.mjs`,require:`./dist/logic-function/index.cjs`},"./utils":{types:`./dist/utils/index.d.ts`,import:`./dist/utils/index.mjs`,require:`./dist/utils/index.cjs`},"./cli":{types:`./dist/cli/operations/index.d.ts`,import:`./dist/operations.mjs`,require:`./dist/operations.cjs`},"./front-component-renderer":{types:`./dist/front-component-renderer/index.d.ts`,import:`./dist/front-component-renderer.mjs`,require:`./dist/front-component-renderer.cjs`},"./front-component-renderer/build":{types:`./dist/front-component-renderer/build/index.d.ts`,import:`./dist/front-component-renderer/build.mjs`,require:`./dist/front-component-renderer/build.cjs`}},license:`MIT`,dependencies:{"@sniptt/guards":`^0.2.0`,axios:`^1.16.0`,chalk:`^5.3.0`,chokidar:`^4.0.0`,commander:`^12.0.0`,esbuild:`^0.28.1`,graphql:`^16.8.1`,"graphql-sse":`^2.5.4`,ink:`^6.8.0`,inquirer:`^14.0.0`,"jsonc-parser":`^3.2.0`,preact:`^10.28.3`,react:`^19.2.0`,"react-dom":`^19.2.0`,semver:`7.6.3`,sharp:`^0.35.3`,tinyglobby:`^0.2.15`,"twenty-client-sdk":`workspace:*`,typescript:`^5.9.3`,uuid:`^13.0.2`},devDependencies:{"@prettier/sync":`^0.5.2`,"@types/node":`^24.0.0`,"@types/react":`^19.2.0`,"@types/react-dom":`^19.2.0`,"@types/semver":`^7.5.8`,"@typescript/native-preview":`^7.0.0-dev.20260116.1`,"@vitest/coverage-v8":`^4.0.18`,prettier:`^3.1.1`,"rollup-plugin-dts":`^6.4.1`,"ts-morph":`^25.0.0`,"tsc-alias":`^1.8.16`,tsx:`^4.7.0`,"twenty-shared":`workspace:*`,"twenty-ui":`workspace:*`,vite:`^8.0.0`,"vite-plugin-dts":`^4.5.4`,"wait-on":`^9.0.10`},engines:{node:`^24.5.0`,yarn:`^4.0.2`},typesVersions:{"*":{billing:[`dist/billing/index.d.ts`],define:[`dist/define/index.d.ts`],"front-component":[`dist/front-component/index.d.ts`],"logic-function":[`dist/logic-function/index.d.ts`],utils:[`dist/utils/index.d.ts`],cli:[`dist/cli/operations/index.d.ts`],"front-component-renderer":[`dist/front-component-renderer/index.d.ts`],"front-component-renderer/build":[`dist/front-component-renderer/build/index.d.ts`]}}},gE=async n=>{let r=t.default.join(n,e.i);await _b(r);let i=t.default.join(r,`manifest.json`);if(!await hb(i)){let{manifest:e}=await fT(n);return e}return await Sb(i)},_E=t=>{if(!e.yt(t?.errors)||!e.yt(t?.summary))return null;let n=[],r=t.summary.totalErrors;n.push({message:`Sync failed with ${r} error${r===1?``:`s`}`,status:`error`});for(let[r,a]of Object.entries(t.errors)){if(!e.yt(a))continue;let o=t.summary[r]??a.length;n.push({message:`${r}: ${o} error${o===1?``:`s`}`,status:`error`});let s=1;for(let t of a){let r=t.flatEntityMinimalInformation?.universalIdentifier;for(let a of t.errors){let t=[];e.yt(a.value)&&t.push(`value: ${String(a.value)}`),(0,i.isNonEmptyString)(r)&&t.push(`universalIdentifier: ${r}`);let o=t.length>0?` (${t.join(`, `)})`:``;n.push({message:` ${s}. ${a.code}: ${a.message}${o}`,status:`error`}),s++}}}return n},vE=async e=>{e.remote&&$.setActiveRemote(e.remote);let t=new uE,n=await gE(e.appPath);if(!n)return{success:!1,error:{code:Q.MANIFEST_NOT_FOUND,message:"Manifest not found. Run `build` or `dev` first."}};let r=await t.installTarballApp({universalIdentifier:n.application.universalIdentifier});if(!r.success){let e=_E(r.error),t=e?e.map(e=>e.message).join(`
336
336
  `):`Install failed with error: ${r.message??`Unknown error`}`;return{success:!1,error:{code:Q.INSTALL_FAILED,message:t}}}return{success:!0,data:void 0}},yE=e=>PT(()=>vE(e),Q.INSTALL_FAILED),bE=`twenty-app-dev`,xE=`twenty-app-dev-test`,SE=2020,CE=2021,wE=(e=bE)=>{try{return(0,d.execFileSync)(`docker`,[`inspect`,`-f`,`{{.State.Running}}`,e],{encoding:`utf-8`,stdio:[`pipe`,`pipe`,`ignore`]}).trim()===`true`}catch{return!1}},TE=(e=bE)=>{let t=e===`twenty-app-dev-test`?CE:SE;try{let n=(0,d.execFileSync)(`docker`,[`inspect`,`-f`,`{{range .Config.Env}}{{println .}}{{end}}`,e],{encoding:`utf-8`,stdio:[`pipe`,`pipe`,`ignore`]}).match(/^NODE_PORT=(\d+)$/m);return n?parseInt(n[1],10):t}catch{return t}},EE=(e=bE)=>{try{return(0,d.execFileSync)(`docker`,[`inspect`,e],{stdio:[`pipe`,`pipe`,`ignore`]}),!0}catch{return!1}},DE=(e=`latest`)=>`twentycrm/twenty-app-dev:${/^\d+\.\d+\.\d+/.test(e)?`v${e}`:e}`,OE=(e=bE)=>{try{return(0,d.execFileSync)(`docker`,[`inspect`,`-f`,`{{.Image}}`,e],{encoding:`utf-8`,stdio:[`pipe`,`pipe`,`ignore`]}).trim()}catch{return null}},kE=(e=bE)=>{try{return(0,d.execFileSync)(`docker`,[`inspect`,`-f`,`{{.Config.Image}}`,e],{encoding:`utf-8`,stdio:[`pipe`,`pipe`,`ignore`]}).trim()}catch{return null}},AE=e=>{try{return(0,d.execFileSync)(`docker`,[`inspect`,`-f`,`{{.Id}}`,e],{encoding:`utf-8`,stdio:[`pipe`,`pipe`,`ignore`]}).trim()}catch{return null}},jE=(e,t=bE)=>{try{let n=(0,d.execFileSync)(`docker`,[`inspect`,`-f`,`{{range .Config.Env}}{{println .}}{{end}}`,t],{encoding:`utf-8`,stdio:[`pipe`,`pipe`,`ignore`]}).match(RegExp(`^${e}=(.+)$`,`m`));return n?n[1]:null}catch{return null}},ME=()=>{try{return(0,d.execFileSync)(`docker`,[`info`],{stdio:`ignore`}),!0}catch{return!1}},NE=()=>{switch(process.platform){case`darwin`:return` Run: open -a Docker
337
337
  (or launch Docker Desktop from Applications)`;case`linux`:return` Run: sudo systemctl start docker
338
338
  (or launch Docker Desktop if installed)`;case`win32`:return` Launch Docker Desktop from the Start menu`;default:return` See https://docs.docker.com/engine/install/ for installation`}},PE=e=>[`Docker is not running.`,``,`Start Docker:`,NE(),``,`Then retry:`,` ${e}`,``,`Don't have Docker? Install from https://docs.docker.com/get-docker/`].join(`
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./login-Cl-mw1L0.js");var t=async t=>(t?.remote&&e.U.setActiveRemote(t.remote),await new e.U().clearConfig(),{success:!0,data:void 0}),n=n=>e.X(()=>t(n),e.q.AUTH_FAILED),r=`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC0xYzI1LTRkMDItYmYyNS02YWVjY2Y3ZWE0MTkiLCJ0eXBlIjoiQVBJX0tFWSIsIndvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWMyNS00ZDAyLWJmMjUtNmFlY2NmN2VhNDE5IiwiaWF0IjoxNzM1Njg5NjAwLCJleHAiOjQ4OTE0NDk2MDAsImp0aSI6IjIwMjAyMDIwLWY0MDEtNGQ4YS1hNzMxLTY0ZDAwN2MyN2JhZCJ9.bfQjfyN0NEtTCLE_xPyNcwonDzlSXFoP8kdCQTdnuDc`,i=`http://localhost:2020`;exports.APP_ERROR_CODES=e.K,exports.AUTH_ERROR_CODES=e.q,exports.ConfigService=e.U,exports.DEV_API_KEY=r,exports.DEV_API_URL=i,exports.FUNCTION_ERROR_CODES=e.J,exports.SERVER_ERROR_CODES=e.Y,exports.appBuild=e.G,exports.appDeploy=e.R,exports.appDevOnce=e.a,exports.appInstall=e.N,exports.appPublish=e.L,exports.appUninstall=e.v,exports.authLogin=e.t,exports.authLoginOAuth=e.H,exports.authLogout=n,exports.checkDockerRunning=e.T,exports.containerExists=e.E,exports.detectLocalServer=e.m,exports.functionExecute=e._,exports.getContainerDigest=e.D,exports.getEngineVersionRange=e.tt,exports.getImageDigest=e.A,exports.getImageForVersion=e.j,exports.resolveHighestEngineVersion=e.r,exports.serverStart=e.n,exports.serverUpgrade=e.i;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./login-cG7hCrTK.js");var t=async t=>(t?.remote&&e.U.setActiveRemote(t.remote),await new e.U().clearConfig(),{success:!0,data:void 0}),n=n=>e.X(()=>t(n),e.q.AUTH_FAILED),r=`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC0xYzI1LTRkMDItYmYyNS02YWVjY2Y3ZWE0MTkiLCJ0eXBlIjoiQVBJX0tFWSIsIndvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWMyNS00ZDAyLWJmMjUtNmFlY2NmN2VhNDE5IiwiaWF0IjoxNzM1Njg5NjAwLCJleHAiOjQ4OTE0NDk2MDAsImp0aSI6IjIwMjAyMDIwLWY0MDEtNGQ4YS1hNzMxLTY0ZDAwN2MyN2JhZCJ9.bfQjfyN0NEtTCLE_xPyNcwonDzlSXFoP8kdCQTdnuDc`,i=`http://localhost:2020`;exports.APP_ERROR_CODES=e.K,exports.AUTH_ERROR_CODES=e.q,exports.ConfigService=e.U,exports.DEV_API_KEY=r,exports.DEV_API_URL=i,exports.FUNCTION_ERROR_CODES=e.J,exports.SERVER_ERROR_CODES=e.Y,exports.appBuild=e.G,exports.appDeploy=e.R,exports.appDevOnce=e.a,exports.appInstall=e.N,exports.appPublish=e.L,exports.appUninstall=e.v,exports.authLogin=e.t,exports.authLoginOAuth=e.H,exports.authLogout=n,exports.checkDockerRunning=e.T,exports.containerExists=e.E,exports.detectLocalServer=e.m,exports.functionExecute=e._,exports.getContainerDigest=e.D,exports.getEngineVersionRange=e.tt,exports.getImageDigest=e.A,exports.getImageForVersion=e.j,exports.resolveHighestEngineVersion=e.r,exports.serverStart=e.n,exports.serverUpgrade=e.i;
@@ -2,7 +2,7 @@ import { createRequire as e } from "node:module";
2
2
  import { fileURLToPath as t } from "node:url";
3
3
  import { dirname as n } from "node:path";
4
4
  e(import.meta.url), n(t(import.meta.url));
5
- import { A as r, D as i, E as a, G as o, H as s, J as c, K as l, L as u, N as d, R as f, T as p, U as m, X as h, Y as g, _, a as v, i as y, j as b, m as x, n as S, q as C, r as w, t as T, tt as E, v as D } from "./login-CuJiHYwZ.mjs";
5
+ import { A as r, D as i, E as a, G as o, H as s, J as c, K as l, L as u, N as d, R as f, T as p, U as m, X as h, Y as g, _, a as v, i as y, j as b, m as x, n as S, q as C, r as w, t as T, tt as E, v as D } from "./login-BsiMC4oB.mjs";
6
6
  //#region src/cli/operations/logout.ts
7
7
  var O = async (e) => (e?.remote && m.setActiveRemote(e.remote), await new m().clearConfig(), {
8
8
  success: !0,