@standards/schema 1.0.0-alpha.444 → 1.0.0-alpha.446

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.
Files changed (38) hide show
  1. package/dist/all-2xry8t7d.js +4 -0
  2. package/dist/all-BWpaP2E2.mjs +4 -0
  3. package/dist/api/index.d.mts +110 -69
  4. package/dist/api/index.d.ts +110 -69
  5. package/dist/api/index.js +1 -1
  6. package/dist/api/index.mjs +1 -1
  7. package/dist/attribute-validators-CFa9B00S.mjs +11 -0
  8. package/dist/attribute-validators-Djse5LWc.js +11 -0
  9. package/dist/{exceptions-zQlC2r1F.d.mts → exceptions-BjtmXIip.d.mts} +10 -2
  10. package/dist/{exceptions-YHdKk5N8.d.ts → exceptions-CxTJ-9hJ.d.ts} +10 -2
  11. package/dist/exceptions.d.mts +1 -1
  12. package/dist/exceptions.d.ts +1 -1
  13. package/dist/exceptions.js +1 -1
  14. package/dist/exceptions.mjs +1 -1
  15. package/dist/{index-BxDb1xz7.d.ts → index-BoesrnBX.d.ts} +2204 -3098
  16. package/dist/index.d.mts +4 -4
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +2 -2
  19. package/dist/index.mjs +2 -2
  20. package/dist/record-operation-BBOde9mE.mjs +2 -0
  21. package/dist/record-operation-BLhz84I4.js +2 -0
  22. package/dist/{record-query-CJVicxN7.d.mts → record-query-BMeq7JRi.d.mts} +2185 -3079
  23. package/dist/{utils-CwQlKDYz.d.ts → utils-BdmqhdNL.d.ts} +1 -1
  24. package/dist/{utils-BZMgedee.d.mts → utils-DPto28bh.d.mts} +1 -1
  25. package/dist/utils.d.mts +1 -1
  26. package/dist/utils.d.ts +1 -1
  27. package/dist/validation/all.d.mts +2 -2
  28. package/dist/validation/all.d.ts +2 -2
  29. package/dist/validation/all.js +1 -1
  30. package/dist/validation/all.mjs +1 -1
  31. package/openapi.json +193 -192
  32. package/package.json +2 -2
  33. package/dist/all-BrGOpgV8.js +0 -4
  34. package/dist/all-Df9IeCkI.mjs +0 -4
  35. package/dist/attribute-validators-BJdOkURX.mjs +0 -11
  36. package/dist/attribute-validators-rgM_bLG1.js +0 -11
  37. package/dist/record-operation-BrYpYAKR.js +0 -2
  38. package/dist/record-operation-DSjDUW-6.mjs +0 -2
@@ -0,0 +1,2 @@
1
+ /*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
2
+ const e=require("./attribute-validators-Djse5LWc.js");require("./zod-locale.js");const t=require("./exceptions.js");let n=require("zod");n=e.__toESM(n);let r=require("@standards/constants");const i=n.codec(n.iso.datetime({offset:!0}),n.date(),{decode:e=>new Date(e),encode:e=>e.toISOString()});function brandedString(){return n.string()}function outputSchemaOf(e){return`_zod`in e.output?e.output:void 0}function decodeOperationOutput(e,t){let r=outputSchemaOf(e);if(r===void 0)return t;let i=n.safeDecode(r,t);return i.success?i.data:t}const a=[{id:`data`,capabilities:[{id:`forms`,resources:[`forms`],levels:[{id:`fill`,add:[`read`]},{id:`edit`,add:[`create`,`update`,`delete`]},{id:`manage`,add:[`manage`]}]},{id:`emails`,resources:[`emails`],levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`,`delete`]}]}]},{id:`structure`,capabilities:[{id:`schema`,resources:[`architect`],levels:[{id:`use`,add:[`read`]},{id:`edit`,add:[`create`,`update`,`delete`]}]},{id:`pages`,resources:[`pages`],levels:[{id:`read`,add:[`read`]},{id:`create`,add:[`create`,`update`,`delete`]}]}]},{id:`ai`,capabilities:[{id:`agents`,resources:[`agents`],levels:[{id:`chat`,add:[`read`]},{id:`create`,add:[`create`]},{id:`build`,add:[`update`,`delete`]},{id:`manage`,add:[`manage`]}]},{id:`environments`,resources:[`environments`],levels:[{id:`use`,add:[`read`]},{id:`create`,add:[`create`]}]},{id:`browser-profiles`,resources:[`browser-profiles`],levels:[{id:`use`,add:[`create`]}]},{id:`private-secrets`,resources:[`private-secrets`],levels:[{id:`use`,add:[`create`]}]},{id:`routine-audiences`,resources:[`routine-audiences`],levels:[{id:`use`,add:[`create`]}]},{id:`supervision`,resources:[`supervision`],levels:[{id:`use`,add:[`create`]}]}]},{id:`files`,capabilities:[{id:`files`,resources:[`files`,`documents`],levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`]},{id:`full`,add:[`delete`]}]}]},{id:`team`,capabilities:[{id:`people`,resources:[`people`],levels:[{id:`view`,add:[`read`]},{id:`invite`,add:[`create`]},{id:`manage`,add:[`update`,`delete`]}]}]},{id:`integrations`,capabilities:[{id:`connectors`,resources:[`connectors`],levels:[{id:`use`,add:[`read`,`create`,`update`,`delete`]}]},{id:`workspace-mailboxes`,resources:[`workspace-mailboxes`],levels:[{id:`manage`,add:[`delete`]}]},{id:`api-keys`,resources:[`api-keys`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`create`,`delete`]}]},{id:`env-vars`,resources:[`env-vars`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`create`,`delete`]}]},{id:`devices`,resources:[`devices`],levels:[{id:`manage`,add:[`manage`]}]}]},{id:`administration`,capabilities:[{id:`settings`,resources:[`settings`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`update`,`delete`,`manage`]}]},{id:`audit`,resources:[`audit`],levels:[{id:`view`,add:[`read`]}]},{id:`billing`,resources:[`billing`],levels:[{id:`view`,add:[`read`]}]}]}],o=`none`,s=`custom`,c={actions:[`read`,`create`,`update`,`delete`],purge:`manage`,levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`]},{id:`full`,add:[`delete`]}]},l=a.flatMap(e=>e.capabilities),ee=l.flatMap(e=>e.resources),te=new Map(l.flatMap(e=>e.resources.map(t=>[t,e])));function isCatalogResource(e){return te.has(e)}function capabilityForResource(e){let n=te.get(e);if(!n)throw new t.SchemaError(`Unknown catalog resource "${e}"`,t.SchemaErrorCode.INVARIANT_VIOLATION);return n}function sameActions(e,t){let n=new Set(e),r=new Set(t);return n.size===r.size&&[...n].every(e=>r.has(e))}function levelActions(e,t){let n=/* @__PURE__ */ new Set;for(let r of e.levels){for(let e of r.add)n.add(e);if(r.id===t)return[...n]}return[]}function levelFloor(e,t){let n=e.levels[e.levels.length-1];if(t.includes(`*`)&&n)return n.id;let r=new Set(t),i=o;for(let t of e.levels){if(!t.add.every(e=>r.has(e)))break;i=t.id}return i}function levelOf(e,t){if(t.length===0)return o;let n=e.levels[e.levels.length-1];if(t.includes(`*`)&&n)return n.id;let r=new Set(t),i=/* @__PURE__ */ new Set;for(let t of e.levels){for(let e of t.add)i.add(e);if(i.size===r.size&&[...r].every(e=>i.has(e)))return t.id}return s}const u=[`read`,`create`,`update`,`delete`,`manage`],d=n.object({scope:n.enum([`object`,`system`]),target:n.string().min(1),actions:n.array(n.enum(u))}).strict();function findGrantIssues(e,t){let n=[],r=/* @__PURE__ */ new Map;for(let i of e){let e=d.safeParse(i);if(!e.success){let e=typeof i==`object`&&i&&`target`in i?String(i.target):`?`;n.push({target:e,reason:`shape`});continue}let a=e.data;if(a.scope===`system`){if(!isCatalogResource(a.target)){n.push({target:a.target,reason:`unknown-resource`});continue}if(levelOf(capabilityForResource(a.target),a.actions)===`custom`){n.push({target:a.target,reason:`off-level`});continue}r.set(a.target,a.actions);continue}if(a.target!==`*`&&!t.objectNames.has(a.target)){n.push({target:a.target,reason:`unknown-object`});continue}let o=a.target===`*`?[...c.actions,c.purge]:c.actions;a.actions.every(e=>o.includes(e))||n.push({target:a.target,reason:`object-action`})}let i=/* @__PURE__ */ new Set;for(let[e,t]of r){let a=capabilityForResource(e);if(!i.has(a)){for(let o of a.resources)if(!sameActions(t,r.get(o)??[])){n.push({target:e,reason:`split-capability`}),i.add(a);break}}}return n}const ne=n.enum([...u,`*`]),re=n.object({id:n.string(),tenantId:n.string(),name:n.string(),label:n.string(),description:n.string().optional(),system:n.boolean(),createdAt:i,updatedAt:i}),ie=n.object({id:n.string(),roleId:n.string(),scope:d.shape.scope,target:n.string(),actions:n.array(ne),createdAt:i}),ae=n.object({objectPermissions:n.record(n.string(),n.array(ne)),systemPermissions:n.record(n.string(),n.array(ne))}),oe=n.object({canRead:n.boolean(),canCreate:n.boolean(),canUpdate:n.boolean(),canDelete:n.boolean(),canManage:n.boolean()}),se=re.pick({id:!0,name:!0,label:!0}),ce=n.object({id:n.string(),tenantId:n.string(),userProfileId:n.string().nullable(),name:n.string(),prefix:n.string(),expiresAt:n.string().nullable(),lastUsedAt:n.string().nullable(),revokedAt:n.string().nullable(),createdAt:n.string(),createdBy:n.string(),roles:n.array(se).optional(),authorityActorId:n.string().nullable(),detachedAt:n.string().nullable(),detachedBy:n.string().nullable(),mirrorsOwner:n.boolean()}),le=ce.extend({secret:n.string()}),ue=[`user`,`agent`,`api_key`,`system`],de={id:n.string(),tenantId:brandedString(),displayName:n.string(),avatarUrl:n.string().nullable().optional(),metadata:n.record(n.string(),n.unknown()),deletedAt:i.nullable().optional(),anonymizedAt:i.nullable().optional(),createdAt:i,updatedAt:i};function subjectActor(e,t){return n.object({...de,type:n.literal(e),status:n.literal(t),subjectId:t===`deleted`?n.string().nullable():n.string()})}function subjectActors(e){return n.discriminatedUnion(`status`,[subjectActor(e,`active`),subjectActor(e,`suspended`),subjectActor(e,`deleted`)])}const fe=n.discriminatedUnion(`type`,[subjectActors(`user`),subjectActors(`agent`),subjectActors(`api_key`),n.object({...de,type:n.literal(`system`),status:n.enum([`active`,`suspended`,`deleted`]),subjectId:n.null().optional()})]);function unchecked(){return n.custom()}const pe=[`question`,`approval`,`review`,`handoff`,`report`,`fyi`],me=[`unread`,`read`,`archived`],he=[`none`,`pending`,`completed`,`dismissed`,`expired`],ge=[`open`,`snoozed`,`closed`,`answered`,`withdrawn`,`expired`,`unread`,`read`,`archived`],_e=[`record`,`session`,`document`,`agent`,`routine`,`page`,`email_thread`,`url`],ve=n.object({targetType:n.enum(_e),targetId:n.string(),objectName:n.string().optional(),label:n.string().optional()});function formatDecisionLink(e){return e.targetType===`record`?`record:${e.objectName??``}:${e.targetId}`:`${e.targetType}:${e.targetId}`}function parseDecisionLink(e){let[t,...n]=e.split(`:`);if(!_e.includes(t??``))return null;let r=t;if(r===`record`){let[e,t]=n;return n.length===2&&e&&t?{targetType:r,targetId:t,objectName:e}:null}let i=n.join(`:`);return i?{targetType:r,targetId:i}:null}function decisionThreadKey(e){return`decision:${e}`}const ye=`agent.question`,be=`agent.approval`,xe=`agent.review`,Se=`agent.setup`,Ce=`agent.routine_run.failed`,we=`agent.message`,Te=`connector.connection.reauth_required`,Ee=`connector.connection.error`,De=`connector.connection.send_not_granted`,Oe=`record.assigned`,f=`record.mentioned`,p=`access.granted`,m=`environment.build.failed`,h=`person.decision`,ke=`bundle.setup`,Ae=[ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,f,p,m,h,ke],je=[`question`,`approval`,`review`,`handoff`];function isActionableDecisionKind(e){return je.includes(e)}const Me=[`agents`,`connectors`,`assignment`,`mentions`,`sharing`],Ne={[ye]:{kind:`question`,area:null},[be]:{kind:`approval`,area:null},[xe]:{kind:`review`,area:null},[Se]:{kind:`handoff`,area:null},[Ce]:{kind:`question`,area:`agents`},[we]:{kind:`report`,area:`agents`},[Te]:{kind:`handoff`,area:`connectors`},[Ee]:{kind:`handoff`,area:`connectors`},[De]:{kind:`handoff`,area:`connectors`},[Oe]:{kind:`fyi`,area:`assignment`},[f]:{kind:`fyi`,area:`mentions`},[p]:{kind:`fyi`,area:`sharing`},[m]:{kind:`fyi`,area:`agents`},[h]:{kind:`question`,area:null},[ke]:{kind:`handoff`,area:null}},Pe=[`person`,`agent`,`system`],Fe=n.object({actorId:n.string(),kind:n.enum(Pe),label:n.string()}),Ie=n.object({id:n.string(),tenantId:n.string(),senderActorId:n.string().optional(),rootActorId:n.string().optional(),triggeredByActorId:n.string().optional(),kind:n.enum(pe),type:n.string(),title:n.string(),summary:n.string().optional(),questions:unchecked().optional(),answer:unchecked().optional(),answeredBy:n.string().optional(),effect:n.string().optional(),links:n.array(ve),sender:Fe.optional(),recipientActorIds:n.array(n.string()).optional(),payload:n.record(n.string(),n.unknown()),threadKey:n.string(),idempotencyKey:n.string().optional(),createdAt:i,updatedAt:i}),Le=n.object({documentId:n.string(),fileId:n.string(),name:n.string(),mimeType:n.string(),size:n.number(),url:n.string()}),Re=n.object({id:n.string(),tenantId:n.string(),decisionId:n.string(),recipientActorId:n.string(),inboxState:n.enum(me),workState:n.enum(he),readAt:i.optional(),archivedAt:i.optional(),snoozedUntil:i.optional(),completedAt:i.optional(),dismissedAt:i.optional(),createdAt:i,updatedAt:i}),ze=`transfers`;function isDecisionTransfer(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.fromActorId==`string`&&typeof t.toActorId==`string`&&typeof t.toLabel==`string`&&typeof t.at==`string`}function decisionTransfersOf(e){let t=e.payload[ze];return Array.isArray(t)?t.filter(isDecisionTransfer):[]}function decisionTransferBy(e,t){return decisionTransfersOf(e).filter(e=>e.fromActorId===t).at(-1)}function decisionTransferTo(e,t){return decisionTransfersOf(e).filter(e=>e.toActorId===t).at(-1)}function decisionHandedBy(e,t){return decisionTransferTo(e,t)?.fromActorId}const Be=n.object({decision:Ie,recipient:Re,testLink:n.object({link:unchecked(),canOpen:n.boolean()}).optional()}),Ve=n.object({items:n.array(Be),nextCursor:n.string().optional()}),He=[`open`,`answered`,`withdrawn`,`expired`,`info`],Ue=n.object({open:n.number(),unread:n.number()}),We=n.object({archivedCount:n.number()}),Ge=n.object({to:n.array(n.string()).nullable()}),Ke=[`completed`,`failed`,`cancelled`];function invalidSessionState(e){throw new t.SchemaError(e,t.SchemaErrorCode.INVARIANT_VIOLATION)}function assertSessionState(e){e.phase===`running`?e.runningTurnId===void 0&&invalidSessionState(`running session without runningTurnId`):e.runningTurnId!==void 0&&invalidSessionState(`runningTurnId present on a ${e.phase} session`),e.phase===`parked`?e.parkedOn===void 0&&invalidSessionState(`parked session without parkedOn`):e.parkedOn!==void 0&&invalidSessionState(`parkedOn present on a ${e.phase} session`),e.locked===!0&&e.phase!==`parked`&&invalidSessionState(`locked ${e.phase} session`),e.parkedOn===`human`?e.humanRequestIds===void 0&&invalidSessionState(`human-parked session without humanRequestIds`):e.humanRequestIds!==void 0&&invalidSessionState(`humanRequestIds present on a session not parked on a human`)}const qe=[`createdAt`,`lastActivity`],Je=[`mine`,`shared`,`team`],Ye=Object.freeze({mutation:`ask`,destructive:`ask`,outward:`ask`}),Xe=[`active`,`completed`,`abandoned`],Ze=[`openai`,`anthropic`,`google`,`spacexai`,`deepseek`,`moonshotai`,`alibaba`,`mistral`,`minimax`,`meta`,`zai`,`cursor`],Qe=[`standard`,`fast`],$e=[`none`,`minimal`,`low`,`medium`,`high`,`xhigh`],et=[`conversation`,`writing`,`coding`,`analysis`,`extraction`],tt=[`light`,`standard`,`heavy`],nt=[`manual`,`auto`],rt={interactive:{inputPerMillionUsd:5,outputPerMillionUsd:25},delegated:{inputPerMillionUsd:2,outputPerMillionUsd:12}},it=[`model`,`speed`,`reasoning`,`imageModel`,`routing`];function mergeSessionInferencePatch(e,t){let n={...e};for(let e of it){let r=t[e];r===null?delete n[e]:r!==void 0&&Object.assign(n,{[e]:r})}return t.model&&t.routing===void 0&&(n.routing=`manual`),n}function isRoutineActorMetadata(e){return e?.kind===`routine`}const at=[`octopus`,`clover`,`flower`,`triangle`,`square`,`blob`,`circle`,`drop`,`hexagon`,`pill`,`pebble`,`puddle`],ot=[`relaxed`,`neutral`];function agentDisplayName(e){return e.label?.trim()||e.name}const st=[`approval-requested`,`approval-responded`,`approval-dispatched`],ct=[`streaming`,`running`,`pending`,...st];function isOpenToolPartState(e){return ct.includes(e)}function isToolApprovalState(e){return st.includes(e)}const lt=[`records`,`descendants`,`brokenLinks`,`denied`,`files`];function isToolImpactCountKey(e){return lt.includes(e)}const ut=[`CREDITS_EXHAUSTED`,`MEMBER_CAP_REACHED`,`WAKE_BUDGET_SPENT`];function isSystemPartCode(e){return typeof e==`string`&&ut.includes(e)}function compareAgentSessionMessages(e,t){let n=e.createdAt.getTime()-t.createdAt.getTime();return n===0?e.id.localeCompare(t.id):n}function orderAgentSessionMessages(e){return[...e].sort(compareAgentSessionMessages)}const dt=[`Very economical`,`Balanced`,`Powerful`,`Very powerful`],ft=[`text`,`image`,`audio`,`video`,`pdf`],pt=[`unsupported`,`effort`,`toggle`,`budget`,`model-controlled`],mt=`agent-notification`;function isAgentNotificationMetadata(e){return e?.kind===mt}const ht=`agent-message`,gt=`runOrigin`;function readRunOriginMetadata(e){let t=e?.[gt];if(typeof t!=`object`||!t)return;let{source:n,sender:r}=t;if(typeof n==`string`)return typeof r==`string`&&r!==``?{source:n,sender:r}:{source:n}}function isAgentMessageMetadata(e){return e?.kind===ht}const _t=`agent-wake`;function isAgentWakeMetadata(e){return e?.kind===_t}const vt=`architect-publication`;function isArchitectPublicationMetadata(e){return e?.kind===vt}const yt=[`object`,`attribute`,`view`,`page`],bt=[`objectName`,`attributeName`,`viewName`,`pageId`];function readPublishRefusalTarget(e){if(typeof e!=`object`||!e)return;let t=e,n=yt.find(e=>e===t.kind);if(n===void 0)return;let r={kind:n};for(let e of bt)typeof t[e]==`string`&&(r[e]=t[e]);return r}function readArchitectPublication(e){if(!isArchitectPublicationMetadata(e))return;let t=e?.publication;if(typeof t!=`object`||!t)return;let n=t;if(n.outcome===`published`){let e=n.operations;return typeof e==`number`&&Number.isInteger(e)&&e>=0?{outcome:`published`,operations:e}:void 0}if(n.outcome!==`refused`)return;let r=readPublishRefusalTarget(n.target);return{outcome:`refused`,...r?{target:r}:{},...typeof n.reason==`string`?{reason:n.reason}:{},...typeof n.code==`string`?{code:n.code}:{}}}const xt=[`pending`,`in_progress`,`completed`,`blocked`],St=[`objects`,`fields`,`relations`,`views`,`samples`],g=[`sandbox`,`web`,`image`,`memory`,`bulk`,`activity`,`orchestration`,`host`,`cloud-browser`,`agent-config`],Ct=`browser_launch`,_=[`mcp`,`email.read`,`email.send`,`calendar.read`,`github`,`slack.read`,`slack.write`,`device`,`browser-profile`,`login`],wt=[`definition`,`default`,`child`,`inline`],Tt=`/v1/device-worker/channel`,Et={initialMs:1e3,maxMs:3e4};function deviceChannelUrl(e){let t=new URL(e);return`${t.protocol===`https:`?`wss:`:`ws:`}//${t.host}${Tt}`}function computeRetryDelay(e,t,n){return Math.min(n.initialMs*2**e,n.maxMs)+Math.floor(t()*250)}function computeReconnectDelay(e,t=Math.random){return computeRetryDelay(e,t,Et)}const Dt=[`worker_disconnected`,`cancelled`,`timed_out`,`execution_failed`];var DeviceChannelProtocolError=class extends t.SchemaError{constructor(e){super(e,t.SchemaErrorCode.DEVICE_CHANNEL_PROTOCOL),this._tag=`DeviceChannelProtocolError`,this.name=`DeviceChannelProtocolError`}};const Ot=[`zsh`,`bash`,`sh`,`fish`,`pwsh`,`powershell`],kt=[`ready`,`permission_missing`,`no_session`,`unavailable`],At=n.strictObject({state:n.enum(kt),version:n.string().min(1)}),v={id:n.uuid(),leaseToken:n.string().min(1)},jt=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`authenticate`),credential:n.string().regex(/^Device \S+$/),protocol:n.number().int().positive().optional(),desktop:At.optional(),shell:n.enum(Ot).optional()}),n.strictObject({type:n.literal(`running`),...v}),n.strictObject({type:n.literal(`heartbeat`),...v}),n.strictObject({type:n.literal(`output`),...v,stdout:n.string().optional(),stderr:n.string().optional()}),n.strictObject({type:n.literal(`complete`),...v,result:n.strictObject({stdout:n.string().optional(),stderr:n.string().optional(),exitCode:n.number().int(),success:n.boolean(),errorCode:n.enum(Dt).optional()}),background:n.strictObject({pid:n.number().int(),logPath:n.string().min(1)}).optional()}),n.strictObject({type:n.literal(`pong`)})]),Mt=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`ready`),device:n.strictObject({id:n.string(),name:n.string(),capability:n.enum([`shell`,`browser`])}),protocol:n.number().int().positive().optional()}),n.strictObject({type:n.literal(`command`),...v,kind:n.enum([`shell`,`browser`]),intent:n.string(),timeoutMs:n.number().int(),command:n.string().optional(),cwd:n.string().nullable().optional(),rootSessionId:n.string().min(1).optional(),background:n.boolean().optional()}),n.strictObject({type:n.literal(`release_session`),rootSessionId:n.string().min(1)}),n.strictObject({type:n.literal(`cancel`),id:n.uuid(),reason:n.enum([`cancelled`,`timed_out`,`revoked`])}),n.strictObject({type:n.literal(`reauthenticate`)}),n.strictObject({type:n.literal(`revoked`)}),n.strictObject({type:n.literal(`ping`)})]);function parseDeviceChannelFrame(e,t){let n;try{n=JSON.parse(t)}catch{throw new DeviceChannelProtocolError(`Frame is not JSON`)}let r=e.safeParse(n);if(!r.success)throw new DeviceChannelProtocolError(`Frame does not match the channel protocol`);return r.data}function parseWorkerFrame(e){return parseDeviceChannelFrame(jt,e)}function parseServerFrame(e){return parseDeviceChannelFrame(Mt,e)}const Nt=[`file`,`folder`],Pt=n.object({id:n.string(),tenantId:n.string(),title:n.string(),kind:n.enum(Nt),parentId:n.string().nullable().optional(),description:n.string().optional(),contentHash:n.string().optional(),createdBy:n.string().optional(),updatedBy:n.string().optional(),deletedAt:i.nullable().optional(),position:n.number(),createdAt:i,updatedAt:i}),Ft=Pt.extend({subCount:n.number().nullable()}),It=n.object({id:n.string(),kind:n.enum(Nt),title:n.string(),path:n.string(),parentId:n.string().nullable(),depth:n.number()}),Lt=n.object({recordId:n.string(),hits:n.array(It),truncated:n.object({maxEntries:n.number(),returnedEntries:n.number()}).optional()}),Rt=[`pending`,`processing`,`completed`,`failed`,`unsupported`],y=n.object({id:n.string(),documentId:n.string(),position:n.number(),name:n.string(),mimeType:n.string(),size:n.number(),ocrStatus:n.enum(Rt).nullable(),ocrText:n.string().nullable(),ocrConfidence:n.number().nullable(),processedAt:i.nullable()}),zt=[`created`,`appended`,`linked-existing`],Bt=n.object({document:Pt,file:y,action:n.enum(zt)}),Vt=y.omit({ocrText:!0}),Ht=Ft.extend({files:n.array(Vt),attributeName:n.string().optional(),properties:n.record(n.string(),n.unknown()).optional()}),Ut=[`manual`,`name-asc`,`name-desc`,`date-desc`,`date-asc`],Wt=n.object({items:n.array(Ht),nextCursor:n.string().nullable()}),Gt=n.object({recordId:n.string(),objectName:n.string(),label:n.string(),itemCount:n.number(),fileCount:n.number(),lastActivityAt:n.string()}),Kt=n.object({data:n.array(Gt),nextOffset:n.number().nullable()}),qt=[`draft`,`published`,`archived`],Jt=n.object({id:n.string(),objectName:n.string(),label:n.string(),mode:n.enum([`create`,`select`,`optional`,`create_if_not_empty`]),color:brandedString().optional(),icon:brandedString().optional(),objectLabel:n.string().optional()}),Yt=n.object({id:n.string(),label:n.string(),description:n.string().optional(),rows:n.array(unchecked())}),Xt=n.object({id:brandedString().optional(),name:n.string(),label:n.string(),description:n.string().optional(),icon:brandedString().optional(),status:n.enum(qt),version:n.number(),slots:n.array(Jt),steps:n.array(Yt),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:i.optional(),updatedAt:i.optional()});function isFormDefinition(e){return typeof e==`object`&&!!e&&`slots`in e&&`steps`in e&&`name`in e&&typeof e.name==`string`&&Array.isArray(e.slots)&&Array.isArray(e.steps)}const Zt=[`draft`,`submitted`,`processing`,`completed`,`failed`],Qt=n.record(n.string(),n.record(n.string(),n.unknown())),$t=n.object({id:brandedString().optional(),formId:n.string(),formName:n.string(),stepValues:Qt,slotValues:Qt,createdRecordIds:n.record(n.string(),n.string()),status:n.enum(Zt),currentStepIndex:n.number(),createdBy:n.string().optional(),submittedAt:i.optional(),tenantId:n.string().optional(),createdAt:i.optional(),updatedAt:i.optional(),archivedAt:i.optional()}),b=[`reader`,`runner`,`editor`],x=[`reader`,`editor`],en=[`manual`,`meeting_attendee`],tn=/* @__PURE__ */ new Set([`memory`,`skill`]),S=[`runner`],C=[`reader`];function parseRole(e,n){if(typeof n==`string`&&e.includes(n))return n;let r=`role must be one of: ${e.join(`, `)}`;throw new t.ValidationError(r,[{path:[`role`],message:r}])}function parseRecordAccessRole(e){return parseRole(x,e)}function parseAgentDefinitionAccessRole(e){return parseRole(b,e)}function parsePageAccessRole(e){return parseRole(x,e)}function parseDeviceAccessRole(e){return parseRole(S,e)}function parseAgentSessionAccessRole(e){return parseRole(C,e)}function deriveViewerAccess(e,t){return e.visibility===`workspace`?`workspace`:e.ownedBy!==null&&t.includes(e.ownedBy)?`owner`:e.viewerGrant===`editor`?`editor`:e.viewerGrant===`runner`?`runner`:`reader`}const nn=[`fr`,`en`],rn=[`text`,`image`,`audio`,`video`,`embedding`,`decision`,`meeting`,`compute`,`browser`],an=[`me`,`workspace`],on=[`ok`,`low`,`exhausted`,`paused`],sn=[`metering-only`,`contract`,`wallet`],w=[`none`,`estimated`,`exact`];function parseCountMode(e){if(typeof e==`string`&&w.includes(e))return e;throw new t.ValidationError(`countMode must be one of: ${w.join(`, `)} (received: ${String(e)})`,[])}function parseOptionalCountMode(e){return e===void 0?void 0:parseCountMode(e)}const cn=[`count`,`sum`,`avg`,`min`,`max`],ln=[`day`,`week`,`month`,`quarter`,`year`];function defaultPassagesTo(e){let t=e.filter(e=>!e.archived),n=t.filter(e=>e.group===`finished`);return(n.length>0?n:t.slice(-1)).map(e=>e.value)}const un=n.object({id:n.string(),kind:n.literal(`variable`),key:n.string(),isSensitive:n.boolean(),isSet:n.literal(!0),value:n.string().nullable(),scopeType:n.string(),scopeId:n.string().nullable(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),environments:n.union([n.literal(`all`),n.array(n.string())]).optional(),repository:n.string().optional(),lastUsedAt:n.string().nullable(),createdAt:n.string(),updatedAt:n.string()}),dn=n.object({id:n.string(),kind:n.literal(`login`),name:n.string(),allowedOrigins:n.array(n.string()),hasTotp:n.boolean(),exposeToSandbox:n.boolean(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),lastUsedAt:n.string().nullable(),updatedAt:n.string()}),fn=n.discriminatedUnion(`kind`,[un,dn]),pn=[`record`,`object`,`attribute`,`view`,`user`,`role`,`settings`,`file`,`agent`,`bundle`,`tenant_invitation`,`api_key`,`agent_session`],mn=/* @__PURE__ */ `record.created,record.updated,record.deleted,record.restored,record.purged,record.access_changed,agent.access_changed,agent_session.supervised_read,object.created,object.updated,object.deleted,attribute.created,attribute.updated,attribute.retyped,attribute.deleted,view.created,view.updated,view.deleted,bundle.synced,bundle.removed,bundle.added,bundle.updated,user.created,user.invited,user.updated,user.deleted,user.login,user.logout,tenant_invitation.created,tenant_invitation.delivery_failed,tenant_invitation.resent,tenant_invitation.revoked,tenant_invitation.accepted,role.created,role.updated,role.deleted,role.assigned,role.revoked,api_key.created,api_key.revoked,api_key.detached,settings.updated,file.uploaded,file.updated,file.deleted`.split(`,`),hn=n.object({field:n.string(),oldValue:n.unknown().optional(),newValue:n.unknown().optional(),oldLabel:n.string().optional(),newLabel:n.string().optional(),oldLabels:n.array(n.string()).optional(),newLabels:n.array(n.string()).optional()});function isAgentWrittenAuditEntry(e){return e.actorType===`agent`||typeof e.metadata?.agentSessionId==`string`}const gn=n.object({id:n.string(),tenantId:n.string(),actorId:n.string().optional(),actorEmail:n.string().optional(),actorType:n.enum(ue),triggeredByActorId:n.string().optional(),rootActorId:n.string().optional(),action:n.enum(mn),resourceType:n.enum(pn),resourceId:n.string(),resourceLabel:n.string().optional(),objectName:n.string().optional(),objectId:n.string().optional(),changes:n.array(hn).optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:i}),_n=[`draft_schema`],T=`request_design_review`,vn=[`search`,`query`,`read`,`write`,`delete`,`organize`,`copy`,`send`],yn=[...vn,`edit_content`],bn=[...yn,`compact_context`,`request_work_mode`,`write_todos`],E=[Ct],xn=[`get_agents`,`upsert_agent`],Sn=[`record`,`document`,`file`,`skill`,`schema`,`guide`,`decision`],D={memory:{kinds:[`memory`],capabilities:[],tools:[]},bulk:{kinds:[],capabilities:[`bulk`],tools:[]},activity:{kinds:[],capabilities:[`activity`],tools:[]},"email.read":{kinds:[`email`,`thread`],capabilities:[`copy_email`],tools:[]},"email.send":{kinds:[`email`,`thread`,`draft`],capabilities:[`copy_email`],tools:[]},"calendar.read":{kinds:[`event`],capabilities:[`transcript`],tools:[]}},O={sandbox:{icon:`terminal`,tools:[`exec_command`,`publish_artifact`,`sandbox_validate_payload`]},web:{icon:`globe`,tools:[`read_webpage`,`web_search`]},image:{icon:`image`,tools:[`generate_image`]},memory:{icon:`book-open`,tools:D.memory.tools},bulk:{icon:`layers-two`,tools:D.bulk.tools},activity:{icon:`activity`,tools:D.activity.tools},orchestration:{icon:`git-branch`,tools:[`spawn_agent`]},host:{icon:`wrench`,tools:[]},"cloud-browser":{icon:`globe`,tools:E},"agent-config":{icon:`sparkles`,tools:xn}},k={mcp:{icon:`puzzle`,tools:[]},"email.read":{icon:`envelope`,tools:D[`email.read`].tools},"email.send":{icon:`send`,tools:D[`email.send`].tools},"calendar.read":{icon:`calendar`,tools:D[`calendar.read`].tools},github:{icon:`brand-github`,tools:[]},"slack.read":{icon:`brand-slack`,tools:[`slack_read`,`slack_find`,`slack_download_file`]},"slack.write":{icon:`brand-slack`,tools:[`slack_send`,`slack_react`]},device:{icon:`desktop`,tools:[`exec_command`]},"browser-profile":{icon:`globe`,tools:E},login:{icon:`key`,tools:[]}},Cn={sandbox:{kinds:[],capabilities:[],tools:O.sandbox.tools},web:{kinds:[],capabilities:[],tools:O.web.tools},image:{kinds:[],capabilities:[],tools:O.image.tools},memory:D.memory,bulk:D.bulk,activity:D.activity,orchestration:{kinds:[],capabilities:[],tools:O.orchestration.tools},host:{kinds:[],capabilities:[],tools:O.host.tools},"cloud-browser":{kinds:[],capabilities:[],tools:O[`cloud-browser`].tools},"agent-config":{kinds:[],capabilities:[],tools:O[`agent-config`].tools},mcp:{kinds:[],capabilities:[],tools:k.mcp.tools},"email.read":D[`email.read`],"email.send":D[`email.send`],"calendar.read":D[`calendar.read`],github:{kinds:[],capabilities:[],tools:k.github.tools},"slack.read":{kinds:[],capabilities:[],tools:k[`slack.read`].tools},"slack.write":{kinds:[],capabilities:[],tools:k[`slack.write`].tools},device:{kinds:[],capabilities:[],tools:k.device.tools},"browser-profile":{kinds:[],capabilities:[],tools:k[`browser-profile`].tools},login:{kinds:[],capabilities:[],tools:k.login.tools}},wn={schema:[`discard_architect_draft`,`draft_schema`,`get_architect_draft`,`get_schema_history`,`request_design_review`,`search_icons`],"agent-config":xn,setup:[`request_setup`],internal:[`load_toolset`]},Tn=[.../* @__PURE__ */ new Set([...bn,...g.flatMap(e=>O[e].tools),..._.flatMap(e=>k[e].tools)])],En={"email.read":[`gmail`,`outlook`],"email.send":[`gmail`,`outlook`],"calendar.read":[`google-calendar`,`outlook-calendar`]};function connectionGrantKindsOf(e){switch(e){case`github`:return[`github`];case`slack`:return[`slack.read`,`slack.write`];case`google-calendar`:case`outlook-calendar`:return[`calendar.read`];case`gmail`:case`outlook`:return[`email.read`,`email.send`]}}const Dn=[`activity`,`bulk`,`image`,`memory`,`orchestration`,`sandbox`,`web`],On=[`memory`],kn=/* @__PURE__ */ new Set([`sandbox`,`host`,`cloud-browser`]);function needsManageWhenUnattended(e){return kn.has(e)||isResourceGrant(e)}function isNativeToolGroup(e){return g.includes(e)}function parseToolGroupGrant(e){if(isNativeToolGroup(e))return{type:`native`,group:e};let t=e.indexOf(`:`);if(t<=0)return null;let n=e.slice(0,t),r=e.slice(t+1);return r.length===0||!_.includes(n)?null:{type:`resource`,kind:n,id:r}}function grantKindOf(e){let t=parseToolGroupGrant(e);return t?.type===`resource`?t.kind:null}function isResourceGrant(e){return parseToolGroupGrant(e)?.type===`resource`}function resourceGrant(e,t){return`${e}:${t}`}function canonicalToolGroups(e){return[...new Set(e)].sort()}const A=`ask_questions`,j=`request_setup`,An=/* @__PURE__ */ new Set([A,T,j]),jn=/* @__PURE__ */ new Set([A,j]),Mn=/* @__PURE__ */ new Set([T]),Nn=r.AI_CHAT_MAX_FILES,Pn=/^(file|document):[A-Za-z0-9_-]{1,128}$/,Fn=n.union([n.object({value:n.string(),label:n.string(),note:n.string().optional()}).strict(),n.object({values:n.array(n.string()),labels:n.array(n.string()),text:n.string().optional(),notes:n.record(n.string(),n.string()).optional()}).strict(),n.object({text:n.string()}).strict()]),In=n.object({skipped:n.boolean().describe(`True if the person skipped all questions`),answers:n.record(n.string(),Fn).describe(`Map of question ID to the answer given, with each chosen option's value and label, and the person's precision on it when they added one (note, or notes by value)`),unanswered:n.array(n.object({id:n.string(),question:n.string().optional()})).optional().describe(`The questions the person left empty, by ID and text: they did not answer them. Ask again if you still need the answer`),answeredBy:n.object({id:n.string(),name:n.string()}).optional().describe(`Who answered: one of the people the question went to, not always the person you act for`),addedFiles:n.array(n.string()).optional().describe(`The files the person added to their answer (file:<id> or document:<id>): read them before acting on the answer`)});function readAskQuestionsResult(e){let t=In.safeParse(e);return t.success?t.data:null}function hasQuestions(e){return typeof e!=`object`||!e||!(`questions`in e)?!1:Array.isArray(e.questions)&&e.questions.length>0}function isQuestionPart(e){return jn.has(e.name)||e.name===`send`&&hasQuestions(e.args)}function argsOf(e){return typeof e.args==`object`&&e.args!==null?e.args:void 0}function awaitedChildOf(e){let t=argsOf(e);if(e.name!==`send`||t?.wait!==!0)return;let n=t.ref;return typeof n==`string`&&n.startsWith(`session:`)?n.slice(8):void 0}function lockingSendCall(e,t){let n=/* @__PURE__ */ new Map,r=[];for(let i of e){if(i.name!==`send`)continue;if(isQuestionPart(i)){t.requestIds.includes(i.id)&&r.push(i);continue}let e=awaitedChildOf(i);e!==void 0&&n.set(e,i)}for(let[e,i]of n)(t.awaitedChildIds===void 0||t.awaitedChildIds.includes(e))&&r.push(i);let i=new Map(e.map((e,t)=>[e,t]));return r.filter(e=>argsOf(e)?.lock===!0).sort((e,t)=>(i.get(t)??0)-(i.get(e)??0))[0]}function humanRequestKind(e){return isQuestionPart(e)?`question`:e.approvalId==null?Mn.has(e.name)?`review`:null:`approval`}function isAwaitingHuman(e){let t=humanRequestKind(e);return t===null||e.state===`streaming`||!isOpenToolPartState(e.state)||e.result!==void 0||e.error!==void 0?!1:t!==`approval`||e.state===`approval-requested`&&e.approved===void 0}function isBlocking(e){let t=humanRequestKind(e);return t===`review`?isOpenToolPartState(e.state):t===`approval`&&e.state===`approval-requested`&&e.approved===void 0}function humanRequestId(e){return isQuestionPart(e)?e.toolCallId:e.approvalId??e.toolCallId}function openRequests(e,t){let n=t.blocking?isBlocking:isAwaitingHuman,r=[];for(let t of e)for(let e of t.parts??[])isToolRequestPart(e)&&n(e)&&r.push({part:e,id:humanRequestId(e),requestedAt:t.createdAt});return r}function isToolRequestPart(e){return e.type===`tool`}function isParkedOnHuman(e){return e?.phase===`parked`&&e.parkedOn===`human`}const Ln={maxDurationMs:3e5,dailyDurationMs:36e5,monthlyDurationMs:72e6,tenantMonthlyBudgetMicrousd:5e7,globalMonthlyBudgetMicrousd:5e7,estimatedMicrousdPerSecond:150,reservationMultiplier:2};function recentActivityEntryKey(e){return e.kind===`record`?JSON.stringify([`record`,e.objectName,e.recordId]):JSON.stringify([`conversation`,`sessionId`in e?e.sessionId:e.session.id])}const Rn=n.object({id:n.string(),tenantId:n.string(),name:n.string(),originalName:n.string(),mimeType:n.string(),size:n.number(),storageProvider:n.string(),storagePath:n.string(),storageBucket:n.string().optional(),url:n.string(),uploadedBy:n.string().optional(),folderPath:n.string().optional(),deletedAt:i.optional(),documentId:n.string().nullable().optional(),position:n.number().nullable().optional(),ocrStatus:n.enum(Rt).nullable().optional(),ocrText:n.string().nullable().optional(),ocrConfidence:n.number().nullable().optional(),processedAt:i.nullable().optional(),isPublic:n.boolean().optional(),publicUrl:n.string().nullable().optional(),createdAt:i,updatedAt:i}),zn=n.object({urls:n.record(n.string(),n.string())}),Bn={id:n.string(),name:n.string(),label:n.string(),icon:brandedString().optional(),object:n.string().optional(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable()},Vn=n.object({...Bn,isHome:n.boolean(),codeDeclared:n.boolean()}),Hn=n.object({...Bn,revision:n.number(),blocks:n.array(unchecked()),hidden:n.array(n.object({name:n.string(),width:e.twelfthsSchema,joined:n.boolean().optional(),after:n.string().nullable()}))}),M=n.enum([`owner`,`editor`,`runner`,`reader`,`workspace`]);function accessGrantSchema(e,t){return n.object({actorId:brandedString(),role:n.enum(e),sources:n.array(n.enum(t))})}const Un=n.object({recordId:brandedString(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:brandedString().nullable(),viewerAccess:M,grants:n.array(accessGrantSchema(x,en))}),Wn=n.object({deviceId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:brandedString().nullable(),viewerAccess:M,grants:n.array(accessGrantSchema(S,[`manual`]))}),Gn=n.object({pageId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),viewerAccess:M,grants:n.array(accessGrantSchema(x,[`manual`]))}),N=n.object({recordId:n.string(),objectId:n.string(),objectName:n.string(),label:n.string().optional()}),Kn=[`confirmed`,`tentative`,`cancelled`],qn=[`organizer`,`required`,`optional`],Jn=[`accepted`,`declined`,`tentative`,`needs_action`],Yn=[`accepted`,`declined`,`tentative`],Xn=[`scheduled`,`recording`,`completed`,`failed`],Zn=[`force`,`skip`],Qn=[`none`,`all`,`external_only`],$n=n.object({override:n.enum(Zn).nullable(),status:n.enum([`none`,...Xn]),failureReason:n.string().nullable(),waitingRoom:n.boolean(),botId:n.string().nullable()}),er={override:null,status:`none`,failureReason:null,waitingRoom:!1,botId:null},tr=n.object({speaker:n.string().nullable(),startsAtMs:n.number(),endsAtMs:n.number(),text:n.string()}),nr=n.object({fullText:n.string(),segments:n.array(tr),language:n.string().nullable(),startedAt:n.string().nullable(),endedAt:n.string().nullable()}),rr={width:1280,height:720,maxBytes:13e5,mimeType:`image/jpeg`},ir=Math.ceil(rr.maxBytes/3)*4,ar=n.object({conferenceJoinUrl:n.string().min(1),botDisplayName:n.string().min(1),startsAt:n.string().nullable(),callbackUrl:n.url(),botImageJpeg:n.string().max(ir).optional()}),or=n.object({botId:n.string().min(1)}),sr=n.discriminatedUnion(`kind`,[n.object({kind:n.literal(`transcript-ready`),botId:n.string().min(1)}),n.object({kind:n.literal(`failure`),botId:n.string().min(1),reason:n.string()}),n.object({kind:n.literal(`waiting-room`),botId:n.string().min(1),waiting:n.boolean()})]),cr=n.object({meetingId:n.string(),ownerActorId:n.string().nullable()}),lr=cr.extend({ownerDisplayName:n.string().nullable()}),ur=n.object({fullText:n.string(),segments:n.array(tr),speakers:n.array(n.string()),language:n.string().nullable(),startedAt:n.string().nullable(),endedAt:n.string().nullable(),source:lr.nullable()}),dr=[`created`,`pending`,`refused`],fr=n.object({address:n.string(),name:n.string().optional(),role:n.enum(qn),responseStatus:n.enum(Jn).optional()}),pr=N.extend({sync:n.literal(!0).optional()}),mr=n.object({id:n.string(),ownerActorId:n.string().nullable()}),hr=n.object({id:n.string(),connectionId:n.string().nullable(),title:n.string().nullable(),description:n.string().nullable(),location:n.string().nullable(),startsAt:n.string().nullable(),endsAt:n.string().nullable(),isAllDay:n.boolean(),status:n.enum(Kn),organizer:fr.nullable(),conferenceProvider:n.string().nullable(),conferenceJoinUrl:n.string().nullable(),htmlLink:n.string().nullable(),participants:n.array(fr),linkedRecords:n.array(pr),recording:$n,viewerAccess:M,callKey:n.string(),siblings:n.array(mr),transcriptSource:cr.nullable(),conferenceRequest:n.enum(dr).optional()}),gr=n.object({meetings:n.array(hr),nextOffset:n.number().optional(),total:n.number().nullable().optional(),totalIsExact:n.boolean().optional()});function recordMeetingsCount(e){return typeof e.total==`number`?{total:e.total,isExact:e.totalIsExact!==!1}:null}const _r=n.object({meetingRecordingPolicy:n.enum(Qn),meetingBotDisplayName:n.string(),findImages:n.boolean(),memberMonthlyCapCredits:n.number().nullable(),runCostCeilingUsd:n.string().nullable()}),vr=_r.extend({meetingBotConfigured:n.boolean(),meetingBotImageUrl:n.string().nullable(),logosConfigured:n.boolean()}),yr=`Notetaker`,br=/^\d{1,9}(\.\d{1,6})?$/,xr={meetingRecordingPolicy:`none`,meetingBotDisplayName:yr,findImages:!0,memberMonthlyCapCredits:null,runCostCeilingUsd:null},Sr=[`pending`,`expired`,`revoked`,`accepted`],Cr=[`pending`,`sent`,`failed`],wr=n.object({id:n.string(),tenantId:brandedString(),email:n.string(),roleId:n.string(),invitingActorId:n.string(),status:n.enum(Sr),deliveryStatus:n.enum(Cr),expiresAt:i,lastSentAt:i,acceptedAt:i.optional(),revokedAt:i.optional(),acceptedProfileId:n.string().optional(),createdAt:i,updatedAt:i}),Tr=[`active`,`suspended`],Er=[`architect`,`manual`,`auto`],Dr=[`panel`,`fullscreen`],Or=n.object({id:n.string(),tenantId:n.string(),authId:n.string(),email:n.string(),preferredName:n.string().optional(),firstName:n.string().optional(),lastName:n.string().optional(),avatarUrl:n.string().optional(),status:n.enum(Tr),lastLoginAt:i.optional(),createdAt:i,updatedAt:i}),kr=Or.extend({actorId:n.string().nullable(),roleIds:n.array(n.string())}),Ar=[`square`,`landscape`,`portrait`];function imageModelFormatDefect(e){if(e.formats.length===0)return`declares no output format`;for(let t of e.formats)if(e.requests[t]===void 0)return`declares the format "${t}" without a request`;for(let t of Object.keys(e.requests))if(!e.formats.includes(t))return`carries a request for the undeclared format "${t}"`}function declaredImageRequests(e){let t={};for(let n of e.formats){let r=e.requests[n];r!==void 0&&(t[n]=r)}return t}const jr=[`storage.bytes`,`members.seats`,`data.live_records`,`email.mailboxes`,`calendar.connections`],Mr=/* @__PURE__ */ new Set([`data.live_records`,`email.mailboxes`,`calendar.connections`]),Nr=n.object({key:n.enum(jr),limit:n.number().nullable(),used:n.number(),reserved:n.number(),available:n.number().nullable(),version:n.string().nullable()}),Pr=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`record`),object:n.string().min(1),id:n.guid()}),n.strictObject({type:n.literal(`user`),id:n.guid()})]),Fr=n.strictObject({nodes:n.array(Pr).min(1).max(50),limitPerNode:n.number().int().min(1).max(200).default(50)});function recordGraphNodeKey(e){return e.type===`record`?`record:${e.object}:${e.id}`:`user:${e.id}`}const Ir=`work`,Lr=`/vercel/sandbox/${Ir}`,Rr=`/workspace`;function environmentWorkdir(e=null){return e?Lr:Rr}const zr=[{id:`claude-code`,label:`Claude Code`,provider:`anthropic`,apiKeyEnv:`ANTHROPIC_API_KEY`,oauthTokenEnv:`CLAUDE_CODE_OAUTH_TOKEN`,models:[{id:`sonnet`,label:`Claude Sonnet`},{id:`opus`,label:`Claude Opus`},{id:`haiku`,label:`Claude Haiku`}],defaultModel:`sonnet`},{id:`codex`,label:`Codex`,provider:`openai`,apiKeyEnv:`OPENAI_API_KEY`,models:[{id:`gpt-6.1-sol`,label:`GPT-6.1 Sol`},{id:`gpt-6-luna`,label:`GPT-6 Luna`},{id:`gpt-6-astra`,label:`GPT-6 Astra`}],defaultModel:`gpt-6.1-sol`},{id:`cursor`,label:`Cursor`,provider:`cursor`,apiKeyEnv:`CURSOR_API_KEY`,models:[{id:`auto`,label:`Auto`,cliDefault:!0},{id:`composer-2.5`,label:`Composer 2.5`}],defaultModel:`auto`}],Br=new Map(zr.map(e=>[e.id,e]));function isEnvironmentHarnessId(e){return Br.has(e)}function findEnvironmentHarness(e){return Br.get(e)}function environmentHarness(e){let n=Br.get(e);if(!n)throw new t.SchemaError(`Unknown harness "${e}"`,t.SchemaErrorCode.INVARIANT_VIOLATION);return n}function cliDefaultModelOf(e){return environmentHarness(e).models.find(e=>e.cliDefault)?.id}function compiledHarnessModels(e){let t=environmentHarness(e);return t.models.map(e=>({id:e.id,label:e.label,...e.id===t.defaultModel?{isDefault:!0}:{}}))}function harnessModelChoices(e,t){let{provider:n}=environmentHarness(e);return t.map(e=>({id:e.id,provider:n,label:e.label,...e.isDefault?{isDefault:!0}:{}}))}const Vr=[`code`,`documents`],P=[`small`,`default`,`large`],Hr={small:2,default:4,large:8},Ur=[`setup`,`bake`,`publish`];function isEnvironmentBuildLogStep(e){return Ur.includes(e)}function utf8ByteLength(e){return new TextEncoder().encode(e).length}const Wr=[{key:`direct`,icon:`message`,color:`ink`,description:`A message a person wrote to this mailbox: a conversation, a question, a request, a reply.`},{key:`transactional`,icon:`credit-card`,color:`terra`,description:`An automated message about an account or an operation: receipt, invoice, payment, order, shipping, booking, password reset, security alert.`},{key:`notifications`,icon:`bell`,color:`ochre`,description:`An automated alert from a tool or a service: activity on GitHub, Slack, a calendar, a CRM, a monitoring system.`},{key:`newsletters`,icon:`book-open`,color:`stone`,description:`Editorial content the mailbox subscribed to: newsletters, digests, articles, community updates.`},{key:`marketing`,icon:`percentage`,color:`iris`,description:`Promotion or prospecting: offers, discounts, product announcements, cold sales outreach.`}],Gr={direct:{en:`Direct`,fr:`Direct`},transactional:{en:`Transactional`,fr:`Transactionnel`},notifications:{en:`Notifications`,fr:`Notifications`},newsletters:{en:`Newsletters`,fr:`Newsletters`},marketing:{en:`Marketing`,fr:`Marketing`}},Kr=`stone`,qr=/* @__PURE__ */ new Set(/* @__PURE__ */ `gmail.com,googlemail.com,outlook.com,hotmail.com,hotmail.fr,outlook.fr,live.com,live.fr,msn.com,yahoo.com,yahoo.fr,icloud.com,me.com,mac.com,proton.me,protonmail.com,gmx.com,gmx.fr,orange.fr,wanadoo.fr,free.fr,laposte.net,sfr.fr,bbox.fr,numericable.fr,aol.com`.split(`,`)),Jr=new Set(Wr.map(e=>e.key)),Yr=new Set(Object.entries(Gr).flatMap(([e,t])=>[e,t.en,t.fr].map(e=>e.toLowerCase())));function isSystemEmailCategory(e){return Jr.has(e)}function isSystemEmailCategoryName(e){return Yr.has(e.trim().toLowerCase())}function isPublicMailDomain(e){return qr.has(e.toLowerCase())}const Xr=[`conversation`,`run`,`change`],Zr={maxConcurrentRuns:3,retryPolicy:{maxRetries:3,backoffMs:1e3,backoffMultiplier:2}};var AgentBuilder=class{constructor(e){if(!e.name||e.name.trim().length===0)throw new t.ValidationError(`Agent name is required`,[]);this.bp={name:e.name,system:!0,visibility:`workspace`,triggers:[]}}description(e){return this.bp.description=e,this}label(e){return this.bp.label=e,this}avatar(e){return this.bp.avatar={type:e.type,color:e.color,expression:e.expression??`relaxed`},this}starters(e){return e.length===0?delete this.bp.starters:this.bp.starters=[...e],this}systemPrompt(e){return this.bp.systemPrompt=e,this}model(e,t,n){return this.bp.model={provider:e,model:t,...n},this}toolGroups(e){let n=e.find(e=>!isNativeToolGroup(e));if(n!==void 0)throw new t.ToolGroupGrantError(t.SchemaErrorCode.AGENT_TOOL_GROUP_UNKNOWN,n,`Agent "${this.bp.name}": "${n}" is not a native tool group (blueprints cannot grant tenant resources)`);return this.bp.toolGroups=canonicalToolGroups(e),this}schedule(e){return this.bp.schedule={...e,enabled:e.enabled??!0},this}config(e){let t=this.bp.config??Zr,n=e.inference===void 0?t.inference:{...t.inference,...e.inference};return this.bp.config={...t,...e,...n===void 0?{}:{inference:n}},this}delegation(e){return Object.assign(this.bp,e),this}approval(e){return this.bp.approval={...Ye,...this.bp.approval,...e},this}visibility(e){return this.bp.visibility=e,this}trigger(e,t,n){return this.bp.triggers.push({name:e,eventType:t,...n,enabled:n?.enabled??!0}),this}runtime(){return this.bp.system=!1,this}build(){if(!this.bp.systemPrompt)throw new t.ValidationError(`Agent "${this.bp.name}": systemPrompt is required`,[]);if(!this.bp.model)throw new t.ValidationError(`Agent "${this.bp.name}": model is required`,[]);if(this.bp.system&&this.bp.visibility===`private`)throw new t.ValidationError(`Agent "${this.bp.name}": system agents must use workspace visibility`,[]);return e.assertUniqueBy(this.bp.triggers,e=>e.name,e=>new t.ValidationError(`Agent "${this.bp.name}": duplicate trigger name "${e}"`,[])),{...this.bp,visibility:this.bp.visibility??`workspace`,toolGroups:this.bp.toolGroups??[...On],config:this.bp.config??Zr,systemPrompt:this.bp.systemPrompt,model:this.bp.model}}};function agent(e){return new AgentBuilder(e)}const Qr=[`circle`,`square`],$r=[`upload`,`website`,`name`,`email`];function isImageSource(e){return $r.some(t=>t===e)}const ei={object:[`icon`,`color`],record:[`icon`,`image`],emailCategory:[`icon`,`color`],option:[`color`],view:[`icon`],agent:[`color`],user:[`image`]};function imageFileIdOf(e){return`image`in e?e.image?.fileId:`imageFileId`in e?e.imageFileId:void 0}function resolveAppearance(e,t){let n=imageFileIdOf(e);if(n)return{kind:`image`,imageFileId:n,shape:t?.image?.shape??`square`};let i=t?.name??e.name,a=e.color??t?.color??(i?(0,r.colorIdFromString)(i):void 0),o=e.icon??t?.icon??`box`;return a?{kind:`tile`,icon:o,color:a}:{kind:`glyph`,icon:o}}const F=[`record`,`document`,`file`,`email`,`thread`,`event`,`memory`,`skill`,`schema`,`view`,`page`,`user`,`guide`,`bundle`,`draft`,`decision`,`session`,`catalog`,`wake`],ti=/* @__PURE__ */ new Set([`memory`,`schema`,`page`,`wake`]),ni=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function isReferenceKind(e){return F.includes(e)}function refuse(e,t){return{ok:!1,reason:e,expected:t}}function parseReference(e){let t=e.trim();if(ni.test(t))return refuse(`bare_uuid`,`record:<id>`);let n=t.indexOf(`:`);if(n===-1)return refuse(`malformed`,`<kind>:<id>`);let r=t.slice(0,n).toLowerCase();if(!isReferenceKind(r))return refuse(`unknown_kind`,`<kind>:<id> with kind one of ${F.join(`, `)}`);let i=t.slice(n+1).trim();return i===``?refuse(`malformed`,`${r}:<id>`):r===`record`&&i.includes(`:`)?refuse(`legacy_mention`,`record:${i.slice(i.lastIndexOf(`:`)+1)}`):i===`*`&&!ti.has(r)?refuse(`malformed`,`${r}:<id>`):{ok:!0,ref:{kind:r,id:i}}}function formatReference(e){return`${e.kind}:${e.id}`}function isWildcard(e){return e.id===`*`&&ti.has(e.kind)}const ri={added:n.array(n.string()).readonly(),removed:n.array(n.string()).readonly(),roleChanged:n.array(n.string()).readonly(),workspaceBefore:n.boolean(),workspaceAfter:n.boolean(),subtreeSize:n.number().int().nonnegative()},ii=n.object(ri).readonly(),ai=n.object(ri).strict().readonly(),I=n.number().finite().nonnegative(),L=n.enum(Ze),R=n.enum(Qe),z=n.enum($e),B=n.enum(nt),oi=n.object({provider:L,model:n.string().min(1)}).strict(),si=n.object({speed:R.optional(),reasoning:z.optional(),routing:B.optional()}).strict(),ci=n.string().regex(/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9._-]*$/),li=n.object({model:oi.optional(),speed:R.optional(),reasoning:z.optional(),imageModel:ci.optional(),routing:B.optional()}).strict(),ui=li.refine(e=>it.some(t=>e[t]!==void 0),{message:`At least one inference override is required`});function isSessionInferencePatch(e){return Object.keys(e).length>0&&Object.values(e).every(e=>e!==void 0)}const di=n.object({model:oi.nullable().optional(),speed:R.nullable().optional(),reasoning:z.nullable().optional(),imageModel:ci.nullable().optional(),routing:B.nullable().optional()}).strict().refine(isSessionInferencePatch,{message:`At least one inference override is required`}),fi=n.object({model:n.string().min(1),routing:n.object({mode:n.literal(`auto`),tasks:n.array(n.enum(et)).optional(),demand:n.enum(tt).optional(),reason:n.enum([`selected`,`retained`,`fallback`]).optional(),relation:n.enum([`continue`,`modify`,`new`,`aside`,`unknown`]).optional(),anchorMessageId:n.string().min(1).optional()})}),pi=n.object({objectName:n.string(),id:n.string(),label:n.string(),objectIcon:n.string().optional()}).strict(),mi=n.object({label:n.string(),denied:n.boolean().optional(),deletion:n.object({target:n.string().optional(),count:I.optional(),targets:n.array(n.string()).optional(),restorableDays:I.optional()}).strict().optional(),record:pi.optional(),object:n.object({name:n.string(),label:n.string(),draft:n.object({label:n.string(),values:n.array(n.object({attribute:n.string(),value:n.unknown()}).strict())}).strict().optional()}).strict().optional(),email:n.object({from:n.string(),to:n.array(n.string()),cc:n.array(n.string()),bcc:n.array(n.string()),subject:n.string().nullable(),text:n.string(),truncatedChars:I,outsideThread:n.array(n.string()),attachments:n.array(n.object({name:n.string(),size:I}).strict()),updatedAt:n.string(),forwarded:n.object({from:n.string(),subject:n.string().nullable(),quote:n.string(),quoteTruncatedChars:I}).strict().optional()}).strict().optional(),move:ai.optional(),parent:pi.nullable().optional(),skill:n.object({source:n.string(),description:n.string(),audience:n.enum([`private`,`workspace`]),files:I,hasScripts:n.boolean()}).strict().optional(),outgoingText:n.string().optional(),counts:n.record(n.string(),I).optional(),warnings:n.array(n.string()).optional()}).strict(),hi=n.union([n.object({type:n.literal(`text`),text:n.string()}).strict(),n.object({type:n.literal(`reasoning`),text:n.string()}).strict(),n.object({type:n.literal(`system`),code:n.enum(ut)}).strict(),n.object({type:n.literal(`sent-message`),text:n.string(),attachments:n.array(n.string()).optional()}).strict(),n.object({type:n.literal(`error`),error:n.string(),errorClass:n.string().optional()}).strict(),n.object({type:n.literal(`tool`),toolCallId:n.string(),name:n.string(),args:n.record(n.string(),n.unknown()),result:n.unknown().optional(),error:n.string().optional(),errorCode:n.enum([`output_limit_reached`,`interrupted`,t.SchemaErrorCode.INVALID_TOOL_INPUT,`external_outcome_unknown`,`external_not_dispatched`]).optional(),state:n.enum([`streaming`,`running`,`completed`,`error`,`pending`,`approval-requested`,`approval-responded`,`approval-dispatched`]),durationMs:I.optional(),approvalId:n.string().optional(),approvalImpact:mi.optional(),approved:n.boolean().optional(),approvalReason:n.string().optional(),approvalDecidedBy:n.string().optional(),approvalDecidedAt:n.string().optional(),approvalRelaxableByAuto:n.boolean().optional()}).strict(),n.object({type:n.literal(`file`),fileId:n.string(),name:n.string(),mimeType:n.string()}).strict(),n.object({type:n.literal(`compaction`),state:n.literal(`in-progress`),reason:n.enum([`preflight_threshold`,`overflow_recovery`]),estimatedTokens:I.optional(),reportedTokens:I.optional()}).strict(),n.object({type:n.literal(`compaction`),state:n.literal(`completed`),tokensBefore:I,tokensAfter:I,tokensSaved:I,strategy:n.enum([`no-op`,`summary`,`truncation`]),durationMs:I,summary:n.string().optional()}).strict(),n.object({type:n.literal(`compaction`),state:n.literal(`failed`),reason:n.string(),durationMs:I.optional()}).strict()]),V=n.object({id:n.string().min(1),name:n.string().min(1),mimeType:n.string().min(1),size:n.number().int().min(0)}).strict(),gi=n.object({id:n.string(),artifactId:n.string(),revision:n.number().int().min(1),selectedText:n.string()}).strict(),_i=n.object({id:n.string().min(1),type:n.string().min(1).transform(e=>e),entityId:n.string().min(1),label:n.string().min(1),objectName:n.string().min(1).optional(),startIndex:n.number().int().min(0),endIndex:n.number().int().min(0)}).strict(),vi=n.object({provider:L,model:n.string().min(1),maxTokens:n.number().int().positive().optional(),contextWindow:I.optional()}).strict(),yi=n.union([n.date(),n.string().datetime({offset:!0}).transform(e=>new Date(e))]),bi=n.object({id:n.string(),sessionId:n.string(),tenantId:n.string().optional(),runId:n.string().optional(),role:n.enum([`user`,`assistant`,`system`,`tool`]),parts:n.array(hi),attachments:n.array(V).optional(),mentions:n.array(_i).optional(),quotes:n.array(gi).optional(),model:vi.optional(),tokenUsage:n.object({input:I,output:I}).strict().optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:yi}).strict(),xi=n.object({id:n.string(),description:n.string(),status:n.enum([`pending`,`in_progress`,`completed`,`blocked`]),result:n.string().optional(),updatedAt:I.optional(),target:n.object({phase:n.enum(St)}).strict().optional()}).strict(),Si=n.object({id:n.string(),sessionId:n.string(),status:n.enum([`active`,`completed`,`abandoned`]),todos:n.array(xi),version:I,createdAt:n.string(),updatedAt:n.string(),completedAt:n.string().optional()}).strict(),Ci={"compaction-start":n.object({reason:n.enum([`preflight_threshold`,`overflow_recovery`]),estimatedTokens:I.optional(),reportedTokens:I.optional()}).strict(),"compaction-end":n.object({tokensBefore:I,tokensAfter:I,tokensSaved:I,strategy:n.enum([`no-op`,`summary`,`truncation`]),durationMs:I,summary:n.string().optional()}).strict(),"compaction-failed":n.object({reason:n.string()}).strict(),usage:n.object({messageId:n.string().min(1).optional(),inputTokens:I,outputTokens:I,totalTokens:I,cacheReadTokens:I.optional(),cacheCreationTokens:I.optional(),contextWindow:I,residentTokens:I,utilization:n.number().finite().min(0).max(1),costUsd:I.optional()}).strict(),"sent-message":n.object({text:n.string(),attachments:n.array(n.string()).optional()}).strict(),"message-updated":n.object({message:bi}).strict(),"approval-context":n.object({approvalId:n.string(),toolCallId:n.string(),impact:mi.optional(),relaxableByAuto:n.boolean().optional()}).strict()};function isAgentUIDataName(e){return e in Ci}function agentUIValidationError(e){return new t.ValidationError(`Invalid agent UI message chunk`,e.map(e=>({path:e.path.map(String),message:e.message,code:e.code})))}function assertCustomAgentUIMessageChunk(e){if(typeof e!=`object`||!e||typeof e.type!=`string`)throw new t.ValidationError(`Invalid agent UI message chunk`,[{path:[`type`],message:`Expected UI message chunk type`,code:`invalid_type`}]);let r=e.type;if(!r.startsWith(`data-`))throw new t.ValidationError(`Invalid agent UI message chunk`,[{path:[`type`],message:`Expected agent data chunk type`,code:`invalid_value`}]);let i=r.slice(5);if(!isAgentUIDataName(i))throw new t.ValidationError(`Invalid agent UI message chunk`,[{path:[`type`],message:`Unknown agent UI data type: ${i}`,code:`invalid_value`}]);let a=n.object({type:n.literal(`data-${i}`),id:n.string().optional(),data:Ci[i],transient:n.boolean().optional()}).strict().safeParse(e);if(!a.success)throw agentUIValidationError(a.error.issues);return a.data}function agentDataChunk(e,t,n){return assertCustomAgentUIMessageChunk({type:`data-${e}`,...n?.id===void 0?{}:{id:n.id},data:t,...n?.transient===void 0?{}:{transient:n.transient}})}const wi={pull_request:{events:[`pull_request`],actions:[`opened`,`ready_for_review`,`synchronize`,`merged`,`closed`,`labeled`],conditions:[`baseBranch`,`headBranch`,`draft`,`label`,`issueLabels`,`changedPaths`,`prAuthor`]},review:{events:[`pull_request_review`],actions:[`submitted`],conditions:[`reviewState`,`prAuthor`]},comment:{events:[`issue_comment`,`pull_request_review_comment`],actions:[`created`],conditions:[`text`,`issueAuthor`,`prAuthor`]},push:{events:[`push`],actions:[`pushed`],conditions:[`branch`,`changedPaths`,`forced`]},workflow:{events:[`workflow_run`],actions:[`completed`],conditions:[`workflowName`,`conclusion`,`branch`,`originEvent`]},check:{events:[`check_suite`,`check_run`],actions:[`completed`],conditions:[`checkApp`,`checkName`,`conclusion`]}},Ti={mention:{events:[`app_mention`],conditions:[`text`]},message:{events:[`message`],conditions:[`position`,`text`,`hasFile`]},dm:{events:[`message`],conditions:[`text`,`hasFile`]},reaction:{events:[`reaction_added`],conditions:[`messageAuthor`]}},Ei=n.object({field:n.literal(`text`),operator:n.enum([`contains`,`starts_with`]),value:n.string().min(1)}).strict();function stringCondition(e){return n.object({field:n.literal(e),value:n.string().min(1)}).strict()}function booleanCondition(e){return n.object({field:n.literal(e),value:n.boolean()}).strict()}function listCondition(e){return n.object({field:n.literal(e),operator:n.enum([`any`,`all`]).default(`any`),value:n.array(n.string().min(1)).min(1)}).strict()}const Di=n.discriminatedUnion(`field`,[Ei,stringCondition(`label`),listCondition(`issueLabels`),stringCondition(`baseBranch`),stringCondition(`headBranch`),stringCondition(`branch`),booleanCondition(`draft`),stringCondition(`changedPaths`),booleanCondition(`forced`),stringCondition(`prAuthor`),stringCondition(`issueAuthor`),n.object({field:n.literal(`reviewState`),value:n.enum([`approved`,`changes_requested`,`commented`])}).strict(),stringCondition(`workflowName`),stringCondition(`checkApp`),stringCondition(`checkName`),stringCondition(`conclusion`),stringCondition(`originEvent`)]),Oi=n.discriminatedUnion(`field`,[Ei,n.object({field:n.literal(`position`),value:n.enum([`top_level`,`reply`])}).strict(),booleanCondition(`hasFile`),stringCondition(`messageAuthor`)]),ki=Object.keys(wi),Ai=Object.keys(Ti),ji=n.string().regex(/^[A-Za-z0-9_.-]+\/([A-Za-z0-9_.-]+|\*)$/);function matchesRepositoryPattern(e,t){let n=e.toLowerCase(),r=t.toLowerCase();return n.endsWith(`/*`)?r.startsWith(n.slice(0,-1)):r===n}const Mi=n.enum([`human`,`me`,`any`]),Ni=n.object({family:n.enum(ki),actions:n.array(n.string()).default([]),repositories:n.array(ji).default([]),sender:n.union([Mi,n.object({logins:n.array(n.string().min(1)).min(1)}).strict()]).default(`human`),conditions:n.array(Di).default([])}).strict().superRefine((e,t)=>{let n=wi[e.family];e.actions.forEach((r,i)=>{n.actions.includes(r)||t.addIssue({code:`custom`,path:[`actions`,i],message:`Action ${r} is not supported by ${e.family}`})}),e.conditions.forEach((r,i)=>{n.conditions.includes(r.field)||t.addIssue({code:`custom`,path:[`conditions`,i,`field`],message:`Condition ${r.field} is not supported by ${e.family}`})})}).transform(e=>e),Pi=n.object({on:n.enum(Ai),channels:n.array(n.string().min(1)).default([]),reactions:n.array(n.string().min(1)).optional(),sender:n.union([Mi,n.object({users:n.array(n.string().min(1)).min(1)}).strict()]).default(`human`),conditions:n.array(Oi).default([])}).strict().superRefine((e,t)=>{e.conditions.forEach((n,r)=>{Ti[e.on].conditions.includes(n.field)||t.addIssue({code:`custom`,path:[`conditions`,r,`field`],message:`Condition ${n.field} is not supported by ${e.on}`})}),e.reactions!==void 0&&e.on!==`reaction`&&t.addIssue({code:`custom`,path:[`reactions`],message:`reactions requires on=reaction`})}).transform(e=>e),Fi=n.union([Ni,Pi]),Ii=[`record.created`,`record.updated`,`form.submitted`,`webhook`,`github`,`slack`],Li=/* @__PURE__ */ new Set([`record.created`,`record.updated`]),Ri=/^[A-Z_][A-Z0-9_]*$/,zi=n.object({cron:n.string().min(9),timezone:n.string().optional(),enabled:n.boolean(),input:n.record(n.string(),n.unknown()).optional(),runFor:n.enum([`armer`,`audience`]).optional(),audience:n.object({workspace:n.boolean(),roleIds:n.array(n.uuid()),actorIds:n.array(n.uuid())}).optional(),continueConversation:n.boolean().optional()}),Bi=/^[A-Za-z0-9_$-]+(\.[A-Za-z0-9_$-]+)*$/,Vi=n.object({name:n.string().max(120).optional(),eventType:n.enum(Ii),objectId:n.guid().optional(),watchedFields:n.array(n.string()).max(50).optional(),debounceMs:n.number().int().min(0).max(3e5).optional(),reentry:n.number().int().min(0).max(25).optional(),filter:n.object({combinator:n.enum([`and`,`or`]).default(`and`),rules:n.array(n.object({attribute:n.string(),operator:n.string(),value:n.unknown().optional()}))}).optional(),formDefinitionId:n.string().optional(),continuationKey:n.string().max(200).regex(Bi).nullable().optional(),connectionId:n.guid().optional(),match:Fi.optional(),continueConversation:n.boolean().optional(),enabled:n.boolean().optional()});function refineTrigger(e){return e.refine(e=>!e.watchedFields?.length||e.eventType===`record.updated`,{message:`watchedFields requires eventType=record.updated`,path:[`watchedFields`]}).refine(e=>!(e.eventType&&Li.has(e.eventType))||!!e.objectId,{message:`objectId is required for record.* triggers`,path:[`objectId`]}).refine(e=>!(e.continuationKey&&e.eventType)||e.eventType===`webhook`,{message:`continuationKey requires eventType=webhook`,path:[`continuationKey`]}).superRefine((e,t)=>{let n=e.eventType===`github`||e.eventType===`slack`;if(n&&!e.connectionId&&t.addIssue({code:`custom`,path:[`connectionId`],message:`connectionId is required for native connector triggers`}),n&&!e.match&&t.addIssue({code:`custom`,path:[`match`],message:`match is required for native connector triggers`}),e.match&&e.eventType&&((e.eventType===`github`?`family`in e.match:e.eventType===`slack`&&`on`in e.match)||t.addIssue({code:`custom`,path:[`match`],message:`match must belong to the trigger provider`})),e.eventType&&!n)for(let n of[`connectionId`,`continueConversation`])e[n]!==void 0&&t.addIssue({code:`custom`,path:[n],message:`${n} requires a native connector trigger`})})}const Hi=refineTrigger(Vi).transform(e=>({...e,...e.eventType===`github`||e.eventType===`slack`?{continueConversation:e.continueConversation??!0}:{}})),Ui=Vi.partial();function parseMergedAgentTrigger(e,t){let n=Ui.safeParse(t);if(!n.success)throw triggerValidationError(n.error);let r=Object.fromEntries(Object.entries(n.data).filter(([,e])=>e!==void 0)),i=Hi.safeParse({...e,...r});if(!i.success)throw triggerValidationError(i.error);return i.data}function triggerValidationError(e){return new t.ValidationError(`Invalid agent trigger`,e.issues.map(e=>({path:e.path.map(String),message:e.message})))}const Wi=n.enum([`pending`,`running`,`completed`,`failed`,`cancelled`,`paused`,`skipped`]),Gi=n.object({input:n.number(),output:n.number()}),Ki=n.object({provider:L,model:n.string()}),H=Ki.extend({maxTokens:n.number().optional(),contextWindow:n.number().optional()}),qi=n.object({speed:R.optional(),reasoning:z.optional(),routing:B.optional()}),Ji=qi.extend({model:Ki.optional(),imageModel:n.string().optional()}),Yi=n.object({phase:n.enum([`idle`,`running`,`parked`]),parkedOn:n.enum([`human`,`agents`]).optional(),locked:n.boolean().optional(),humanRequestIds:n.array(n.string()).optional(),outcome:n.enum(Ke).optional(),runningTurnId:n.string().optional(),lastTurnId:n.string().optional()}),Xi=n.object({type:n.enum(at),color:brandedString(),expression:n.enum(ot)}),Zi=n.object({name:n.string(),kind:n.enum([`agent`,`routine`]),label:n.string().optional(),avatar:Xi.optional()}),Qi=n.object({id:n.string(),tenantId:n.string(),mode:n.enum([`interactive`,`autonomous`]),state:Yi,approvalMode:n.enum([`manual`,`auto`]),workMode:n.enum([`execute`,`architect`]),focus:n.boolean(),personConversation:n.boolean(),workModeVersion:n.number(),version:n.number(),loadedToolsets:n.array(n.string()),inferenceOverrides:Ji,origin:n.enum(wt),definitionId:n.string().optional(),inlineConfig:unchecked().optional(),parentSessionId:n.string().optional(),rootSessionId:n.string(),depth:n.number(),forkedFromSessionId:n.string().optional(),forkedAtMessageId:n.string().optional(),missionPrompt:n.string().optional(),treeCostUsd:n.number(),name:n.string().optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdBy:n.string().optional(),createdAt:i,updatedAt:i,completedAt:i.optional(),expiresAt:i.optional(),archivedAt:i.optional(),lastAgentActivityAt:i.optional(),lastReadAt:i.optional(),lastUserActivityAt:i.optional(),harness:brandedString().optional(),environmentId:n.string().optional(),size:n.enum(P).optional(),harnessState:n.unknown().optional(),definitionAppearance:Zi.optional(),readThrough:n.literal(!0).optional(),listCursor:n.string().optional(),nextWakeAt:i.nullable().optional()}),$i=n.discriminatedUnion(`kind`,[n.object({kind:n.enum([`changed`,`stale`]),session:Qi}),n.object({kind:n.literal(`approval-required`),approvalId:n.string(),current:Qi,targetApprovalMode:n.enum([`manual`,`auto`])})]),ea=n.discriminatedUnion(`status`,[n.object({status:n.literal(`accepted`),seq:n.string(),created:n.literal(!1).optional()}),n.object({status:n.literal(`no_active_turn`)}),n.object({status:n.literal(`withdrawn`),messageId:n.string()})]),ta=n.discriminatedUnion(`kind`,[n.object({kind:n.literal(`routine`),definitionId:n.string()}),n.object({kind:n.literal(`conversation`),sessionId:n.string()})]),na=n.object({id:n.string(),description:n.string(),status:n.enum(xt),updatedAt:n.number().optional(),target:n.object({phase:n.enum(St),objectName:n.string().optional()}).optional()}),ra=n.object({id:n.string(),sessionId:n.string(),status:n.enum(Xe),todos:n.array(na),version:n.number(),createdAt:n.string(),updatedAt:n.string(),completedAt:n.string().optional()}),ia=n.object({id:n.string(),sessionId:n.string(),note:n.string(),nextFireAt:i.nullable(),cron:n.string().optional(),timezone:n.string().optional(),endsAt:i.optional(),maxFires:n.number().optional(),fires:n.number(),authorityActorId:n.string(),status:n.enum([`active`,`finished`,`cancelled`]),lastFiredAt:i.nullable(),createdAt:i,updatedAt:i}),aa=ia.extend({passesLeft:n.number().optional()}),oa=n.object({status:n.enum([`cancelled`,`finished`])}),sa=n.object({requestCount:n.number(),generatedImageCount:n.number(),confirmedCostUsd:n.string(),pendingCostCount:n.number()}),ca=n.discriminatedUnion(`status`,[n.object({status:n.literal(`confirmed`),usd:n.string(),source:n.enum([`gateway-response`,`gateway-lookup`,`catalog-estimate`,`rate-card`])}),n.object({status:n.enum([`pending`,`unknown`]),usd:n.null(),source:n.null()})]),la=n.object({session:sa,tree:sa,byMessage:n.record(n.string(),sa),attempts:n.array(n.object({attemptId:n.string(),messageId:n.string(),requestedModelId:n.string(),executedModelId:n.string().nullable(),provider:n.string().nullable(),cost:ca}))}),ua=n.object({touchedRecords:n.array(n.object({recordId:n.string(),objectName:n.string(),label:n.string(),kind:n.enum([`created`,`modified`])})),touchedDocuments:n.array(n.object({id:n.string(),fileId:n.string().optional(),title:n.string(),kind:n.enum([`modified`,`consulted`]),mimeType:n.string().optional()})),touchedArtifacts:n.array(unchecked()),openHumanRequests:n.array(n.object({messageId:n.string(),createdAt:n.string(),part:unchecked()})),firstUserPreview:n.string().nullable(),designReviewOutcomes:n.array(n.object({requestId:n.string(),outcome:n.enum([`approved`,`changesRequested`,`unknown`])}))}),da=n.object({sessionId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:brandedString().nullable(),viewerAccess:M,grants:n.array(accessGrantSchema(C,[`manual`]))}),fa=n.object({id:n.string(),type:brandedString(),entityId:n.string(),label:n.string(),objectName:n.string().optional(),startIndex:n.number(),endIndex:n.number()}),U=n.object({id:n.string(),sessionId:n.string(),tenantId:n.string().optional(),runId:n.string().optional(),role:n.enum([`user`,`assistant`,`system`,`tool`]),parts:n.array(hi),attachments:n.array(V.strip()).optional(),mentions:n.array(fa).optional(),quotes:n.array(gi.strip()).optional(),model:H.optional(),tokenUsage:Gi.optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:i}),pa=U.extend({waiting:n.boolean().optional()}),ma=n.object({messages:n.array(pa),nextCursor:n.string().nullable(),hasMore:n.boolean(),committedSeq:n.number(),sessionState:Yi.optional()}),ha=n.object({outcome:ea,clientMessageId:n.string()}),ga=n.object({message:U,outcome:ea.optional()}),_a=n.object({message:U}),va=n.object({id:n.string(),definitionId:n.string().optional(),machineId:n.string().optional(),parentRunId:n.string().optional(),depth:n.number(),tenantId:n.string(),createdBy:n.string().optional(),authorityActorId:n.string().optional(),status:Wi,skipReason:n.literal(`credits_exhausted`).optional(),retryCount:n.number(),input:n.record(n.string(),n.unknown()),output:n.record(n.string(),n.unknown()).optional(),error:n.string().optional(),tokenUsage:Gi.optional(),costUsd:n.number().optional(),startedAt:i.optional(),completedAt:i.optional(),createdAt:i,sessionId:n.string().optional(),rootRunId:n.string().optional(),triggerId:n.string().optional(),sourceEventId:n.string().optional(),continuationKey:n.string().optional(),treeCostUsd:n.number().optional(),effectiveSystemPrompt:n.string().optional(),contentWithheld:n.literal(!0).optional()}),ya=n.object({id:n.string(),name:n.string(),description:n.string(),content:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),updatedAt:n.string()}),ba=n.object({memoryGranted:n.boolean(),profile:ya.nullable()}),xa=n.object({maxRetries:n.number(),backoffMs:n.number(),backoffMultiplier:n.number()}),Sa=n.object({maxConcurrentRuns:n.number(),retryPolicy:xa,costLimitUsd:n.number().optional(),inference:qi.optional()}),Ca=n.object({enabled:n.boolean(),model:H.optional(),systemPrompt:n.string().optional(),maxRetries:n.number().optional()}),wa=n.object({workspace:n.boolean(),roleIds:n.array(n.string()),actorIds:n.array(n.string())}),Ta=n.object({cron:n.string(),timezone:n.string().optional(),enabled:n.boolean(),input:n.record(n.string(),n.unknown()).optional(),runFor:n.enum([`armer`,`audience`]).optional(),audience:wa.optional(),continueConversation:n.boolean().optional()}),Ea=n.object({id:n.string(),tenantId:n.string(),name:n.string(),kind:n.enum([`agent`,`routine`]),label:n.string().optional(),avatar:Xi.optional(),starters:n.array(n.string()).optional(),description:n.string().optional(),systemPrompt:n.string(),model:H,toolGroups:n.array(brandedString()),schedule:Ta.optional(),scheduleLastFiredAt:i.optional(),config:Sa,system:n.boolean(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),createdBy:n.string(),scheduleArmedBy:n.string().optional(),createdAt:i,updatedAt:i,deletedAt:i.optional(),maxDepth:n.number().optional(),maxTreeCostUsd:n.number().optional(),critic:Ca.optional(),autoDecide:n.boolean().optional(),singleConversation:n.boolean().optional(),active:n.boolean().optional(),scheduleNextRunAt:i.optional(),viewerAccess:M.optional(),viewerInAudience:n.boolean().optional(),sharedWithCount:n.number().optional(),harness:brandedString().optional(),environmentId:n.string().optional(),shareChangeMachine:n.boolean().optional(),size:n.enum(P).optional()}),Da=n.object({definitionId:n.string(),lastRunAt:i.nullable(),lastRunStatus:Wi.nullable(),lastRunError:n.string().nullable(),lastRunSessionId:n.string().nullable(),running:n.number(),runs7d:n.number(),failed7d:n.number()}),Oa=n.object({definitionId:n.string(),day:n.string(),runs:n.number(),failed:n.number()}),ka=n.enum(Ii),Aa=n.object({definition:Ea,triggers:n.array(n.object({id:n.string(),eventType:ka,hasWebhook:n.boolean()}))}),ja=n.object({people:n.array(n.object({actorId:n.string(),source:brandedString(),missingConnections:n.array(n.string())}))}),Ma=n.object({name:n.string(),title:n.string().optional(),description:n.string().optional(),risk:n.enum([`read`,`mutation`,`destructive`,`outward`,`internal`,`conditional`]),approval:n.boolean()}),Na=n.object({kinds:n.array(n.enum(F)),capabilities:n.array(n.enum([`bulk`,`activity`,`transcript`,`copy_email`]))}),Pa=brandedString(),Fa=n.object({core:n.array(Ma),native:n.array(n.object({name:n.enum(g),granted:n.boolean(),grantable:n.boolean(),reason:Pa.optional(),enables:Na,tools:n.array(Ma)})),kinds:n.array(n.object({kind:n.enum(_),resources:n.array(n.object({id:n.string(),label:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),granted:n.boolean(),grantable:n.boolean(),usable:n.boolean(),reason:Pa.optional(),notes:n.array(Pa).optional(),usedBy:n.number().optional(),device:n.object({platform:n.enum([`darwin`,`linux`,`win32`]),status:n.enum([`online`,`offline`,`revoked`]),agentExecutionAuthorized:n.boolean()}).optional(),enables:Na,tools:n.array(Ma)}))}))}),Ia=n.object({visible:n.array(n.object({id:n.string(),name:n.string()})),hiddenCount:n.number()}),La=n.object({definitionId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:brandedString().nullable(),viewerAccess:M,grants:n.array(accessGrantSchema(b,[`manual`]))}),Ra=n.object({id:brandedString(),tenantId:brandedString(),name:n.string(),label:n.string(),description:n.string().optional(),system:n.boolean(),createdAt:i,updatedAt:i}),za=n.object({ok:n.literal(!0)}),Ba=n.object({at:i,status:n.number(),payload:n.unknown(),truncated:n.boolean()}),Va=n.object({id:n.string(),tenantId:n.string(),definitionId:n.string(),name:n.string().optional(),eventType:ka,objectId:n.string().optional(),watchedFields:n.array(n.string()).optional(),formDefinitionId:n.string().optional(),webhookPath:n.string().optional(),continuationKey:n.string().optional(),connectionId:n.string().optional(),match:unchecked().optional(),continueConversation:n.boolean().optional(),filter:unchecked().optional(),debounceMs:n.number().optional(),reentry:n.number().optional(),enabled:n.boolean(),createdBy:n.string(),lastFiredAt:i.optional(),webhookUrl:n.string().optional(),lastCall:Ba.optional(),createdAt:i,updatedAt:i}),Ha=Va.extend({addedToolGrants:n.array(brandedString()).optional()}),Ua=[`gmail`,`outlook`,`google-calendar`,`outlook-calendar`,`github`,`slack`],Wa=[`slack`,`whatsapp`],Ga=[`active`,`reauth_required`,`error`,`disconnected`],Ka=n.object({canRead:n.boolean(),canModify:n.boolean(),canSend:n.boolean()});function requestedCapabilities(e){return e.canModify?[`modify`]:[]}const qa=n.object({processed:n.number(),total:n.number().nullable(),backfilling:n.boolean()}),Ja=n.object({id:n.string(),provider:n.enum(Ua),ownerActorId:n.string().nullable(),parentConnectionId:n.string().nullable(),connectedByActorId:n.string().nullable().optional(),externalAccountId:n.string(),displayName:n.string().optional(),status:n.enum(Ga),lastSyncedAt:n.string().nullable(),createdAt:n.string(),capabilities:Ka,syncProgress:qa,usedBy:Ia.optional()}),Ya=[`actor`,`tenant`],Xa=n.object({providers:n.array(n.enum(Ua))}),Za=[`read`,`write`,`delete`,`userDirectory`],Qa=[`read`,`write`,`full`];function schemaStateAddressOf(e){return n.union([n.tuple([n.literal(`object`),e]),n.tuple([n.literal(`attribute`),e,e]),n.tuple([n.literal(`view`),e,e]),n.tuple([n.literal(`content`),e,e,e])])}const $a=n.object({attemptId:n.string(),authorizeUrl:n.string(),expiresAt:n.string()}),W=[`personal`,`workspace`],G=[`model`,`rule`,`manual`],K=[`address`,`domain`],eo=n.object({id:n.string(),scope:n.enum([...W,`system`]),name:n.string().nullable(),description:n.string(),icon:brandedString(),color:brandedString()}),to=n.object({category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable()}),no=n.object({id:n.string(),connectionId:n.string(),mailboxAddress:n.string(),scope:n.enum(K),match:n.string(),category:n.string(),createdBy:n.string(),createdAt:n.string(),updatedAt:n.string()}),ro=n.object({emails:n.number(),rules:n.number()}),io=n.object({verdict:to,ruleId:n.string().nullable(),previousRule:n.object({scope:n.enum(K),match:n.string(),category:n.string()}).nullable()}),ao=n.object({verdict:to,rule:no.nullable(),undo:io}),oo=[`gmail`,`outlook`];function isMailProvider(e){return e===`gmail`||e===`outlook`}const so=[`shared`,`private`],co=`DRAFT`;function isProviderDraft(e){return e.includes(co)}const lo=[`inbound`,`outbound`],uo=[`read`,`unread`,`archive`,`trash`,`restore`],fo=n.object({applied:n.array(n.string()),failed:n.array(n.object({id:n.string(),reason:n.string()})),synced:n.boolean()}),po=[`from`,`to`,`cc`,`bcc`],mo=n.object({address:n.string(),role:n.enum(po)}),ho=n.object({index:n.number(),filename:n.string(),mimeType:n.string(),sizeBytes:n.number(),contentId:n.string().optional(),inline:n.boolean().optional()}),q=n.object({fileId:n.string()}),go=n.object({id:n.string(),threadId:n.string(),connectionId:n.string().nullable(),messageId:n.string(),fromAddress:n.string(),fromName:n.string(),subject:n.string(),snippet:n.string(),bodyHtmlSafe:n.string(),bodyText:n.string(),hasRemoteContent:n.boolean(),sentAt:n.string(),direction:n.enum(lo),visibility:n.enum(e.RESOURCE_VISIBILITIES),isRead:n.boolean(),labels:n.array(n.string()),attachments:n.array(ho),participants:n.array(mo),category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable(),verdictScope:n.enum(W).nullable(),fromImage:q.optional()}),_o=n.object({threadId:n.string(),latestEmailId:n.string(),latestFromAddress:n.string(),latestFromName:n.string(),subject:n.string(),latestSentAt:n.string(),unreadCount:n.number(),messageCount:n.number(),snippet:n.string(),hasAttachments:n.boolean(),participants:n.array(mo),accountId:n.string().nullable(),category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable(),verdictScope:n.enum(W).nullable(),verdictEmailId:n.string().nullable(),latestFromImage:q.optional()}),vo=n.object({id:n.string(),provider:n.enum(oo),externalAccountId:n.string(),visibility:n.enum(so),status:n.enum(Ga),canSend:n.boolean()}),yo=[`threads`,`messages`],bo=[`panel`,`fullscreen`];function isMailboxListMode(e){return yo.includes(e)}const xo=n.object({sentAt:n.string(),threadId:n.string(),emailId:n.string().optional()}),So=n.object({threads:n.array(_o),nextCursor:xo.optional(),total:n.number().nullable(),totalIsExact:n.boolean().optional()}),Co=[`reply`,`reply_all`,`forward`,`new`],wo=[`reply`,`reply_all`];function isReplyMode(e){return wo.includes(e)}const To=n.object({accountId:n.string(),provider:n.enum(oo),parentEmailId:n.string(),subject:n.string(),selfAddresses:n.array(n.string())}),Eo=n.object({fileId:n.string(),name:n.string(),mimeType:n.string(),sizeBytes:n.number()}),Do=n.object({id:n.string(),accountId:n.string(),mode:n.enum(Co),threadId:n.string().nullable(),parentEmailId:n.string().nullable(),to:n.array(n.string()),cc:n.array(n.string()),bcc:n.array(n.string()),subject:n.string(),bodyHtml:n.string(),signatureHtml:n.string().nullable(),attachments:n.array(Eo),sendingAt:n.string().nullable(),createdAt:n.string(),updatedAt:n.string()}),Oo=n.object({connectionId:n.string(),address:n.string(),html:n.string().nullable(),onReplies:n.boolean()}),ko=n.object({address:n.string(),name:n.string().nullable(),occurrences:n.number(),image:q.optional()}).readonly(),Ao=n.object({recordId:n.string(),objectName:n.string()}).readonly(),jo=n.object({address:n.string(),name:n.string().nullable(),image:q.optional(),contact:Ao.optional()}).readonly(),Mo=n.object({threadId:n.string(),subject:n.string(),emails:n.array(go),replyDefaults:To.nullable(),linkedRecords:n.array(N)}),No=/^[A-Za-z0-9_-]+$/,Po=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?Z$/,Fo=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function encodeAgentSessionListCursor(e){return btoa(`${e.at}|${e.id}`).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function decodeAgentSessionListCursor(e){if(e.length>256||!No.test(e))return null;let t;try{t=atob(e.replace(/-/g,`+`).replace(/_/g,`/`))}catch{return null}let[n,r,...i]=t.split(`|`);return i.length>0||!n||!r||!Po.test(n)||!Fo.test(r)?null:isRealInstant(n)?{at:n,id:r}:null}function isRealInstant(e){let t=new Date(e);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,19)===e.slice(0,19)}const Io=n.object({id:n.string(),name:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string(),preparedAt:n.string().nullable(),lastUsedAt:n.string().nullable(),inUse:n.object({kind:n.enum([`agent`,`prepare`]),sessionId:n.string()}).nullable(),usedBy:n.array(n.object({id:n.string(),name:n.string(),kind:n.enum([`agent`,`routine`])})),personal:n.boolean()}),Lo=n.object({sessionId:n.string()}),Ro=n.object({url:n.string()}),zo=n.enum([`synced`,`added`]),Bo=n.enum([`code`,`http`]),Vo=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),mode:zo,origin:Bo.nullable(),hash:n.string().nullable(),uses:n.array(n.string()),installedAt:n.string(),updatedAt:n.string(),installedBy:n.string().nullable()}),Ho=n.enum([`current`,`update`,`repair`]),Uo=n.object({name:n.string(),status:Ho,usedBy:n.array(n.string())}),Wo=brandedString().nullable(),Go=n.object({objects:n.array(n.object({name:n.string(),label:n.string(),icon:n.string().nullable(),color:Wo,attributes:n.array(n.string()),optionsLabel:n.string().nullable(),options:n.array(n.object({label:n.string(),color:Wo})),inWorkspace:n.boolean()})),views:n.array(n.object({object:n.string(),tabs:n.array(n.string()),kind:n.enum([`table`,`kanban`,`list`,`record`])})),pages:n.array(n.object({name:n.string(),label:n.string(),inWorkspace:n.boolean(),home:n.boolean()})),extends:n.array(n.object({name:n.string(),label:n.string(),icon:n.string().nullable(),color:Wo})),skills:n.array(n.string()),agents:n.array(n.object({name:n.string(),label:n.string(),kind:n.enum([`routine`,`agent`]),inWorkspace:n.boolean()}))}),Ko=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),uses:n.array(n.string()),hasSamples:n.boolean(),installed:n.boolean(),contents:Go}),qo=n.object({installed:n.array(Vo),available:n.array(Ko)}),Jo=n.object({kind:n.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:n.string()}),Yo=n.object({object:n.string(),attribute:n.string(),to:n.enum(e.ATTRIBUTE_TYPES),dependents:n.array(Jo),hiddenDependents:n.number()}),Xo=n.object({object:n.string(),attribute:n.string(),declared:n.enum(e.ATTRIBUTE_TYPES),stored:n.enum(e.ATTRIBUTE_TYPES)}),Zo=n.enum([`object`,`view`,`agent`]),Qo=n.object({pieceId:n.string(),bundleName:n.string(),kind:Zo,status:n.enum([`new`,`collides`]),existingName:n.string().optional(),installed:n.literal(!0).optional(),installable:n.boolean(),reason:n.string().optional(),inverseRelations:n.array(n.object({objectName:n.string(),attributeName:n.string()})).optional()}),$o=n.object({pieces:n.array(Qo),fingerprint:n.string()}),es=n.enum([`object`,`view`,`page`,`tab`,`agent`,`attribute`,`option`,`skill`]),ts=n.enum([`added`,`updated`,`conflict`,`missing`,`notApplied`,`removed`]),ns=n.enum([`lossy`,`required`,`retype`,`move`,`nameTaken`,`refused`,`precondition`,`dependents`,`conversion`,`ambiguousRename`,`heldWith`,`invalid`,`blockedByWorkspace`,`resolved`,`needsConfirmation`,`usedByBundle`,`takeoverOfAdded`]),rs=n.object({pieceId:n.string(),kind:es,group:ts,label:n.string(),reasonCode:ns.optional(),reasonName:n.string().optional(),fromType:n.enum(e.ATTRIBUTE_TYPES).optional(),toType:n.enum(e.ATTRIBUTE_TYPES).optional(),dependents:n.array(Jo).optional(),hiddenDependents:n.number().optional()}),is=n.object({objectLabel:n.string(),attributeLabel:n.string()}),as=n.object({blockedBy:n.array(n.string()),objects:n.array(n.object({name:n.string(),label:n.string(),records:n.number()})),views:n.number(),viewContents:n.array(n.object({viewLabel:n.string(),contentLabel:n.string()})),hiddenViewContents:n.number(),pages:n.number(),routines:n.number(),agents:n.number(),skills:n.number(),inboundRelations:n.array(is),computedAttributes:n.array(is),prunedRelations:n.array(is),emptiedViews:n.array(n.object({viewLabel:n.string()})),citedBy:n.array(n.object({objectLabel:n.string(),attributeLabel:n.string().optional(),viewLabel:n.string().optional()})),fingerprint:n.string()}),os=as.pick({viewContents:!0,hiddenViewContents:!0,inboundRelations:!0,computedAttributes:!0,prunedRelations:!0,emptiedViews:!0}),J=n.object({pieceId:n.string(),kind:es,label:n.string(),records:n.number().optional(),cascade:os.optional()}),ss=n.object({applied:n.boolean(),hash:n.string(),objects:n.object({created:n.number(),updated:n.number(),deleted:n.number()}).optional(),views:n.object({created:n.number(),updated:n.number(),adopted:n.number(),released:n.number()}).optional(),deferredRetypes:n.array(Yo).optional(),servedAsIs:n.array(Xo).optional(),pendingRemovals:n.array(J)}),cs=n.object({pieces:n.array(rs),removals:n.array(J),totalRecords:n.number().optional(),fingerprint:n.string()}),ls=n.object({pieces:n.array(rs),removals:n.array(J),fingerprint:n.string(),totalRecords:n.number().optional()}),us=n.object({applied:n.number()}),ds=n.object({added:n.array(n.object({bundleName:n.string(),targetKind:Zo,targetId:n.string()})),failed:n.array(n.object({pieceId:n.string(),reason:n.string()}))}),Y=n.enum(zr.map(e=>e.id)),fs=n.enum([`idle`,`building`,`failed`]),ps=n.discriminatedUnion(`mode`,[n.object({mode:n.literal(`trusted`)}),n.object({mode:n.literal(`full`)}),n.object({mode:n.literal(`none`)}),n.object({mode:n.literal(`custom`),allow:n.array(n.string())})]),ms=n.object({step:n.enum([...Ur,`interrupted`]),exitCode:n.number().optional(),reason:n.literal(`credits_exhausted`).optional()}),hs=n.object({id:n.string(),name:n.string(),acceptedHarnesses:n.array(Y),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string(),ready:n.boolean(),version:n.number(),savedAt:n.string().optional(),buildState:fs,buildFailure:ms.nullable(),image:n.enum(Vr),size:n.enum(P),maxSize:n.enum(P),networkPolicy:ps,stale:n.boolean(),v2BuiltAt:n.string().nullable(),shellEnvNames:n.array(n.string()),usedBy:n.object({definitions:n.number(),conversations:n.number()}).optional(),availableHarnesses:n.array(Y).optional()}),gs=n.object({fullName:n.string(),ref:n.string().optional(),lazy:n.boolean().optional()}),_s=hs.extend({setupScript:n.string(),maintenanceScript:n.string(),repositories:n.array(gs),buildLog:n.string()}),vs=n.object({harness:Y.nullable(),available:n.boolean()}),ys=n.object({defaults:n.array(vs),environments:n.array(hs)}),bs=n.object({id:n.string(),label:n.string(),isDefault:n.literal(!0).optional()}),xs=n.object({source:n.enum([`live`,`served`,`compiled`]),models:n.array(bs)}),Ss=n.enum([`none`,`header`,`oauth`]),Cs=n.enum([`active`,`needs_reauth`,`error`]),ws=n.object({id:n.string(),slug:n.string(),name:n.string(),url:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),catalogEntryId:n.string().nullable(),authType:Ss,trusted:n.boolean(),status:Cs,lastSyncedAt:n.string().nullable(),lastSyncError:n.string().nullable(),createdAt:n.string(),usedBy:Ia.optional()}),Ts=n.enum([`dev`,`data`,`ai`,`crm`,`comm`,`marketing`,`productivity`,`finance`,`payments`,`security`,`hr`,`design`]),Es=n.object({id:n.string(),slug:n.string(),name:n.string(),url:n.string(),authType:Ss,category:Ts,description:n.string()}),Ds=n.object({callbackUrl:n.string(),clientMetadataUrl:n.string(),configured:n.boolean()}),Os=n.object({attemptId:n.string(),authorizeUrl:n.string(),expiresAt:n.string()}),ks=n.object({id:n.string(),objectId:n.string(),objectName:n.string(),objectLabel:n.string(),objectIcon:n.string().optional(),objectColor:brandedString().optional(),objectImage:unchecked().optional(),appearance:unchecked().optional(),label:n.string()}),As=n.object({options:n.array(ks),hasMore:n.boolean(),total:n.number(),nextOffset:n.number().optional()}),js=n.record(n.string(),n.array(ks)),Ms=n.discriminatedUnion(`type`,[n.object({key:n.string(),type:n.literal(`record`),object:n.string(),id:n.string(),label:n.string()}),n.object({key:n.string(),type:n.literal(`user`),id:n.string(),label:n.string(),avatarUrl:n.string().nullable()})]),Ns=n.object({id:n.string(),from:n.string(),to:n.string(),attribute:n.string(),attributeLabel:n.string(),properties:n.record(n.string(),n.unknown()).nullable()}),Ps=n.object({nodes:n.array(Ms),edges:n.array(Ns),hidden:n.record(n.string(),n.object({count:n.number(),saturated:n.boolean()}))}),Fs=unchecked(),Is=unchecked(),Ls=n.object({id:brandedString().optional(),name:n.string(),label:n.string(),pluralLabel:n.string().optional(),description:n.string().optional(),icon:brandedString().optional(),color:brandedString().optional(),image:unchecked().optional(),labelExpression:n.string(),embeddingExpression:n.string().optional(),attributes:n.array(Fs),system:n.boolean().optional(),sealed:n.boolean().optional(),toleratedAttributes:n.array(n.string()).optional(),metadata:n.record(n.string(),n.unknown()).optional(),documentLayout:unchecked().optional(),hierarchical:n.boolean().optional(),defaultDriveSort:n.enum(Ut).optional()}),Rs=n.object({kind:n.literal(`bundle`),name:n.string(),label:n.string(),objectNames:n.array(n.string())}),zs=n.object({groups:n.array(Rs)}),Bs=schemaStateAddressOf(n.string()),Vs=n.looseObject({address:Bs,source:unchecked().nullable(),effective:unchecked().nullable(),status:n.enum([`source`,`runtime`,`copy`,`suppressed`]),sourceOwner:brandedString().nullable(),guard:n.union([n.looseObject({id:n.string(),revision:n.number()}),n.looseObject({id:n.string(),updatedAt:n.string()})]).nullable()}),Hs=n.looseObject({modelVersion:n.literal(1),hashVersion:n.literal(1),tenant:n.string(),sourceFingerprint:n.string(),entries:n.array(Vs)}),Us=n.object({id:n.string(),revision:n.number(),definition:unchecked()}),Ws=n.object({viewId:n.string(),objectId:n.string(),objectName:n.string(),legacyObjectName:n.string(),legacyTabId:n.string(),contentName:n.string()}),Gs=n.object({draftId:n.string(),version:n.number()}),Ks=n.object({revision:Gs.nullable(),targetTokens:n.record(n.string(),n.string()).readonly()}),qs={objectName:n.string().optional(),attributeName:n.string().optional(),viewName:n.string().optional(),pageId:n.string().optional()},Js=n.object({code:brandedString(),target:n.object({kind:n.enum([`object`,`attribute`,`view`,`page`]),...qs}).optional(),operationId:n.string().optional(),message:n.string().optional(),at:n.string()}),Ys=n.object({draftId:n.string(),outcome:n.enum([`published`,`refused`]),at:n.string(),error:Js.optional()}),Xs=n.object({rule:n.enum([`computed-cycle`,`bilateral-pair`,`content-view`]),target:n.object(qs),message:n.string()}),Zs=n.object({id:n.string(),actorId:n.string(),agentSessionId:n.string().nullable(),operations:n.array(unchecked()),baselines:n.record(n.string(),n.string()),status:n.enum([`composing`,`published`,`discarded`]),version:n.number(),lastPublishError:Js.optional()}),Qs=Zs.extend({commandGuard:Ks,publishBlockers:n.array(Xs)}),$s=n.object({operationIds:n.array(n.string()),revision:Gs,changedTargets:n.array(n.object({target:unchecked(),token:n.string()})),notes:n.record(n.string(),n.string()).readonly().optional(),steps:n.array(unchecked()).optional()}),ec=n.object({draftId:n.string(),objectIds:n.array(n.string()),affectedObjectIds:n.array(n.string()),viewIds:n.array(n.string()),droppedContentIds:n.array(n.string()),createdRecordIds:n.array(n.string()),createdPageIds:n.record(n.string(),n.string())}),tc={draftId:n.string().nullable(),version:n.number()},nc=n.discriminatedUnion(`status`,[n.object({...tc,status:n.literal(`ready`),state:unchecked(),changes:n.array(unchecked()).readonly(),targets:n.array(n.object({key:n.string(),label:n.string(),kind:n.enum([`object`,`attribute`,`view`,`content`,`sample`]),icon:n.string().nullable().optional(),focus:unchecked(),state:n.enum([`ready`,`preparing`,`unavailable`])})).readonly(),targetTokens:n.record(n.string(),n.string()).readonly(),baselineToken:n.string()}),n.object({...tc,status:n.literal(`invalid`),operationId:n.string().nullable(),message:n.string()})]),rc=n.object({kind:n.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:n.string()}),ic=n.object({from:n.enum(e.ATTRIBUTE_TYPES),targets:n.array(n.object({type:n.enum(e.ATTRIBUTE_TYPES),verdict:n.enum([`retype`,`refuse`]),reason:n.enum([`lossy`,`conversion`,`unsupported`,`required`,`precondition`,`dependents`]).optional(),losses:n.array(n.object({capability:n.enum([`filterable`,`sortable`,`groupable`,`kanbanGroupable`,`tableCell`])})),dependents:n.array(rc),hiddenDependents:n.number()})),deferred:n.object({to:n.enum(e.ATTRIBUTE_TYPES),dependents:n.array(rc),hiddenDependents:n.number()}).nullable()}),X=brandedString(),ac=n.object({icon:brandedString().optional(),image:n.object({fileId:X,source:n.enum($r)}).optional()}),Z=n.looseObject({id:X,objectId:X,objectName:n.string().optional(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:X.nullable(),viewerAccess:n.enum([`owner`,`editor`,`runner`,`reader`,`workspace`]).optional(),label:n.string(),embeddingText:n.string().optional(),appearance:ac.optional(),parentId:X.nullable(),ancestorIds:n.array(X).readonly(),trashedWithRecordId:X.nullable(),childIds:n.array(X).readonly().optional(),values:n.record(n.string(),n.unknown()),metadata:n.record(n.string(),n.unknown()).optional(),deletedAt:i.nullable().optional(),deletedBy:n.string().nullable().optional(),createdBy:n.string().optional(),lastUpdatedBy:n.string().optional(),version:n.number().optional(),writeVersion:n.number().optional(),schemaVersion:n.number(),createdAt:i,updatedAt:i}),oc=n.codec(n.string(),n.union([n.date(),n.string()]),{decode:e=>new Date(e),encode:e=>e instanceof Date?e.toISOString():e}),sc=n.object({start:oc,end:oc.nullable()}),cc=n.union([oc,sc]).nullable().optional(),lc=/* @__PURE__ */ new WeakMap,uc=n.looseObject({});function recordValuesCodec(e){if(e===null)return uc;let t=lc.get(e);if(t)return t;let r=(e.attributes??[]).filter(e=>e.type===`date`),i=n.looseObject(Object.fromEntries(r.map(e=>[e.name,cc])));return lc.set(e,i),i}function decodeRecordValues(e,t){let r=recordValuesCodec(e),i=n.safeDecode(r,t);if(i.success)return i.data;let a=new Set(i.error.issues.map(e=>e.path[0])),o=n.safeDecode(r,Object.fromEntries(Object.entries(t).filter(([e])=>!a.has(e))));return o.success?{...t,...o.data}:t}function encodeRecordValues(e,t){let r=n.safeEncode(recordValuesCodec(e),t);return r.success?r.data:t}const dc=n.object({hasMore:n.boolean(),total:n.number().nullable(),countMode:n.enum(w),nextOffset:n.number().optional(),totalIsExact:n.boolean().optional()});function collectionOutputSchema(e){return n.object({data:n.array(e),page:dc})}const fc=collectionOutputSchema(Z),pc=n.object({id:X,sourceRecordId:X,sourceObjectName:n.string(),sourceAttribute:n.string(),referenceKind:n.string(),properties:n.record(n.string(),n.unknown()),createdAt:i}),mc=collectionOutputSchema(pc),hc=n.enum(t.SchemaErrorCode),gc=n.object({created:n.array(Z),errors:n.array(n.object({index:n.number(),error:n.string()}))}),_c=n.object({updated:n.array(Z),errors:n.array(n.object({id:n.string(),error:n.string(),code:hc}))}),vc=n.object({deleted:n.array(n.string()),errors:n.array(n.object({id:n.string(),error:n.string(),code:hc}))}),yc=n.object({incomingReferences:n.number(),descendants:n.number()}),bc=n.object({purged:n.literal(!0),id:n.string()}),xc=n.object({currency:n.string(),value:n.number()}),Sc=n.enum(ln),Cc=n.object({key:n.string().nullable(),key2:n.string().nullable().optional(),value:n.number().nullable(),byCurrency:n.array(xc).optional()}),wc=n.object({groups:n.array(Cc),total:n.number().nullable(),byCurrency:n.array(xc).optional(),truncated:n.boolean(),appliedBucket:Sc.optional(),appliedBucket2:Sc.optional(),currency:n.string().optional(),previous:n.number().nullable().optional(),series:n.record(n.string(),n.object({groups:n.array(Cc),currency:n.string().nullable()})).optional()}),Tc=n.string().trim().min(1).max(24),Ec=n.string().trim().min(10).max(500),Dc=n.enum(K),Oc=n.object({scope:n.enum(W),name:Tc,description:Ec,icon:e.iconNameSchema.default(`tag`),color:e.colorIdSchema.default(Kr)}),kc=n.object({name:Tc.optional(),description:Ec.optional(),icon:e.iconNameSchema.optional(),color:e.colorIdSchema.optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),Ac=n.object({moveTo:n.string().min(1).nullable().default(null)}),jc=n.object({category:n.string().min(1).optional(),important:n.boolean().optional()}).refine(e=>e.category!==void 0||e.important!==void 0,{message:`Nothing to classify`}),Mc=n.object({verdict:n.object({category:n.string().min(1).nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable()}),ruleId:n.string().uuid().nullable(),previousRule:n.object({scope:Dc,match:n.string().trim().toLowerCase().min(1),category:n.string().min(1)}).nullable()}).refine(e=>e.ruleId!==null||e.previousRule===null,{message:`A previous rule needs the rule it restores`}),Nc=n.object({scope:n.literal(`domain`)}),Pc=n.object({scope:n.enum(W)}),Fc=n.object({type:n.enum(at),color:n.enum(r.AVATAR_COLOR_IDS),expression:n.enum(ot).default(`relaxed`)}).strict(),Ic=n.array(n.string().trim().min(1).max(200)).max(4);function agentAvatarFromMetadata(e){let t=Fc.safeParse(e);return t.success?t.data:void 0}function normalizeNewsLocale(e){return e.toLowerCase().split(`-`)[0]===`fr`?`fr`:`en`}function resolveLocalized(e,t){return e[normalizeNewsLocale(t)]||(e.en?e.en:e.fr||void 0)}function hasLocale(e){return!!(e.fr||e.en)}const Lc=Object.keys({home:!0,agents:!0,routines:!0,object:!0,settings:!0}),Rc=[`dot`,`label`,`bubble`];function parseNewsIntensity(e){return Rc.find(t=>t===e)??`dot`}function parseNewsTarget(e){let[t,...n]=e.split(`:`),r=n.join(`:`);switch(t){case`home`:case`agents`:case`routines`:return r===``?{kind:t}:null;case`object`:return r?{kind:t,name:r}:null;case`settings`:return r?{kind:t,section:r}:null;default:return null}}function formatNewsTarget(e){return e.kind===`object`?`object:${e.name}`:e.kind===`settings`?`settings:${e.section}`:e.kind}function withoutTrailingSlashes(e){let t=e.length;for(;t>0&&e[t-1]===`/`;)--t;return e.slice(0,t)}const zc=/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/;function compareIdentifiers(e,t){let n=/^\d+$/.test(e),r=/^\d+$/.test(t);return n&&r?Math.sign(Number(e)-Number(t)):n?-1:r?1:e<t?-1:+(e>t)}function compareVersions(e,t){let n=zc.exec(e),r=zc.exec(t);if(!(n&&r))return null;for(let e=1;e<=3;e+=1){let t=Number(n[e])-Number(r[e]);if(t!==0)return t<0?-1:1}let i=n[4],a=r[4];if(i===void 0&&a===void 0)return 0;if(i===void 0)return 1;if(a===void 0)return-1;let o=i.split(`.`),s=a.split(`.`);for(let e=0;e<Math.max(o.length,s.length);e+=1){let t=o[e],n=s[e];if(t===void 0)return-1;if(n===void 0)return 1;let r=compareIdentifiers(t,n);if(r!==0)return r<0?-1:1}return 0}function isSemver(e){return zc.test(e)}const Bc=n.looseObject({fr:n.string().optional(),en:n.string().optional()}),Vc=n.iso.datetime({offset:!0}),Hc=n.looseObject({id:n.string().min(1),slug:n.string().min(1),updatedAt:Vc,publishedAt:Vc,since:n.string(),displayDays:n.number().int().positive().optional(),requires:n.looseObject({capability:n.string(),level:n.string()}).optional(),target:n.string().optional(),intensity:n.unknown().optional(),title:Bc,summary:Bc}),Uc=n.object({fr:n.string().optional(),en:n.string().optional()}),Wc=n.discriminatedUnion(`kind`,[n.object({kind:n.literal(`home`)}),n.object({kind:n.literal(`agents`)}),n.object({kind:n.literal(`routines`)}),n.object({kind:n.literal(`object`),name:n.string()}),n.object({kind:n.literal(`settings`),section:n.string()})]),Gc=n.object({id:n.string(),slug:n.string(),updatedAt:n.string(),publishedAt:n.string(),since:n.string(),displayDays:n.number(),requires:n.object({capability:n.string(),level:n.string()}).optional(),target:Wc.optional(),intensity:n.enum(Rc),title:Uc,summary:Uc}),Kc=n.object({blogUrl:n.string().optional(),mediaBaseUrl:n.string().optional(),entries:n.array(Gc)}),qc=n.object({id:n.string(),slug:n.string(),updatedAt:n.string(),body:Uc});function knownRequirement(e){let t=l.find(t=>t.id===e.capability);return t!==void 0&&levelActions(t,e.level).length>0}function parseEntry(e){let t=Hc.safeParse(e);if(!t.success)return`malformed entry: ${t.error.issues[0]?.message??`invalid`}`;let n=t.data;if(!isSemver(n.since))return`entry ${n.id}: since "${n.since}" is not semver`;if(!hasLocale(n.title))return`entry ${n.id}: title has no locale`;if(!hasLocale(n.summary))return`entry ${n.id}: summary has no locale`;if(n.requires&&!knownRequirement(n.requires))return`entry ${n.id}: unknown requirement ${n.requires.capability}/${n.requires.level}`;let r=n.target?parseNewsTarget(n.target):null;return{...n,displayDays:n.displayDays??30,intensity:parseNewsIntensity(n.intensity),target:r??void 0}}function httpsUrl(e){return typeof e==`string`&&e.startsWith(`https://`)?e:void 0}function parseNewsIndex(e,n){if(typeof e!=`object`||!e||Array.isArray(e))throw new t.ValidationError(`News feed: document must be an object`,[]);let r=e;if(!Array.isArray(r.entries))throw new t.ValidationError(`News feed: entries must be an array`,[]);let i=[];for(let e of r.entries){let t=parseEntry(e);typeof t==`string`?n?.(t):i.push(t)}let a=httpsUrl(r.blogUrl),o=httpsUrl(r.mediaBaseUrl),s=o?withoutTrailingSlashes(o):void 0;return{...a?{blogUrl:a}:{},...s?{mediaBaseUrl:s}:{},entries:i.slice(0,50)}}const Jc=n.looseObject({id:n.string().min(1),slug:n.string().min(1),updatedAt:Vc,body:Bc});function parseNewsBody(e){let n=Jc.safeParse(e);if(!n.success)throw new t.ValidationError(`News body: malformed document`,[]);if(!hasLocale(n.data.body))throw new t.ValidationError(`News body: body needs at least one locale`,[]);return n.data}const Yc=unchecked(),Xc=n.object({values:unchecked(),entries:n.array(Yc)});function preferenceEntry(e,t,n){return n===void 0?{key:e,value:t}:{key:e,parameter:n,value:t}}function withPreferenceEntry(e,t){if(t.parameter===void 0)return{...e,values:{...e.values,[t.key]:t.value}};let n=e.entries.findIndex(e=>e.key===t.key&&e.parameter===t.parameter),r=n===-1?[...e.entries,t]:e.entries.map((e,r)=>r===n?t:e);return{...e,entries:r}}const Q=n.uuid(),$=n.record(n.string(),n.unknown()),Zc=n.strictObject({objectName:n.string(),recordId:Q,attribute:n.string(),base:n.unknown(),props:$.optional()}),Qc=n.strictObject({kind:n.literal(`record.set`),objectId:Q,recordId:Q,values:$,base:$.optional(),metadata:$.optional()}),$c=n.strictObject({kind:n.literal(`record.create`),objectId:Q,recordId:Q,values:$,options:n.strictObject({visibility:n.enum([`workspace`,`private`]).optional(),allowDraft:n.boolean().optional(),linkTo:Zc.optional(),parentId:Q.optional(),metadata:$.optional()}).optional()}),el=n.strictObject({kind:n.literal(`record.delete`),objectId:Q,recordId:Q}),tl=n.strictObject({kind:n.literal(`record.restore`),objectId:Q,recordId:Q}),nl=n.string().min(1),rl=n.discriminatedUnion(`command`,[n.strictObject({command:n.literal(`replace`),oldText:nl,newText:n.string(),replaceAll:n.boolean().optional()}),n.strictObject({command:n.literal(`insert`),text:nl,after:nl.optional()})]),il=n.strictObject({kind:n.literal(`record.patch`),objectId:Q,recordId:Q,attribute:n.string(),edit:rl}),al=n.discriminatedUnion(`kind`,[Qc,$c,el,tl,il]),ol=n.strictObject({opId:Q,steps:n.array(al).min(1).max(100)}).superRefine((e,t)=>{let n=/* @__PURE__ */ new Set;for(let r of e.steps){if(n.has(r.recordId)){t.addIssue({code:`custom`,message:`one step per record`,path:[`steps`]});return}n.add(r.recordId)}});Object.defineProperty(exports,"ACCESS_CAPABILITIES",{enumerable:!0,get:function(){return Za}}),Object.defineProperty(exports,"ACCESS_LEVELS",{enumerable:!0,get:function(){return Qa}}),Object.defineProperty(exports,"ACCESS_ROLES",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"ACTIONABLE_DECISION_KINDS",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"ACTOR_TYPES",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,"AGENT_ASIDE_ANSWER_MAX_LENGTH",{enumerable:!0,get:function(){return 32e3}}),Object.defineProperty(exports,"AGENT_ASIDE_HISTORY_LIMIT",{enumerable:!0,get:function(){return 20}}),Object.defineProperty(exports,"AGENT_ASIDE_QUESTION_MAX_LENGTH",{enumerable:!0,get:function(){return 4e3}}),Object.defineProperty(exports,"AGENT_AVATAR_EXPRESSIONS",{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,"AGENT_AVATAR_TYPES",{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,"AGENT_MESSAGE_KIND",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,"AGENT_MESSAGE_SENDER_NAME_KEY",{enumerable:!0,get:function(){return`senderName`}}),Object.defineProperty(exports,"AGENT_NOTIFICATION_KIND",{enumerable:!0,get:function(){return mt}}),Object.defineProperty(exports,"AGENT_SESSION_ACCESS_ROLES",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"AGENT_SESSION_LIST_ORDERS",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,"AGENT_SESSION_ORIGINS",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,"AGENT_SESSION_PROVENANCES",{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,"AGENT_STARTERS_MAX",{enumerable:!0,get:function(){return 4}}),Object.defineProperty(exports,"AGENT_STARTER_MAX_LENGTH",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"AGENT_SYSTEM_PROMPT_MAX_LENGTH",{enumerable:!0,get:function(){return 5e4}}),Object.defineProperty(exports,"AGENT_TASK_KINDS",{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,"AGENT_WAKE_KIND",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,"AGGREGATE_BUCKETS",{enumerable:!0,get:function(){return ln}}),Object.defineProperty(exports,"AGGREGATE_MEASURES",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,"AI_MODEL_INPUT_MODALITIES",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,"AI_MODEL_PROFILE_LABELS",{enumerable:!0,get:function(){return dt}}),Object.defineProperty(exports,"AI_MODEL_REASONING_MODES",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(exports,"ALL_CATALOG_TOOL_NAMES",{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,"ALWAYS_KINDS",{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,"APPEARANCE_FACETS",{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,"APPROVAL_FAMILY_TOOL_NAMES",{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,"ARCHITECT_PUBLICATION_KIND",{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,"ASK_QUESTIONS_ANSWER_MAX_LENGTH",{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,"ASK_QUESTIONS_ANSWER_MAX_VALUES",{enumerable:!0,get:function(){return 50}}),Object.defineProperty(exports,"ASK_QUESTIONS_FILE_REF",{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,"ASK_QUESTIONS_MAX_ADDED_FILES",{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,"ASK_QUESTIONS_MAX_BATCH",{enumerable:!0,get:function(){return 4}}),Object.defineProperty(exports,"ASK_QUESTIONS_TOOL_NAME",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"ATTACH_FILE_ACTIONS",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,"AUDIT_ACTIONS",{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,"AUDIT_AGENT_SESSION_METADATA_KEY",{enumerable:!0,get:function(){return`agentSessionId`}}),Object.defineProperty(exports,"AUDIT_RESOURCE_TYPES",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,"AgentBuilder",{enumerable:!0,get:function(){return AgentBuilder}}),Object.defineProperty(exports,"BILLING_MODES",{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,"BROWSER_LAUNCH_TOOL_NAME",{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(exports,"BROWSER_TOOL_NAMES",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"BUNDLE_LOCALES",{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,"BUNDLE_SETUP_PROMPT_MAX_LENGTH",{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,"CATALOG_RESOURCES",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,"CHAT_PROVIDERS",{enumerable:!0,get:function(){return Wa}}),Object.defineProperty(exports,"CONNECTION_GRANT_PROVIDERS",{enumerable:!0,get:function(){return En}}),Object.defineProperty(exports,"CONNECTION_STATUS_IDS",{enumerable:!0,get:function(){return Ga}}),Object.defineProperty(exports,"CONNECTOR_PROVIDER_IDS",{enumerable:!0,get:function(){return Ua}}),Object.defineProperty(exports,"CONNECTOR_SCOPES",{enumerable:!0,get:function(){return Ya}}),Object.defineProperty(exports,"CONTINUATION_KEY_PATTERN",{enumerable:!0,get:function(){return Bi}}),Object.defineProperty(exports,"CONVERSATION_SURFACES",{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,"COPY_VERB_NAME",{enumerable:!0,get:function(){return`copy`}}),Object.defineProperty(exports,"CORE_RECORD_TOOL_NAMES",{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,"CORE_TOOL_NAMES",{enumerable:!0,get:function(){return bn}}),Object.defineProperty(exports,"COUNT_MODES",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"CUSTOM_LEVEL",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"DECISION_INBOX_STATES",{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,"DECISION_KINDS",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"DECISION_LINE_MAX_LENGTH",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"DECISION_LINK_TARGET_TYPES",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,"DECISION_LIST_STATES",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"DECISION_READ_STATES",{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,"DECISION_SENDER_KINDS",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"DECISION_SETTINGS_AREAS",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"DECISION_TITLE_MAX_LENGTH",{enumerable:!0,get:function(){return 120}}),Object.defineProperty(exports,"DECISION_TRANSFERS_KEY",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,"DECISION_TYPES_V1",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"DECISION_TYPE_ACCESS_GRANTED",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_APPROVAL",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_MESSAGE",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_QUESTION",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_REVIEW",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_ROUTINE_RUN_FAILED",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"DECISION_TYPE_AGENT_SETUP",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"DECISION_TYPE_BUNDLE_SETUP",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"DECISION_TYPE_CONNECTOR_CONNECTION_ERROR",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"DECISION_TYPE_CONNECTOR_CONNECTION_SEND_NOT_GRANTED",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"DECISION_TYPE_ENVIRONMENT_BUILD_FAILED",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"DECISION_TYPE_KINDS",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"DECISION_TYPE_PERSON",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"DECISION_TYPE_RECORD_ASSIGNED",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"DECISION_TYPE_RECORD_MENTIONED",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"DECISION_WORK_STATES",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"DEFAULT_AGENT_EXECUTION_CONFIG",{enumerable:!0,get:function(){return Zr}}),Object.defineProperty(exports,"DEFAULT_AGENT_TOOL_GROUPS",{enumerable:!0,get:function(){return Dn}}),Object.defineProperty(exports,"DEFAULT_APPEARANCE_ICON",{enumerable:!0,get:function(){return`box`}}),Object.defineProperty(exports,"DEFAULT_APPROVAL_POLICY",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"DEFAULT_BLUEPRINT_TOOL_GROUPS",{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,"DEFAULT_DAILY_ACTIVITY_DAYS",{enumerable:!0,get:function(){return 182}}),Object.defineProperty(exports,"DEFAULT_DICTATION_LIMITS",{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,"DEFAULT_MEETING_BOT_DISPLAY_NAME",{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,"DEFAULT_TENANT_SETTINGS",{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,"DEVICE_ACCESS_ROLES",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"DEVICE_CHANNEL_AUTHENTICATE_TIMEOUT_MS",{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,"DEVICE_CHANNEL_IDLE_POLL_MS",{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,"DEVICE_CHANNEL_KEEPALIVE_MS",{enumerable:!0,get:function(){return 2e4}}),Object.defineProperty(exports,"DEVICE_CHANNEL_MAX_FRAME_BYTES",{enumerable:!0,get:function(){return 262144}}),Object.defineProperty(exports,"DEVICE_CHANNEL_PATH",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(exports,"DEVICE_CHANNEL_PRESENCE_MS",{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,"DEVICE_CHANNEL_WORKER_CLOSE_PROTOCOL_VIOLATION",{enumerable:!0,get:function(){return 4008}}),Object.defineProperty(exports,"DEVICE_COMMAND_ERROR_CODES",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,"DEVICE_DESKTOP_STATES",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,"DEVICE_SHELLS",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,"DICTATION_FINALIZATION_TIMEOUT_MS",{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,"DICTATION_FRAME_BYTES",{enumerable:!0,get:function(){return 3200}}),Object.defineProperty(exports,"DICTATION_MAX_BUFFER_BYTES",{enumerable:!0,get:function(){return 16e3}}),Object.defineProperty(exports,"DICTATION_MAX_FRAME_BYTES",{enumerable:!0,get:function(){return 6400}}),Object.defineProperty(exports,"DICTATION_MAX_TRANSCRIPT_BYTES",{enumerable:!0,get:function(){return 65536}}),Object.defineProperty(exports,"DICTATION_MODEL_ID",{enumerable:!0,get:function(){return`google/gemini-3.5-transcribe-live`}}),Object.defineProperty(exports,"DICTATION_PREPARATION_TIMEOUT_MS",{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,"DICTATION_SAMPLE_RATE",{enumerable:!0,get:function(){return 16e3}}),Object.defineProperty(exports,"DICTATION_TICKET_TTL_MS",{enumerable:!0,get:function(){return 15e3}}),Object.defineProperty(exports,"DISCARD_ARCHITECT_DRAFT_TOOL_NAME",{enumerable:!0,get:function(){return`discard_architect_draft`}}),Object.defineProperty(exports,"DOCUMENT_KINDS",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,"DOCUMENT_SORT_MODES",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(exports,"DRAFT_WRITE_TOOL_NAMES",{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,"DeviceChannelProtocolError",{enumerable:!0,get:function(){return DeviceChannelProtocolError}}),Object.defineProperty(exports,"DeviceChannelServerFrameSchema",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,"DeviceChannelWorkerFrameSchema",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,"DeviceDesktopStatusSchema",{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DEFAULT_COLOR",{enumerable:!0,get:function(){return Kr}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DEFAULT_ICON",{enumerable:!0,get:function(){return`tag`}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DESCRIPTION_MAX",{enumerable:!0,get:function(){return 500}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DESCRIPTION_MIN",{enumerable:!0,get:function(){return 10}}),Object.defineProperty(exports,"EMAIL_CATEGORY_LIMIT",{enumerable:!0,get:function(){return 8}}),Object.defineProperty(exports,"EMAIL_CATEGORY_NAME_MAX",{enumerable:!0,get:function(){return 24}}),Object.defineProperty(exports,"EMAIL_CATEGORY_SCOPES",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"EMAIL_CLASSIFIED_BY",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"EMAIL_DIRECTIONS",{enumerable:!0,get:function(){return lo}}),Object.defineProperty(exports,"EMAIL_PARTICIPANT_ROLES",{enumerable:!0,get:function(){return po}}),Object.defineProperty(exports,"EMAIL_PROVIDERS",{enumerable:!0,get:function(){return oo}}),Object.defineProperty(exports,"EMAIL_RULE_SCOPES",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"ENVIRONMENT_BUILD_LOG_STEPS",{enumerable:!0,get:function(){return Ur}}),Object.defineProperty(exports,"ENVIRONMENT_BUILD_LOG_STEP_PREFIX",{enumerable:!0,get:function(){return`── `}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESSES",{enumerable:!0,get:function(){return zr}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESS_SANDBOX_WORKDIR",{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESS_WORKDIR",{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,"ENVIRONMENT_IMAGES",{enumerable:!0,get:function(){return Vr}}),Object.defineProperty(exports,"ENVIRONMENT_MEMORY_GB_PER_VCPU",{enumerable:!0,get:function(){return 2}}),Object.defineProperty(exports,"ENVIRONMENT_NAME_MAX_CHARS",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"ENVIRONMENT_NETWORK_ALLOW_MAX",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"ENVIRONMENT_SCRIPT_MAX_BYTES",{enumerable:!0,get:function(){return 65536}}),Object.defineProperty(exports,"ENVIRONMENT_SIZES",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"ENVIRONMENT_SIZE_VCPUS",{enumerable:!0,get:function(){return Hr}}),Object.defineProperty(exports,"ENVIRONMENT_STANDARDS_WORKDIR",{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,"ENV_VAR_KEY_PATTERN",{enumerable:!0,get:function(){return Ri}}),Object.defineProperty(exports,"ESTIMATED_COUNT_CAP",{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,"FILE_LIST_MAX_IDS",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"FILE_OCR_STATUSES",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,"FILE_URLS_MAX_IDS",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"FORM_STATUSES",{enumerable:!0,get:function(){return qt}}),Object.defineProperty(exports,"FORM_SUBMISSION_STATUSES",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,"GET_ARCHITECT_DRAFT_TOOL_NAME",{enumerable:!0,get:function(){return`get_architect_draft`}}),Object.defineProperty(exports,"GITHUB_TRIGGER_CATALOG",{enumerable:!0,get:function(){return wi}}),Object.defineProperty(exports,"GITHUB_TRIGGER_FAMILIES",{enumerable:!0,get:function(){return ki}}),Object.defineProperty(exports,"GRANT_ENABLES",{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,"HARNESS_BRIDGE_PORT",{enumerable:!0,get:function(){return 4e3}}),Object.defineProperty(exports,"HITL_TOOL_NAMES",{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,"IMAGE_FORMATS",{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,"IMAGE_SHAPES",{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,"IMAGE_SOURCES",{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,"INFERENCE_REASONING_OPTIONS",{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,"INFERENCE_ROUTING_MODES",{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,"INFERENCE_SPEEDS",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,"LAST_RUN_ERROR_MAX_LENGTH",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"LINK_COOKIE_MAX_AGE_MS",{enumerable:!0,get:function(){return 432e5}}),Object.defineProperty(exports,"LINK_DEFAULT_MS",{enumerable:!0,get:function(){return 432e5}}),Object.defineProperty(exports,"LINK_MAX_MS",{enumerable:!0,get:function(){return 864e5}}),Object.defineProperty(exports,"MACHINE_KEY_KINDS",{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(exports,"MAILBOX_ACCOUNT_VISIBILITIES",{enumerable:!0,get:function(){return so}}),Object.defineProperty(exports,"MAILBOX_LIST_MODES",{enumerable:!0,get:function(){return yo}}),Object.defineProperty(exports,"MAILBOX_READER_LAYOUTS",{enumerable:!0,get:function(){return bo}}),Object.defineProperty(exports,"MAIL_DRAFT_BODY_MAX_CHARS",{enumerable:!0,get:function(){return 2e5}}),Object.defineProperty(exports,"MAIL_DRAFT_MODES",{enumerable:!0,get:function(){return Co}}),Object.defineProperty(exports,"MAIL_SIGNATURE_MAX_CHARS",{enumerable:!0,get:function(){return 2e4}}),Object.defineProperty(exports,"MAIL_SUBJECT_MAX_CHARS",{enumerable:!0,get:function(){return 998}}),Object.defineProperty(exports,"MAX_AGGREGATE_GROUPS",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"MAX_AGGREGATE_SERIES",{enumerable:!0,get:function(){return 4}}),Object.defineProperty(exports,"MAX_DAILY_ACTIVITY_DAYS",{enumerable:!0,get:function(){return 366}}),Object.defineProperty(exports,"MAX_TODOS",{enumerable:!0,get:function(){return 50}}),Object.defineProperty(exports,"MAX_TODO_DESCRIPTION_CHARS",{enumerable:!0,get:function(){return 500}}),Object.defineProperty(exports,"MAX_TODO_ID_CHARS",{enumerable:!0,get:function(){return 80}}),Object.defineProperty(exports,"MEETING_BOT_IMAGE",{enumerable:!0,get:function(){return rr}}),Object.defineProperty(exports,"MEETING_BOT_IMAGE_BASE64_MAX_LENGTH",{enumerable:!0,get:function(){return ir}}),Object.defineProperty(exports,"MEETING_BOT_MEMBER_CAP",{enumerable:!0,get:function(){return`MEETING_BOT_MEMBER_CAP`}}),Object.defineProperty(exports,"MEETING_BOT_NO_CREDITS",{enumerable:!0,get:function(){return`MEETING_BOT_NO_CREDITS`}}),Object.defineProperty(exports,"MEETING_BOT_SILENT_REASON",{enumerable:!0,get:function(){return`sent nothing back`}}),Object.defineProperty(exports,"MEETING_CONFERENCE_REQUESTS",{enumerable:!0,get:function(){return dr}}),Object.defineProperty(exports,"MEETING_PARTICIPANT_ROLES",{enumerable:!0,get:function(){return qn}}),Object.defineProperty(exports,"MEETING_RESPONSES",{enumerable:!0,get:function(){return Yn}}),Object.defineProperty(exports,"MEETING_RESPONSE_STATUSES",{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,"MEETING_STATUSES",{enumerable:!0,get:function(){return Kn}}),Object.defineProperty(exports,"NATIVE_TOOL_GROUPS",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"NATIVE_TOOL_GROUP_CATALOG",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"NEWS_DEFAULT_DISPLAY_DAYS",{enumerable:!0,get:function(){return 30}}),Object.defineProperty(exports,"NEWS_DISPLAY_CAP_DAYS",{enumerable:!0,get:function(){return 90}}),Object.defineProperty(exports,"NEWS_INDEX_MAX_ENTRIES",{enumerable:!0,get:function(){return 50}}),Object.defineProperty(exports,"NEWS_INTENSITIES",{enumerable:!0,get:function(){return Rc}}),Object.defineProperty(exports,"NEWS_TARGET_KINDS",{enumerable:!0,get:function(){return Lc}}),Object.defineProperty(exports,"NO_ACCESS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"NO_RECORDING",{enumerable:!0,get:function(){return er}}),Object.defineProperty(exports,"OAUTH_TICKET_TTL_MS",{enumerable:!0,get:function(){return 3e5}}),Object.defineProperty(exports,"OBJECT_GRANT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"OPEN_TOOL_PART_STATES",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(exports,"OPERATION_MAX_STEPS",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"PASSED_AT",{enumerable:!0,get:function(){return`passedAt`}}),Object.defineProperty(exports,"PERMISSION_ACTIONS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"PERMISSION_CAPABILITIES",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"PERMISSION_CATALOG",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"PERSISTENCE_OWNED_QUOTA_KEYS",{enumerable:!0,get:function(){return Mr}}),Object.defineProperty(exports,"PROVIDER_DRAFT_LABEL",{enumerable:!0,get:function(){return co}}),Object.defineProperty(exports,"PROVIDER_NAMES",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,"PUBLIC_MAIL_DOMAINS",{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,"QUESTION_FAMILY_TOOL_NAMES",{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,"QUOTA_KEYS",{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,"RECENT_ACTIVITY_LEDGER_LIMIT",{enumerable:!0,get:function(){return 50}}),Object.defineProperty(exports,"RECIPIENT_IDENTITIES_MAX",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"RECORDING_OVERRIDES",{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(exports,"RECORDING_POLICIES",{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(exports,"RECORD_ACCESS_ROLES",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"RECORD_ACCESS_SOURCES",{enumerable:!0,get:function(){return en}}),Object.defineProperty(exports,"RECORD_DRIVE_CURSOR_MAX_LENGTH",{enumerable:!0,get:function(){return 2048}}),Object.defineProperty(exports,"RECORD_DRIVE_PAGE_DEFAULT_LIMIT",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"RECORD_DRIVE_PAGE_MAX_LIMIT",{enumerable:!0,get:function(){return 500}}),Object.defineProperty(exports,"RECORD_GRAPH_DEFAULT_LIMIT_PER_NODE",{enumerable:!0,get:function(){return 50}}),Object.defineProperty(exports,"RECORD_GRAPH_MAX_LIMIT_PER_NODE",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"RECORD_GRAPH_MAX_NODES",{enumerable:!0,get:function(){return 50}}),Object.defineProperty(exports,"RECORD_IMAGE_MAX_BYTES",{enumerable:!0,get:function(){return 5242880}}),Object.defineProperty(exports,"REFERENCE_KINDS",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"REPLY_MODES",{enumerable:!0,get:function(){return wo}}),Object.defineProperty(exports,"REPOSITORY_WILDCARD",{enumerable:!0,get:function(){return`/*`}}),Object.defineProperty(exports,"REQUEST_DESIGN_REVIEW_TOOL_NAME",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"REQUEST_SETUP_TOOL_NAME",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"RESOURCE_GRANT_KINDS",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"RESOURCE_KIND_CATALOG",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"ROUTING_PRICE_CEILINGS",{enumerable:!0,get:function(){return rt}}),Object.defineProperty(exports,"RUN_ORIGIN_METADATA_KEY",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,"SEND_VERB_NAME",{enumerable:!0,get:function(){return`send`}}),Object.defineProperty(exports,"SESSION_INFERENCE_PATCH_KEYS",{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,"SLACK_TRIGGER_CATALOG",{enumerable:!0,get:function(){return Ti}}),Object.defineProperty(exports,"SLACK_TRIGGER_EVENTS",{enumerable:!0,get:function(){return Ai}}),Object.defineProperty(exports,"SPEAKS_THROUGH_SEND_METADATA_KEY",{enumerable:!0,get:function(){return`speaksThroughSend`}}),Object.defineProperty(exports,"SURFACE_TOOL_NAMES",{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,"SYSTEM_EMAIL_CATEGORIES",{enumerable:!0,get:function(){return Wr}}),Object.defineProperty(exports,"SYSTEM_EMAIL_CATEGORY_NAMES",{enumerable:!0,get:function(){return Gr}}),Object.defineProperty(exports,"SYSTEM_PART_CODES",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,"TASK_DEMAND_LEVELS",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,"TENANT_INVITATION_DEFAULT_TTL_MS",{enumerable:!0,get:function(){return 6048e5}}),Object.defineProperty(exports,"TENANT_INVITATION_DELIVERY_STATUSES",{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,"TENANT_INVITATION_MAX_TTL_MS",{enumerable:!0,get:function(){return 2592e6}}),Object.defineProperty(exports,"TENANT_INVITATION_MIN_TTL_MS",{enumerable:!0,get:function(){return 36e5}}),Object.defineProperty(exports,"TENANT_INVITATION_RESEND_INTERVAL_MS",{enumerable:!0,get:function(){return 6e4}}),Object.defineProperty(exports,"TENANT_INVITATION_STATUSES",{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,"TODO_PHASES",{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,"TODO_PLAN_STATUSES",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,"TODO_STATUSES",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,"TOOL_APPROVAL_STATES",{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,"TOOL_IMPACT_COUNT_KEYS",{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,"TRANSCRIPT_STATUSES",{enumerable:!0,get:function(){return Xn}}),Object.defineProperty(exports,"TRIAGE_ACTIONS",{enumerable:!0,get:function(){return uo}}),Object.defineProperty(exports,"TRIGGER_EVENT_TYPES",{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(exports,"TRIGGER_MAX_REENTRY",{enumerable:!0,get:function(){return 25}}),Object.defineProperty(exports,"TURN_OUTCOMES",{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,"UNSHAREABLE_OBJECT_NAMES",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,"USAGE_MODALITIES",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(exports,"USAGE_SCOPES",{enumerable:!0,get:function(){return an}}),Object.defineProperty(exports,"USD_AMOUNT_PATTERN",{enumerable:!0,get:function(){return br}}),Object.defineProperty(exports,"USERS_RESOLVE_MAX_IDS",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"USER_STATUSES",{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,"USER_WORK_POSTURES",{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,"VERB_NAMES",{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,"WAKE_TURN_METADATA_KEY",{enumerable:!0,get:function(){return`wakeTurn`}}),Object.defineProperty(exports,"WAKE_TURN_SPOKE_METADATA_KEY",{enumerable:!0,get:function(){return`wakeTurnSpoke`}}),Object.defineProperty(exports,"WALLET_STATUSES",{enumerable:!0,get:function(){return on}}),Object.defineProperty(exports,"accessGrantSchema",{enumerable:!0,get:function(){return accessGrantSchema}}),Object.defineProperty(exports,"actorSchema",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"agent",{enumerable:!0,get:function(){return agent}}),Object.defineProperty(exports,"agentApprovalResolutionSchema",{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,"agentAvatarFromMetadata",{enumerable:!0,get:function(){return agentAvatarFromMetadata}}),Object.defineProperty(exports,"agentAvatarOutputSchema",{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(exports,"agentAvatarSchema",{enumerable:!0,get:function(){return Fc}}),Object.defineProperty(exports,"agentConversationOverviewSchema",{enumerable:!0,get:function(){return ua}}),Object.defineProperty(exports,"agentDataChunk",{enumerable:!0,get:function(){return agentDataChunk}}),Object.defineProperty(exports,"agentDefinitionActivitySchema",{enumerable:!0,get:function(){return Da}}),Object.defineProperty(exports,"agentDefinitionAudienceSchema",{enumerable:!0,get:function(){return La}}),Object.defineProperty(exports,"agentDefinitionDailyActivitySchema",{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(exports,"agentDefinitionSchema",{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,"agentDisplayName",{enumerable:!0,get:function(){return agentDisplayName}}),Object.defineProperty(exports,"agentExecutionConfigOutputSchema",{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(exports,"agentHistoryMessageSchema",{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,"agentInferencePreferencesOutputSchema",{enumerable:!0,get:function(){return qi}}),Object.defineProperty(exports,"agentInferencePreferencesSchema",{enumerable:!0,get:function(){return si}}),Object.defineProperty(exports,"agentMemoryViewSchema",{enumerable:!0,get:function(){return ba}}),Object.defineProperty(exports,"agentMessageAttachmentSchema",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"agentMessagePartSchema",{enumerable:!0,get:function(){return hi}}),Object.defineProperty(exports,"agentRequestAnswerSchema",{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,"agentRoleSchema",{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(exports,"agentRolesSetResultSchema",{enumerable:!0,get:function(){return za}}),Object.defineProperty(exports,"agentRunSchema",{enumerable:!0,get:function(){return va}}),Object.defineProperty(exports,"agentRunStatusSchema",{enumerable:!0,get:function(){return Wi}}),Object.defineProperty(exports,"agentScheduleOutputSchema",{enumerable:!0,get:function(){return Ta}}),Object.defineProperty(exports,"agentScheduleSchema",{enumerable:!0,get:function(){return zi}}),Object.defineProperty(exports,"agentSessionAudienceSchema",{enumerable:!0,get:function(){return da}}),Object.defineProperty(exports,"agentSessionDefinitionAppearanceSchema",{enumerable:!0,get:function(){return Zi}}),Object.defineProperty(exports,"agentSessionHistoryPageSchema",{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,"agentSessionInferenceOverridesInputSchema",{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,"agentSessionInferenceOverridesSchema",{enumerable:!0,get:function(){return ui}}),Object.defineProperty(exports,"agentSessionLinkSchema",{enumerable:!0,get:function(){return ta}}),Object.defineProperty(exports,"agentSessionMessageOutputSchema",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"agentSessionMessageSchema",{enumerable:!0,get:function(){return bi}}),Object.defineProperty(exports,"agentSessionSchema",{enumerable:!0,get:function(){return Qi}}),Object.defineProperty(exports,"agentSetupResponseSchema",{enumerable:!0,get:function(){return Aa}}),Object.defineProperty(exports,"agentStartersSchema",{enumerable:!0,get:function(){return Ic}}),Object.defineProperty(exports,"agentTodoPlanViewSchema",{enumerable:!0,get:function(){return ra}}),Object.defineProperty(exports,"agentToolCatalogSchema",{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(exports,"agentTriggerBaseSchema",{enumerable:!0,get:function(){return Vi}}),Object.defineProperty(exports,"agentTriggerDefinitionSchema",{enumerable:!0,get:function(){return Va}}),Object.defineProperty(exports,"agentTriggerLastCallSchema",{enumerable:!0,get:function(){return Ba}}),Object.defineProperty(exports,"agentTriggerPatchSchema",{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(exports,"agentTriggerSchema",{enumerable:!0,get:function(){return Hi}}),Object.defineProperty(exports,"agentUIValidationError",{enumerable:!0,get:function(){return agentUIValidationError}}),Object.defineProperty(exports,"agentWakeSchema",{enumerable:!0,get:function(){return ia}}),Object.defineProperty(exports,"agentWakeViewSchema",{enumerable:!0,get:function(){return aa}}),Object.defineProperty(exports,"apiKeyRoleSchema",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"apiKeySchema",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"apiKeyWithSecretSchema",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"architectProjectionSchema",{enumerable:!0,get:function(){return nc}}),Object.defineProperty(exports,"artifactQuoteSchema",{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,"askQuestionsOutputSchema",{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,"assertCustomAgentUIMessageChunk",{enumerable:!0,get:function(){return assertCustomAgentUIMessageChunk}}),Object.defineProperty(exports,"assertSessionState",{enumerable:!0,get:function(){return assertSessionState}}),Object.defineProperty(exports,"attachedRecordDocumentSchema",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,"attributeOutputSchema",{enumerable:!0,get:function(){return Fs}}),Object.defineProperty(exports,"attributeSaveOutputSchema",{enumerable:!0,get:function(){return Is}}),Object.defineProperty(exports,"auditChangeSchema",{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,"auditLogEntrySchema",{enumerable:!0,get:function(){return gn}}),Object.defineProperty(exports,"availableBundleSummarySchema",{enumerable:!0,get:function(){return Ko}}),Object.defineProperty(exports,"brandedString",{enumerable:!0,get:function(){return brandedString}}),Object.defineProperty(exports,"browserProfilePreparationSchema",{enumerable:!0,get:function(){return Lo}}),Object.defineProperty(exports,"browserProfileViewSchema",{enumerable:!0,get:function(){return Io}}),Object.defineProperty(exports,"bundleAddPlanSchema",{enumerable:!0,get:function(){return $o}}),Object.defineProperty(exports,"bundleAddResultSchema",{enumerable:!0,get:function(){return ds}}),Object.defineProperty(exports,"bundleContentsSchema",{enumerable:!0,get:function(){return Go}}),Object.defineProperty(exports,"bundleListSchema",{enumerable:!0,get:function(){return qo}}),Object.defineProperty(exports,"bundleModeSchema",{enumerable:!0,get:function(){return zo}}),Object.defineProperty(exports,"bundleOriginSchema",{enumerable:!0,get:function(){return Bo}}),Object.defineProperty(exports,"bundlePieceKindSchema",{enumerable:!0,get:function(){return Zo}}),Object.defineProperty(exports,"bundlePlanPieceSchema",{enumerable:!0,get:function(){return Qo}}),Object.defineProperty(exports,"bundleRemovalCascadeSchema",{enumerable:!0,get:function(){return os}}),Object.defineProperty(exports,"bundleRemovalPreviewSchema",{enumerable:!0,get:function(){return as}}),Object.defineProperty(exports,"bundleRemovalRowSchema",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"bundleStatusEntrySchema",{enumerable:!0,get:function(){return Uo}}),Object.defineProperty(exports,"bundleStatusSchema",{enumerable:!0,get:function(){return Ho}}),Object.defineProperty(exports,"bundleSyncPreviewSchema",{enumerable:!0,get:function(){return ls}}),Object.defineProperty(exports,"bundleUpdateDependentSchema",{enumerable:!0,get:function(){return Jo}}),Object.defineProperty(exports,"bundleUpdateGroupSchema",{enumerable:!0,get:function(){return ts}}),Object.defineProperty(exports,"bundleUpdatePieceKindSchema",{enumerable:!0,get:function(){return es}}),Object.defineProperty(exports,"bundleUpdatePieceSchema",{enumerable:!0,get:function(){return rs}}),Object.defineProperty(exports,"bundleUpdatePlanSchema",{enumerable:!0,get:function(){return cs}}),Object.defineProperty(exports,"bundleUpdateReasonCodeSchema",{enumerable:!0,get:function(){return ns}}),Object.defineProperty(exports,"bundleUpdateResultSchema",{enumerable:!0,get:function(){return us}}),Object.defineProperty(exports,"cancelAgentWakeResultSchema",{enumerable:!0,get:function(){return oa}}),Object.defineProperty(exports,"canonicalToolGroups",{enumerable:!0,get:function(){return canonicalToolGroups}}),Object.defineProperty(exports,"capabilityForResource",{enumerable:!0,get:function(){return capabilityForResource}}),Object.defineProperty(exports,"classificationRestoreSchema",{enumerable:!0,get:function(){return Mc}}),Object.defineProperty(exports,"classificationUndoSchema",{enumerable:!0,get:function(){return io}}),Object.defineProperty(exports,"classifyEmailResultSchema",{enumerable:!0,get:function(){return ao}}),Object.defineProperty(exports,"classifyEmailSchema",{enumerable:!0,get:function(){return jc}}),Object.defineProperty(exports,"cliDefaultModelOf",{enumerable:!0,get:function(){return cliDefaultModelOf}}),Object.defineProperty(exports,"cloudBrowserLiveViewSchema",{enumerable:!0,get:function(){return Ro}}),Object.defineProperty(exports,"collectionOutputSchema",{enumerable:!0,get:function(){return collectionOutputSchema}}),Object.defineProperty(exports,"collectionPageSchema",{enumerable:!0,get:function(){return dc}}),Object.defineProperty(exports,"compareAgentSessionMessages",{enumerable:!0,get:function(){return compareAgentSessionMessages}}),Object.defineProperty(exports,"compareVersions",{enumerable:!0,get:function(){return compareVersions}}),Object.defineProperty(exports,"compiledHarnessModels",{enumerable:!0,get:function(){return compiledHarnessModels}}),Object.defineProperty(exports,"computeReconnectDelay",{enumerable:!0,get:function(){return computeReconnectDelay}}),Object.defineProperty(exports,"computeRetryDelay",{enumerable:!0,get:function(){return computeRetryDelay}}),Object.defineProperty(exports,"connectionCapabilitiesSchema",{enumerable:!0,get:function(){return Ka}}),Object.defineProperty(exports,"connectionGrantKindsOf",{enumerable:!0,get:function(){return connectionGrantKindsOf}}),Object.defineProperty(exports,"connectionSyncProgressSchema",{enumerable:!0,get:function(){return qa}}),Object.defineProperty(exports,"connectionViewSchema",{enumerable:!0,get:function(){return Ja}}),Object.defineProperty(exports,"connectorProvidersResultSchema",{enumerable:!0,get:function(){return Xa}}),Object.defineProperty(exports,"connectorTriggerMatchSchema",{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,"createAgentTriggerResultSchema",{enumerable:!0,get:function(){return Ha}}),Object.defineProperty(exports,"criticConfigOutputSchema",{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(exports,"customDataChunkSchemas",{enumerable:!0,get:function(){return Ci}}),Object.defineProperty(exports,"decisionArchiveAllResultSchema",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"decisionAttachmentSchema",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"decisionCountsSchema",{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,"decisionHandedBy",{enumerable:!0,get:function(){return decisionHandedBy}}),Object.defineProperty(exports,"decisionLinkSchema",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,"decisionListResultSchema",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"decisionRecipientSchema",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,"decisionSchema",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,"decisionSenderSchema",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"decisionThreadKey",{enumerable:!0,get:function(){return decisionThreadKey}}),Object.defineProperty(exports,"decisionTransferBy",{enumerable:!0,get:function(){return decisionTransferBy}}),Object.defineProperty(exports,"decisionTransferTargetsSchema",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,"decisionTransferTo",{enumerable:!0,get:function(){return decisionTransferTo}}),Object.defineProperty(exports,"decisionTransfersOf",{enumerable:!0,get:function(){return decisionTransfersOf}}),Object.defineProperty(exports,"decisionWithRecipientSchema",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"declaredImageRequests",{enumerable:!0,get:function(){return declaredImageRequests}}),Object.defineProperty(exports,"decodeAgentSessionListCursor",{enumerable:!0,get:function(){return decodeAgentSessionListCursor}}),Object.defineProperty(exports,"decodeOperationOutput",{enumerable:!0,get:function(){return decodeOperationOutput}}),Object.defineProperty(exports,"decodeRecordValues",{enumerable:!0,get:function(){return decodeRecordValues}}),Object.defineProperty(exports,"defaultEnvironmentSchema",{enumerable:!0,get:function(){return vs}}),Object.defineProperty(exports,"defaultPassagesTo",{enumerable:!0,get:function(){return defaultPassagesTo}}),Object.defineProperty(exports,"deferredRetypeSchema",{enumerable:!0,get:function(){return Yo}}),Object.defineProperty(exports,"deriveViewerAccess",{enumerable:!0,get:function(){return deriveViewerAccess}}),Object.defineProperty(exports,"deviceAudienceSchema",{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(exports,"deviceChannelUrl",{enumerable:!0,get:function(){return deviceChannelUrl}}),Object.defineProperty(exports,"documentFileSchema",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"documentRecordOwnerPageSchema",{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,"documentRecordOwnerSchema",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,"documentSchema",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,"documentWithSubCountSchema",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,"draftAppendOutputSchema",{enumerable:!0,get:function(){return Qs}}),Object.defineProperty(exports,"draftCommandGuardSchema",{enumerable:!0,get:function(){return Ks}}),Object.defineProperty(exports,"driveFileSchema",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(exports,"durableDateSchema",{enumerable:!0,get:function(){return yi}}),Object.defineProperty(exports,"editAgentSessionMessageResultSchema",{enumerable:!0,get:function(){return ha}}),Object.defineProperty(exports,"effectivePermissionsSchema",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"emailAttachmentMetaSchema",{enumerable:!0,get:function(){return ho}}),Object.defineProperty(exports,"emailCategoryCreateSchema",{enumerable:!0,get:function(){return Oc}}),Object.defineProperty(exports,"emailCategoryDeleteSchema",{enumerable:!0,get:function(){return Ac}}),Object.defineProperty(exports,"emailCategorySchema",{enumerable:!0,get:function(){return eo}}),Object.defineProperty(exports,"emailCategoryScopeQuerySchema",{enumerable:!0,get:function(){return Pc}}),Object.defineProperty(exports,"emailCategoryUpdateSchema",{enumerable:!0,get:function(){return kc}}),Object.defineProperty(exports,"emailCategoryUsageSchema",{enumerable:!0,get:function(){return ro}}),Object.defineProperty(exports,"emailParticipantRefSchema",{enumerable:!0,get:function(){return mo}}),Object.defineProperty(exports,"emailRuleScopeSchema",{enumerable:!0,get:function(){return Nc}}),Object.defineProperty(exports,"emailSenderRuleSchema",{enumerable:!0,get:function(){return no}}),Object.defineProperty(exports,"emailVerdictSchema",{enumerable:!0,get:function(){return to}}),Object.defineProperty(exports,"encodeAgentSessionListCursor",{enumerable:!0,get:function(){return encodeAgentSessionListCursor}}),Object.defineProperty(exports,"encodeRecordValues",{enumerable:!0,get:function(){return encodeRecordValues}}),Object.defineProperty(exports,"envVarEntrySchema",{enumerable:!0,get:function(){return un}}),Object.defineProperty(exports,"environmentBuildFailureSchema",{enumerable:!0,get:function(){return ms}}),Object.defineProperty(exports,"environmentBuildStateSchema",{enumerable:!0,get:function(){return fs}}),Object.defineProperty(exports,"environmentDetailSchema",{enumerable:!0,get:function(){return _s}}),Object.defineProperty(exports,"environmentHarness",{enumerable:!0,get:function(){return environmentHarness}}),Object.defineProperty(exports,"environmentHarnessSchema",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"environmentListSchema",{enumerable:!0,get:function(){return ys}}),Object.defineProperty(exports,"environmentNetworkPolicyOutputSchema",{enumerable:!0,get:function(){return ps}}),Object.defineProperty(exports,"environmentRepositorySourceSchema",{enumerable:!0,get:function(){return gs}}),Object.defineProperty(exports,"environmentSchema",{enumerable:!0,get:function(){return hs}}),Object.defineProperty(exports,"environmentWorkdir",{enumerable:!0,get:function(){return environmentWorkdir}}),Object.defineProperty(exports,"fileSchema",{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,"fileUrlsResponseSchema",{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,"findEnvironmentHarness",{enumerable:!0,get:function(){return findEnvironmentHarness}}),Object.defineProperty(exports,"findGrantIssues",{enumerable:!0,get:function(){return findGrantIssues}}),Object.defineProperty(exports,"formDefinitionSchema",{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(exports,"formSlotSchema",{enumerable:!0,get:function(){return Jt}}),Object.defineProperty(exports,"formStepSchema",{enumerable:!0,get:function(){return Yt}}),Object.defineProperty(exports,"formSubmissionSchema",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,"formatDecisionLink",{enumerable:!0,get:function(){return formatDecisionLink}}),Object.defineProperty(exports,"formatNewsTarget",{enumerable:!0,get:function(){return formatNewsTarget}}),Object.defineProperty(exports,"formatReference",{enumerable:!0,get:function(){return formatReference}}),Object.defineProperty(exports,"githubConditionSchema",{enumerable:!0,get:function(){return Di}}),Object.defineProperty(exports,"githubTriggerMatchSchema",{enumerable:!0,get:function(){return Ni}}),Object.defineProperty(exports,"grantKindOf",{enumerable:!0,get:function(){return grantKindOf}}),Object.defineProperty(exports,"harnessModelChoices",{enumerable:!0,get:function(){return harnessModelChoices}}),Object.defineProperty(exports,"harnessModelListSchema",{enumerable:!0,get:function(){return xs}}),Object.defineProperty(exports,"harnessModelOptionSchema",{enumerable:!0,get:function(){return bs}}),Object.defineProperty(exports,"hasLocale",{enumerable:!0,get:function(){return hasLocale}}),Object.defineProperty(exports,"humanRequestId",{enumerable:!0,get:function(){return humanRequestId}}),Object.defineProperty(exports,"humanRequestKind",{enumerable:!0,get:function(){return humanRequestKind}}),Object.defineProperty(exports,"imageModelFormatDefect",{enumerable:!0,get:function(){return imageModelFormatDefect}}),Object.defineProperty(exports,"imageModelIdSchema",{enumerable:!0,get:function(){return ci}}),Object.defineProperty(exports,"inferenceReasoningSchema",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"inferenceRoutingSchema",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"inferenceSpeedSchema",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"installedBundleSummarySchema",{enumerable:!0,get:function(){return Vo}}),Object.defineProperty(exports,"isActionableDecisionKind",{enumerable:!0,get:function(){return isActionableDecisionKind}}),Object.defineProperty(exports,"isAgentMessageMetadata",{enumerable:!0,get:function(){return isAgentMessageMetadata}}),Object.defineProperty(exports,"isAgentNotificationMetadata",{enumerable:!0,get:function(){return isAgentNotificationMetadata}}),Object.defineProperty(exports,"isAgentUIDataName",{enumerable:!0,get:function(){return isAgentUIDataName}}),Object.defineProperty(exports,"isAgentWakeMetadata",{enumerable:!0,get:function(){return isAgentWakeMetadata}}),Object.defineProperty(exports,"isAgentWrittenAuditEntry",{enumerable:!0,get:function(){return isAgentWrittenAuditEntry}}),Object.defineProperty(exports,"isArchitectPublicationMetadata",{enumerable:!0,get:function(){return isArchitectPublicationMetadata}}),Object.defineProperty(exports,"isAwaitingHuman",{enumerable:!0,get:function(){return isAwaitingHuman}}),Object.defineProperty(exports,"isBlocking",{enumerable:!0,get:function(){return isBlocking}}),Object.defineProperty(exports,"isCatalogResource",{enumerable:!0,get:function(){return isCatalogResource}}),Object.defineProperty(exports,"isEnvironmentBuildLogStep",{enumerable:!0,get:function(){return isEnvironmentBuildLogStep}}),Object.defineProperty(exports,"isEnvironmentHarnessId",{enumerable:!0,get:function(){return isEnvironmentHarnessId}}),Object.defineProperty(exports,"isFormDefinition",{enumerable:!0,get:function(){return isFormDefinition}}),Object.defineProperty(exports,"isImageSource",{enumerable:!0,get:function(){return isImageSource}}),Object.defineProperty(exports,"isMailProvider",{enumerable:!0,get:function(){return isMailProvider}}),Object.defineProperty(exports,"isMailboxListMode",{enumerable:!0,get:function(){return isMailboxListMode}}),Object.defineProperty(exports,"isNativeToolGroup",{enumerable:!0,get:function(){return isNativeToolGroup}}),Object.defineProperty(exports,"isOpenToolPartState",{enumerable:!0,get:function(){return isOpenToolPartState}}),Object.defineProperty(exports,"isParkedOnHuman",{enumerable:!0,get:function(){return isParkedOnHuman}}),Object.defineProperty(exports,"isProviderDraft",{enumerable:!0,get:function(){return isProviderDraft}}),Object.defineProperty(exports,"isPublicMailDomain",{enumerable:!0,get:function(){return isPublicMailDomain}}),Object.defineProperty(exports,"isQuestionPart",{enumerable:!0,get:function(){return isQuestionPart}}),Object.defineProperty(exports,"isReplyMode",{enumerable:!0,get:function(){return isReplyMode}}),Object.defineProperty(exports,"isResourceGrant",{enumerable:!0,get:function(){return isResourceGrant}}),Object.defineProperty(exports,"isRoutineActorMetadata",{enumerable:!0,get:function(){return isRoutineActorMetadata}}),Object.defineProperty(exports,"isSemver",{enumerable:!0,get:function(){return isSemver}}),Object.defineProperty(exports,"isSessionInferencePatch",{enumerable:!0,get:function(){return isSessionInferencePatch}}),Object.defineProperty(exports,"isSystemEmailCategory",{enumerable:!0,get:function(){return isSystemEmailCategory}}),Object.defineProperty(exports,"isSystemEmailCategoryName",{enumerable:!0,get:function(){return isSystemEmailCategoryName}}),Object.defineProperty(exports,"isSystemPartCode",{enumerable:!0,get:function(){return isSystemPartCode}}),Object.defineProperty(exports,"isToolApprovalState",{enumerable:!0,get:function(){return isToolApprovalState}}),Object.defineProperty(exports,"isToolImpactCountKey",{enumerable:!0,get:function(){return isToolImpactCountKey}}),Object.defineProperty(exports,"isWildcard",{enumerable:!0,get:function(){return isWildcard}}),Object.defineProperty(exports,"isoDateTime",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"lastPublicationSchema",{enumerable:!0,get:function(){return Ys}}),Object.defineProperty(exports,"lastPublishErrorSchema",{enumerable:!0,get:function(){return Js}}),Object.defineProperty(exports,"levelActions",{enumerable:!0,get:function(){return levelActions}}),Object.defineProperty(exports,"levelFloor",{enumerable:!0,get:function(){return levelFloor}}),Object.defineProperty(exports,"levelOf",{enumerable:!0,get:function(){return levelOf}}),Object.defineProperty(exports,"linkedRecordRefSchema",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"lockingSendCall",{enumerable:!0,get:function(){return lockingSendCall}}),Object.defineProperty(exports,"loginSecretEntrySchema",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(exports,"mailDraftAttachmentSchema",{enumerable:!0,get:function(){return Eo}}),Object.defineProperty(exports,"mailDraftSchema",{enumerable:!0,get:function(){return Do}}),Object.defineProperty(exports,"mailSignatureSchema",{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(exports,"mailboxAccountSchema",{enumerable:!0,get:function(){return vo}}),Object.defineProperty(exports,"mailboxCursorSchema",{enumerable:!0,get:function(){return xo}}),Object.defineProperty(exports,"mailboxEmailSchema",{enumerable:!0,get:function(){return go}}),Object.defineProperty(exports,"mailboxListResponseSchema",{enumerable:!0,get:function(){return So}}),Object.defineProperty(exports,"mailboxSenderImageSchema",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"mailboxThreadDetailSchema",{enumerable:!0,get:function(){return Mo}}),Object.defineProperty(exports,"mailboxThreadSchema",{enumerable:!0,get:function(){return _o}}),Object.defineProperty(exports,"matchesRepositoryPattern",{enumerable:!0,get:function(){return matchesRepositoryPattern}}),Object.defineProperty(exports,"mcpCatalogCategorySchema",{enumerable:!0,get:function(){return Ts}}),Object.defineProperty(exports,"mcpCatalogEntrySchema",{enumerable:!0,get:function(){return Es}}),Object.defineProperty(exports,"mcpOAuthAttemptStartedSchema",{enumerable:!0,get:function(){return Os}}),Object.defineProperty(exports,"mcpOAuthSetupSchema",{enumerable:!0,get:function(){return Ds}}),Object.defineProperty(exports,"mcpServerAuthTypeSchema",{enumerable:!0,get:function(){return Ss}}),Object.defineProperty(exports,"mcpServerStatusSchema",{enumerable:!0,get:function(){return Cs}}),Object.defineProperty(exports,"mcpServerViewSchema",{enumerable:!0,get:function(){return ws}}),Object.defineProperty(exports,"meetingBotDispatchRequestSchema",{enumerable:!0,get:function(){return ar}}),Object.defineProperty(exports,"meetingBotDispatchResponseSchema",{enumerable:!0,get:function(){return or}}),Object.defineProperty(exports,"meetingBotNotificationSchema",{enumerable:!0,get:function(){return sr}}),Object.defineProperty(exports,"meetingLinkedRecordSchema",{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,"meetingParticipantRefSchema",{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,"meetingRecordingSchema",{enumerable:!0,get:function(){return $n}}),Object.defineProperty(exports,"meetingSchema",{enumerable:!0,get:function(){return hr}}),Object.defineProperty(exports,"meetingSiblingRefSchema",{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,"meetingTranscriptProvenanceSchema",{enumerable:!0,get:function(){return lr}}),Object.defineProperty(exports,"meetingTranscriptResponseSchema",{enumerable:!0,get:function(){return ur}}),Object.defineProperty(exports,"meetingTranscriptSegmentSchema",{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,"meetingTranscriptSourceRefSchema",{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,"meetingsListResponseSchema",{enumerable:!0,get:function(){return gr}}),Object.defineProperty(exports,"memberSchema",{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,"mentionReferenceSchema",{enumerable:!0,get:function(){return _i}}),Object.defineProperty(exports,"mergeSessionInferencePatch",{enumerable:!0,get:function(){return mergeSessionInferencePatch}}),Object.defineProperty(exports,"modelDefinitionOutputSchema",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"modelDefinitionSchema",{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,"modelReferenceOutputSchema",{enumerable:!0,get:function(){return Ki}}),Object.defineProperty(exports,"modelReferenceSchema",{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,"moveImpactSchema",{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,"mutationReceiptSchema",{enumerable:!0,get:function(){return $s}}),Object.defineProperty(exports,"myPreferencesSchema",{enumerable:!0,get:function(){return Xc}}),Object.defineProperty(exports,"needsManageWhenUnattended",{enumerable:!0,get:function(){return needsManageWhenUnattended}}),Object.defineProperty(exports,"newsBodySchema",{enumerable:!0,get:function(){return qc}}),Object.defineProperty(exports,"newsIndexSchema",{enumerable:!0,get:function(){return Kc}}),Object.defineProperty(exports,"normalizeNewsLocale",{enumerable:!0,get:function(){return normalizeNewsLocale}}),Object.defineProperty(exports,"normalizedMeetingTranscriptSchema",{enumerable:!0,get:function(){return nr}}),Object.defineProperty(exports,"oauthAttemptStartedSchema",{enumerable:!0,get:function(){return $a}}),Object.defineProperty(exports,"objectDefinitionOutputSchema",{enumerable:!0,get:function(){return Ls}}),Object.defineProperty(exports,"objectRecordOutputSchema",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"openRequests",{enumerable:!0,get:function(){return openRequests}}),Object.defineProperty(exports,"orderAgentSessionMessages",{enumerable:!0,get:function(){return orderAgentSessionMessages}}),Object.defineProperty(exports,"outputSchemaOf",{enumerable:!0,get:function(){return outputSchemaOf}}),Object.defineProperty(exports,"pageAudienceSchema",{enumerable:!0,get:function(){return Gn}}),Object.defineProperty(exports,"pageReadSchema",{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,"pageSummarySchema",{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(exports,"parseAgentDefinitionAccessRole",{enumerable:!0,get:function(){return parseAgentDefinitionAccessRole}}),Object.defineProperty(exports,"parseAgentSessionAccessRole",{enumerable:!0,get:function(){return parseAgentSessionAccessRole}}),Object.defineProperty(exports,"parseCountMode",{enumerable:!0,get:function(){return parseCountMode}}),Object.defineProperty(exports,"parseDecisionLink",{enumerable:!0,get:function(){return parseDecisionLink}}),Object.defineProperty(exports,"parseDeviceAccessRole",{enumerable:!0,get:function(){return parseDeviceAccessRole}}),Object.defineProperty(exports,"parseDeviceChannelFrame",{enumerable:!0,get:function(){return parseDeviceChannelFrame}}),Object.defineProperty(exports,"parseMergedAgentTrigger",{enumerable:!0,get:function(){return parseMergedAgentTrigger}}),Object.defineProperty(exports,"parseNewsBody",{enumerable:!0,get:function(){return parseNewsBody}}),Object.defineProperty(exports,"parseNewsIndex",{enumerable:!0,get:function(){return parseNewsIndex}}),Object.defineProperty(exports,"parseNewsIntensity",{enumerable:!0,get:function(){return parseNewsIntensity}}),Object.defineProperty(exports,"parseNewsTarget",{enumerable:!0,get:function(){return parseNewsTarget}}),Object.defineProperty(exports,"parseOptionalCountMode",{enumerable:!0,get:function(){return parseOptionalCountMode}}),Object.defineProperty(exports,"parsePageAccessRole",{enumerable:!0,get:function(){return parsePageAccessRole}}),Object.defineProperty(exports,"parseRecordAccessRole",{enumerable:!0,get:function(){return parseRecordAccessRole}}),Object.defineProperty(exports,"parseReference",{enumerable:!0,get:function(){return parseReference}}),Object.defineProperty(exports,"parseServerFrame",{enumerable:!0,get:function(){return parseServerFrame}}),Object.defineProperty(exports,"parseToolGroupGrant",{enumerable:!0,get:function(){return parseToolGroupGrant}}),Object.defineProperty(exports,"parseWorkerFrame",{enumerable:!0,get:function(){return parseWorkerFrame}}),Object.defineProperty(exports,"permissionFlagsSchema",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"permissionGrantSchema",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"permissionSchema",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"preferenceEntry",{enumerable:!0,get:function(){return preferenceEntry}}),Object.defineProperty(exports,"preferenceEntrySchema",{enumerable:!0,get:function(){return Yc}}),Object.defineProperty(exports,"providerNameSchema",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"publishBlockerSchema",{enumerable:!0,get:function(){return Xs}}),Object.defineProperty(exports,"publishDraftOutputSchema",{enumerable:!0,get:function(){return ec}}),Object.defineProperty(exports,"quotaStateSchema",{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,"readArchitectPublication",{enumerable:!0,get:function(){return readArchitectPublication}}),Object.defineProperty(exports,"readAskQuestionsResult",{enumerable:!0,get:function(){return readAskQuestionsResult}}),Object.defineProperty(exports,"readRunOriginMetadata",{enumerable:!0,get:function(){return readRunOriginMetadata}}),Object.defineProperty(exports,"recentActivityEntryKey",{enumerable:!0,get:function(){return recentActivityEntryKey}}),Object.defineProperty(exports,"recipientContactSchema",{enumerable:!0,get:function(){return Ao}}),Object.defineProperty(exports,"recipientIdentitySchema",{enumerable:!0,get:function(){return jo}}),Object.defineProperty(exports,"recipientSuggestionSchema",{enumerable:!0,get:function(){return ko}}),Object.defineProperty(exports,"recordAggregatesSchema",{enumerable:!0,get:function(){return wc}}),Object.defineProperty(exports,"recordAudienceSchema",{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,"recordCollectionOutputSchema",{enumerable:!0,get:function(){return fc}}),Object.defineProperty(exports,"recordDeletionCountSchema",{enumerable:!0,get:function(){return yc}}),Object.defineProperty(exports,"recordDriveChildSchema",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,"recordDriveChildrenPageSchema",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(exports,"recordDriveSearchHitSchema",{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,"recordDriveSearchResultSchema",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,"recordGraphEdgeSchema",{enumerable:!0,get:function(){return Ns}}),Object.defineProperty(exports,"recordGraphNodeKey",{enumerable:!0,get:function(){return recordGraphNodeKey}}),Object.defineProperty(exports,"recordGraphNodeSchema",{enumerable:!0,get:function(){return Ms}}),Object.defineProperty(exports,"recordGraphRequestSchema",{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,"recordGraphResponseSchema",{enumerable:!0,get:function(){return Ps}}),Object.defineProperty(exports,"recordIncomingReferenceSchema",{enumerable:!0,get:function(){return pc}}),Object.defineProperty(exports,"recordIncomingReferencesPageSchema",{enumerable:!0,get:function(){return mc}}),Object.defineProperty(exports,"recordMeetingsCount",{enumerable:!0,get:function(){return recordMeetingsCount}}),Object.defineProperty(exports,"recordOperationSchema",{enumerable:!0,get:function(){return ol}}),Object.defineProperty(exports,"recordPurgeResultSchema",{enumerable:!0,get:function(){return bc}}),Object.defineProperty(exports,"recordValuesCodec",{enumerable:!0,get:function(){return recordValuesCodec}}),Object.defineProperty(exports,"recordsBulkCreateResultSchema",{enumerable:!0,get:function(){return gc}}),Object.defineProperty(exports,"recordsBulkDeleteResultSchema",{enumerable:!0,get:function(){return vc}}),Object.defineProperty(exports,"recordsBulkUpdateResultSchema",{enumerable:!0,get:function(){return _c}}),Object.defineProperty(exports,"refineTrigger",{enumerable:!0,get:function(){return refineTrigger}}),Object.defineProperty(exports,"relationOptionSchema",{enumerable:!0,get:function(){return ks}}),Object.defineProperty(exports,"relationOptionsResponseSchema",{enumerable:!0,get:function(){return As}}),Object.defineProperty(exports,"replyDefaultsSchema",{enumerable:!0,get:function(){return To}}),Object.defineProperty(exports,"requestedCapabilities",{enumerable:!0,get:function(){return requestedCapabilities}}),Object.defineProperty(exports,"resolveAppearance",{enumerable:!0,get:function(){return resolveAppearance}}),Object.defineProperty(exports,"resolveLocalized",{enumerable:!0,get:function(){return resolveLocalized}}),Object.defineProperty(exports,"resolvedRelationsBatchSchema",{enumerable:!0,get:function(){return js}}),Object.defineProperty(exports,"resourceGrant",{enumerable:!0,get:function(){return resourceGrant}}),Object.defineProperty(exports,"resourceUsedBySchema",{enumerable:!0,get:function(){return Ia}}),Object.defineProperty(exports,"retryPolicyOutputSchema",{enumerable:!0,get:function(){return xa}}),Object.defineProperty(exports,"retypeOptionsOutputSchema",{enumerable:!0,get:function(){return ic}}),Object.defineProperty(exports,"roleSchema",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"routedMessageInferenceSchema",{enumerable:!0,get:function(){return fi}}),Object.defineProperty(exports,"routineAudiencePreviewSchema",{enumerable:!0,get:function(){return ja}}),Object.defineProperty(exports,"routineAudienceSchema",{enumerable:!0,get:function(){return wa}}),Object.defineProperty(exports,"sameActions",{enumerable:!0,get:function(){return sameActions}}),Object.defineProperty(exports,"schemaDraftOutputSchema",{enumerable:!0,get:function(){return Zs}}),Object.defineProperty(exports,"schemaGroupListSchema",{enumerable:!0,get:function(){return zs}}),Object.defineProperty(exports,"schemaGroupSchema",{enumerable:!0,get:function(){return Rs}}),Object.defineProperty(exports,"schemaStateAddressOf",{enumerable:!0,get:function(){return schemaStateAddressOf}}),Object.defineProperty(exports,"schemaStateEntrySchema",{enumerable:!0,get:function(){return Vs}}),Object.defineProperty(exports,"schemaStateSchema",{enumerable:!0,get:function(){return Hs}}),Object.defineProperty(exports,"secretEntrySchema",{enumerable:!0,get:function(){return fn}}),Object.defineProperty(exports,"servedAsIsAttributeSchema",{enumerable:!0,get:function(){return Xo}}),Object.defineProperty(exports,"sessionImageUsageSchema",{enumerable:!0,get:function(){return la}}),Object.defineProperty(exports,"sessionInferenceOverridesOutputSchema",{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(exports,"sessionInferencePatchSchema",{enumerable:!0,get:function(){return di}}),Object.defineProperty(exports,"sessionStateSchema",{enumerable:!0,get:function(){return Yi}}),Object.defineProperty(exports,"setAgentSessionWorkPostureResultSchema",{enumerable:!0,get:function(){return $i}}),Object.defineProperty(exports,"slackConditionSchema",{enumerable:!0,get:function(){return Oi}}),Object.defineProperty(exports,"slackTriggerMatchSchema",{enumerable:!0,get:function(){return Pi}}),Object.defineProperty(exports,"submitOutcomeSchema",{enumerable:!0,get:function(){return ea}}),Object.defineProperty(exports,"syncBundleResultSchema",{enumerable:!0,get:function(){return ss}}),Object.defineProperty(exports,"tenantInvitationSchema",{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,"tenantSettingsResponseSchema",{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,"tenantSettingsSchema",{enumerable:!0,get:function(){return _r}}),Object.defineProperty(exports,"todoItemSchema",{enumerable:!0,get:function(){return xi}}),Object.defineProperty(exports,"todoPlanSchema",{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,"toolImpactSchema",{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,"triageResultSchema",{enumerable:!0,get:function(){return fo}}),Object.defineProperty(exports,"unchecked",{enumerable:!0,get:function(){return unchecked}}),Object.defineProperty(exports,"userProfileSchema",{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,"utf8ByteLength",{enumerable:!0,get:function(){return utf8ByteLength}}),Object.defineProperty(exports,"viewPreferenceAddressSchema",{enumerable:!0,get:function(){return Ws}}),Object.defineProperty(exports,"viewReadSchema",{enumerable:!0,get:function(){return Us}}),Object.defineProperty(exports,"viewerAccessSchema",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"withPreferenceEntry",{enumerable:!0,get:function(){return withPreferenceEntry}}),Object.defineProperty(exports,"withoutTrailingSlashes",{enumerable:!0,get:function(){return withoutTrailingSlashes}});