attio-ts-sdk 0.0.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js DELETED
@@ -1,8 +0,0 @@
1
- import{z as e}from"zod";const t={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},n=({onRequest:e,onSseError:t,onSseEvent:n,responseTransformer:r,responseValidator:i,sseDefaultRetryDelay:a,sseMaxRetryAttempts:o,sseMaxRetryDelay:s,sseSleepFn:c,url:l,...u})=>{let d,f=c??(e=>new Promise(t=>setTimeout(t,e)));return{stream:async function*(){let c=a??3e3,p=0,m=u.signal??new AbortController().signal;for(;!m.aborted;){p++;let a=u.headers instanceof Headers?u.headers:new Headers(u.headers);d!==void 0&&a.set(`Last-Event-ID`,d);try{let t={redirect:`follow`,...u,body:u.serializedBody,headers:a,signal:m},o=new Request(l,t);e&&(o=await e(l,t));let s=await(u.fetch??globalThis.fetch)(o);if(!s.ok)throw Error(`SSE failed: ${s.status} ${s.statusText}`);if(!s.body)throw Error(`No body in SSE response`);let f=s.body.pipeThrough(new TextDecoderStream).getReader(),p=``,h=()=>{try{f.cancel()}catch{}};m.addEventListener(`abort`,h);try{for(;;){let{done:e,value:t}=await f.read();if(e)break;p+=t,p=p.replace(/\r\n/g,`
2
- `).replace(/\r/g,`
3
- `);let a=p.split(`
4
-
5
- `);p=a.pop()??``;for(let e of a){let t=e.split(`
6
- `),a=[],o;for(let e of t)if(e.startsWith(`data:`))a.push(e.replace(/^data:\s*/,``));else if(e.startsWith(`event:`))o=e.replace(/^event:\s*/,``);else if(e.startsWith(`id:`))d=e.replace(/^id:\s*/,``);else if(e.startsWith(`retry:`)){let t=Number.parseInt(e.replace(/^retry:\s*/,``),10);Number.isNaN(t)||(c=t)}let s,l=!1;if(a.length){let e=a.join(`
7
- `);try{s=JSON.parse(e),l=!0}catch{s=e}}l&&(i&&await i(s),r&&(s=await r(s))),n?.({data:s,event:o,id:d,retry:c}),a.length&&(yield s)}}}finally{m.removeEventListener(`abort`,h),f.releaseLock()}break}catch(e){if(t?.(e),o!==void 0&&p>=o)break;await f(Math.min(c*2**(p-1),s??3e4))}}}()}},r=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},i=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},a=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},o=({allowReserved:e,explode:t,name:n,style:a,value:o})=>{if(!t){let t=(e?o:o.map(e=>encodeURIComponent(e))).join(i(a));switch(a){case`label`:return`.${t}`;case`matrix`:return`;${n}=${t}`;case`simple`:return t;default:return`${n}=${t}`}}let c=r(a),l=o.map(t=>a===`label`||a===`simple`?e?t:encodeURIComponent(t):s({allowReserved:e,name:n,value:t})).join(c);return a===`label`||a===`matrix`?c+l:l},s=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},c=({allowReserved:e,explode:t,name:n,style:r,value:i,valueOnly:o})=>{if(i instanceof Date)return o?i.toISOString():`${n}=${i.toISOString()}`;if(r!==`deepObject`&&!t){let t=[];Object.entries(i).forEach(([n,r])=>{t=[...t,n,e?r:encodeURIComponent(r)]});let a=t.join(`,`);switch(r){case`form`:return`${n}=${a}`;case`label`:return`.${a}`;case`matrix`:return`;${n}=${a}`;default:return a}}let c=a(r),l=Object.entries(i).map(([t,i])=>s({allowReserved:e,name:r===`deepObject`?`${n}[${t}]`:t,value:i})).join(c);return r===`label`||r===`matrix`?c+l:l},l=/\{[^{}]+\}/g,u=({path:e,url:t})=>{let n=t,r=t.match(l);if(r)for(let t of r){let r=!1,i=t.substring(1,t.length-1),a=`simple`;i.endsWith(`*`)&&(r=!0,i=i.substring(0,i.length-1)),i.startsWith(`.`)?(i=i.substring(1),a=`label`):i.startsWith(`;`)&&(i=i.substring(1),a=`matrix`);let l=e[i];if(l==null)continue;if(Array.isArray(l)){n=n.replace(t,o({explode:r,name:i,style:a,value:l}));continue}if(typeof l==`object`){n=n.replace(t,c({explode:r,name:i,style:a,value:l,valueOnly:!0}));continue}if(a===`matrix`){n=n.replace(t,`;${s({name:i,value:l})}`);continue}let u=encodeURIComponent(a===`label`?`.${l}`:l);n=n.replace(t,u)}return n},d=({baseUrl:e,path:t,query:n,querySerializer:r,url:i})=>{let a=i.startsWith(`/`)?i:`/${i}`,o=(e??``)+a;t&&(o=u({path:t,url:o}));let s=n?r(n):``;return s.startsWith(`?`)&&(s=s.substring(1)),s&&(o+=`?${s}`),o};function f(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}const p=async(e,t)=>{let n=typeof t==`function`?await t(e):t;if(n)return e.scheme===`bearer`?`Bearer ${n}`:e.scheme===`basic`?`Basic ${btoa(n)}`:n},m=({parameters:e={},...t}={})=>n=>{let r=[];if(n&&typeof n==`object`)for(let i in n){let a=n[i];if(a==null)continue;let l=e[i]||t;if(Array.isArray(a)){let e=o({allowReserved:l.allowReserved,explode:!0,name:i,style:`form`,value:a,...l.array});e&&r.push(e)}else if(typeof a==`object`){let e=c({allowReserved:l.allowReserved,explode:!0,name:i,style:`deepObject`,value:a,...l.object});e&&r.push(e)}else{let e=s({allowReserved:l.allowReserved,name:i,value:a});e&&r.push(e)}}return r.join(`&`)},h=e=>{if(!e)return`stream`;let t=e.split(`;`)[0]?.trim();if(t){if(t.startsWith(`application/json`)||t.endsWith(`+json`))return`json`;if(t===`multipart/form-data`)return`formData`;if([`application/`,`audio/`,`image/`,`video/`].some(e=>t.startsWith(e)))return`blob`;if(t.startsWith(`text/`))return`text`}},ee=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get(`Cookie`)?.includes(`${t}=`)):!1,te=async({security:e,...t})=>{for(let n of e){if(ee(t,n.name))continue;let e=await p(n,t.auth);if(!e)continue;let r=n.name??`Authorization`;switch(n.in){case`query`:t.query||={},t.query[r]=e;break;case`cookie`:t.headers.append(`Cookie`,`${r}=${e}`);break;default:t.headers.set(r,e);break}}},ne=e=>d({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==`function`?e.querySerializer:m(e.querySerializer),url:e.url}),re=(e,t)=>{let n={...e,...t};return n.baseUrl?.endsWith(`/`)&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=g(e.headers,t.headers),n},ie=e=>{let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t},g=(...e)=>{let t=new Headers;for(let n of e){if(!n)continue;let e=n instanceof Headers?ie(n):Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,typeof r==`object`?JSON.stringify(r):r)}return t};var _=class{fns=[];clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){let t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e==`number`?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){let n=this.getInterceptorIndex(e);return this.fns[n]?(this.fns[n]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}};const ae=()=>({error:new _,request:new _,response:new _}),oe=m({allowReserved:!1,array:{explode:!0,style:`form`},object:{explode:!0,style:`deepObject`}}),se={"Content-Type":`application/json`},ce=(e={})=>({...t,headers:se,parseAs:`auto`,querySerializer:oe,...e}),le=(e={})=>{let t=re(ce(),e),r=()=>({...t}),i=e=>(t=re(t,e),r()),a=ae(),o=async e=>{let n={...t,...e,fetch:e.fetch??t.fetch??globalThis.fetch,headers:g(t.headers,e.headers),serializedBody:void 0};return n.security&&await te({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody===``)&&n.headers.delete(`Content-Type`),{opts:n,url:ne(n)}},s=async e=>{let{opts:t,url:n}=await o(e),r={redirect:`follow`,...t,body:f(t)},i=new Request(n,r);for(let e of a.request.fns)e&&(i=await e(i,t));let s=t.fetch,c;try{c=await s(i)}catch(e){let n=e;for(let r of a.error.fns)r&&(n=await r(e,void 0,i,t));if(n||={},t.throwOnError)throw n;return t.responseStyle===`data`?void 0:{error:n,request:i,response:void 0}}for(let e of a.response.fns)e&&(c=await e(c,i,t));let l={request:i,response:c};if(c.ok){let e=(t.parseAs===`auto`?h(c.headers.get(`Content-Type`)):t.parseAs)??`json`;if(c.status===204||c.headers.get(`Content-Length`)===`0`){let n;switch(e){case`arrayBuffer`:case`blob`:case`text`:n=await c[e]();break;case`formData`:n=new FormData;break;case`stream`:n=c.body;break;default:n={};break}return t.responseStyle===`data`?n:{data:n,...l}}let n;switch(e){case`arrayBuffer`:case`blob`:case`formData`:case`text`:n=await c[e]();break;case`json`:{let e=await c.text();n=e?JSON.parse(e):{};break}case`stream`:return t.responseStyle===`data`?c.body:{data:c.body,...l}}return e===`json`&&(t.responseValidator&&await t.responseValidator(n),t.responseTransformer&&(n=await t.responseTransformer(n))),t.responseStyle===`data`?n:{data:n,...l}}let u=await c.text(),d;try{d=JSON.parse(u)}catch{}let p=d??u,m=p;for(let e of a.error.fns)e&&(m=await e(p,c,i,t));if(m||={},t.throwOnError)throw m;return t.responseStyle===`data`?void 0:{error:m,...l}},c=e=>t=>s({...t,method:e}),l=e=>async t=>{let{opts:r,url:i}=await o(t);return n({...r,body:r.body,headers:r.headers,method:e,onRequest:async(e,t)=>{let n=new Request(e,t);for(let e of a.request.fns)e&&(n=await e(n,r));return n},serializedBody:f(r),url:i})};return{buildUrl:ne,connect:c(`CONNECT`),delete:c(`DELETE`),get:c(`GET`),getConfig:r,head:c(`HEAD`),interceptors:a,options:c(`OPTIONS`),patch:c(`PATCH`),post:c(`POST`),put:c(`PUT`),request:s,setConfig:i,sse:{connect:l(`CONNECT`),delete:l(`DELETE`),get:l(`GET`),head:l(`HEAD`),options:l(`OPTIONS`),patch:l(`PATCH`),post:l(`POST`),put:l(`PUT`),trace:l(`TRACE`)},trace:c(`TRACE`)}},v=le(ce({baseUrl:`https://api.attio.com`})),y=e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),attribute_id:e.uuid(),status_id:e.uuid()}),title:e.string(),is_archived:e.boolean(),celebration_enabled:e.boolean(),target_time_in_status:e.union([e.string(),e.null()])}),b=e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),attribute_id:e.uuid(),option_id:e.uuid()}),title:e.string(),is_archived:e.boolean()}),ue=e.union([e.object({referenced_actor_type:e.enum([`workspace-member`]),referenced_actor_id:e.uuid()}),e.object({workspace_member_email_address:e.string()}),e.object({value:e.boolean()}),e.object({currency_value:e.number()}),e.object({value:e.string()}),e.object({domain:e.optional(e.string())}),e.object({email_address:e.optional(e.string())}),e.object({target_object:e.string(),target_record_id:e.uuid()}),e.object({target_object:e.string(),"[slug_or_id_of_matching_attribute]":e.array(e.union([e.object({domain:e.optional(e.string())}),e.object({email_address:e.optional(e.string())}),e.object({value:e.optional(e.number())}),e.object({original_phone_number:e.optional(e.string()),country_code:e.optional(e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)))}),e.object({value:e.optional(e.string())})]))}),e.object({interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))})}),e.object({line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()])}),e.object({value:e.number()}),e.object({first_name:e.optional(e.string()),last_name:e.optional(e.string()),full_name:e.optional(e.string())}),e.object({original_phone_number:e.string(),country_code:e.optional(e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)))}),e.object({status:e.string().min(1)}),e.object({value:e.number()}),e.object({option:e.string().min(1)}),e.object({value:e.string()}),e.object({value:e.iso.date()})]),de=e.union([e.object({referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({attribute_type:e.enum([`date`]),value:e.string()}),e.object({domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({value:e.number(),attribute_type:e.enum([`number`])}),e.object({first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({status:e.uuid(),attribute_type:e.enum([`status`])}),e.object({status:y,attribute_type:e.enum([`status`])}),e.object({value:e.number(),attribute_type:e.enum([`rating`])}),e.object({option:e.uuid(),attribute_type:e.enum([`select`])}),e.object({option:b,attribute_type:e.enum([`select`])}),e.object({value:e.string(),attribute_type:e.enum([`text`])}),e.object({attribute_type:e.enum([`timestamp`]),value:e.iso.date()})]),x=e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),attribute_id:e.uuid()}),title:e.string(),description:e.union([e.string(),e.null()]),api_slug:e.string(),type:e.enum([`text`,`number`,`checkbox`,`currency`,`date`,`timestamp`,`rating`,`status`,`select`,`record-reference`,`actor-reference`,`location`,`domain`,`email-address`,`phone-number`,`interaction`,`personal-name`]),is_system_attribute:e.boolean(),is_writable:e.boolean(),is_required:e.boolean(),is_unique:e.boolean(),is_multiselect:e.boolean(),is_default_value_enabled:e.boolean(),is_archived:e.boolean(),default_value:e.union([e.object({type:e.enum([`dynamic`]),template:e.union([e.enum([`current-user`]),e.string()])}),e.object({type:e.enum([`static`]),template:e.array(de)}),e.null()]),relationship:e.union([e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),attribute_id:e.uuid()}),object_slug:e.string(),title:e.string(),api_slug:e.string(),is_multiselect:e.boolean()}),e.null()]),created_at:e.string(),config:e.object({currency:e.object({default_currency_code:e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`)),display_type:e.enum([`code`,`name`,`narrowSymbol`,`symbol`])}),record_reference:e.object({allowed_object_ids:e.union([e.array(e.uuid()),e.null()])})})}),S=e.object({id:e.object({workspace_id:e.uuid(),list_id:e.uuid()}),api_slug:e.string(),name:e.string(),parent_object:e.array(e.string()),workspace_access:e.enum([`full-access`,`read-and-write`,`read-only`]),workspace_member_access:e.array(e.object({workspace_member_id:e.uuid(),level:e.enum([`full-access`,`read-and-write`,`read-only`])})),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),created_at:e.string()}),C=e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid()}),api_slug:e.union([e.string(),e.null()]),singular_noun:e.union([e.string(),e.null()]),plural_noun:e.union([e.string(),e.null()]),created_at:e.string()}),fe=e.object({id:e.object({workspace_id:e.uuid(),workspace_member_id:e.uuid()}),first_name:e.string(),last_name:e.string(),avatar_url:e.union([e.url(),e.null()]),email_address:e.email(),created_at:e.string(),access_level:e.enum([`admin`,`member`,`suspended`])}),w=e.object({id:e.object({workspace_id:e.uuid(),comment_id:e.uuid()}),thread_id:e.uuid(),content_plaintext:e.string(),entry:e.union([e.object({entry_id:e.uuid(),list_id:e.uuid()}),e.null()]),record:e.object({record_id:e.uuid(),object_id:e.uuid()}),resolved_at:e.union([e.string(),e.null()]),resolved_by:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),created_at:e.string(),author:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))})}),T=e.object({id:e.object({workspace_id:e.uuid(),meeting_id:e.uuid()}),title:e.string(),description:e.string(),is_all_day:e.boolean(),start:e.union([e.object({datetime:e.string(),timezone:e.union([e.string(),e.null()])}),e.object({date:e.string()})]),end:e.union([e.object({datetime:e.string(),timezone:e.union([e.string(),e.null()])}),e.object({date:e.string()})]),participants:e.array(e.object({status:e.enum([`accepted`,`tentative`,`declined`,`pending`]),is_organizer:e.boolean(),email_address:e.union([e.string(),e.null()])})),linked_records:e.array(e.object({object_slug:e.string(),object_id:e.uuid(),record_id:e.uuid()})),created_at:e.string(),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))})}),E=e.object({id:e.object({workspace_id:e.uuid(),note_id:e.uuid()}),parent_object:e.string(),parent_record_id:e.uuid(),title:e.string(),meeting_id:e.union([e.uuid(),e.null()]),content_plaintext:e.string(),content_markdown:e.string(),tags:e.array(e.union([e.object({type:e.enum([`workspace-member`]),workspace_member_id:e.uuid()}),e.object({type:e.enum([`record`]),object:e.string(),record_id:e.uuid()})])),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),created_at:e.string()}),D=e.object({id:e.object({workspace_id:e.uuid(),task_id:e.uuid()}),content_plaintext:e.string(),deadline_at:e.union([e.string(),e.null()]),is_completed:e.boolean(),linked_records:e.array(e.object({target_object_id:e.string(),target_record_id:e.uuid()})),assignees:e.array(e.object({referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.uuid()})),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),created_at:e.string()}),pe=e.object({id:e.object({workspace_id:e.uuid(),thread_id:e.uuid()}),comments:e.array(w).min(1),created_at:e.string()}),me=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.never())}),he=e.object({data:e.array(C)}),ge=e.object({body:e.object({data:e.object({api_slug:e.string(),singular_noun:e.string().min(1),plural_noun:e.string().min(1)})}),path:e.optional(e.never()),query:e.optional(e.never())}),_e=e.object({data:C}),ve=e.object({body:e.optional(e.never()),path:e.object({object:e.string()}),query:e.optional(e.never())}),ye=e.object({data:C}),be=e.object({body:e.object({data:e.object({api_slug:e.optional(e.string()),singular_noun:e.optional(e.string().min(1)),plural_noun:e.optional(e.string().min(1))})}),path:e.object({object:e.string()}),query:e.optional(e.never())}),xe=e.object({data:C}),Se=e.object({body:e.optional(e.never()),path:e.object({target:e.enum([`objects`,`lists`]),identifier:e.string()}),query:e.optional(e.object({limit:e.optional(e.int()),offset:e.optional(e.int()),show_archived:e.optional(e.boolean())}))}),Ce=e.object({data:e.array(x)}),we=e.object({body:e.object({data:e.object({title:e.string(),description:e.union([e.string(),e.null()]),api_slug:e.string(),type:e.enum([`text`,`number`,`checkbox`,`currency`,`date`,`timestamp`,`rating`,`status`,`select`,`record-reference`,`actor-reference`,`location`,`domain`,`email-address`,`phone-number`]),is_required:e.boolean(),is_unique:e.boolean(),is_multiselect:e.boolean(),default_value:e.optional(e.union([e.object({type:e.enum([`dynamic`]),template:e.union([e.enum([`current-user`]),e.string()])}),e.object({type:e.enum([`static`]),template:e.array(ue)}),e.null()])),relationship:e.optional(e.union([e.object({object:e.string(),title:e.string(),api_slug:e.string(),is_multiselect:e.boolean()}),e.null()])),config:e.object({currency:e.optional(e.object({default_currency_code:e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`)),display_type:e.enum([`code`,`name`,`narrowSymbol`,`symbol`])})),record_reference:e.optional(e.object({allowed_objects:e.array(e.string()).min(1)}))})})}),path:e.object({target:e.enum([`objects`,`lists`]),identifier:e.string()}),query:e.optional(e.never())}),Te=e.object({data:x}),Ee=e.object({body:e.optional(e.never()),path:e.object({target:e.enum([`objects`,`lists`]),identifier:e.string(),attribute:e.string()}),query:e.optional(e.never())}),De=e.object({data:x}),Oe=e.object({body:e.object({data:e.object({title:e.optional(e.string()),description:e.optional(e.union([e.string(),e.null()])),api_slug:e.optional(e.string()),is_required:e.optional(e.boolean()),is_unique:e.optional(e.boolean()),default_value:e.optional(e.union([e.object({type:e.enum([`dynamic`]),template:e.union([e.enum([`current-user`]),e.string()])}),e.object({type:e.enum([`static`]),template:e.array(ue)}),e.null()])),config:e.optional(e.object({currency:e.optional(e.object({default_currency_code:e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`)),display_type:e.enum([`code`,`name`,`narrowSymbol`,`symbol`])})),record_reference:e.optional(e.object({allowed_objects:e.array(e.string()).min(1)}))})),is_archived:e.optional(e.boolean())})}),path:e.object({target:e.enum([`objects`,`lists`]),identifier:e.string(),attribute:e.string()}),query:e.optional(e.never())}),ke=e.object({data:x}),Ae=e.object({body:e.optional(e.never()),path:e.object({target:e.enum([`objects`,`lists`]),identifier:e.string(),attribute:e.string()}),query:e.optional(e.object({show_archived:e.optional(e.boolean())}))}),je=e.object({data:e.array(b)}),Me=e.object({body:e.object({data:e.object({title:e.string().min(1)})}),path:e.object({target:e.enum([`objects`,`lists`]),identifier:e.string(),attribute:e.string()}),query:e.optional(e.never())}),Ne=e.object({data:b}),Pe=e.object({body:e.object({data:e.object({title:e.optional(e.string().min(1)),is_archived:e.optional(e.boolean())})}),path:e.object({target:e.enum([`objects`,`lists`]),identifier:e.string(),attribute:e.string(),option:e.string()}),query:e.optional(e.never())}),Fe=e.object({data:b}),Ie=e.object({body:e.optional(e.never()),path:e.object({target:e.enum([`lists`,`objects`]),identifier:e.string(),attribute:e.string()}),query:e.optional(e.object({show_archived:e.optional(e.boolean()).default(!1)}))}),Le=e.object({data:e.array(y)}),Re=e.object({body:e.object({data:e.object({title:e.string().min(1),celebration_enabled:e.optional(e.boolean()).default(!1),target_time_in_status:e.optional(e.union([e.string().regex(/P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(?:T(\d+(?:[\.,]\d+)?H)?(\d+(?:[\.,]\d+)?M)?(\d+(?:[\.,]\d+)?S)?)?)/),e.null()]))})}),path:e.object({target:e.enum([`lists`,`objects`]),identifier:e.string(),attribute:e.string()}),query:e.optional(e.never())}),ze=e.object({data:y}),Be=e.object({body:e.object({data:e.object({title:e.optional(e.string().min(1)),celebration_enabled:e.optional(e.boolean()).default(!1),target_time_in_status:e.optional(e.union([e.string().regex(/P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(?:T(\d+(?:[\.,]\d+)?H)?(\d+(?:[\.,]\d+)?M)?(\d+(?:[\.,]\d+)?S)?)?)/),e.null()])),is_archived:e.optional(e.boolean())})}),path:e.object({target:e.enum([`lists`,`objects`]),identifier:e.string(),attribute:e.string(),status:e.string()}),query:e.optional(e.never())}),Ve=e.object({data:y}),He=e.object({body:e.object({filter:e.optional(e.record(e.string(),e.unknown())),sorts:e.optional(e.array(e.union([e.object({direction:e.enum([`asc`,`desc`]),attribute:e.string(),field:e.optional(e.string())}),e.object({direction:e.enum([`asc`,`desc`]),path:e.array(e.tuple([e.string(),e.string()])),field:e.optional(e.string())})]))),limit:e.optional(e.number()),offset:e.optional(e.number())}),path:e.object({object:e.string()}),query:e.optional(e.never())}),Ue=e.object({data:e.array(e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),created_at:e.string(),web_url:e.url(),values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))}))}),We=e.object({body:e.object({data:e.object({values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({object:e.string()}),query:e.optional(e.never())}),Ge=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),created_at:e.string(),web_url:e.url(),values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),Ke=e.object({body:e.object({data:e.object({values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({object:e.string()}),query:e.object({matching_attribute:e.string()})}),qe=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),created_at:e.string(),web_url:e.url(),values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),Je=e.object({body:e.optional(e.never()),path:e.object({object:e.string(),record_id:e.string()}),query:e.optional(e.never())}),Ye=e.record(e.string(),e.unknown()),Xe=e.object({body:e.optional(e.never()),path:e.object({object:e.string(),record_id:e.uuid()}),query:e.optional(e.never())}),Ze=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),created_at:e.string(),web_url:e.url(),values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),Qe=e.object({body:e.object({data:e.object({values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({object:e.string(),record_id:e.string()}),query:e.optional(e.never())}),$e=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),created_at:e.string(),web_url:e.url(),values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),et=e.object({body:e.object({data:e.object({values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({object:e.string(),record_id:e.string()}),query:e.optional(e.never())}),tt=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),created_at:e.string(),web_url:e.url(),values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),nt=e.object({body:e.optional(e.never()),path:e.object({object:e.string(),record_id:e.uuid(),attribute:e.string()}),query:e.optional(e.object({show_historic:e.optional(e.boolean()).default(!1),limit:e.optional(e.int()),offset:e.optional(e.int())}))}),rt=e.object({data:e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})]))}),it=e.object({body:e.optional(e.never()),path:e.object({object:e.string(),record_id:e.uuid()}),query:e.optional(e.object({limit:e.optional(e.int()),offset:e.optional(e.int())}))}),at=e.object({data:e.array(e.object({list_id:e.uuid(),list_api_slug:e.string(),entry_id:e.uuid(),created_at:e.string()}))}),ot=e.object({body:e.object({query:e.string().max(256),limit:e.optional(e.number().gte(1).lte(25)).default(25),objects:e.array(e.string()).min(1),request_as:e.union([e.object({type:e.enum([`workspace`])}),e.object({type:e.enum([`workspace-member`]),workspace_member_id:e.uuid()}),e.object({type:e.enum([`workspace-member`]),email_address:e.email()})])}),path:e.optional(e.never()),query:e.optional(e.never())}),st=e.object({data:e.array(e.union([e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),record_text:e.string(),record_image:e.union([e.string(),e.null()]),object_slug:e.string()}),e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),record_text:e.string(),record_image:e.union([e.string(),e.null()]),object_slug:e.enum([`people`]),email_addresses:e.array(e.string()),phone_numbers:e.array(e.string())}),e.object({id:e.object({workspace_id:e.uuid(),object_id:e.uuid(),record_id:e.uuid()}),record_text:e.string(),record_image:e.union([e.string(),e.null()]),object_slug:e.enum([`companies`]),domains:e.array(e.string())})]))}),ct=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.never())}),lt=e.object({data:e.array(S)}),ut=e.object({body:e.object({data:e.object({name:e.string(),api_slug:e.string(),parent_object:e.string(),workspace_access:e.enum([`full-access`,`read-and-write`,`read-only`]),workspace_member_access:e.array(e.object({workspace_member_id:e.uuid(),level:e.enum([`full-access`,`read-and-write`,`read-only`])}))})}),path:e.optional(e.never()),query:e.optional(e.never())}),dt=e.object({data:S}),ft=e.object({body:e.optional(e.never()),path:e.object({list:e.string()}),query:e.optional(e.never())}),pt=e.object({data:S}),mt=e.object({body:e.object({data:e.object({name:e.optional(e.string()),api_slug:e.optional(e.string()),workspace_access:e.optional(e.enum([`full-access`,`read-and-write`,`read-only`])),workspace_member_access:e.optional(e.array(e.object({workspace_member_id:e.uuid(),level:e.enum([`full-access`,`read-and-write`,`read-only`])})))})}),path:e.object({list:e.string()}),query:e.optional(e.never())}),ht=e.object({data:S}),gt=e.object({body:e.object({filter:e.optional(e.record(e.string(),e.unknown())),sorts:e.optional(e.array(e.union([e.object({direction:e.enum([`asc`,`desc`]),attribute:e.string(),field:e.optional(e.string())}),e.object({direction:e.enum([`asc`,`desc`]),path:e.array(e.tuple([e.string(),e.string()])),field:e.optional(e.string())})]))),limit:e.optional(e.number()),offset:e.optional(e.number())}),path:e.object({list:e.string()}),query:e.optional(e.never())}),_t=e.object({data:e.array(e.object({id:e.object({workspace_id:e.uuid(),list_id:e.uuid(),entry_id:e.uuid()}),parent_record_id:e.uuid(),parent_object:e.string(),created_at:e.string(),entry_values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))}))}),vt=e.object({body:e.object({data:e.object({parent_record_id:e.uuid(),parent_object:e.string(),entry_values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({list:e.string()}),query:e.optional(e.never())}),yt=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),list_id:e.uuid(),entry_id:e.uuid()}),parent_record_id:e.uuid(),parent_object:e.string(),created_at:e.string(),entry_values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),bt=e.object({body:e.object({data:e.object({parent_record_id:e.uuid(),parent_object:e.string(),entry_values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({list:e.string()}),query:e.optional(e.never())}),xt=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),list_id:e.uuid(),entry_id:e.uuid()}),parent_record_id:e.uuid(),parent_object:e.string(),created_at:e.string(),entry_values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),St=e.object({body:e.optional(e.never()),path:e.object({list:e.string(),entry_id:e.uuid()}),query:e.optional(e.never())}),Ct=e.record(e.string(),e.unknown()),wt=e.object({body:e.optional(e.never()),path:e.object({list:e.string(),entry_id:e.uuid()}),query:e.optional(e.never())}),Tt=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),list_id:e.uuid(),entry_id:e.uuid()}),parent_record_id:e.uuid(),parent_object:e.string(),created_at:e.string(),entry_values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),Et=e.object({body:e.object({data:e.object({entry_values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({list:e.string(),entry_id:e.string()}),query:e.optional(e.never())}),Dt=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),list_id:e.uuid(),entry_id:e.uuid()}),parent_record_id:e.uuid(),parent_object:e.string(),created_at:e.string(),entry_values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),Ot=e.object({body:e.object({data:e.object({entry_values:e.record(e.string(),e.array(e.unknown()))})}),path:e.object({list:e.string(),entry_id:e.string()}),query:e.optional(e.never())}),kt=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),list_id:e.uuid(),entry_id:e.uuid()}),parent_record_id:e.uuid(),parent_object:e.string(),created_at:e.string(),entry_values:e.record(e.string(),e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})])))})}),At=e.object({body:e.optional(e.never()),path:e.object({list:e.string(),entry_id:e.uuid(),attribute:e.string()}),query:e.optional(e.object({show_historic:e.optional(e.boolean()).default(!1),limit:e.optional(e.int()),offset:e.optional(e.int())}))}),jt=e.object({data:e.array(e.union([e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),referenced_actor_type:e.enum([`api-token`,`workspace-member`,`system`,`app`]),referenced_actor_id:e.union([e.uuid(),e.null()]),attribute_type:e.enum([`actor-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.boolean(),attribute_type:e.enum([`checkbox`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),currency_value:e.number(),currency_code:e.optional(e.enum(`ARS.AUD.BRL.BGN.CAD.CLP.CNY.COP.CZK.DKK.EUR.HKD.ISK.INR.ILS.JPY.KES.KRW.MYR.MXN.NTD.NZD.NGN.NOK.XPF.PEN.PHP.PLN.GBP.RWF.SAR.SGD.ZAR.SEK.CHF.THB.AED.UYU.USD`.split(`.`))),attribute_type:e.enum([`currency`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`date`]),value:e.string()}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),domain:e.string(),root_domain:e.string(),attribute_type:e.enum([`domain`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_email_address:e.string(),email_address:e.string(),email_domain:e.string(),email_root_domain:e.string(),email_local_specifier:e.string(),attribute_type:e.enum([`email-address`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),target_object:e.string(),target_record_id:e.uuid(),attribute_type:e.enum([`record-reference`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),interaction_type:e.enum([`calendar-event`,`call`,`chat-thread`,`email`,`in-person-meeting`,`meeting`]),interacted_at:e.iso.datetime(),owner_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`interaction`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),line_1:e.union([e.string(),e.null()]),line_2:e.union([e.string(),e.null()]),line_3:e.union([e.string(),e.null()]),line_4:e.union([e.string(),e.null()]),locality:e.union([e.string(),e.null()]),region:e.union([e.string(),e.null()]),postcode:e.union([e.string(),e.null()]),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),latitude:e.union([e.string().regex(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/),e.null()]),longitude:e.union([e.string().regex(/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/),e.null()]),attribute_type:e.enum([`location`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),first_name:e.string(),last_name:e.string(),full_name:e.string(),attribute_type:e.enum([`personal-name`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),original_phone_number:e.string(),country_code:e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)),phone_number:e.string(),attribute_type:e.enum([`phone-number`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),status:y,attribute_type:e.enum([`status`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.number(),attribute_type:e.enum([`rating`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),option:b,attribute_type:e.enum([`select`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),value:e.string(),attribute_type:e.enum([`text`])}),e.object({active_from:e.iso.datetime(),active_until:e.union([e.iso.datetime(),e.null()]),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),attribute_type:e.enum([`timestamp`]),value:e.iso.date()})]))}),Mt=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.never())}),Nt=e.object({data:e.array(fe)}),Pt=e.object({body:e.optional(e.never()),path:e.object({workspace_member_id:e.uuid()}),query:e.optional(e.never())}),Ft=e.object({data:fe}),It=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.object({limit:e.optional(e.int()),offset:e.optional(e.int()),parent_object:e.optional(e.string()),parent_record_id:e.optional(e.uuid())}))}),Lt=e.object({data:e.array(E)}),Rt=e.object({body:e.object({data:e.object({parent_object:e.string(),parent_record_id:e.uuid(),title:e.string(),format:e.enum([`plaintext`,`markdown`]),content:e.string(),created_at:e.optional(e.string()),meeting_id:e.optional(e.union([e.uuid(),e.null()]))})}),path:e.optional(e.never()),query:e.optional(e.never())}),zt=e.object({data:E}),Bt=e.object({body:e.optional(e.never()),path:e.object({note_id:e.uuid()}),query:e.optional(e.never())}),Vt=e.record(e.string(),e.unknown()),Ht=e.object({body:e.optional(e.never()),path:e.object({note_id:e.uuid()}),query:e.optional(e.never())}),Ut=e.object({data:E}),Wt=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.object({limit:e.optional(e.int()),offset:e.optional(e.int()),sort:e.optional(e.enum([`created_at:asc`,`created_at:desc`])),linked_object:e.optional(e.string()),linked_record_id:e.optional(e.uuid()),assignee:e.optional(e.union([e.string(),e.null()])),is_completed:e.optional(e.boolean())}))}),Gt=e.object({data:e.array(D)}),Kt=e.object({body:e.object({data:e.object({content:e.string().max(2e3),format:e.enum([`plaintext`]),deadline_at:e.union([e.string(),e.null()]),is_completed:e.boolean(),linked_records:e.array(e.union([e.object({target_object:e.string(),target_record_id:e.uuid()}),e.object({target_object:e.string(),"[slug_or_id_of_matching_attribute]":e.array(e.union([e.object({domain:e.optional(e.string())}),e.object({email_address:e.optional(e.string())}),e.object({value:e.optional(e.number())}),e.object({original_phone_number:e.optional(e.string()),country_code:e.optional(e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)))}),e.object({value:e.optional(e.string())})]))})])),assignees:e.array(e.union([e.object({referenced_actor_type:e.enum([`workspace-member`]),referenced_actor_id:e.uuid()}),e.object({workspace_member_email_address:e.string()})]))})}),path:e.optional(e.never()),query:e.optional(e.never())}),qt=e.object({data:D}),Jt=e.object({body:e.optional(e.never()),path:e.object({task_id:e.uuid()}),query:e.optional(e.never())}),Yt=e.record(e.string(),e.unknown()),Xt=e.object({body:e.optional(e.never()),path:e.object({task_id:e.uuid()}),query:e.optional(e.never())}),Zt=e.object({data:D}),Qt=e.object({body:e.object({data:e.object({deadline_at:e.optional(e.union([e.string(),e.null()])),is_completed:e.optional(e.boolean()),linked_records:e.optional(e.array(e.union([e.object({target_object:e.string(),target_record_id:e.uuid()}),e.object({target_object:e.string(),"[slug_or_id_of_matching_attribute]":e.array(e.union([e.object({domain:e.optional(e.string())}),e.object({email_address:e.optional(e.string())}),e.object({value:e.optional(e.number())}),e.object({original_phone_number:e.optional(e.string()),country_code:e.optional(e.enum(`AF.AX.AL.DZ.AS.AD.AO.AI.AQ.AG.AR.AM.AW.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BV.BR.IO.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CX.CC.CO.KM.CG.CD.CK.CR.CI.HR.CU.CW.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FK.FO.FJ.FI.FR.GF.PF.TF.GA.GM.GE.DE.GH.GI.GR.GL.GD.GP.GU.GT.GG.GN.GW.GY.HT.HM.VA.HN.HK.HU.IS.IN.ID.IR.IQ.IE.IM.IL.IT.JM.JP.JE.JO.KZ.KE.KI.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MK.MG.MW.MY.MV.ML.MT.MH.MQ.MR.MU.YT.MX.FM.MD.MC.MN.ME.MS.MA.MZ.MM.NA.NR.NP.NL.AN.NC.NZ.NI.NE.NG.NU.NF.MP.NO.OM.PK.PW.PS.PA.PG.PY.PE.PH.PN.PL.PT.PR.QA.RE.RO.RU.RW.BL.SH.KN.LC.MF.PM.VC.WS.SM.ST.SA.SN.SS.RS.SC.SL.SG.SK.SI.SB.SO.ZA.GS.ES.LK.SD.SR.SJ.SZ.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TK.TO.TT.TN.TR.TM.TC.TV.UG.UA.AE.GB.US.UM.UY.UZ.VU.VE.VN.VG.VI.WF.EH.YE.ZM.ZW.BQ.KP.SX.XK.AC`.split(`.`)))}),e.object({value:e.optional(e.string())})]))})]))),assignees:e.optional(e.array(e.union([e.object({referenced_actor_type:e.enum([`workspace-member`]),referenced_actor_id:e.uuid()}),e.object({workspace_member_email_address:e.string()})])))})}),path:e.object({task_id:e.uuid()}),query:e.optional(e.never())}),$t=e.object({data:D}),en=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.object({record_id:e.optional(e.uuid()),object:e.optional(e.string()),entry_id:e.optional(e.uuid()),list:e.optional(e.string()),limit:e.optional(e.int()),offset:e.optional(e.int())}))}),tn=e.object({data:e.array(pe)}),nn=e.object({body:e.optional(e.never()),path:e.object({thread_id:e.uuid()}),query:e.optional(e.never())}),rn=e.object({data:pe}),an=e.object({body:e.object({data:e.union([e.object({format:e.enum([`plaintext`]),content:e.string(),author:e.object({type:e.enum([`workspace-member`]),id:e.uuid()}),created_at:e.optional(e.string()),thread_id:e.uuid()}),e.object({format:e.enum([`plaintext`]),content:e.string(),author:e.object({type:e.enum([`workspace-member`]),id:e.uuid()}),created_at:e.optional(e.string()),record:e.object({object:e.string(),record_id:e.uuid()})}),e.object({format:e.enum([`plaintext`]),content:e.string(),author:e.object({type:e.enum([`workspace-member`]),id:e.uuid()}),created_at:e.optional(e.string()),entry:e.object({list:e.string(),entry_id:e.string()})})])}),path:e.optional(e.never()),query:e.optional(e.never())}),on=e.object({data:w}),sn=e.object({body:e.optional(e.never()),path:e.object({comment_id:e.uuid()}),query:e.optional(e.never())}),cn=e.record(e.string(),e.unknown()),ln=e.object({body:e.optional(e.never()),path:e.object({comment_id:e.uuid()}),query:e.optional(e.never())}),un=e.object({data:w}),dn=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.object({limit:e.optional(e.int().gte(1).lte(200)).default(50),cursor:e.optional(e.string()),linked_object:e.optional(e.string().min(1)),linked_record_id:e.optional(e.uuid()),participants:e.optional(e.string()).default(``),sort:e.optional(e.enum([`start_asc`,`start_desc`])),ends_from:e.optional(e.union([e.string(),e.null()])),starts_before:e.optional(e.union([e.string(),e.null()])),timezone:e.optional(e.string()).default(`UTC`)}))}),fn=e.object({data:e.array(T),pagination:e.object({next_cursor:e.union([e.string(),e.null()])})}),pn=e.object({body:e.object({data:e.object({title:e.string(),description:e.string(),start:e.union([e.object({datetime:e.iso.datetime(),timezone:e.optional(e.union([e.string(),e.null()]))}),e.object({date:e.string()})]),end:e.union([e.object({datetime:e.iso.datetime(),timezone:e.optional(e.union([e.string(),e.null()]))}),e.object({date:e.string()})]),is_all_day:e.boolean(),participants:e.array(e.object({email_address:e.string(),is_organizer:e.union([e.boolean(),e.enum([`true`]),e.enum([`false`])]),status:e.enum([`accepted`,`tentative`,`declined`,`pending`])})),linked_records:e.optional(e.array(e.object({object:e.string(),record_id:e.uuid()}))),external_ref:e.union([e.string().min(1),e.object({ical_uid:e.string(),provider:e.enum([`google`,`microsoft`]),original_start_time:e.optional(e.string()),is_recurring:e.boolean()})])})}),path:e.optional(e.never()),query:e.optional(e.never())}),mn=e.object({data:T}),hn=e.object({body:e.optional(e.never()),path:e.object({meeting_id:e.uuid()}),query:e.optional(e.never())}),gn=e.object({data:T}),_n=e.object({body:e.optional(e.never()),path:e.object({meeting_id:e.uuid()}),query:e.optional(e.object({limit:e.optional(e.int()),cursor:e.optional(e.string().min(1))}))}),vn=e.object({data:e.array(e.object({id:e.object({workspace_id:e.uuid(),meeting_id:e.uuid(),call_recording_id:e.uuid()}),status:e.enum([`processing`,`completed`,`failed`]),web_url:e.url(),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),created_at:e.string()})),pagination:e.object({next_cursor:e.union([e.string(),e.null()])})}),yn=e.object({body:e.object({data:e.object({video_url:e.url()})}),path:e.object({meeting_id:e.uuid()}),query:e.optional(e.never())}),bn=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),meeting_id:e.uuid(),call_recording_id:e.uuid()}),status:e.enum([`processing`,`completed`,`failed`]),web_url:e.url(),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),created_at:e.string()})}),xn=e.object({body:e.optional(e.never()),path:e.object({meeting_id:e.uuid(),call_recording_id:e.uuid()}),query:e.optional(e.never())}),Sn=e.record(e.string(),e.unknown()),Cn=e.object({body:e.optional(e.never()),path:e.object({meeting_id:e.uuid(),call_recording_id:e.uuid()}),query:e.optional(e.never())}),wn=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),meeting_id:e.uuid(),call_recording_id:e.uuid()}),status:e.enum([`processing`,`completed`,`failed`]),web_url:e.url(),created_by_actor:e.object({id:e.optional(e.string()),type:e.optional(e.enum([`api-token`,`workspace-member`,`system`,`app`]))}),created_at:e.string()})}),Tn=e.object({body:e.optional(e.never()),path:e.object({meeting_id:e.uuid(),call_recording_id:e.uuid()}),query:e.optional(e.object({cursor:e.optional(e.string())}))}),En=e.object({data:e.object({id:e.object({workspace_id:e.uuid(),meeting_id:e.uuid(),call_recording_id:e.uuid()}),transcript:e.array(e.object({speech:e.string(),start_time:e.number(),end_time:e.number(),speaker:e.object({name:e.string()})})),raw_transcript:e.string(),web_url:e.url()}),pagination:e.object({next_cursor:e.union([e.string(),e.null()])})}),Dn=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.object({limit:e.optional(e.int()),offset:e.optional(e.int())}))}),On=e.object({data:e.array(e.object({target_url:e.url().regex(/^https:\/\/.*/),subscriptions:e.array(e.object({event_type:e.enum(`call-recording.created,comment.created,comment.resolved,comment.unresolved,comment.deleted,list.created,list.updated,list.deleted,list-attribute.created,list-attribute.updated,list-entry.created,list-entry.updated,list-entry.deleted,object-attribute.created,object-attribute.updated,note.created,note-content.updated,note.updated,note.deleted,record.created,record.merged,record.updated,record.deleted,task.created,task.updated,task.deleted,workspace-member.created`.split(`,`)),filter:e.union([e.object({$or:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.object({$and:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.null()])})),id:e.object({workspace_id:e.uuid(),webhook_id:e.uuid()}),status:e.enum([`active`,`degraded`,`inactive`]),created_at:e.string()}))}),kn=e.object({body:e.object({data:e.object({target_url:e.url().regex(/^https:\/\/.*/),subscriptions:e.array(e.object({event_type:e.enum(`call-recording.created,comment.created,comment.resolved,comment.unresolved,comment.deleted,list.created,list.updated,list.deleted,list-attribute.created,list-attribute.updated,list-entry.created,list-entry.updated,list-entry.deleted,object-attribute.created,object-attribute.updated,note.created,note-content.updated,note.updated,note.deleted,record.created,record.merged,record.updated,record.deleted,task.created,task.updated,task.deleted,workspace-member.created`.split(`,`)),filter:e.union([e.object({$or:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.object({$and:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.null()])}))})}),path:e.optional(e.never()),query:e.optional(e.never())}),An=e.object({data:e.object({target_url:e.url().regex(/^https:\/\/.*/),subscriptions:e.array(e.object({event_type:e.enum(`call-recording.created,comment.created,comment.resolved,comment.unresolved,comment.deleted,list.created,list.updated,list.deleted,list-attribute.created,list-attribute.updated,list-entry.created,list-entry.updated,list-entry.deleted,object-attribute.created,object-attribute.updated,note.created,note-content.updated,note.updated,note.deleted,record.created,record.merged,record.updated,record.deleted,task.created,task.updated,task.deleted,workspace-member.created`.split(`,`)),filter:e.union([e.object({$or:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.object({$and:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.null()])})),id:e.object({workspace_id:e.uuid(),webhook_id:e.uuid()}),status:e.enum([`active`,`degraded`,`inactive`]),created_at:e.string(),secret:e.string()})}),jn=e.object({body:e.optional(e.never()),path:e.object({webhook_id:e.uuid()}),query:e.optional(e.never())}),Mn=e.record(e.string(),e.unknown()),Nn=e.object({body:e.optional(e.never()),path:e.object({webhook_id:e.uuid()}),query:e.optional(e.never())}),Pn=e.object({data:e.object({target_url:e.url().regex(/^https:\/\/.*/),subscriptions:e.array(e.object({event_type:e.enum(`call-recording.created,comment.created,comment.resolved,comment.unresolved,comment.deleted,list.created,list.updated,list.deleted,list-attribute.created,list-attribute.updated,list-entry.created,list-entry.updated,list-entry.deleted,object-attribute.created,object-attribute.updated,note.created,note-content.updated,note.updated,note.deleted,record.created,record.merged,record.updated,record.deleted,task.created,task.updated,task.deleted,workspace-member.created`.split(`,`)),filter:e.union([e.object({$or:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.object({$and:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.null()])})),id:e.object({workspace_id:e.uuid(),webhook_id:e.uuid()}),status:e.enum([`active`,`degraded`,`inactive`]),created_at:e.string()})}),Fn=e.object({body:e.object({data:e.object({target_url:e.optional(e.url().regex(/^https:\/\/.*/)),subscriptions:e.optional(e.array(e.object({event_type:e.enum(`call-recording.created,comment.created,comment.resolved,comment.unresolved,comment.deleted,list.created,list.updated,list.deleted,list-attribute.created,list-attribute.updated,list-entry.created,list-entry.updated,list-entry.deleted,object-attribute.created,object-attribute.updated,note.created,note-content.updated,note.updated,note.deleted,record.created,record.merged,record.updated,record.deleted,task.created,task.updated,task.deleted,workspace-member.created`.split(`,`)),filter:e.union([e.object({$or:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.object({$and:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.null()])})))})}),path:e.object({webhook_id:e.uuid()}),query:e.optional(e.never())}),In=e.object({data:e.object({target_url:e.url().regex(/^https:\/\/.*/),subscriptions:e.array(e.object({event_type:e.enum(`call-recording.created,comment.created,comment.resolved,comment.unresolved,comment.deleted,list.created,list.updated,list.deleted,list-attribute.created,list-attribute.updated,list-entry.created,list-entry.updated,list-entry.deleted,object-attribute.created,object-attribute.updated,note.created,note-content.updated,note.updated,note.deleted,record.created,record.merged,record.updated,record.deleted,task.created,task.updated,task.deleted,workspace-member.created`.split(`,`)),filter:e.union([e.object({$or:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.object({$and:e.array(e.union([e.object({field:e.string(),operator:e.enum([`equals`]),value:e.string()}),e.object({field:e.string(),operator:e.enum([`not_equals`]),value:e.string()})]))}),e.null()])})),id:e.object({workspace_id:e.uuid(),webhook_id:e.uuid()}),status:e.enum([`active`,`degraded`,`inactive`]),created_at:e.string()})}),Ln=e.object({body:e.optional(e.never()),path:e.optional(e.never()),query:e.optional(e.never())}),Rn=e.union([e.object({active:e.literal(!1)}),e.object({active:e.boolean(),scope:e.string(),client_id:e.string(),token_type:e.enum([`Bearer`]),exp:e.union([e.number(),e.null()]),iat:e.number(),sub:e.uuid(),aud:e.string(),iss:e.enum([`attio.com`]),authorized_by_workspace_member_id:e.uuid(),workspace_id:e.uuid(),workspace_name:e.string(),workspace_slug:e.string(),workspace_logo_url:e.union([e.url(),e.null()])})]),zn=e=>(e?.client??v).get({requestValidator:async e=>await me.parseAsync(e),responseValidator:async e=>await he.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects`,...e}),Bn=e=>(e.client??v).post({requestValidator:async e=>await ge.parseAsync(e),responseValidator:async e=>await _e.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Vn=e=>(e.client??v).get({requestValidator:async e=>await ve.parseAsync(e),responseValidator:async e=>await ye.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}`,...e}),Hn=e=>(e.client??v).patch({requestValidator:async e=>await be.parseAsync(e),responseValidator:async e=>await xe.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Un=e=>(e.client??v).get({requestValidator:async e=>await Se.parseAsync(e),responseValidator:async e=>await Ce.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes`,...e}),Wn=e=>(e.client??v).post({requestValidator:async e=>await we.parseAsync(e),responseValidator:async e=>await Te.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Gn=e=>(e.client??v).get({requestValidator:async e=>await Ee.parseAsync(e),responseValidator:async e=>await De.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}`,...e}),Kn=e=>(e.client??v).patch({requestValidator:async e=>await Oe.parseAsync(e),responseValidator:async e=>await ke.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),qn=e=>(e.client??v).get({requestValidator:async e=>await Ae.parseAsync(e),responseValidator:async e=>await je.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}/options`,...e}),Jn=e=>(e.client??v).post({requestValidator:async e=>await Me.parseAsync(e),responseValidator:async e=>await Ne.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}/options`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Yn=e=>(e.client??v).patch({requestValidator:async e=>await Pe.parseAsync(e),responseValidator:async e=>await Fe.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}/options/{option}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Xn=e=>(e.client??v).get({requestValidator:async e=>await Ie.parseAsync(e),responseValidator:async e=>await Le.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}/statuses`,...e}),Zn=e=>(e.client??v).post({requestValidator:async e=>await Re.parseAsync(e),responseValidator:async e=>await ze.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}/statuses`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Qn=e=>(e.client??v).patch({requestValidator:async e=>await Be.parseAsync(e),responseValidator:async e=>await Ve.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/{target}/{identifier}/attributes/{attribute}/statuses/{status}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),$n=e=>(e.client??v).post({requestValidator:async e=>await He.parseAsync(e),responseValidator:async e=>await Ue.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records/query`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),er=e=>(e.client??v).post({requestValidator:async e=>await We.parseAsync(e),responseValidator:async e=>await Ge.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),tr=e=>(e.client??v).put({requestValidator:async e=>await Ke.parseAsync(e),responseValidator:async e=>await qe.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),nr=e=>(e.client??v).delete({requestValidator:async e=>await Je.parseAsync(e),responseValidator:async e=>await Ye.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records/{record_id}`,...e}),rr=e=>(e.client??v).get({requestValidator:async e=>await Xe.parseAsync(e),responseValidator:async e=>await Ze.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records/{record_id}`,...e}),ir=e=>(e.client??v).patch({requestValidator:async e=>await Qe.parseAsync(e),responseValidator:async e=>await $e.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records/{record_id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),ar=e=>(e.client??v).put({requestValidator:async e=>await et.parseAsync(e),responseValidator:async e=>await tt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records/{record_id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),or=e=>(e.client??v).get({requestValidator:async e=>await nt.parseAsync(e),responseValidator:async e=>await rt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records/{record_id}/attributes/{attribute}/values`,...e}),sr=e=>(e.client??v).get({requestValidator:async e=>await it.parseAsync(e),responseValidator:async e=>await at.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/{object}/records/{record_id}/entries`,...e}),cr=e=>(e.client??v).post({requestValidator:async e=>await ot.parseAsync(e),responseValidator:async e=>await st.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/objects/records/search`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),lr=e=>(e?.client??v).get({requestValidator:async e=>await ct.parseAsync(e),responseValidator:async e=>await lt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists`,...e}),ur=e=>(e.client??v).post({requestValidator:async e=>await ut.parseAsync(e),responseValidator:async e=>await dt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),dr=e=>(e.client??v).get({requestValidator:async e=>await ft.parseAsync(e),responseValidator:async e=>await pt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}`,...e}),fr=e=>(e.client??v).patch({requestValidator:async e=>await mt.parseAsync(e),responseValidator:async e=>await ht.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),pr=e=>(e.client??v).post({requestValidator:async e=>await gt.parseAsync(e),responseValidator:async e=>await _t.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries/query`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),O=e=>(e.client??v).post({requestValidator:async e=>await vt.parseAsync(e),responseValidator:async e=>await yt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),mr=e=>(e.client??v).put({requestValidator:async e=>await bt.parseAsync(e),responseValidator:async e=>await xt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),k=e=>(e.client??v).delete({requestValidator:async e=>await St.parseAsync(e),responseValidator:async e=>await Ct.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries/{entry_id}`,...e}),hr=e=>(e.client??v).get({requestValidator:async e=>await wt.parseAsync(e),responseValidator:async e=>await Tt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries/{entry_id}`,...e}),A=e=>(e.client??v).patch({requestValidator:async e=>await Et.parseAsync(e),responseValidator:async e=>await Dt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries/{entry_id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),gr=e=>(e.client??v).put({requestValidator:async e=>await Ot.parseAsync(e),responseValidator:async e=>await kt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries/{entry_id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),_r=e=>(e.client??v).get({requestValidator:async e=>await At.parseAsync(e),responseValidator:async e=>await jt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/lists/{list}/entries/{entry_id}/attributes/{attribute}/values`,...e}),j=e=>(e?.client??v).get({requestValidator:async e=>await Mt.parseAsync(e),responseValidator:async e=>await Nt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/workspace_members`,...e}),M=e=>(e.client??v).get({requestValidator:async e=>await Pt.parseAsync(e),responseValidator:async e=>await Ft.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/workspace_members/{workspace_member_id}`,...e}),N=e=>(e?.client??v).get({requestValidator:async e=>await It.parseAsync(e),responseValidator:async e=>await Lt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/notes`,...e}),P=e=>(e.client??v).post({requestValidator:async e=>await Rt.parseAsync(e),responseValidator:async e=>await zt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/notes`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),vr=e=>(e.client??v).delete({requestValidator:async e=>await Bt.parseAsync(e),responseValidator:async e=>await Vt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/notes/{note_id}`,...e}),yr=e=>(e.client??v).get({requestValidator:async e=>await Ht.parseAsync(e),responseValidator:async e=>await Ut.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/notes/{note_id}`,...e}),br=e=>(e?.client??v).get({requestValidator:async e=>await Wt.parseAsync(e),responseValidator:async e=>await Gt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/tasks`,...e}),xr=e=>(e.client??v).post({requestValidator:async e=>await Kt.parseAsync(e),responseValidator:async e=>await qt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/tasks`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Sr=e=>(e.client??v).delete({requestValidator:async e=>await Jt.parseAsync(e),responseValidator:async e=>await Yt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/tasks/{task_id}`,...e}),Cr=e=>(e.client??v).get({requestValidator:async e=>await Xt.parseAsync(e),responseValidator:async e=>await Zt.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/tasks/{task_id}`,...e}),wr=e=>(e.client??v).patch({requestValidator:async e=>await Qt.parseAsync(e),responseValidator:async e=>await $t.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/tasks/{task_id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Tr=e=>(e?.client??v).get({requestValidator:async e=>await en.parseAsync(e),responseValidator:async e=>await tn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/threads`,...e}),Er=e=>(e.client??v).get({requestValidator:async e=>await nn.parseAsync(e),responseValidator:async e=>await rn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/threads/{thread_id}`,...e}),Dr=e=>(e.client??v).post({requestValidator:async e=>await an.parseAsync(e),responseValidator:async e=>await on.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/comments`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Or=e=>(e.client??v).delete({requestValidator:async e=>await sn.parseAsync(e),responseValidator:async e=>await cn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/comments/{comment_id}`,...e}),kr=e=>(e.client??v).get({requestValidator:async e=>await ln.parseAsync(e),responseValidator:async e=>await un.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/comments/{comment_id}`,...e}),Ar=e=>(e?.client??v).get({requestValidator:async e=>await dn.parseAsync(e),responseValidator:async e=>await fn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings`,...e}),jr=e=>(e.client??v).post({requestValidator:async e=>await pn.parseAsync(e),responseValidator:async e=>await mn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Mr=e=>(e.client??v).get({requestValidator:async e=>await hn.parseAsync(e),responseValidator:async e=>await gn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings/{meeting_id}`,...e}),Nr=e=>(e.client??v).get({requestValidator:async e=>await _n.parseAsync(e),responseValidator:async e=>await vn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings/{meeting_id}/call_recordings`,...e}),Pr=e=>(e.client??v).post({requestValidator:async e=>await yn.parseAsync(e),responseValidator:async e=>await bn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings/{meeting_id}/call_recordings`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Fr=e=>(e.client??v).delete({requestValidator:async e=>await xn.parseAsync(e),responseValidator:async e=>await Sn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}`,...e}),Ir=e=>(e.client??v).get({requestValidator:async e=>await Cn.parseAsync(e),responseValidator:async e=>await wn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}`,...e}),Lr=e=>(e.client??v).get({requestValidator:async e=>await Tn.parseAsync(e),responseValidator:async e=>await En.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/meetings/{meeting_id}/call_recordings/{call_recording_id}/transcript`,...e}),Rr=e=>(e?.client??v).get({requestValidator:async e=>await Dn.parseAsync(e),responseValidator:async e=>await On.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/webhooks`,...e}),zr=e=>(e.client??v).post({requestValidator:async e=>await kn.parseAsync(e),responseValidator:async e=>await An.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/webhooks`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Br=e=>(e.client??v).delete({requestValidator:async e=>await jn.parseAsync(e),responseValidator:async e=>await Mn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/webhooks/{webhook_id}`,...e}),Vr=e=>(e.client??v).get({requestValidator:async e=>await Nn.parseAsync(e),responseValidator:async e=>await Pn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/webhooks/{webhook_id}`,...e}),Hr=e=>(e.client??v).patch({requestValidator:async e=>await Fn.parseAsync(e),responseValidator:async e=>await In.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/webhooks/{webhook_id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}}),Ur=e=>(e?.client??v).get({requestValidator:async e=>await Ln.parseAsync(e),responseValidator:async e=>await Rn.parseAsync(e),security:[{scheme:`bearer`,type:`http`}],url:`/v2/self`,...e}),Wr=async(e,t={})=>{if(e.length===0)return[];let n=Math.max(1,t.concurrency??4),r=[],i=0,a=0,o=!1,s=t.stopOnError?new AbortController:void 0,c=()=>s?.signal.aborted??o;return new Promise((l,u)=>{let d=()=>{if(!c()){if(i>=e.length&&a===0){l(r);return}for(;a<n&&i<e.length;){let n=i,l=e[n];i+=1,a+=1,l.run(s?{signal:s.signal}:void 0).then(e=>{c()||(r[n]={status:`fulfilled`,value:e,label:l.label})}).catch(e=>{if(t.stopOnError){o||(o=!0,s&&!s.signal.aborted&&s.abort(),u(e));return}c()||(r[n]={status:`rejected`,reason:e,label:l.label})}).finally(()=>{--a,!c()&&d()})}}};d()})};var Gr=class{ttlMs;maxEntries;store=new Map;constructor(e){this.ttlMs=e.ttlMs,this.maxEntries=e.maxEntries}get(e){let t=this.store.get(e);if(t){if(Date.now()>=t.expiresAt){this.store.delete(e);return}return t.value}}set(e,t){if(this.maxEntries&&this.store.size>=this.maxEntries&&!this.store.has(e)){let e=this.store.keys().next().value;e!==void 0&&this.store.delete(e)}this.store.set(e,{value:t,expiresAt:Date.now()+this.ttlMs})}delete(e){this.store.delete(e)}clear(){this.store.clear()}};const F=e=>new Gr(e),I=new Map,Kr=e=>I.get(e),qr=(e,t)=>{I.set(e,t)},Jr=()=>{I.clear()},Yr=e=>{let t=5381;for(let n=0;n<e.length;n+=1)t=t*33^e.charCodeAt(n);return(t>>>0).toString(36)},Xr=`https://api.attio.com`,L=e=>{if(!(typeof process>`u`))return process.env?.[e]},Zr=e=>e.replace(/\/+$/,``),Qr=e=>Zr(e?.baseUrl??L(`ATTIO_BASE_URL`)??Xr),R=e=>e?.apiKey??e?.accessToken??e?.authToken??L(`ATTIO_API_KEY`)??L(`ATTIO_ACCESS_TOKEN`),z=e=>{if(!e||typeof e!=`string`)throw Error(`Missing Attio API key. Set ATTIO_API_KEY or pass apiKey.`);if(/\s/.test(e))throw Error(`Invalid Attio API key: contains whitespace.`);if(e.length<10)throw Error(`Invalid Attio API key: too short.`);return e},$r=e=>e?.responseStyle??`fields`,ei=e=>e?.throwOnError??!0,ti={maxRetries:3,initialDelayMs:500,maxDelayMs:5e3,retryableStatusCodes:[408,429,500,502,503,504],respectRetryAfter:!0},ni=e=>new Promise(t=>setTimeout(t,e)),ri=(e,t,n)=>{if(t.respectRetryAfter&&n&&n>0)return Math.min(n,t.maxDelayMs);let r=t.initialDelayMs*2**e,i=.75+Math.random()*.5;return Math.min(r*i,t.maxDelayMs)},ii=(e,t)=>e===void 0?!0:t.retryableStatusCodes.includes(e),ai=(e,t)=>{let n=e;return n?.isNetworkError?!0:ii(n?.status,t)},oi=e=>{let t=e;if(t?.retryAfterMs)return t.retryAfterMs},si=async(e,t)=>{let n={...ti,...t},r=0;for(;r<=n.maxRetries;)try{return await e()}catch(e){if(!ai(e,n)||r>=n.maxRetries)throw e;await ni(ri(r,n,oi(e))),r+=1}throw Error(`Retry attempts exhausted.`)},B=new Map,ci=e=>B.get(e),li=(e,t)=>{let n=Array.from(new Set(t.map(e=>e.trim()))).filter(Boolean);n.length>0?B.set(e,n):B.delete(e)},ui=e=>{let t=e.data,n=e.message,r=(Array.isArray(t?.path)?t?.path[0]:t?.path)??t?.field??t?.attribute??void 0;if(typeof n!=`string`||typeof r!=`string`)return;let i=[/constraint:\s*([^,]+)/i,/option name\s+'([^']+)'/i,/option name\s+"([^"]+)"/i],a;for(let e of i){let t=n.match(e);if(t?.[1]){a=t[1].trim();break}}return{field:r,value:a}},di=(e,t)=>{let n=[],r=e.length,i=t.length;for(let e=0;e<=i;e+=1)n[e]=[e];for(let e=0;e<=r;e+=1)n[0][e]=e;for(let a=1;a<=i;a+=1)for(let i=1;i<=r;i+=1)t.charAt(a-1)===e.charAt(i-1)?n[a][i]=n[a-1][i-1]:n[a][i]=Math.min(n[a-1][i-1]+1,n[a][i-1]+1,n[a-1][i]+1);return n[i][r]},fi=(e,t)=>{let n=e.toLowerCase();return t.map(e=>({candidate:e,score:di(n,e.toLowerCase())})).sort((e,t)=>e.score-t.score).map(e=>e.candidate)},pi=e=>{if(!e?.isApiError)return e;let t=ui(e);if(!t?.field||!t?.value)return e;let n=B.get(t.field);if(!n?.length)return e;let r=fi(t.value,n).slice(0,3);return e.suggestions={field:t.field,attempted:t.value,bestMatch:r[0],matches:r},e};var V=class extends Error{status;code;type;requestId;data;response;request;retryAfterMs;isNetworkError;isApiError;suggestions;constructor(e,t={}){super(e),this.name=`AttioError`,this.status=t.status,this.code=t.code,this.type=t.type,this.data=t.data}},mi=class extends V{constructor(e,t={}){super(e,t),this.name=`AttioApiError`,this.isApiError=!0}},hi=class extends V{constructor(e,t={}){super(e,t),this.name=`AttioNetworkError`,this.isNetworkError=!0}};const gi=(e,t)=>{if(e)return e.headers.get(t)??void 0},_i=e=>{if(!e)return;let t=e.headers.get(`Retry-After`);if(!t)return;let n=Number(t);if(Number.isFinite(n))return Math.max(0,n*1e3);let r=Date.parse(t);if(!Number.isNaN(r))return Math.max(0,r-Date.now())},vi=(e,t)=>{if(typeof e==`string`)return e;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`)return t.message}return t??`Request failed.`},yi=e=>{if(!e||typeof e!=`object`)return{};let t=e;return{code:typeof t.code==`string`?t.code:void 0,type:typeof t.type==`string`?t.type:void 0,status:typeof t.status_code==`number`?t.status_code:typeof t.status==`number`?t.status:void 0,message:typeof t.message==`string`?t.message:void 0,data:t}},bi=(e,t={})=>{let{response:n,request:r}=t,i=yi(e),a=n?.status??i.status,o=vi(e,n?.statusText??i.message),s=gi(n,`x-request-id`)??gi(n,`x-attio-request-id`);if(n){let t=new mi(o,{...i,status:a});return t.requestId=s,t.response=n,t.request=r,t.data=i.data??e,t.retryAfterMs=_i(n),pi(t)}let c=new hi(o,i);return c.request=r,c},xi=e=>{let t=e?.fetch??globalThis.fetch;if(!t)throw Error(`Fetch is not available in this environment.`);return e?.timeoutMs?async(n,r)=>{let i=new AbortController,a=setTimeout(()=>i.abort(),e.timeoutMs),o=i.signal,s;if(r?.signal)if(typeof AbortSignal<`u`&&`any`in AbortSignal)o=AbortSignal.any([r.signal,i.signal]);else{let e=new AbortController;o=e.signal,r.signal.aborted?e.abort():(s=()=>e.abort(),r.signal.addEventListener(`abort`,s,{once:!0}),i.signal.addEventListener(`abort`,s,{once:!0}))}try{return await t(n,{...r,signal:o})}finally{s&&(r?.signal?.removeEventListener(`abort`,s),i.signal.removeEventListener(`abort`,s)),clearTimeout(a)}}:t},Si=({config:e,authToken:t})=>{if(e.cache?.key)return`${e.cache.key}:${Yr(t)}`},Ci=e=>{e.interceptors.error.use((e,t,n,r)=>bi(e,{response:t,request:n,options:r}))},wi=(e,t)=>{let n=async n=>{let{retry:r,...i}=n;return si(()=>e.request(i),{...t,...r})},r=e=>t=>n({...t,method:e});return{...e,request:n,connect:r(`CONNECT`),delete:r(`DELETE`),get:r(`GET`),head:r(`HEAD`),options:r(`OPTIONS`),patch:r(`PATCH`),post:r(`POST`),put:r(`PUT`),trace:r(`TRACE`)}},H=({config:e={},authToken:t})=>{let n=Qr(e),r=$r(e),i=ei(e),a=e.headers,o=e.retry,s=e.timeoutMs,c={...e};delete c.apiKey,delete c.accessToken,delete c.authToken,delete c.cache,delete c.retry,delete c.timeoutMs,delete c.headers;let l=g({Accept:`application/json`},a),u=le({...c,baseUrl:n,auth:t,headers:l,fetch:xi({...e,timeoutMs:s}),responseStyle:r,throwOnError:i});return Ci(u),wi(u,o)},Ti=(e={})=>H({config:e,authToken:z(R(e))}),Ei=(e={})=>{let t=e.cache?.enabled??!0,n=z(R(e)),r=Si({config:e,authToken:n});if(t&&r){let t=Kr(r);if(t)return t;let i=H({config:e,authToken:n});return qr(r,i),i}return H({config:e,authToken:n})},U=(e={})=>e.client??Ei(e.config??{}),W=(e,t,n)=>({[e]:{[t]:n}}),Di={eq:(e,t)=>W(e,`$eq`,t),contains:(e,t)=>W(e,`$contains`,t),startsWith:(e,t)=>W(e,`$starts_with`,t),endsWith:(e,t)=>W(e,`$ends_with`,t),notEmpty:e=>W(e,`$not_empty`,!0),and:(...e)=>({$and:e}),or:(...e)=>({$or:e}),not:e=>({$not:e})},G=e=>!e||typeof e!=`object`?e:`data`in e?e.data:e,K=e=>{let t=G(e);if(Array.isArray(t))return t;if(t&&typeof t==`object`){let e=t,n=e.data??e.items??e.records;if(Array.isArray(n))return n}return[]},Oi=e=>{let t=e=>{if(!e||typeof e!=`object`)return null;let t=e.next_cursor??e.nextCursor;return typeof t==`string`?t:null};if(e&&typeof e==`object`){let n=t(e.pagination);if(n)return n}let n=G(e);return!n||typeof n!=`object`?null:t(n.pagination)},ki=async(e={})=>K(await lr({client:U(e)})),Ai=async e=>G(await dr({client:U(e),path:{list:e.list}})),ji=async e=>K(await pr({client:U(e),path:{list:e.list},body:{filter:e.filter,limit:e.limit,offset:e.offset},...e.options})),Mi=async e=>G(await O({client:U(e),path:{list:e.list},body:{data:{parent_record_id:e.parentRecordId,entry_values:e.entryValues??{}}},...e.options})),Ni=async e=>G(await A({client:U(e),path:{list:e.list,entry_id:e.entryId},body:{data:{entry_values:e.entryValues}},...e.options})),Pi=async e=>(await k({client:U(e),path:{list:e.list,entry_id:e.entryId},...e.options,throwOnError:!0}),!0),q=300*1e3,J=F({ttlMs:q,maxEntries:200}),Fi=F({ttlMs:q,maxEntries:500}),Ii=F({ttlMs:q,maxEntries:500}),Li=(e,t,n)=>[e,t,n].filter(Boolean).join(`:`),Ri=e.object({title:e.string()}).passthrough(),zi=e=>e.reduce((e,t)=>{let n=Ri.safeParse(t);return n.success&&e.push(n.data.title),e},[]);let Y;(function(e){let t=e.buildPath=e=>({target:e.target,identifier:e.identifier,attribute:e.attribute});e.list=async({input:e,cache:n,fetcher:r})=>{let i=Li(e.target,e.identifier,e.attribute),a=n.get(i);if(a)return a;let o=K(await r({client:U(e),path:t(e),...e.options})),s=zi(o);return li(e.attribute,s),n.set(i,o),o}})(Y||={});const Bi=async e=>{let t=Li(e.target,e.identifier),n=J.get(t);if(n)return n;let r=K(await Un({client:U(e),path:{target:e.target,identifier:e.identifier},...e.options}));return J.set(t,r),r},Vi=async e=>G(await Gn({client:U(e),path:{target:e.target,identifier:e.identifier,attribute:e.attribute},...e.options})),Hi=async e=>Y.list({input:e,cache:Fi,fetcher:qn}),Ui=async e=>Y.list({input:e,cache:Ii,fetcher:Xn}),Wi=async(e={})=>K(await N({client:U(e)})),Gi=async e=>G(await yr({client:U(e),path:{note_id:e.noteId}})),Ki=async e=>G(await P({client:U(e),body:{data:{parent_object:e.parentObject,parent_record_id:e.parentRecordId,title:e.title,content:e.content}},...e.options})),qi=async e=>(await vr({client:U(e),path:{note_id:e.noteId}}),!0),Ji=e=>({items:K(e),nextCursor:Oi(e)}),Yi=async(e,t={})=>{let n=[],r=t.cursor??null,i=0,a=t.maxPages??1/0,o=t.maxItems??1/0;for(;i<a&&n.length<o;){let t=await e(r),{items:a,nextCursor:o}=typeof t==`object`&&t&&Array.isArray(t.items)?t:Ji(t);if(n.push(...a),i+=1,!o)break;r=o}return n.slice(0,o)},X=e=>{if(!e||typeof e!=`object`)return;let t=e,n=t.id;return n?.record_id??n?.company_id??n?.person_id??n?.list_id??n?.task_id??(typeof t.id==`string`?t.id:void 0)??t.record_id??t.company_id??t.person_id??t.list_id??t.task_id},Z=e=>{if(!e||typeof e!=`object`)return;let t=e.values;if(!(!t||typeof t!=`object`||Array.isArray(t)))return t},Xi=e=>{if(!e||typeof e!=`object`)return;let t=e;return X(t)??X(t.data)??X(t.data?.data)??X(t.data?.record)??X(t.data?.items?.[0])},Q=(e,t={})=>{if(!e||typeof e!=`object`)throw Error(`Invalid API response: no data found`);if(!t.allowEmpty&&Object.keys(e).length===0)throw Error(`Invalid API response: empty data object`);if(e.id&&e.id.record_id&&e.values)return e;let n={...e};if(!n.id||!n.id.record_id){let e=Xi(n);e&&(n.id={...n.id,record_id:e})}if(!n.values){let e=n.data;n.values=Z(n.data)??Z(e?.data)??Z(e?.record)??Z(e?.items?.[0])??{}}return n},$=(e,t={})=>e.filter(e=>e&&typeof e==`object`).map(e=>Q(e,t)),Zi=async e=>Q(G(await er({client:U(e),path:{object:e.object},body:{data:{values:e.values}},...e.options}))),Qi=async e=>Q(G(await ir({client:U(e),path:{object:e.object,record_id:e.recordId},body:{data:{values:e.values}},...e.options}))),$i=async e=>Q(G(await tr({client:U(e),path:{object:e.object},body:{data:{values:e.values},matching_attribute:e.matchingAttribute},...e.options}))),ea=async e=>Q(G(await rr({client:U(e),path:{object:e.object,record_id:e.recordId},...e.options}))),ta=async e=>(await nr({client:U(e),path:{object:e.object,record_id:e.recordId},...e.options,throwOnError:!0}),!0),na=async e=>$(K(await $n({client:U(e),path:{object:e.object},body:{filter:e.filter,sorts:e.sorts,limit:e.limit,offset:e.offset},...e.options}))),ra=async e=>$(K(await cr({client:U(e),body:{query:e.query,objects:e.objects,request_as:e.requestAs??{type:`workspace`},limit:e.limit},...e.options}))),ia=async(e={})=>K(await br({client:U(e)})),aa=async e=>G(await Cr({client:U(e),path:{task_id:e.taskId}})),oa=async e=>G(await xr({client:U(e),body:{data:e.data},...e.options})),sa=async e=>G(await wr({client:U(e),path:{task_id:e.taskId},body:{data:e.data},...e.options})),ca=async e=>(await Sr({client:U(e),path:{task_id:e.taskId}}),!0),la=async(e={})=>K(await j({client:U(e)})),ua=async e=>G(await M({client:U(e),path:{workspace_member_id:e.workspaceMemberId}}));export{mi as AttioApiError,V as AttioError,hi as AttioNetworkError,Xr as DEFAULT_BASE_URL,ti as DEFAULT_RETRY_CONFIG,Gr as TtlCache,Mi as addListEntry,ri as calculateRetryDelay,si as callWithRetry,Jr as clearClientCache,Ti as createAttioClient,Ki as createNote,Zi as createRecord,oa as createTask,F as createTtlCache,qi as deleteNote,ta as deleteRecord,ca as deleteTask,Or as deleteV2CommentsByCommentId,k as deleteV2ListsByListEntriesByEntryId,Fr as deleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingId,vr as deleteV2NotesByNoteId,nr as deleteV2ObjectsByObjectRecordsByRecordId,Sr as deleteV2TasksByTaskId,Br as deleteV2WebhooksByWebhookId,pi as enhanceAttioError,Xi as extractRecordId,Di as filters,Ei as getAttioClient,Vi as getAttribute,Hi as getAttributeOptions,Ui as getAttributeStatuses,Kr as getCachedClient,L as getEnvValue,ci as getKnownFieldValues,Ai as getList,Gi as getNote,ea as getRecord,aa as getTask,Un as getV2ByTargetByIdentifierAttributes,Gn as getV2ByTargetByIdentifierAttributesByAttribute,qn as getV2ByTargetByIdentifierAttributesByAttributeOptions,Xn as getV2ByTargetByIdentifierAttributesByAttributeStatuses,kr as getV2CommentsByCommentId,lr as getV2Lists,dr as getV2ListsByList,hr as getV2ListsByListEntriesByEntryId,_r as getV2ListsByListEntriesByEntryIdAttributesByAttributeValues,Ar as getV2Meetings,Mr as getV2MeetingsByMeetingId,Nr as getV2MeetingsByMeetingIdCallRecordings,Ir as getV2MeetingsByMeetingIdCallRecordingsByCallRecordingId,Lr as getV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscript,N as getV2Notes,yr as getV2NotesByNoteId,zn as getV2Objects,Vn as getV2ObjectsByObject,rr as getV2ObjectsByObjectRecordsByRecordId,or as getV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValues,sr as getV2ObjectsByObjectRecordsByRecordIdEntries,Ur as getV2Self,br as getV2Tasks,Cr as getV2TasksByTaskId,Tr as getV2Threads,Er as getV2ThreadsByThreadId,Rr as getV2Webhooks,Vr as getV2WebhooksByWebhookId,j as getV2WorkspaceMembers,M as getV2WorkspaceMembersByWorkspaceMemberId,ua as getWorkspaceMember,Yr as hashToken,ai as isRetryableError,ii as isRetryableStatus,Bi as listAttributes,ki as listLists,Wi as listNotes,ia as listTasks,la as listWorkspaceMembers,bi as normalizeAttioError,Zr as normalizeBaseUrl,Q as normalizeRecord,$ as normalizeRecords,Yi as paginate,Kn as patchV2ByTargetByIdentifierAttributesByAttribute,Yn as patchV2ByTargetByIdentifierAttributesByAttributeOptionsByOption,Qn as patchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatus,fr as patchV2ListsByList,A as patchV2ListsByListEntriesByEntryId,Hn as patchV2ObjectsByObject,ir as patchV2ObjectsByObjectRecordsByRecordId,wr as patchV2TasksByTaskId,Hr as patchV2WebhooksByWebhookId,Wn as postV2ByTargetByIdentifierAttributes,Jn as postV2ByTargetByIdentifierAttributesByAttributeOptions,Zn as postV2ByTargetByIdentifierAttributesByAttributeStatuses,Dr as postV2Comments,ur as postV2Lists,O as postV2ListsByListEntries,pr as postV2ListsByListEntriesQuery,jr as postV2Meetings,Pr as postV2MeetingsByMeetingIdCallRecordings,P as postV2Notes,Bn as postV2Objects,er as postV2ObjectsByObjectRecords,$n as postV2ObjectsByObjectRecordsQuery,cr as postV2ObjectsRecordsSearch,xr as postV2Tasks,zr as postV2Webhooks,mr as putV2ListsByListEntries,gr as putV2ListsByListEntriesByEntryId,tr as putV2ObjectsByObjectRecords,ar as putV2ObjectsByObjectRecordsByRecordId,ji as queryListEntries,na as queryRecords,Pi as removeListEntry,U as resolveAttioClient,R as resolveAuthToken,Qr as resolveBaseUrl,$r as resolveResponseStyle,ei as resolveThrowOnError,Wr as runBatch,ra as searchRecords,qr as setCachedClient,ni as sleep,Ji as toPageResult,G as unwrapData,K as unwrapItems,Oi as unwrapPaginationCursor,li as updateKnownFieldValues,Ni as updateListEntry,Qi as updateRecord,sa as updateTask,$i as upsertRecord,z as validateAuthToken};
8
- //# sourceMappingURL=browser.js.map