@standards/schema 1.0.0-alpha.430 → 1.0.0-alpha.433

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 (36) hide show
  1. package/dist/{all-Bd7AdHPs.js → all-B3RHy-si.js} +1 -1
  2. package/dist/{all-BKRTNSnx.mjs → all-DxqmnktK.mjs} +1 -1
  3. package/dist/api/index.d.mts +642 -1352
  4. package/dist/api/index.d.ts +642 -1352
  5. package/dist/api/index.js +1 -1
  6. package/dist/api/index.mjs +1 -1
  7. package/dist/attribute-validators-BGKhSoi4.mjs +11 -0
  8. package/dist/attribute-validators-D-exV8OQ.js +11 -0
  9. package/dist/{exceptions-RLmYnywT.d.mts → exceptions-lFvB7G4Q.d.mts} +29 -2
  10. package/dist/{exceptions-B29yRRaG.d.ts → exceptions-uND1wZ9X.d.ts} +29 -2
  11. package/dist/exceptions.d.mts +2 -2
  12. package/dist/exceptions.d.ts +2 -2
  13. package/dist/exceptions.js +1 -1
  14. package/dist/exceptions.mjs +1 -1
  15. package/dist/{index-DP6kFv1b.d.ts → index-CiAuyPuA.d.ts} +627 -1413
  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-B49h1Oc-.mjs +2 -0
  21. package/dist/record-operation-HTySlhCF.js +2 -0
  22. package/dist/{record-query-CuEDE0CU.d.mts → record-query-Bki3Qcvc.d.mts} +627 -1413
  23. package/dist/{utils-CIqqP6hZ.d.ts → utils-Cn0G_X1P.d.ts} +1 -1
  24. package/dist/{utils-hkE18pLQ.d.mts → utils-PmF7E7_-.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 +1 -1
  28. package/dist/validation/all.d.ts +1 -1
  29. package/dist/validation/all.js +1 -1
  30. package/dist/validation/all.mjs +1 -1
  31. package/openapi.json +1320 -817
  32. package/package.json +2 -2
  33. package/dist/attribute-validators-CH24eLCk.js +0 -11
  34. package/dist/attribute-validators-RdwWgLqZ.mjs +0 -11
  35. package/dist/record-operation-VRpumyFM.js +0 -2
  36. package/dist/record-operation-bzca7POw.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-D-exV8OQ.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=[{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:`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`]}]}]}],a=`none`,o=`custom`,s={actions:[`read`,`create`,`update`,`delete`],purge:`manage`,levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`]},{id:`full`,add:[`delete`]}]},c=i.flatMap(e=>e.capabilities),ee=c.flatMap(e=>e.resources),te=new Map(c.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=a;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 a;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 o}const l=[`read`,`create`,`update`,`delete`,`manage`],u=n.object({scope:n.enum([`object`,`system`]),target:n.string().min(1),actions:n.array(n.enum(l))}).strict();function findGrantIssues(e,t){let n=[],r=/* @__PURE__ */ new Map;for(let i of e){let e=u.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===`*`?[...s.actions,s.purge]:s.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 d=n.enum([...l,`*`]),ne=n.object({id:n.string(),tenantId:n.string(),name:n.string(),label:n.string(),description:n.string().optional(),system:n.boolean(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),re=n.object({id:n.string(),roleId:n.string(),scope:u.shape.scope,target:n.string(),actions:n.array(d),createdAt:e.isoDateTime}),ie=n.object({objectPermissions:n.record(n.string(),n.array(d)),systemPermissions:n.record(n.string(),n.array(d))}),ae=n.object({canRead:n.boolean(),canCreate:n.boolean(),canUpdate:n.boolean(),canDelete:n.boolean(),canManage:n.boolean()}),oe=ne.pick({id:!0,name:!0,label:!0}),se=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(oe).optional(),authorityActorId:n.string().nullable(),detachedAt:n.string().nullable(),detachedBy:n.string().nullable(),mirrorsOwner:n.boolean()}),ce=se.extend({secret:n.string()}),le=[`user`,`agent`,`api_key`,`system`],ue={id:n.string(),tenantId:e.brandedString(),displayName:n.string(),avatarUrl:n.string().nullable().optional(),metadata:n.record(n.string(),n.unknown()),deletedAt:e.isoDateTime.nullable().optional(),anonymizedAt:e.isoDateTime.nullable().optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime};function subjectActor(e,t){return n.object({...ue,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 de=n.discriminatedUnion(`type`,[subjectActors(`user`),subjectActors(`agent`),subjectActors(`api_key`),n.object({...ue,type:n.literal(`system`),status:n.enum([`active`,`suspended`,`deleted`]),subjectId:n.null().optional()})]),fe=[`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 pe=[`createdAt`,`lastActivity`],me=[`mine`,`shared`,`team`],he=Object.freeze({mutation:`ask`,destructive:`ask`,outward:`ask`}),ge=[`active`,`completed`,`abandoned`],_e=[`openai`,`anthropic`,`google`,`spacexai`,`deepseek`,`moonshotai`,`alibaba`,`mistral`,`minimax`,`meta`,`zai`,`cursor`],ve=[`standard`,`fast`],ye=[`none`,`minimal`,`low`,`medium`,`high`,`xhigh`],be=[`conversation`,`writing`,`coding`,`analysis`,`extraction`],xe=[`light`,`standard`,`heavy`],Se=[`manual`,`auto`],Ce={interactive:{inputPerMillionUsd:5,outputPerMillionUsd:25},delegated:{inputPerMillionUsd:2,outputPerMillionUsd:12}},we=[`model`,`speed`,`reasoning`,`imageModel`,`routing`];function mergeSessionInferencePatch(e,t){let n={...e};for(let e of we){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 Te=[`octopus`,`clover`,`flower`,`triangle`,`square`,`blob`,`circle`,`drop`,`hexagon`,`pill`,`pebble`,`puddle`],Ee=[`relaxed`,`neutral`];function agentDisplayName(e){return e.label?.trim()||e.name}const De=[`approval-requested`,`approval-responded`,`approval-dispatched`],Oe=[`streaming`,`running`,`pending`,...De];function isOpenToolPartState(e){return Oe.includes(e)}function isToolApprovalState(e){return De.includes(e)}const ke=[`records`,`descendants`,`brokenLinks`,`denied`,`files`];function isToolImpactCountKey(e){return ke.includes(e)}const Ae=[`CREDITS_EXHAUSTED`,`MEMBER_CAP_REACHED`,`WAKE_BUDGET_SPENT`];function isSystemPartCode(e){return typeof e==`string`&&Ae.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 je=[`Very economical`,`Balanced`,`Powerful`,`Very powerful`],Me=[`text`,`image`,`audio`,`video`,`pdf`],Ne=[`unsupported`,`effort`,`toggle`,`budget`,`model-controlled`],Pe=`agent-notification`;function isAgentNotificationMetadata(e){return e?.kind===Pe}const Fe=`agent-message`,Ie=`runOrigin`;function readRunOriginMetadata(e){let t=e?.[Ie];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===Fe}const Le=`agent-wake`;function isAgentWakeMetadata(e){return e?.kind===Le}const Re=`architect-publication`;function isArchitectPublicationMetadata(e){return e?.kind===Re}const ze=[`object`,`attribute`,`view`,`page`],Be=[`objectName`,`attributeName`,`viewName`,`pageId`];function readPublishRefusalTarget(e){if(typeof e!=`object`||!e)return;let t=e,n=ze.find(e=>e===t.kind);if(n===void 0)return;let r={kind:n};for(let e of Be)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 Ve=[`pending`,`in_progress`,`completed`,`blocked`],He=[`objects`,`fields`,`relations`,`views`,`samples`],f=[`sandbox`,`web`,`image`,`memory`,`bulk`,`activity`,`orchestration`,`host`,`cloud-browser`,`agent-config`],Ue=`browser_launch`,p=[`mcp`,`email.read`,`email.send`,`calendar.read`,`github`,`slack.read`,`slack.write`,`device`,`browser-profile`,`login`],We=[`definition`,`default`,`child`,`inline`],Ge=`/v1/device-worker/channel`,Ke={initialMs:1e3,maxMs:3e4};function deviceChannelUrl(e){let t=new URL(e);return`${t.protocol===`https:`?`wss:`:`ws:`}//${t.host}${Ge}`}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,Ke)}const qe=[`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 Je=[`zsh`,`bash`,`sh`,`fish`,`pwsh`,`powershell`],Ye=[`ready`,`permission_missing`,`no_session`,`unavailable`],Xe=n.strictObject({state:n.enum(Ye),version:n.string().min(1)}),m={id:n.uuid(),leaseToken:n.string().min(1)},Ze=n.discriminatedUnion(`type`,[n.strictObject({type:n.literal(`authenticate`),credential:n.string().regex(/^Device \S+$/),protocol:n.number().int().positive().optional(),desktop:Xe.optional(),shell:n.enum(Je).optional()}),n.strictObject({type:n.literal(`running`),...m}),n.strictObject({type:n.literal(`heartbeat`),...m}),n.strictObject({type:n.literal(`output`),...m,stdout:n.string().optional(),stderr:n.string().optional()}),n.strictObject({type:n.literal(`complete`),...m,result:n.strictObject({stdout:n.string().optional(),stderr:n.string().optional(),exitCode:n.number().int(),success:n.boolean(),errorCode:n.enum(qe).optional()}),background:n.strictObject({pid:n.number().int(),logPath:n.string().min(1)}).optional()}),n.strictObject({type:n.literal(`pong`)})]),Qe=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`),...m,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(Ze,e)}function parseServerFrame(e){return parseDeviceChannelFrame(Qe,e)}const h=[`file`,`folder`],g=n.object({id:n.string(),tenantId:n.string(),title:n.string(),kind:n.enum(h),parentId:n.string().nullable().optional(),description:n.string().optional(),contentHash:n.string().optional(),createdBy:n.string().optional(),updatedBy:n.string().optional(),deletedAt:e.isoDateTime.nullable().optional(),position:n.number(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),$e=g.extend({subCount:n.number().nullable()}),et=n.object({id:n.string(),kind:n.enum(h),title:n.string(),path:n.string(),parentId:n.string().nullable(),depth:n.number()}),tt=n.object({recordId:n.string(),hits:n.array(et),truncated:n.object({maxEntries:n.number(),returnedEntries:n.number()}).optional()}),_=[`pending`,`processing`,`completed`,`failed`,`unsupported`],v=n.object({id:n.string(),documentId:n.string(),position:n.number(),name:n.string(),mimeType:n.string(),size:n.number(),ocrStatus:n.enum(_).nullable(),ocrText:n.string().nullable(),ocrConfidence:n.number().nullable(),processedAt:e.isoDateTime.nullable()}),nt=[`created`,`appended`,`linked-existing`],rt=n.object({document:g,file:v,action:n.enum(nt)}),it=v.omit({ocrText:!0}),at=$e.extend({files:n.array(it),attributeName:n.string().optional(),properties:n.record(n.string(),n.unknown()).optional()}),ot=[`manual`,`name-asc`,`name-desc`,`date-desc`,`date-asc`],st=n.object({items:n.array(at),nextCursor:n.string().nullable()}),ct=n.object({recordId:n.string(),objectName:n.string(),label:n.string(),itemCount:n.number(),fileCount:n.number(),lastActivityAt:n.string()}),lt=n.object({data:n.array(ct),nextOffset:n.number().nullable()}),ut=[`draft`,`published`,`archived`],dt=n.object({id:n.string(),objectName:n.string(),label:n.string(),mode:n.enum([`create`,`select`,`optional`,`create_if_not_empty`]),color:e.brandedString().optional(),icon:e.brandedString().optional(),objectLabel:n.string().optional()}),ft=n.object({id:n.string(),label:n.string(),description:n.string().optional(),rows:n.array(e.unchecked())}),pt=n.object({id:e.brandedString().optional(),name:n.string(),label:n.string(),description:n.string().optional(),icon:e.brandedString().optional(),status:n.enum(ut),version:n.number(),slots:n.array(dt),steps:n.array(ft),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:e.isoDateTime.optional(),updatedAt:e.isoDateTime.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 mt=[`draft`,`submitted`,`processing`,`completed`,`failed`],ht=n.record(n.string(),n.record(n.string(),n.unknown())),gt=n.object({id:e.brandedString().optional(),formId:n.string(),formName:n.string(),stepValues:ht,slotValues:ht,createdRecordIds:n.record(n.string(),n.string()),status:n.enum(mt),currentStepIndex:n.number(),createdBy:n.string().optional(),submittedAt:e.isoDateTime.optional(),tenantId:n.string().optional(),createdAt:e.isoDateTime.optional(),updatedAt:e.isoDateTime.optional(),archivedAt:e.isoDateTime.optional()}),_t=[`reader`,`runner`,`editor`],y=[`reader`,`editor`],vt=[`manual`,`meeting_attendee`],yt=/* @__PURE__ */ new Set([`memory`,`skill`]),bt=[`runner`],xt=[`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(y,e)}function parseAgentDefinitionAccessRole(e){return parseRole(_t,e)}function parsePageAccessRole(e){return parseRole(y,e)}function parseDeviceAccessRole(e){return parseRole(bt,e)}function parseAgentSessionAccessRole(e){return parseRole(xt,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 St=[`fr`,`en`],Ct=[`text`,`image`,`audio`,`video`,`embedding`,`decision`,`meeting`,`compute`,`browser`],wt=[`me`,`workspace`],Tt=[`ok`,`low`,`exhausted`,`paused`],Et=[`metering-only`,`contract`,`wallet`],b=[`none`,`estimated`,`exact`];function parseCountMode(e){if(typeof e==`string`&&b.includes(e))return e;throw new t.ValidationError(`countMode must be one of: ${b.join(`, `)} (received: ${String(e)})`,[])}function parseOptionalCountMode(e){return e===void 0?void 0:parseCountMode(e)}const Dt=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()}),Ot=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()}),kt=n.discriminatedUnion(`kind`,[Dt,Ot]),At=[`record`,`object`,`attribute`,`view`,`user`,`role`,`settings`,`file`,`agent`,`bundle`,`tenant_invitation`,`api_key`,`agent_session`],jt=/* @__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(`,`),Mt=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 Nt=n.object({id:n.string(),tenantId:n.string(),actorId:n.string().optional(),actorEmail:n.string().optional(),actorType:n.enum(le),triggeredByActorId:n.string().optional(),rootActorId:n.string().optional(),action:n.enum(jt),resourceType:n.enum(At),resourceId:n.string(),resourceLabel:n.string().optional(),objectName:n.string().optional(),objectId:n.string().optional(),changes:n.array(Mt).optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:e.isoDateTime}),Pt=[`draft_schema`],Ft=`request_design_review`,It=[`search`,`query`,`read`,`write`,`delete`,`organize`,`copy`,`send`],Lt=[...It,`edit_content`],Rt=[...Lt,`compact_context`,`request_work_mode`,`write_todos`],zt=[Ue],Bt=[`get_agents`,`upsert_agent`],Vt=[`record`,`document`,`file`,`skill`,`schema`,`guide`,`decision`],x={memory:{kinds:[`memory`],capabilities:[],tools:[`propose_memory`]},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:[]}},S={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:x.memory.tools},bulk:{icon:`layers-two`,tools:x.bulk.tools},activity:{icon:`activity`,tools:x.activity.tools},orchestration:{icon:`git-branch`,tools:[`spawn_agent`]},host:{icon:`wrench`,tools:[]},"cloud-browser":{icon:`globe`,tools:zt},"agent-config":{icon:`sparkles`,tools:Bt}},C={mcp:{icon:`puzzle`,tools:[]},"email.read":{icon:`envelope`,tools:x[`email.read`].tools},"email.send":{icon:`send`,tools:x[`email.send`].tools},"calendar.read":{icon:`calendar`,tools:x[`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:zt},login:{icon:`key`,tools:[]}},Ht={sandbox:{kinds:[],capabilities:[],tools:S.sandbox.tools},web:{kinds:[],capabilities:[],tools:S.web.tools},image:{kinds:[],capabilities:[],tools:S.image.tools},memory:x.memory,bulk:x.bulk,activity:x.activity,orchestration:{kinds:[],capabilities:[],tools:S.orchestration.tools},host:{kinds:[],capabilities:[],tools:S.host.tools},"cloud-browser":{kinds:[],capabilities:[],tools:S[`cloud-browser`].tools},"agent-config":{kinds:[],capabilities:[],tools:S[`agent-config`].tools},mcp:{kinds:[],capabilities:[],tools:C.mcp.tools},"email.read":x[`email.read`],"email.send":x[`email.send`],"calendar.read":x[`calendar.read`],github:{kinds:[],capabilities:[],tools:C.github.tools},"slack.read":{kinds:[],capabilities:[],tools:C[`slack.read`].tools},"slack.write":{kinds:[],capabilities:[],tools:C[`slack.write`].tools},device:{kinds:[],capabilities:[],tools:C.device.tools},"browser-profile":{kinds:[],capabilities:[],tools:C[`browser-profile`].tools},login:{kinds:[],capabilities:[],tools:C.login.tools}},Ut={schema:[`discard_architect_draft`,`draft_schema`,`get_architect_draft`,`get_schema_history`,`request_design_review`,`search_icons`],"agent-config":Bt,setup:[`request_setup`],internal:[`load_toolset`]},Wt=[.../* @__PURE__ */ new Set([...Rt,...f.flatMap(e=>S[e].tools),...p.flatMap(e=>C[e].tools)])],Gt={"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 Kt=[`activity`,`bulk`,`image`,`memory`,`orchestration`,`sandbox`,`web`],qt=[`memory`],Jt=/* @__PURE__ */ new Set([`sandbox`,`host`,`cloud-browser`]);function needsManageWhenUnattended(e){return Jt.has(e)||isResourceGrant(e)}function isNativeToolGroup(e){return f.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||!p.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 Yt=`ask_questions`,Xt=`request_setup`,Zt=/* @__PURE__ */ new Set([Yt,Ft,Xt]),Qt=/* @__PURE__ */ new Set([Yt,Xt]),$t=/* @__PURE__ */ new Set([Ft]),en=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()]),tn=n.object({skipped:n.boolean().describe(`True if the person skipped all questions`),answers:n.record(n.string(),en).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`)});function readAskQuestionsResult(e){let t=tn.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 Qt.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?$t.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 nn={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:e.isoDateTime.optional(),documentId:n.string().nullable().optional(),position:n.number().nullable().optional(),ocrStatus:n.enum(_).nullable().optional(),ocrText:n.string().nullable().optional(),ocrConfidence:n.number().nullable().optional(),processedAt:e.isoDateTime.nullable().optional(),isPublic:n.boolean().optional(),publicUrl:n.string().nullable().optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),an=n.object({urls:n.record(n.string(),n.string())}),on={id:n.string(),name:n.string(),label:n.string(),icon:e.brandedString().optional(),object:n.string().optional(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable()},sn=n.object({...on,isHome:n.boolean(),codeDeclared:n.boolean()}),cn=n.object({...on,revision:n.number(),grid:n.record(n.string(),e.gridPositionReadSchema),blocks:n.array(e.unchecked()),hidden:n.array(n.object({name:n.string(),grid:e.gridPositionReadSchema}))}),w=n.enum([`owner`,`editor`,`runner`,`reader`,`workspace`]);function accessGrantSchema(t,r){return n.object({actorId:e.brandedString(),role:n.enum(t),sources:n.array(n.enum(r))})}const ln=n.object({recordId:e.brandedString(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(y,vt))}),un=n.object({deviceId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(bt,[`manual`]))}),dn=n.object({pageId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(y,[`manual`]))}),fn=n.object({recordId:n.string(),objectId:n.string(),objectName:n.string(),label:n.string().optional()}),pn=[`confirmed`,`tentative`,`cancelled`],mn=[`organizer`,`required`,`optional`],hn=[`accepted`,`declined`,`tentative`,`needs_action`],gn=[`accepted`,`declined`,`tentative`],_n=[`scheduled`,`recording`,`completed`,`failed`],vn=[`force`,`skip`],yn=[`none`,`all`,`external_only`],bn=n.object({override:n.enum(vn).nullable(),status:n.enum([`none`,..._n]),failureReason:n.string().nullable(),waitingRoom:n.boolean(),botId:n.string().nullable()}),xn={override:null,status:`none`,failureReason:null,waitingRoom:!1,botId:null},Sn=n.object({speaker:n.string().nullable(),startsAtMs:n.number(),endsAtMs:n.number(),text:n.string()}),Cn=n.object({fullText:n.string(),segments:n.array(Sn),language:n.string().nullable(),startedAt:n.string().nullable(),endedAt:n.string().nullable()}),wn={width:1280,height:720,maxBytes:13e5,mimeType:`image/jpeg`},Tn=Math.ceil(wn.maxBytes/3)*4,En=n.object({conferenceJoinUrl:n.string().min(1),botDisplayName:n.string().min(1),startsAt:n.string().nullable(),callbackUrl:n.url(),botImageJpeg:n.string().max(Tn).optional()}),Dn=n.object({botId:n.string().min(1)}),On=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()})]),T=n.object({meetingId:n.string(),ownerActorId:n.string().nullable()}),kn=T.extend({ownerDisplayName:n.string().nullable()}),An=n.object({fullText:n.string(),segments:n.array(Sn),speakers:n.array(n.string()),language:n.string().nullable(),startedAt:n.string().nullable(),endedAt:n.string().nullable(),source:kn.nullable()}),jn=[`created`,`pending`,`refused`],E=n.object({address:n.string(),name:n.string().optional(),role:n.enum(mn),responseStatus:n.enum(hn).optional()}),Mn=fn.extend({sync:n.literal(!0).optional()}),Nn=n.object({id:n.string(),ownerActorId:n.string().nullable()}),Pn=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(pn),organizer:E.nullable(),conferenceProvider:n.string().nullable(),conferenceJoinUrl:n.string().nullable(),htmlLink:n.string().nullable(),participants:n.array(E),linkedRecords:n.array(Mn),recording:bn,viewerAccess:w,callKey:n.string(),siblings:n.array(Nn),transcriptSource:T.nullable(),conferenceRequest:n.enum(jn).optional()}),Fn=n.object({meetings:n.array(Pn),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 In=n.object({meetingRecordingPolicy:n.enum(yn),meetingBotDisplayName:n.string(),memoryPersonMonthlyLimitUsd:n.string().nullable(),memoryTenantMonthlyLimitUsd:n.string().nullable(),findImages:n.boolean(),memberMonthlyCapCredits:n.number().nullable()}),Ln=In.extend({meetingBotConfigured:n.boolean(),meetingBotImageUrl:n.string().nullable(),logosConfigured:n.boolean()}),Rn=`Notetaker`,zn=/^\d{1,9}(\.\d{1,6})?$/,Bn={meetingRecordingPolicy:`none`,meetingBotDisplayName:Rn,memoryPersonMonthlyLimitUsd:null,memoryTenantMonthlyLimitUsd:null,findImages:!0,memberMonthlyCapCredits:null},Vn=[`pending`,`expired`,`revoked`,`accepted`],Hn=[`pending`,`sent`,`failed`],Un=n.object({id:n.string(),tenantId:e.brandedString(),email:n.string(),roleId:n.string(),invitingActorId:n.string(),status:n.enum(Vn),deliveryStatus:n.enum(Hn),expiresAt:e.isoDateTime,lastSentAt:e.isoDateTime,acceptedAt:e.isoDateTime.optional(),revokedAt:e.isoDateTime.optional(),acceptedProfileId:n.string().optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),Wn=[`active`,`suspended`],Gn=[`architect`,`manual`,`auto`],Kn=[`panel`,`fullscreen`],qn=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(Wn),lastLoginAt:e.isoDateTime.optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),Jn=qn.extend({actorId:n.string().nullable(),roleIds:n.array(n.string())}),Yn=[`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 Xn=[`storage.bytes`,`members.seats`,`data.live_records`,`email.mailboxes`,`calendar.connections`],Zn=/* @__PURE__ */ new Set([`data.live_records`,`email.mailboxes`,`calendar.connections`]),Qn=n.object({key:n.enum(Xn),limit:n.number().nullable(),used:n.number(),reserved:n.number(),available:n.number().nullable(),version:n.string().nullable()}),$n=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()})]),er=n.strictObject({nodes:n.array($n).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 tr=`work`,nr=`/vercel/sandbox/${tr}`,rr=`/workspace`;function environmentWorkdir(e=null){return e?nr:rr}const D=[{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`}],O=new Map(D.map(e=>[e.id,e]));function isEnvironmentHarnessId(e){return O.has(e)}function findEnvironmentHarness(e){return O.get(e)}function environmentHarness(e){let n=O.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 ir=[`code`,`documents`],k=[`small`,`default`,`large`],ar={small:2,default:4,large:8},A=[`setup`,`bake`,`publish`];function isEnvironmentBuildLogStep(e){return A.includes(e)}function utf8ByteLength(e){return new TextEncoder().encode(e).length}const or=[{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.`}],sr={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`}},cr=`stone`,lr=/* @__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(`,`)),ur=new Set(or.map(e=>e.key)),dr=new Set(Object.entries(sr).flatMap(([e,t])=>[e,t.en,t.fr].map(e=>e.toLowerCase())));function isSystemEmailCategory(e){return ur.has(e)}function isSystemEmailCategoryName(e){return dr.has(e.trim().toLowerCase())}function isPublicMailDomain(e){return lr.has(e.toLowerCase())}const fr=[`conversation`,`run`,`change`],j={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??j,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={...he,...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??[...qt],config:this.bp.config??j,systemPrompt:this.bp.systemPrompt,model:this.bp.model}}};function agent(e){return new AgentBuilder(e)}const pr=[`circle`,`square`],M=[`upload`,`website`,`name`,`email`];function isImageSource(e){return M.some(t=>t===e)}const mr={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 N=[`record`,`document`,`file`,`email`,`thread`,`event`,`memory`,`skill`,`schema`,`user`,`guide`,`bundle`,`draft`,`decision`,`session`,`catalog`,`wake`],hr=/* @__PURE__ */ new Set([`memory`,`schema`,`wake`]),gr=/^[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 N.includes(e)}function refuse(e,t){return{ok:!1,reason:e,expected:t}}function parseReference(e){let t=e.trim();if(gr.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 ${N.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===`*`&&!hr.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===`*`&&hr.has(e.kind)}const _r={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()},vr=n.object(_r).readonly(),yr=n.object(_r).strict().readonly(),P=n.number().finite().nonnegative(),F=n.enum(_e),I=n.enum(ve),L=n.enum(ye),R=n.enum(Se),z=n.object({provider:F,model:n.string().min(1)}).strict(),br=n.object({speed:I.optional(),reasoning:L.optional(),routing:R.optional()}).strict(),B=n.string().regex(/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9._-]*$/),xr=n.object({model:z.optional(),speed:I.optional(),reasoning:L.optional(),imageModel:B.optional(),routing:R.optional()}).strict(),Sr=xr.refine(e=>we.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 Cr=n.object({model:z.nullable().optional(),speed:I.nullable().optional(),reasoning:L.nullable().optional(),imageModel:B.nullable().optional(),routing:R.nullable().optional()}).strict().refine(isSessionInferencePatch,{message:`At least one inference override is required`}),wr=n.object({model:n.string().min(1),routing:n.object({mode:n.literal(`auto`),tasks:n.array(n.enum(be)).optional(),demand:n.enum(xe).optional(),reason:n.enum([`selected`,`retained`,`fallback`]).optional(),relation:n.enum([`continue`,`modify`,`new`,`aside`,`unknown`]).optional(),anchorMessageId:n.string().min(1).optional()})}),Tr=n.object({objectName:n.string(),id:n.string(),label:n.string(),objectIcon:n.string().optional()}).strict(),Er=n.object({label:n.string(),denied:n.boolean().optional(),deletion:n.object({target:n.string().optional(),count:P.optional(),targets:n.array(n.string()).optional(),restorableDays:P.optional()}).strict().optional(),record:Tr.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:P,outsideThread:n.array(n.string()),attachments:n.array(n.object({name:n.string(),size:P}).strict()),updatedAt:n.string(),forwarded:n.object({from:n.string(),subject:n.string().nullable(),quote:n.string(),quoteTruncatedChars:P}).strict().optional()}).strict().optional(),move:yr.optional(),parent:Tr.nullable().optional(),skill:n.object({source:n.string(),description:n.string(),audience:n.enum([`private`,`workspace`]),files:P,hasScripts:n.boolean()}).strict().optional(),outgoingText:n.string().optional(),counts:n.record(n.string(),P).optional(),warnings:n.array(n.string()).optional()}).strict(),Dr=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(Ae)}).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:P.optional(),approvalId:n.string().optional(),approvalImpact:Er.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:P.optional(),reportedTokens:P.optional()}).strict(),n.object({type:n.literal(`compaction`),state:n.literal(`completed`),tokensBefore:P,tokensAfter:P,tokensSaved:P,strategy:n.enum([`no-op`,`summary`,`truncation`]),durationMs:P,summary:n.string().optional()}).strict(),n.object({type:n.literal(`compaction`),state:n.literal(`failed`),reason:n.string(),durationMs:P.optional()}).strict()]),Or=n.object({id:n.string().min(1),name:n.string().min(1),mimeType:n.string().min(1),size:n.number().int().min(0)}).strict(),kr=n.object({id:n.string(),artifactId:n.string(),revision:n.number().int().min(1),selectedText:n.string()}).strict(),Ar=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(),jr=n.object({provider:F,model:n.string().min(1),maxTokens:n.number().int().positive().optional(),contextWindow:P.optional()}).strict(),Mr=n.union([n.date(),n.string().datetime({offset:!0}).transform(e=>new Date(e))]),Nr=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(Dr),attachments:n.array(Or).optional(),mentions:n.array(Ar).optional(),quotes:n.array(kr).optional(),model:jr.optional(),tokenUsage:n.object({input:P,output:P}).strict().optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:Mr}).strict(),Pr=n.object({id:n.string(),description:n.string(),status:n.enum([`pending`,`in_progress`,`completed`,`blocked`]),result:n.string().optional(),updatedAt:P.optional(),target:n.object({phase:n.enum(He)}).strict().optional()}).strict(),Fr=n.object({id:n.string(),sessionId:n.string(),status:n.enum([`active`,`completed`,`abandoned`]),todos:n.array(Pr),version:P,createdAt:n.string(),updatedAt:n.string(),completedAt:n.string().optional()}).strict(),Ir={"compaction-start":n.object({reason:n.enum([`preflight_threshold`,`overflow_recovery`]),estimatedTokens:P.optional(),reportedTokens:P.optional()}).strict(),"compaction-end":n.object({tokensBefore:P,tokensAfter:P,tokensSaved:P,strategy:n.enum([`no-op`,`summary`,`truncation`]),durationMs:P,summary:n.string().optional()}).strict(),"compaction-failed":n.object({reason:n.string()}).strict(),usage:n.object({messageId:n.string().min(1).optional(),inputTokens:P,outputTokens:P,totalTokens:P,cacheReadTokens:P.optional(),cacheCreationTokens:P.optional(),contextWindow:P,residentTokens:P,utilization:n.number().finite().min(0).max(1),costUsd:P.optional()}).strict(),"sent-message":n.object({text:n.string(),attachments:n.array(n.string()).optional()}).strict(),"message-updated":n.object({message:Nr}).strict(),"approval-context":n.object({approvalId:n.string(),toolCallId:n.string(),impact:Er.optional(),relaxableByAuto:n.boolean().optional()}).strict()};function isAgentUIDataName(e){return e in Ir}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:Ir[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 Lr={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`]}},Rr={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`]}},zr=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 Br=n.discriminatedUnion(`field`,[zr,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`)]),Vr=n.discriminatedUnion(`field`,[zr,n.object({field:n.literal(`position`),value:n.enum([`top_level`,`reply`])}).strict(),booleanCondition(`hasFile`),stringCondition(`messageAuthor`)]),Hr=Object.keys(Lr),Ur=Object.keys(Rr),Wr=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 Gr=n.enum([`human`,`me`,`any`]),Kr=n.object({family:n.enum(Hr),actions:n.array(n.string()).default([]),repositories:n.array(Wr).default([]),sender:n.union([Gr,n.object({logins:n.array(n.string().min(1)).min(1)}).strict()]).default(`human`),conditions:n.array(Br).default([])}).strict().superRefine((e,t)=>{let n=Lr[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),qr=n.object({on:n.enum(Ur),channels:n.array(n.string().min(1)).default([]),reactions:n.array(n.string().min(1)).optional(),sender:n.union([Gr,n.object({users:n.array(n.string().min(1)).min(1)}).strict()]).default(`human`),conditions:n.array(Vr).default([])}).strict().superRefine((e,t)=>{e.conditions.forEach((n,r)=>{Rr[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),Jr=n.union([Kr,qr]),Yr=[`record.created`,`record.updated`,`form.submitted`,`webhook`,`github`,`slack`],Xr=/* @__PURE__ */ new Set([`record.created`,`record.updated`]),Zr=/^[A-Z_][A-Z0-9_]*$/,Qr=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()}),$r=/^[A-Za-z0-9_$-]+(\.[A-Za-z0-9_$-]+)*$/,ei=n.object({name:n.string().max(120).optional(),eventType:n.enum(Yr),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($r).nullable().optional(),connectionId:n.guid().optional(),match:Jr.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&&Xr.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 ti=refineTrigger(ei).transform(e=>({...e,...e.eventType===`github`||e.eventType===`slack`?{continueConversation:e.continueConversation??!0}:{}})),ni=ei.partial();function parseMergedAgentTrigger(e,t){let n=ni.safeParse(t);if(!n.success)throw triggerValidationError(n.error);let r=Object.fromEntries(Object.entries(n.data).filter(([,e])=>e!==void 0)),i=ti.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 ri=n.enum([`pending`,`running`,`completed`,`failed`,`cancelled`,`paused`,`skipped`]),ii=n.object({input:n.number(),output:n.number()}),ai=n.object({provider:F,model:n.string()}),V=ai.extend({maxTokens:n.number().optional(),contextWindow:n.number().optional()}),oi=n.object({speed:I.optional(),reasoning:L.optional(),routing:R.optional()}),si=oi.extend({model:ai.optional(),imageModel:n.string().optional()}),ci=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(fe).optional(),runningTurnId:n.string().optional(),lastTurnId:n.string().optional()}),li=n.object({type:n.enum(Te),color:e.brandedString(),expression:n.enum(Ee)}),ui=n.object({name:n.string(),kind:n.enum([`agent`,`routine`]),label:n.string().optional(),avatar:li.optional()}),di=n.object({id:n.string(),tenantId:n.string(),mode:n.enum([`interactive`,`autonomous`]),state:ci,approvalMode:n.enum([`manual`,`auto`]),workMode:n.enum([`execute`,`architect`]),focus:n.boolean(),workModeVersion:n.number(),version:n.number(),loadedToolsets:n.array(n.string()),inferenceOverrides:si,origin:n.enum(We),definitionId:n.string().optional(),inlineConfig:e.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:e.isoDateTime,updatedAt:e.isoDateTime,completedAt:e.isoDateTime.optional(),expiresAt:e.isoDateTime.optional(),archivedAt:e.isoDateTime.optional(),lastAgentActivityAt:e.isoDateTime.optional(),lastReadAt:e.isoDateTime.optional(),lastUserActivityAt:e.isoDateTime.optional(),harness:e.brandedString().optional(),environmentId:n.string().optional(),size:n.enum(k).optional(),harnessState:n.unknown().optional(),definitionAppearance:ui.optional(),readThrough:n.literal(!0).optional(),listCursor:n.string().optional(),nextWakeAt:e.isoDateTime.nullable().optional()}),fi=n.discriminatedUnion(`kind`,[n.object({kind:n.enum([`changed`,`stale`]),session:di}),n.object({kind:n.literal(`approval-required`),approvalId:n.string(),current:di,targetApprovalMode:n.enum([`manual`,`auto`])})]),pi=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()})]),mi=n.discriminatedUnion(`kind`,[n.object({kind:n.literal(`routine`),definitionId:n.string()}),n.object({kind:n.literal(`conversation`),sessionId:n.string()})]),hi=n.object({id:n.string(),description:n.string(),status:n.enum(Ve),updatedAt:n.number().optional(),target:n.object({phase:n.enum(He),objectName:n.string().optional()}).optional()}),gi=n.object({id:n.string(),sessionId:n.string(),status:n.enum(ge),todos:n.array(hi),version:n.number(),createdAt:n.string(),updatedAt:n.string(),completedAt:n.string().optional()}),_i=n.object({id:n.string(),sessionId:n.string(),note:n.string(),nextFireAt:e.isoDateTime.nullable(),cron:n.string().optional(),timezone:n.string().optional(),endsAt:e.isoDateTime.optional(),maxFires:n.number().optional(),fires:n.number(),authorityActorId:n.string(),status:n.enum([`active`,`finished`,`cancelled`]),lastFiredAt:e.isoDateTime.nullable(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),vi=_i.extend({passesLeft:n.number().optional()}),yi=n.object({status:n.enum([`cancelled`,`finished`])}),bi=n.object({requestCount:n.number(),generatedImageCount:n.number(),confirmedCostUsd:n.string(),pendingCostCount:n.number()}),xi=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()})]),Si=n.object({session:bi,tree:bi,byMessage:n.record(n.string(),bi),attempts:n.array(n.object({attemptId:n.string(),messageId:n.string(),requestedModelId:n.string(),executedModelId:n.string().nullable(),provider:n.string().nullable(),cost:xi}))}),Ci=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(e.unchecked()),openHumanRequests:n.array(n.object({messageId:n.string(),createdAt:n.string(),part:e.unchecked()})),firstUserPreview:n.string().nullable(),designReviewOutcomes:n.array(n.object({requestId:n.string(),outcome:n.enum([`approved`,`changesRequested`,`unknown`])}))}),wi=n.object({sessionId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(xt,[`manual`]))}),Ti=n.object({id:n.string(),type:e.brandedString(),entityId:n.string(),label:n.string(),objectName:n.string().optional(),startIndex:n.number(),endIndex:n.number()}),H=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(Dr),attachments:n.array(Or.strip()).optional(),mentions:n.array(Ti).optional(),quotes:n.array(kr.strip()).optional(),model:V.optional(),tokenUsage:ii.optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:e.isoDateTime}),Ei=H.extend({waiting:n.boolean().optional()}),Di=n.object({messages:n.array(Ei),nextCursor:n.string().nullable(),hasMore:n.boolean(),committedSeq:n.number(),sessionState:ci.optional()}),Oi=n.object({outcome:pi,clientMessageId:n.string()}),ki=n.object({message:H,outcome:pi.optional()}),Ai=n.object({message:H}),ji=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:ri,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:ii.optional(),costUsd:n.number().optional(),startedAt:e.isoDateTime.optional(),completedAt:e.isoDateTime.optional(),createdAt:e.isoDateTime,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()}),Mi=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()}),Ni=n.object({memoryGranted:n.boolean(),profile:Mi.nullable()}),Pi=n.object({maxRetries:n.number(),backoffMs:n.number(),backoffMultiplier:n.number()}),Fi=n.object({maxConcurrentRuns:n.number(),retryPolicy:Pi,costLimitUsd:n.number().optional(),inference:oi.optional()}),Ii=n.object({enabled:n.boolean(),model:V.optional(),systemPrompt:n.string().optional(),maxRetries:n.number().optional()}),Li=n.object({workspace:n.boolean(),roleIds:n.array(n.string()),actorIds:n.array(n.string())}),Ri=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:Li.optional(),continueConversation:n.boolean().optional()}),zi=n.object({id:n.string(),tenantId:n.string(),name:n.string(),kind:n.enum([`agent`,`routine`]),label:n.string().optional(),avatar:li.optional(),starters:n.array(n.string()).optional(),description:n.string().optional(),systemPrompt:n.string(),model:V,toolGroups:n.array(e.brandedString()),schedule:Ri.optional(),scheduleLastFiredAt:e.isoDateTime.optional(),config:Fi,system:n.boolean(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),createdBy:n.string(),scheduleArmedBy:n.string().optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime,deletedAt:e.isoDateTime.optional(),maxDepth:n.number().optional(),maxTreeCostUsd:n.number().optional(),critic:Ii.optional(),autoDecide:n.boolean().optional(),active:n.boolean().optional(),scheduleNextRunAt:e.isoDateTime.optional(),viewerAccess:w.optional(),viewerInAudience:n.boolean().optional(),sharedWithCount:n.number().optional(),harness:e.brandedString().optional(),environmentId:n.string().optional(),shareChangeMachine:n.boolean().optional(),size:n.enum(k).optional()}),Bi=n.object({definitionId:n.string(),lastRunAt:e.isoDateTime.nullable(),lastRunStatus:ri.nullable(),lastRunError:n.string().nullable(),lastRunSessionId:n.string().nullable(),running:n.number(),runs7d:n.number(),failed7d:n.number()}),Vi=n.object({definitionId:n.string(),day:n.string(),runs:n.number(),failed:n.number()}),Hi=n.enum(Yr),Ui=n.object({definition:zi,triggers:n.array(n.object({id:n.string(),eventType:Hi,hasWebhook:n.boolean()}))}),Wi=n.object({people:n.array(n.object({actorId:n.string(),source:e.brandedString(),missingConnections:n.array(n.string())}))}),Gi=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()}),Ki=n.object({kinds:n.array(n.enum(N)),capabilities:n.array(n.enum([`bulk`,`activity`,`transcript`,`copy_email`]))}),qi=e.brandedString(),Ji=n.object({core:n.array(Gi),native:n.array(n.object({name:n.enum(f),granted:n.boolean(),grantable:n.boolean(),reason:qi.optional(),enables:Ki,tools:n.array(Gi)})),kinds:n.array(n.object({kind:n.enum(p),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:qi.optional(),notes:n.array(qi).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:Ki,tools:n.array(Gi)}))}))}),Yi=n.object({visible:n.array(n.object({id:n.string(),name:n.string()})),hiddenCount:n.number()}),Xi=n.object({definitionId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(_t,[`manual`]))}),Zi=n.object({id:e.brandedString(),tenantId:e.brandedString(),name:n.string(),label:n.string(),description:n.string().optional(),system:n.boolean(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),Qi=n.object({ok:n.literal(!0)}),$i=n.object({at:e.isoDateTime,status:n.number(),payload:n.unknown(),truncated:n.boolean()}),ea=n.object({id:n.string(),tenantId:n.string(),definitionId:n.string(),name:n.string().optional(),eventType:Hi,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:e.unchecked().optional(),continueConversation:n.boolean().optional(),filter:e.unchecked().optional(),debounceMs:n.number().optional(),reentry:n.number().optional(),enabled:n.boolean(),createdBy:n.string(),lastFiredAt:e.isoDateTime.optional(),webhookUrl:n.string().optional(),lastCall:$i.optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),ta=ea.extend({addedToolGrants:n.array(e.brandedString()).optional()}),U=[`gmail`,`outlook`,`google-calendar`,`outlook-calendar`,`github`,`slack`],na=[`active`,`reauth_required`,`error`,`disconnected`],ra=n.object({canRead:n.boolean(),canModify:n.boolean(),canSend:n.boolean()});function requestedCapabilities(e){let t=[];return e.canModify&&t.push(`modify`),e.canSend&&t.push(`send`),t}const ia=n.object({processed:n.number(),total:n.number().nullable(),backfilling:n.boolean()}),aa=n.object({id:n.string(),provider:n.enum(U),ownerActorId:n.string().nullable(),parentConnectionId:n.string().nullable(),connectedByActorId:n.string().nullable().optional(),externalAccountId:n.string(),displayName:n.string().optional(),status:n.enum(na),lastSyncedAt:n.string().nullable(),createdAt:n.string(),capabilities:ra,syncProgress:ia,usedBy:Yi.optional()}),oa=[`actor`,`tenant`],sa=n.object({providers:n.array(n.enum(U)),mailTriageProviders:n.array(n.enum(U))}),ca=[`read`,`write`,`delete`,`userDirectory`],la=[`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 ua=n.object({attemptId:n.string(),authorizeUrl:n.string(),expiresAt:n.string()}),W=[`personal`,`workspace`],G=[`model`,`rule`,`manual`],K=[`address`,`domain`],da=n.object({id:n.string(),scope:n.enum([...W,`system`]),name:n.string().nullable(),description:n.string(),icon:e.brandedString(),color:e.brandedString()}),fa=n.object({category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable()}),pa=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()}),ma=n.object({emails:n.number(),rules:n.number()}),ha=n.object({verdict:fa,ruleId:n.string().nullable(),previousRule:n.object({scope:n.enum(K),match:n.string(),category:n.string()}).nullable()}),ga=n.object({verdict:fa,rule:pa.nullable(),undo:ha}),_a=[`gmail`,`outlook`];function isMailProvider(e){return e===`gmail`||e===`outlook`}const va=[`shared`,`private`],ya=`DRAFT`;function isProviderDraft(e){return e.includes(ya)}const ba=[`inbound`,`outbound`],xa=[`read`,`unread`,`archive`,`trash`,`restore`],Sa=n.object({applied:n.array(n.string()),failed:n.array(n.object({id:n.string(),reason:n.string()})),synced:n.boolean()}),Ca=[`from`,`to`,`cc`,`bcc`],wa=n.object({address:n.string(),role:n.enum(Ca)}),Ta=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()}),Ea=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(ba),visibility:n.enum(e.RESOURCE_VISIBILITIES),isRead:n.boolean(),labels:n.array(n.string()),attachments:n.array(Ta),participants:n.array(wa),category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable(),verdictScope:n.enum(W).nullable(),fromImage:q.optional()}),Da=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(wa),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()}),Oa=n.object({id:n.string(),provider:n.enum(_a),externalAccountId:n.string(),visibility:n.enum(va),status:n.enum(na),capabilities:ra}),ka=[`threads`,`messages`];function isMailboxListMode(e){return ka.includes(e)}const Aa=n.object({sentAt:n.string(),threadId:n.string(),emailId:n.string().optional()}),ja=n.object({threads:n.array(Da),nextCursor:Aa.optional(),total:n.number().nullable(),totalIsExact:n.boolean().optional()}),Ma=[`reply`,`reply_all`,`forward`,`new`],Na=[`reply`,`reply_all`];function isReplyMode(e){return Na.includes(e)}const Pa=n.object({accountId:n.string(),provider:n.enum(_a),canSend:n.boolean(),parentEmailId:n.string(),subject:n.string(),selfAddresses:n.array(n.string())}),Fa=n.object({fileId:n.string(),name:n.string(),mimeType:n.string(),sizeBytes:n.number()}),Ia=n.object({id:n.string(),accountId:n.string(),mode:n.enum(Ma),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(Fa),sendingAt:n.string().nullable(),createdAt:n.string(),updatedAt:n.string()}),La=n.object({connectionId:n.string(),address:n.string(),html:n.string().nullable(),onReplies:n.boolean()}),Ra=n.object({address:n.string(),name:n.string().nullable(),occurrences:n.number(),image:q.optional()}).readonly(),za=n.object({recordId:n.string(),objectName:n.string()}).readonly(),Ba=n.object({address:n.string(),name:n.string().nullable(),image:q.optional(),contact:za.optional()}).readonly(),Va=n.object({threadId:n.string(),subject:n.string(),emails:n.array(Ea),replyDefaults:Pa.nullable(),linkedRecords:n.array(fn)}),Ha=/^[A-Za-z0-9_-]+$/,Ua=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?Z$/,Wa=/^[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||!Ha.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||!Ua.test(n)||!Wa.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 Ga=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()}),Ka=n.object({sessionId:n.string()}),qa=n.object({url:n.string()}),Ja=n.enum([`synced`,`added`]),Ya=n.enum([`code`,`http`]),Xa=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),mode:Ja,origin:Ya.nullable(),hash:n.string().nullable(),uses:n.array(n.string()),installedAt:n.string(),updatedAt:n.string(),installedBy:n.string().nullable()}),Za=n.enum([`current`,`update`,`repair`]),Qa=n.object({name:n.string(),status:Za,usedBy:n.array(n.string())}),$a=e.brandedString().nullable(),eo=n.object({objects:n.array(n.object({name:n.string(),label:n.string(),icon:n.string().nullable(),color:$a,attributes:n.array(n.string()),optionsLabel:n.string().nullable(),options:n.array(n.object({label:n.string(),color:$a})),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:$a})),skills:n.array(n.string()),agents:n.array(n.object({name:n.string(),label:n.string(),kind:n.enum([`routine`,`agent`]),inWorkspace:n.boolean()}))}),to=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),uses:n.array(n.string()),hasSamples:n.boolean(),installed:n.boolean(),contents:eo}),no=n.object({installed:n.array(Xa),available:n.array(to)}),ro=n.object({kind:n.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:n.string()}),io=n.object({object:n.string(),attribute:n.string(),to:n.enum(e.ATTRIBUTE_TYPES),dependents:n.array(ro),hiddenDependents:n.number()}),ao=n.object({object:n.string(),attribute:n.string(),declared:n.enum(e.ATTRIBUTE_TYPES),stored:n.enum(e.ATTRIBUTE_TYPES)}),oo=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(io).optional(),servedAsIs:n.array(ao).optional()}),so=n.enum([`object`,`view`,`agent`]),co=n.object({pieceId:n.string(),bundleName:n.string(),kind:so,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()}),lo=n.object({pieces:n.array(co),fingerprint:n.string()}),uo=n.enum([`object`,`view`,`page`,`tab`,`agent`,`attribute`,`option`]),fo=n.enum([`added`,`updated`,`conflict`,`missing`,`notApplied`]),po=n.enum([`lossy`,`required`,`retype`,`move`,`nameTaken`,`refused`,`precondition`,`dependents`,`conversion`]),mo=n.object({pieceId:n.string(),kind:uo,group:fo,label:n.string(),reasonCode:po.optional(),reasonName:n.string().optional(),fromType:n.enum(e.ATTRIBUTE_TYPES).optional(),toType:n.enum(e.ATTRIBUTE_TYPES).optional(),dependents:n.array(ro).optional(),hiddenDependents:n.number().optional()}),ho=n.object({pieces:n.array(mo),fingerprint:n.string()}),go=n.object({applied:n.number()}),_o=n.object({objectLabel:n.string(),attributeLabel:n.string()}),vo=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(_o),computedAttributes:n.array(_o),prunedRelations:n.array(_o),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()}),yo=n.object({added:n.array(n.object({bundleName:n.string(),targetKind:so,targetId:n.string()})),failed:n.array(n.object({pieceId:n.string(),reason:n.string()}))}),J=n.enum(D.map(e=>e.id)),bo=n.enum([`idle`,`building`,`failed`]),xo=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())})]),So=n.object({step:n.enum([...A,`interrupted`]),exitCode:n.number().optional(),reason:n.literal(`credits_exhausted`).optional()}),Co=n.object({id:n.string(),name:n.string(),acceptedHarnesses:n.array(J),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string(),ready:n.boolean(),version:n.number(),savedAt:n.string().optional(),buildState:bo,buildFailure:So.nullable(),image:n.enum(ir),size:n.enum(k),maxSize:n.enum(k),networkPolicy:xo,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(J).optional()}),wo=n.object({fullName:n.string(),ref:n.string().optional(),lazy:n.boolean().optional()}),To=Co.extend({setupScript:n.string(),maintenanceScript:n.string(),repositories:n.array(wo),buildLog:n.string()}),Eo=n.object({harness:J.nullable(),available:n.boolean()}),Do=n.object({defaults:n.array(Eo),environments:n.array(Co)}),Oo=n.object({id:n.string(),label:n.string(),isDefault:n.literal(!0).optional()}),ko=n.object({source:n.enum([`live`,`served`,`compiled`]),models:n.array(Oo)}),Ao=n.enum([`none`,`header`,`oauth`]),jo=n.enum([`active`,`needs_reauth`,`error`]),Mo=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:Ao,trusted:n.boolean(),status:jo,lastSyncedAt:n.string().nullable(),lastSyncError:n.string().nullable(),createdAt:n.string(),usedBy:Yi.optional()}),No=n.enum([`dev`,`data`,`ai`,`crm`,`comm`,`marketing`,`productivity`,`finance`,`payments`,`security`,`hr`,`design`]),Po=n.object({id:n.string(),slug:n.string(),name:n.string(),url:n.string(),authType:Ao,category:No,description:n.string()}),Fo=n.object({callbackUrl:n.string(),clientMetadataUrl:n.string(),configured:n.boolean()}),Io=n.object({attemptId:n.string(),authorizeUrl:n.string(),expiresAt:n.string()}),Y=n.object({id:n.string(),objectId:n.string(),objectName:n.string(),objectLabel:n.string(),objectIcon:n.string().optional(),objectColor:e.brandedString().optional(),objectImage:e.unchecked().optional(),appearance:e.unchecked().optional(),label:n.string()}),Lo=n.object({options:n.array(Y),hasMore:n.boolean(),total:n.number(),nextOffset:n.number().optional()}),Ro=n.record(n.string(),n.array(Y)),zo=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()})]),Bo=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()}),Vo=n.object({nodes:n.array(zo),edges:n.array(Bo),hidden:n.record(n.string(),n.object({count:n.number(),saturated:n.boolean()}))}),Ho=e.unchecked(),Uo=e.unchecked(),Wo=n.object({id:e.brandedString().optional(),name:n.string(),label:n.string(),pluralLabel:n.string().optional(),description:n.string().optional(),icon:e.brandedString().optional(),color:e.brandedString().optional(),image:e.unchecked().optional(),labelExpression:n.string(),embeddingExpression:n.string().optional(),attributes:n.array(Ho),system:n.boolean().optional(),sealed:n.boolean().optional(),toleratedAttributes:n.array(n.string()).optional(),metadata:n.record(n.string(),n.unknown()).optional(),documentLayout:e.unchecked().optional(),hierarchical:n.boolean().optional()}),Go=n.object({kind:n.literal(`bundle`),name:n.string(),label:n.string(),objectNames:n.array(n.string())}),Ko=n.object({groups:n.array(Go)}),qo=schemaStateAddressOf(n.string()),Jo=n.looseObject({address:qo,source:e.unchecked().nullable(),effective:e.unchecked().nullable(),status:n.enum([`source`,`runtime`,`copy`,`suppressed`]),sourceOwner:e.brandedString().nullable(),guard:n.union([n.looseObject({id:n.string(),revision:n.number()}),n.looseObject({id:n.string(),updatedAt:n.string()})]).nullable()}),Yo=n.looseObject({modelVersion:n.literal(1),hashVersion:n.literal(1),tenant:n.string(),sourceFingerprint:n.string(),entries:n.array(Jo)}),Xo=n.object({id:n.string(),revision:n.number(),definition:e.unchecked()}),Zo=n.object({viewId:n.string(),objectId:n.string(),objectName:n.string(),legacyObjectName:n.string(),legacyTabId:n.string(),contentName:n.string()}),Qo=n.object({draftId:n.string(),version:n.number()}),$o=n.object({revision:Qo.nullable(),targetTokens:n.record(n.string(),n.string()).readonly()}),es={objectName:n.string().optional(),attributeName:n.string().optional(),viewName:n.string().optional(),pageId:n.string().optional()},ts=n.object({code:e.brandedString(),target:n.object({kind:n.enum([`object`,`attribute`,`view`,`page`]),...es}).optional(),operationId:n.string().optional(),message:n.string().optional(),at:n.string()}),ns=n.object({draftId:n.string(),outcome:n.enum([`published`,`refused`]),at:n.string(),error:ts.optional()}),rs=n.object({rule:n.enum([`computed-cycle`,`bilateral-pair`,`content-view`]),target:n.object(es),message:n.string()}),is=n.object({id:n.string(),actorId:n.string(),agentSessionId:n.string().nullable(),operations:n.array(e.unchecked()),baselines:n.record(n.string(),n.string()),status:n.enum([`composing`,`published`,`discarded`]),version:n.number(),lastPublishError:ts.optional()}),as=is.extend({commandGuard:$o,publishBlockers:n.array(rs)}),os=n.object({operationIds:n.array(n.string()),revision:Qo,changedTargets:n.array(n.object({target:e.unchecked(),token:n.string()})),notes:n.record(n.string(),n.string()).readonly().optional(),steps:n.array(e.unchecked()).optional()}),ss=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())}),cs={draftId:n.string().nullable(),version:n.number()},ls=n.discriminatedUnion(`status`,[n.object({...cs,status:n.literal(`ready`),state:e.unchecked(),changes:n.array(e.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:e.unchecked(),state:n.enum([`ready`,`preparing`,`unavailable`])})).readonly(),targetTokens:n.record(n.string(),n.string()).readonly(),baselineToken:n.string()}),n.object({...cs,status:n.literal(`invalid`),operationId:n.string().nullable(),message:n.string()})]),us=n.object({kind:n.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:n.string()}),ds=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(us),hiddenDependents:n.number()})),deferred:n.object({to:n.enum(e.ATTRIBUTE_TYPES),dependents:n.array(us),hiddenDependents:n.number()}).nullable()}),X=e.brandedString(),fs=n.object({icon:e.brandedString().optional(),image:n.object({fileId:X,source:n.enum(M)}).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:fs.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:e.isoDateTime.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:e.isoDateTime,updatedAt:e.isoDateTime}),ps=n.codec(n.string(),n.union([n.date(),n.string()]),{decode:e=>new Date(e),encode:e=>e instanceof Date?e.toISOString():e}),ms=n.object({start:ps,end:ps.nullable()}),hs=n.union([ps,ms]).nullable().optional(),gs=/* @__PURE__ */ new WeakMap,_s=n.looseObject({});function recordValuesCodec(e){if(e===null)return _s;let t=gs.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,hs])));return gs.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 vs=n.object({hasMore:n.boolean(),total:n.number().nullable(),countMode:n.enum(b),nextOffset:n.number().optional(),totalIsExact:n.boolean().optional()});function collectionOutputSchema(e){return n.object({data:n.array(e),page:vs})}const ys=collectionOutputSchema(Z),bs=n.object({id:X,sourceRecordId:X,sourceObjectName:n.string(),sourceAttribute:n.string(),referenceKind:n.string(),properties:n.record(n.string(),n.unknown()),createdAt:e.isoDateTime}),xs=collectionOutputSchema(bs),Ss=n.enum(t.SchemaErrorCode),Cs=n.object({created:n.array(Z),errors:n.array(n.object({index:n.number(),error:n.string()}))}),ws=n.object({updated:n.array(Z),errors:n.array(n.object({id:n.string(),error:n.string(),code:Ss}))}),Ts=n.object({deleted:n.array(n.string()),errors:n.array(n.object({id:n.string(),error:n.string(),code:Ss}))}),Es=n.object({incomingReferences:n.number(),descendants:n.number()}),Ds=n.object({purged:n.literal(!0),id:n.string()}),Os=n.object({currency:n.string(),value:n.number()}),ks=n.enum(e.AGGREGATE_BUCKETS),As=n.object({groups:n.array(n.object({key:n.string().nullable(),key2:n.string().nullable().optional(),value:n.number().nullable(),byCurrency:n.array(Os).optional()})),total:n.number().nullable(),byCurrency:n.array(Os).optional(),truncated:n.boolean(),appliedBucket:ks.optional(),appliedBucket2:ks.optional(),currency:n.string().optional(),previous:n.number().nullable().optional()}),js=n.string().trim().min(1).max(24),Ms=n.string().trim().min(10).max(500),Ns=n.enum(K),Ps=n.object({scope:n.enum(W),name:js,description:Ms,icon:e.iconNameSchema.default(`tag`),color:e.colorIdSchema.default(cr)}),Fs=n.object({name:js.optional(),description:Ms.optional(),icon:e.iconNameSchema.optional(),color:e.colorIdSchema.optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),Is=n.object({moveTo:n.string().min(1).nullable().default(null)}),Ls=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`}),Rs=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:Ns,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`}),zs=n.object({scope:n.literal(`domain`)}),Bs=n.object({scope:n.enum(W)}),Vs=n.object({type:n.enum(Te),color:n.enum(r.AVATAR_COLOR_IDS),expression:n.enum(Ee).default(`relaxed`)}).strict(),Hs=n.array(n.string().trim().min(1).max(200)).max(4);function agentAvatarFromMetadata(e){let t=Vs.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 Us=Object.keys({home:!0,agents:!0,routines:!0,object:!0,settings:!0}),Ws=[`dot`,`label`,`bubble`];function parseNewsIntensity(e){return Ws.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 Gs=/^(\d+)\.(\d+)\.(\d+)(?:-([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=Gs.exec(e),r=Gs.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 Gs.test(e)}const Ks=n.looseObject({fr:n.string().optional(),en:n.string().optional()}),qs=n.iso.datetime({offset:!0}),Js=n.looseObject({id:n.string().min(1),slug:n.string().min(1),updatedAt:qs,publishedAt:qs,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:Ks,summary:Ks}),Ys=n.object({fr:n.string().optional(),en:n.string().optional()}),Xs=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()})]),Zs=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:Xs.optional(),intensity:n.enum(Ws),title:Ys,summary:Ys}),Qs=n.object({blogUrl:n.string().optional(),mediaBaseUrl:n.string().optional(),entries:n.array(Zs)}),$s=n.object({id:n.string(),slug:n.string(),updatedAt:n.string(),body:Ys});function knownRequirement(e){let t=c.find(t=>t.id===e.capability);return t!==void 0&&levelActions(t,e.level).length>0}function parseEntry(e){let t=Js.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 ec=n.looseObject({id:n.string().min(1),slug:n.string().min(1),updatedAt:qs,body:Ks});function parseNewsBody(e){let n=ec.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 tc=e.unchecked(),nc=n.object({values:e.unchecked(),entries:n.array(tc)});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()),rc=n.strictObject({objectName:n.string(),recordId:Q,attribute:n.string(),base:n.unknown(),props:$.optional()}),ic=n.strictObject({kind:n.literal(`record.set`),objectId:Q,recordId:Q,values:$,base:$.optional(),metadata:$.optional()}),ac=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:rc.optional(),parentId:Q.optional(),metadata:$.optional()}).optional()}),oc=n.strictObject({kind:n.literal(`record.delete`),objectId:Q,recordId:Q}),sc=n.strictObject({kind:n.literal(`record.restore`),objectId:Q,recordId:Q}),cc=n.string().min(1),lc=n.discriminatedUnion(`command`,[n.strictObject({command:n.literal(`replace`),oldText:cc,newText:n.string(),replaceAll:n.boolean().optional()}),n.strictObject({command:n.literal(`insert`),text:cc,after:cc.optional()})]),uc=n.strictObject({kind:n.literal(`record.patch`),objectId:Q,recordId:Q,attribute:n.string(),edit:lc}),dc=n.discriminatedUnion(`kind`,[ic,ac,oc,sc,uc]),fc=n.strictObject({opId:Q,steps:n.array(dc).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 ca}}),Object.defineProperty(exports,"ACCESS_LEVELS",{enumerable:!0,get:function(){return la}}),Object.defineProperty(exports,"ACCESS_ROLES",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,"ACTOR_TYPES",{enumerable:!0,get:function(){return le}}),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 Ee}}),Object.defineProperty(exports,"AGENT_AVATAR_TYPES",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"AGENT_MESSAGE_KIND",{enumerable:!0,get:function(){return Fe}}),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 Pe}}),Object.defineProperty(exports,"AGENT_SESSION_ACCESS_ROLES",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,"AGENT_SESSION_LIST_ORDERS",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"AGENT_SESSION_ORIGINS",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"AGENT_SESSION_PROVENANCES",{enumerable:!0,get:function(){return me}}),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 be}}),Object.defineProperty(exports,"AGENT_WAKE_KIND",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"AI_MODEL_INPUT_MODALITIES",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"AI_MODEL_PROFILE_LABELS",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"AI_MODEL_REASONING_MODES",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"ALL_CATALOG_TOOL_NAMES",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(exports,"ALWAYS_KINDS",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(exports,"APPEARANCE_FACETS",{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,"APPROVAL_FAMILY_TOOL_NAMES",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,"ARCHITECT_PUBLICATION_KIND",{enumerable:!0,get:function(){return Re}}),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_MAX_BATCH",{enumerable:!0,get:function(){return 4}}),Object.defineProperty(exports,"ASK_QUESTIONS_TOOL_NAME",{enumerable:!0,get:function(){return Yt}}),Object.defineProperty(exports,"ATTACH_FILE_ACTIONS",{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,"AUDIT_ACTIONS",{enumerable:!0,get:function(){return jt}}),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 At}}),Object.defineProperty(exports,"AgentBuilder",{enumerable:!0,get:function(){return AgentBuilder}}),Object.defineProperty(exports,"BILLING_MODES",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,"BROWSER_LAUNCH_TOOL_NAME",{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,"BROWSER_TOOL_NAMES",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,"BUNDLE_LOCALES",{enumerable:!0,get:function(){return St}}),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,"CONNECTION_GRANT_PROVIDERS",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,"CONNECTION_STATUS_IDS",{enumerable:!0,get:function(){return na}}),Object.defineProperty(exports,"CONNECTOR_PROVIDER_IDS",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"CONNECTOR_SCOPES",{enumerable:!0,get:function(){return oa}}),Object.defineProperty(exports,"CONTINUATION_KEY_PATTERN",{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,"CONVERSATION_SURFACES",{enumerable:!0,get:function(){return Kn}}),Object.defineProperty(exports,"COPY_VERB_NAME",{enumerable:!0,get:function(){return`copy`}}),Object.defineProperty(exports,"CORE_RECORD_TOOL_NAMES",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,"CORE_TOOL_NAMES",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,"COUNT_MODES",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"CUSTOM_LEVEL",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"DEFAULT_AGENT_EXECUTION_CONFIG",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"DEFAULT_AGENT_TOOL_GROUPS",{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,"DEFAULT_APPEARANCE_ICON",{enumerable:!0,get:function(){return`box`}}),Object.defineProperty(exports,"DEFAULT_APPROVAL_POLICY",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"DEFAULT_BLUEPRINT_TOOL_GROUPS",{enumerable:!0,get:function(){return qt}}),Object.defineProperty(exports,"DEFAULT_DAILY_ACTIVITY_DAYS",{enumerable:!0,get:function(){return 182}}),Object.defineProperty(exports,"DEFAULT_DICTATION_LIMITS",{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,"DEFAULT_MEETING_BOT_DISPLAY_NAME",{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,"DEFAULT_TENANT_SETTINGS",{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,"DEVICE_ACCESS_ROLES",{enumerable:!0,get:function(){return bt}}),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 Ge}}),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 qe}}),Object.defineProperty(exports,"DEVICE_DESKTOP_STATES",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"DEVICE_SHELLS",{enumerable:!0,get:function(){return Je}}),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 h}}),Object.defineProperty(exports,"DOCUMENT_SORT_MODES",{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,"DRAFT_WRITE_TOOL_NAMES",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,"DeviceChannelProtocolError",{enumerable:!0,get:function(){return DeviceChannelProtocolError}}),Object.defineProperty(exports,"DeviceChannelServerFrameSchema",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,"DeviceChannelWorkerFrameSchema",{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,"DeviceDesktopStatusSchema",{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,"EMAIL_CATEGORY_DEFAULT_COLOR",{enumerable:!0,get:function(){return cr}}),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 ba}}),Object.defineProperty(exports,"EMAIL_PARTICIPANT_ROLES",{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(exports,"EMAIL_PROVIDERS",{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,"EMAIL_RULE_SCOPES",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"ENVIRONMENT_BUILD_LOG_STEPS",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"ENVIRONMENT_BUILD_LOG_STEP_PREFIX",{enumerable:!0,get:function(){return`── `}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESSES",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESS_SANDBOX_WORKDIR",{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESS_WORKDIR",{enumerable:!0,get:function(){return nr}}),Object.defineProperty(exports,"ENVIRONMENT_IMAGES",{enumerable:!0,get:function(){return ir}}),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 k}}),Object.defineProperty(exports,"ENVIRONMENT_SIZE_VCPUS",{enumerable:!0,get:function(){return ar}}),Object.defineProperty(exports,"ENVIRONMENT_STANDARDS_WORKDIR",{enumerable:!0,get:function(){return rr}}),Object.defineProperty(exports,"ENV_VAR_KEY_PATTERN",{enumerable:!0,get:function(){return Zr}}),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 _}}),Object.defineProperty(exports,"FILE_URLS_MAX_IDS",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"FORM_STATUSES",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,"FORM_SUBMISSION_STATUSES",{enumerable:!0,get:function(){return mt}}),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 Lr}}),Object.defineProperty(exports,"GITHUB_TRIGGER_FAMILIES",{enumerable:!0,get:function(){return Hr}}),Object.defineProperty(exports,"GRANT_ENABLES",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,"HARNESS_BRIDGE_PORT",{enumerable:!0,get:function(){return 4e3}}),Object.defineProperty(exports,"HITL_TOOL_NAMES",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,"IMAGE_FORMATS",{enumerable:!0,get:function(){return Yn}}),Object.defineProperty(exports,"IMAGE_SHAPES",{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,"IMAGE_SOURCES",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"INFERENCE_REASONING_OPTIONS",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"INFERENCE_ROUTING_MODES",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"INFERENCE_SPEEDS",{enumerable:!0,get:function(){return ve}}),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 fr}}),Object.defineProperty(exports,"MAILBOX_ACCOUNT_VISIBILITIES",{enumerable:!0,get:function(){return va}}),Object.defineProperty(exports,"MAILBOX_LIST_MODES",{enumerable:!0,get:function(){return ka}}),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 Ma}}),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_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 wn}}),Object.defineProperty(exports,"MEETING_BOT_IMAGE_BASE64_MAX_LENGTH",{enumerable:!0,get:function(){return Tn}}),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 jn}}),Object.defineProperty(exports,"MEETING_PARTICIPANT_ROLES",{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,"MEETING_RESPONSES",{enumerable:!0,get:function(){return gn}}),Object.defineProperty(exports,"MEETING_RESPONSE_STATUSES",{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,"MEETING_STATUSES",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,"MEMORY_SPEND_LIMIT_PATTERN",{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,"NATIVE_TOOL_GROUPS",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"NATIVE_TOOL_GROUP_CATALOG",{enumerable:!0,get:function(){return S}}),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 Ws}}),Object.defineProperty(exports,"NEWS_TARGET_KINDS",{enumerable:!0,get:function(){return Us}}),Object.defineProperty(exports,"NO_ACCESS",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"NO_RECORDING",{enumerable:!0,get:function(){return xn}}),Object.defineProperty(exports,"OAUTH_TICKET_TTL_MS",{enumerable:!0,get:function(){return 3e5}}),Object.defineProperty(exports,"OBJECT_GRANT",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"OPEN_TOOL_PART_STATES",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"OPERATION_MAX_STEPS",{enumerable:!0,get:function(){return 100}}),Object.defineProperty(exports,"PERMISSION_ACTIONS",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"PERMISSION_CAPABILITIES",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"PERMISSION_CATALOG",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"PERSISTENCE_OWNED_QUOTA_KEYS",{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(exports,"PROVIDER_DRAFT_LABEL",{enumerable:!0,get:function(){return ya}}),Object.defineProperty(exports,"PROVIDER_NAMES",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,"PUBLIC_MAIL_DOMAINS",{enumerable:!0,get:function(){return lr}}),Object.defineProperty(exports,"QUESTION_FAMILY_TOOL_NAMES",{enumerable:!0,get:function(){return Qt}}),Object.defineProperty(exports,"QUOTA_KEYS",{enumerable:!0,get:function(){return Xn}}),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 vn}}),Object.defineProperty(exports,"RECORDING_POLICIES",{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,"RECORD_ACCESS_ROLES",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"RECORD_ACCESS_SOURCES",{enumerable:!0,get:function(){return vt}}),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 N}}),Object.defineProperty(exports,"REPLY_MODES",{enumerable:!0,get:function(){return Na}}),Object.defineProperty(exports,"REPOSITORY_WILDCARD",{enumerable:!0,get:function(){return`/*`}}),Object.defineProperty(exports,"REQUEST_DESIGN_REVIEW_TOOL_NAME",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,"REQUEST_SETUP_TOOL_NAME",{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(exports,"RESOURCE_GRANT_KINDS",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"RESOURCE_KIND_CATALOG",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"ROUTING_PRICE_CEILINGS",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"RUN_ORIGIN_METADATA_KEY",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,"SEND_VERB_NAME",{enumerable:!0,get:function(){return`send`}}),Object.defineProperty(exports,"SESSION_INFERENCE_PATCH_KEYS",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"SLACK_TRIGGER_CATALOG",{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,"SLACK_TRIGGER_EVENTS",{enumerable:!0,get:function(){return Ur}}),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 Ut}}),Object.defineProperty(exports,"SYSTEM_EMAIL_CATEGORIES",{enumerable:!0,get:function(){return or}}),Object.defineProperty(exports,"SYSTEM_EMAIL_CATEGORY_NAMES",{enumerable:!0,get:function(){return sr}}),Object.defineProperty(exports,"SYSTEM_PART_CODES",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"TASK_DEMAND_LEVELS",{enumerable:!0,get:function(){return xe}}),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 Hn}}),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 Vn}}),Object.defineProperty(exports,"TODO_PHASES",{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,"TODO_PLAN_STATUSES",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"TODO_STATUSES",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"TOOL_APPROVAL_STATES",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"TOOL_IMPACT_COUNT_KEYS",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"TRANSCRIPT_STATUSES",{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,"TRIAGE_ACTIONS",{enumerable:!0,get:function(){return xa}}),Object.defineProperty(exports,"TRIGGER_EVENT_TYPES",{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,"TRIGGER_MAX_REENTRY",{enumerable:!0,get:function(){return 25}}),Object.defineProperty(exports,"TURN_OUTCOMES",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"UNSHAREABLE_OBJECT_NAMES",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(exports,"USAGE_MODALITIES",{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(exports,"USAGE_SCOPES",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,"USERS_RESOLVE_MAX_IDS",{enumerable:!0,get:function(){return 200}}),Object.defineProperty(exports,"USER_STATUSES",{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(exports,"USER_WORK_POSTURES",{enumerable:!0,get:function(){return Gn}}),Object.defineProperty(exports,"VERB_NAMES",{enumerable:!0,get:function(){return It}}),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 Tt}}),Object.defineProperty(exports,"accessGrantSchema",{enumerable:!0,get:function(){return accessGrantSchema}}),Object.defineProperty(exports,"actorSchema",{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,"agent",{enumerable:!0,get:function(){return agent}}),Object.defineProperty(exports,"agentApprovalResolutionSchema",{enumerable:!0,get:function(){return ki}}),Object.defineProperty(exports,"agentAvatarFromMetadata",{enumerable:!0,get:function(){return agentAvatarFromMetadata}}),Object.defineProperty(exports,"agentAvatarOutputSchema",{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,"agentAvatarSchema",{enumerable:!0,get:function(){return Vs}}),Object.defineProperty(exports,"agentConversationOverviewSchema",{enumerable:!0,get:function(){return Ci}}),Object.defineProperty(exports,"agentDataChunk",{enumerable:!0,get:function(){return agentDataChunk}}),Object.defineProperty(exports,"agentDefinitionActivitySchema",{enumerable:!0,get:function(){return Bi}}),Object.defineProperty(exports,"agentDefinitionAudienceSchema",{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(exports,"agentDefinitionDailyActivitySchema",{enumerable:!0,get:function(){return Vi}}),Object.defineProperty(exports,"agentDefinitionSchema",{enumerable:!0,get:function(){return zi}}),Object.defineProperty(exports,"agentDisplayName",{enumerable:!0,get:function(){return agentDisplayName}}),Object.defineProperty(exports,"agentExecutionConfigOutputSchema",{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,"agentHistoryMessageSchema",{enumerable:!0,get:function(){return Ei}}),Object.defineProperty(exports,"agentInferencePreferencesOutputSchema",{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,"agentInferencePreferencesSchema",{enumerable:!0,get:function(){return br}}),Object.defineProperty(exports,"agentMemoryViewSchema",{enumerable:!0,get:function(){return Ni}}),Object.defineProperty(exports,"agentMessageAttachmentSchema",{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,"agentMessagePartSchema",{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,"agentRequestAnswerSchema",{enumerable:!0,get:function(){return Ai}}),Object.defineProperty(exports,"agentRoleSchema",{enumerable:!0,get:function(){return Zi}}),Object.defineProperty(exports,"agentRolesSetResultSchema",{enumerable:!0,get:function(){return Qi}}),Object.defineProperty(exports,"agentRunSchema",{enumerable:!0,get:function(){return ji}}),Object.defineProperty(exports,"agentRunStatusSchema",{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,"agentScheduleOutputSchema",{enumerable:!0,get:function(){return Ri}}),Object.defineProperty(exports,"agentScheduleSchema",{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,"agentSessionAudienceSchema",{enumerable:!0,get:function(){return wi}}),Object.defineProperty(exports,"agentSessionDefinitionAppearanceSchema",{enumerable:!0,get:function(){return ui}}),Object.defineProperty(exports,"agentSessionHistoryPageSchema",{enumerable:!0,get:function(){return Di}}),Object.defineProperty(exports,"agentSessionInferenceOverridesInputSchema",{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,"agentSessionInferenceOverridesSchema",{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,"agentSessionLinkSchema",{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,"agentSessionMessageOutputSchema",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"agentSessionMessageSchema",{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,"agentSessionSchema",{enumerable:!0,get:function(){return di}}),Object.defineProperty(exports,"agentSetupResponseSchema",{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(exports,"agentStartersSchema",{enumerable:!0,get:function(){return Hs}}),Object.defineProperty(exports,"agentTodoPlanViewSchema",{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,"agentToolCatalogSchema",{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(exports,"agentTriggerBaseSchema",{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,"agentTriggerDefinitionSchema",{enumerable:!0,get:function(){return ea}}),Object.defineProperty(exports,"agentTriggerLastCallSchema",{enumerable:!0,get:function(){return $i}}),Object.defineProperty(exports,"agentTriggerPatchSchema",{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,"agentTriggerSchema",{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,"agentUIValidationError",{enumerable:!0,get:function(){return agentUIValidationError}}),Object.defineProperty(exports,"agentWakeSchema",{enumerable:!0,get:function(){return _i}}),Object.defineProperty(exports,"agentWakeViewSchema",{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,"apiKeyRoleSchema",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"apiKeySchema",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"apiKeyWithSecretSchema",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"architectProjectionSchema",{enumerable:!0,get:function(){return ls}}),Object.defineProperty(exports,"artifactQuoteSchema",{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,"askQuestionsOutputSchema",{enumerable:!0,get:function(){return tn}}),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 rt}}),Object.defineProperty(exports,"attributeOutputSchema",{enumerable:!0,get:function(){return Ho}}),Object.defineProperty(exports,"attributeSaveOutputSchema",{enumerable:!0,get:function(){return Uo}}),Object.defineProperty(exports,"auditChangeSchema",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,"auditLogEntrySchema",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,"availableBundleSummarySchema",{enumerable:!0,get:function(){return to}}),Object.defineProperty(exports,"browserProfilePreparationSchema",{enumerable:!0,get:function(){return Ka}}),Object.defineProperty(exports,"browserProfileViewSchema",{enumerable:!0,get:function(){return Ga}}),Object.defineProperty(exports,"bundleAddPlanSchema",{enumerable:!0,get:function(){return lo}}),Object.defineProperty(exports,"bundleAddResultSchema",{enumerable:!0,get:function(){return yo}}),Object.defineProperty(exports,"bundleContentsSchema",{enumerable:!0,get:function(){return eo}}),Object.defineProperty(exports,"bundleListSchema",{enumerable:!0,get:function(){return no}}),Object.defineProperty(exports,"bundleModeSchema",{enumerable:!0,get:function(){return Ja}}),Object.defineProperty(exports,"bundleOriginSchema",{enumerable:!0,get:function(){return Ya}}),Object.defineProperty(exports,"bundlePieceKindSchema",{enumerable:!0,get:function(){return so}}),Object.defineProperty(exports,"bundlePlanPieceSchema",{enumerable:!0,get:function(){return co}}),Object.defineProperty(exports,"bundleRemovalPreviewSchema",{enumerable:!0,get:function(){return vo}}),Object.defineProperty(exports,"bundleStatusEntrySchema",{enumerable:!0,get:function(){return Qa}}),Object.defineProperty(exports,"bundleStatusSchema",{enumerable:!0,get:function(){return Za}}),Object.defineProperty(exports,"bundleUpdateDependentSchema",{enumerable:!0,get:function(){return ro}}),Object.defineProperty(exports,"bundleUpdateGroupSchema",{enumerable:!0,get:function(){return fo}}),Object.defineProperty(exports,"bundleUpdatePieceKindSchema",{enumerable:!0,get:function(){return uo}}),Object.defineProperty(exports,"bundleUpdatePieceSchema",{enumerable:!0,get:function(){return mo}}),Object.defineProperty(exports,"bundleUpdatePlanSchema",{enumerable:!0,get:function(){return ho}}),Object.defineProperty(exports,"bundleUpdateReasonCodeSchema",{enumerable:!0,get:function(){return po}}),Object.defineProperty(exports,"bundleUpdateResultSchema",{enumerable:!0,get:function(){return go}}),Object.defineProperty(exports,"cancelAgentWakeResultSchema",{enumerable:!0,get:function(){return yi}}),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 Rs}}),Object.defineProperty(exports,"classificationUndoSchema",{enumerable:!0,get:function(){return ha}}),Object.defineProperty(exports,"classifyEmailResultSchema",{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,"classifyEmailSchema",{enumerable:!0,get:function(){return Ls}}),Object.defineProperty(exports,"cliDefaultModelOf",{enumerable:!0,get:function(){return cliDefaultModelOf}}),Object.defineProperty(exports,"cloudBrowserLiveViewSchema",{enumerable:!0,get:function(){return qa}}),Object.defineProperty(exports,"collectionOutputSchema",{enumerable:!0,get:function(){return collectionOutputSchema}}),Object.defineProperty(exports,"collectionPageSchema",{enumerable:!0,get:function(){return vs}}),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 ra}}),Object.defineProperty(exports,"connectionGrantKindsOf",{enumerable:!0,get:function(){return connectionGrantKindsOf}}),Object.defineProperty(exports,"connectionSyncProgressSchema",{enumerable:!0,get:function(){return ia}}),Object.defineProperty(exports,"connectionViewSchema",{enumerable:!0,get:function(){return aa}}),Object.defineProperty(exports,"connectorProvidersResultSchema",{enumerable:!0,get:function(){return sa}}),Object.defineProperty(exports,"connectorTriggerMatchSchema",{enumerable:!0,get:function(){return Jr}}),Object.defineProperty(exports,"createAgentTriggerResultSchema",{enumerable:!0,get:function(){return ta}}),Object.defineProperty(exports,"criticConfigOutputSchema",{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(exports,"customDataChunkSchemas",{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,"declaredImageRequests",{enumerable:!0,get:function(){return declaredImageRequests}}),Object.defineProperty(exports,"decodeAgentSessionListCursor",{enumerable:!0,get:function(){return decodeAgentSessionListCursor}}),Object.defineProperty(exports,"decodeRecordValues",{enumerable:!0,get:function(){return decodeRecordValues}}),Object.defineProperty(exports,"defaultEnvironmentSchema",{enumerable:!0,get:function(){return Eo}}),Object.defineProperty(exports,"deferredRetypeSchema",{enumerable:!0,get:function(){return io}}),Object.defineProperty(exports,"deriveViewerAccess",{enumerable:!0,get:function(){return deriveViewerAccess}}),Object.defineProperty(exports,"deviceAudienceSchema",{enumerable:!0,get:function(){return un}}),Object.defineProperty(exports,"deviceChannelUrl",{enumerable:!0,get:function(){return deviceChannelUrl}}),Object.defineProperty(exports,"documentFileSchema",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"documentRecordOwnerPageSchema",{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,"documentRecordOwnerSchema",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(exports,"documentSchema",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"documentWithSubCountSchema",{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,"draftAppendOutputSchema",{enumerable:!0,get:function(){return as}}),Object.defineProperty(exports,"draftCommandGuardSchema",{enumerable:!0,get:function(){return $o}}),Object.defineProperty(exports,"driveFileSchema",{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,"durableDateSchema",{enumerable:!0,get:function(){return Mr}}),Object.defineProperty(exports,"editAgentSessionMessageResultSchema",{enumerable:!0,get:function(){return Oi}}),Object.defineProperty(exports,"effectivePermissionsSchema",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"emailAttachmentMetaSchema",{enumerable:!0,get:function(){return Ta}}),Object.defineProperty(exports,"emailCategoryCreateSchema",{enumerable:!0,get:function(){return Ps}}),Object.defineProperty(exports,"emailCategoryDeleteSchema",{enumerable:!0,get:function(){return Is}}),Object.defineProperty(exports,"emailCategorySchema",{enumerable:!0,get:function(){return da}}),Object.defineProperty(exports,"emailCategoryScopeQuerySchema",{enumerable:!0,get:function(){return Bs}}),Object.defineProperty(exports,"emailCategoryUpdateSchema",{enumerable:!0,get:function(){return Fs}}),Object.defineProperty(exports,"emailCategoryUsageSchema",{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,"emailParticipantRefSchema",{enumerable:!0,get:function(){return wa}}),Object.defineProperty(exports,"emailRuleScopeSchema",{enumerable:!0,get:function(){return zs}}),Object.defineProperty(exports,"emailSenderRuleSchema",{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,"emailVerdictSchema",{enumerable:!0,get:function(){return fa}}),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 Dt}}),Object.defineProperty(exports,"environmentBuildFailureSchema",{enumerable:!0,get:function(){return So}}),Object.defineProperty(exports,"environmentBuildStateSchema",{enumerable:!0,get:function(){return bo}}),Object.defineProperty(exports,"environmentDetailSchema",{enumerable:!0,get:function(){return To}}),Object.defineProperty(exports,"environmentHarness",{enumerable:!0,get:function(){return environmentHarness}}),Object.defineProperty(exports,"environmentHarnessSchema",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"environmentListSchema",{enumerable:!0,get:function(){return Do}}),Object.defineProperty(exports,"environmentNetworkPolicyOutputSchema",{enumerable:!0,get:function(){return xo}}),Object.defineProperty(exports,"environmentRepositorySourceSchema",{enumerable:!0,get:function(){return wo}}),Object.defineProperty(exports,"environmentSchema",{enumerable:!0,get:function(){return Co}}),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 an}}),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 pt}}),Object.defineProperty(exports,"formSlotSchema",{enumerable:!0,get:function(){return dt}}),Object.defineProperty(exports,"formStepSchema",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,"formSubmissionSchema",{enumerable:!0,get:function(){return gt}}),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 Br}}),Object.defineProperty(exports,"githubTriggerMatchSchema",{enumerable:!0,get:function(){return Kr}}),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 ko}}),Object.defineProperty(exports,"harnessModelOptionSchema",{enumerable:!0,get:function(){return Oo}}),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 B}}),Object.defineProperty(exports,"inferenceReasoningSchema",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"inferenceRoutingSchema",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"inferenceSpeedSchema",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"installedBundleSummarySchema",{enumerable:!0,get:function(){return Xa}}),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,"lastPublicationSchema",{enumerable:!0,get:function(){return ns}}),Object.defineProperty(exports,"lastPublishErrorSchema",{enumerable:!0,get:function(){return ts}}),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 fn}}),Object.defineProperty(exports,"lockingSendCall",{enumerable:!0,get:function(){return lockingSendCall}}),Object.defineProperty(exports,"loginSecretEntrySchema",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,"mailDraftAttachmentSchema",{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(exports,"mailDraftSchema",{enumerable:!0,get:function(){return Ia}}),Object.defineProperty(exports,"mailSignatureSchema",{enumerable:!0,get:function(){return La}}),Object.defineProperty(exports,"mailboxAccountSchema",{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(exports,"mailboxCursorSchema",{enumerable:!0,get:function(){return Aa}}),Object.defineProperty(exports,"mailboxEmailSchema",{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,"mailboxListResponseSchema",{enumerable:!0,get:function(){return ja}}),Object.defineProperty(exports,"mailboxSenderImageSchema",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"mailboxThreadDetailSchema",{enumerable:!0,get:function(){return Va}}),Object.defineProperty(exports,"mailboxThreadSchema",{enumerable:!0,get:function(){return Da}}),Object.defineProperty(exports,"matchesRepositoryPattern",{enumerable:!0,get:function(){return matchesRepositoryPattern}}),Object.defineProperty(exports,"mcpCatalogCategorySchema",{enumerable:!0,get:function(){return No}}),Object.defineProperty(exports,"mcpCatalogEntrySchema",{enumerable:!0,get:function(){return Po}}),Object.defineProperty(exports,"mcpOAuthAttemptStartedSchema",{enumerable:!0,get:function(){return Io}}),Object.defineProperty(exports,"mcpOAuthSetupSchema",{enumerable:!0,get:function(){return Fo}}),Object.defineProperty(exports,"mcpServerAuthTypeSchema",{enumerable:!0,get:function(){return Ao}}),Object.defineProperty(exports,"mcpServerStatusSchema",{enumerable:!0,get:function(){return jo}}),Object.defineProperty(exports,"mcpServerViewSchema",{enumerable:!0,get:function(){return Mo}}),Object.defineProperty(exports,"meetingBotDispatchRequestSchema",{enumerable:!0,get:function(){return En}}),Object.defineProperty(exports,"meetingBotDispatchResponseSchema",{enumerable:!0,get:function(){return Dn}}),Object.defineProperty(exports,"meetingBotNotificationSchema",{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,"meetingLinkedRecordSchema",{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,"meetingParticipantRefSchema",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"meetingRecordingSchema",{enumerable:!0,get:function(){return bn}}),Object.defineProperty(exports,"meetingSchema",{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,"meetingSiblingRefSchema",{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,"meetingTranscriptProvenanceSchema",{enumerable:!0,get:function(){return kn}}),Object.defineProperty(exports,"meetingTranscriptResponseSchema",{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,"meetingTranscriptSegmentSchema",{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,"meetingTranscriptSourceRefSchema",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"meetingsListResponseSchema",{enumerable:!0,get:function(){return Fn}}),Object.defineProperty(exports,"memberSchema",{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,"mentionReferenceSchema",{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,"mergeSessionInferencePatch",{enumerable:!0,get:function(){return mergeSessionInferencePatch}}),Object.defineProperty(exports,"modelDefinitionOutputSchema",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"modelDefinitionSchema",{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,"modelReferenceOutputSchema",{enumerable:!0,get:function(){return ai}}),Object.defineProperty(exports,"modelReferenceSchema",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"moveImpactSchema",{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,"mutationReceiptSchema",{enumerable:!0,get:function(){return os}}),Object.defineProperty(exports,"myPreferencesSchema",{enumerable:!0,get:function(){return nc}}),Object.defineProperty(exports,"needsManageWhenUnattended",{enumerable:!0,get:function(){return needsManageWhenUnattended}}),Object.defineProperty(exports,"newsBodySchema",{enumerable:!0,get:function(){return $s}}),Object.defineProperty(exports,"newsIndexSchema",{enumerable:!0,get:function(){return Qs}}),Object.defineProperty(exports,"normalizeNewsLocale",{enumerable:!0,get:function(){return normalizeNewsLocale}}),Object.defineProperty(exports,"normalizedMeetingTranscriptSchema",{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,"oauthAttemptStartedSchema",{enumerable:!0,get:function(){return ua}}),Object.defineProperty(exports,"objectDefinitionOutputSchema",{enumerable:!0,get:function(){return Wo}}),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,"pageAudienceSchema",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(exports,"pageReadSchema",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,"pageSummarySchema",{enumerable:!0,get:function(){return sn}}),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,"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 ae}}),Object.defineProperty(exports,"permissionGrantSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"permissionSchema",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"preferenceEntry",{enumerable:!0,get:function(){return preferenceEntry}}),Object.defineProperty(exports,"preferenceEntrySchema",{enumerable:!0,get:function(){return tc}}),Object.defineProperty(exports,"providerNameSchema",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"publishBlockerSchema",{enumerable:!0,get:function(){return rs}}),Object.defineProperty(exports,"publishDraftOutputSchema",{enumerable:!0,get:function(){return ss}}),Object.defineProperty(exports,"quotaStateSchema",{enumerable:!0,get:function(){return Qn}}),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 za}}),Object.defineProperty(exports,"recipientIdentitySchema",{enumerable:!0,get:function(){return Ba}}),Object.defineProperty(exports,"recipientSuggestionSchema",{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(exports,"recordAggregatesSchema",{enumerable:!0,get:function(){return As}}),Object.defineProperty(exports,"recordAudienceSchema",{enumerable:!0,get:function(){return ln}}),Object.defineProperty(exports,"recordCollectionOutputSchema",{enumerable:!0,get:function(){return ys}}),Object.defineProperty(exports,"recordDeletionCountSchema",{enumerable:!0,get:function(){return Es}}),Object.defineProperty(exports,"recordDriveChildSchema",{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,"recordDriveChildrenPageSchema",{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,"recordDriveSearchHitSchema",{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,"recordDriveSearchResultSchema",{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,"recordGraphEdgeSchema",{enumerable:!0,get:function(){return Bo}}),Object.defineProperty(exports,"recordGraphNodeKey",{enumerable:!0,get:function(){return recordGraphNodeKey}}),Object.defineProperty(exports,"recordGraphNodeSchema",{enumerable:!0,get:function(){return zo}}),Object.defineProperty(exports,"recordGraphRequestSchema",{enumerable:!0,get:function(){return er}}),Object.defineProperty(exports,"recordGraphResponseSchema",{enumerable:!0,get:function(){return Vo}}),Object.defineProperty(exports,"recordIncomingReferenceSchema",{enumerable:!0,get:function(){return bs}}),Object.defineProperty(exports,"recordIncomingReferencesPageSchema",{enumerable:!0,get:function(){return xs}}),Object.defineProperty(exports,"recordMeetingsCount",{enumerable:!0,get:function(){return recordMeetingsCount}}),Object.defineProperty(exports,"recordOperationSchema",{enumerable:!0,get:function(){return fc}}),Object.defineProperty(exports,"recordPurgeResultSchema",{enumerable:!0,get:function(){return Ds}}),Object.defineProperty(exports,"recordValuesCodec",{enumerable:!0,get:function(){return recordValuesCodec}}),Object.defineProperty(exports,"recordsBulkCreateResultSchema",{enumerable:!0,get:function(){return Cs}}),Object.defineProperty(exports,"recordsBulkDeleteResultSchema",{enumerable:!0,get:function(){return Ts}}),Object.defineProperty(exports,"recordsBulkUpdateResultSchema",{enumerable:!0,get:function(){return ws}}),Object.defineProperty(exports,"refineTrigger",{enumerable:!0,get:function(){return refineTrigger}}),Object.defineProperty(exports,"relationOptionSchema",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"relationOptionsResponseSchema",{enumerable:!0,get:function(){return Lo}}),Object.defineProperty(exports,"replyDefaultsSchema",{enumerable:!0,get:function(){return Pa}}),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 Ro}}),Object.defineProperty(exports,"resourceGrant",{enumerable:!0,get:function(){return resourceGrant}}),Object.defineProperty(exports,"resourceUsedBySchema",{enumerable:!0,get:function(){return Yi}}),Object.defineProperty(exports,"retryPolicyOutputSchema",{enumerable:!0,get:function(){return Pi}}),Object.defineProperty(exports,"retypeOptionsOutputSchema",{enumerable:!0,get:function(){return ds}}),Object.defineProperty(exports,"roleSchema",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,"routedMessageInferenceSchema",{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,"routineAudiencePreviewSchema",{enumerable:!0,get:function(){return Wi}}),Object.defineProperty(exports,"routineAudienceSchema",{enumerable:!0,get:function(){return Li}}),Object.defineProperty(exports,"sameActions",{enumerable:!0,get:function(){return sameActions}}),Object.defineProperty(exports,"schemaDraftOutputSchema",{enumerable:!0,get:function(){return is}}),Object.defineProperty(exports,"schemaGroupListSchema",{enumerable:!0,get:function(){return Ko}}),Object.defineProperty(exports,"schemaGroupSchema",{enumerable:!0,get:function(){return Go}}),Object.defineProperty(exports,"schemaStateAddressOf",{enumerable:!0,get:function(){return schemaStateAddressOf}}),Object.defineProperty(exports,"schemaStateEntrySchema",{enumerable:!0,get:function(){return Jo}}),Object.defineProperty(exports,"schemaStateSchema",{enumerable:!0,get:function(){return Yo}}),Object.defineProperty(exports,"secretEntrySchema",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,"servedAsIsAttributeSchema",{enumerable:!0,get:function(){return ao}}),Object.defineProperty(exports,"sessionImageUsageSchema",{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,"sessionInferenceOverridesOutputSchema",{enumerable:!0,get:function(){return si}}),Object.defineProperty(exports,"sessionInferencePatchSchema",{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,"sessionStateSchema",{enumerable:!0,get:function(){return ci}}),Object.defineProperty(exports,"setAgentSessionWorkPostureResultSchema",{enumerable:!0,get:function(){return fi}}),Object.defineProperty(exports,"slackConditionSchema",{enumerable:!0,get:function(){return Vr}}),Object.defineProperty(exports,"slackTriggerMatchSchema",{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,"submitOutcomeSchema",{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,"syncBundleResultSchema",{enumerable:!0,get:function(){return oo}}),Object.defineProperty(exports,"tenantInvitationSchema",{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,"tenantSettingsResponseSchema",{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,"tenantSettingsSchema",{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,"todoItemSchema",{enumerable:!0,get:function(){return Pr}}),Object.defineProperty(exports,"todoPlanSchema",{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,"toolImpactSchema",{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,"triageResultSchema",{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(exports,"userProfileSchema",{enumerable:!0,get:function(){return qn}}),Object.defineProperty(exports,"utf8ByteLength",{enumerable:!0,get:function(){return utf8ByteLength}}),Object.defineProperty(exports,"viewPreferenceAddressSchema",{enumerable:!0,get:function(){return Zo}}),Object.defineProperty(exports,"viewReadSchema",{enumerable:!0,get:function(){return Xo}}),Object.defineProperty(exports,"viewerAccessSchema",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"withPreferenceEntry",{enumerable:!0,get:function(){return withPreferenceEntry}}),Object.defineProperty(exports,"withoutTrailingSlashes",{enumerable:!0,get:function(){return withoutTrailingSlashes}});