@standards/schema 1.0.0-alpha.435 → 1.0.0-alpha.439
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{all-DxqmnktK.mjs → all-BYmKV0dE.mjs} +1 -1
- package/dist/{all-B3RHy-si.js → all-CQpxJzde.js} +1 -1
- package/dist/api/index.d.mts +302 -2
- package/dist/api/index.d.ts +302 -2
- package/dist/api/index.js +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/attribute-validators-BndMvVLT.mjs +11 -0
- package/dist/attribute-validators-CYrBg3Iz.js +11 -0
- package/dist/{index-DKnZ8yJz.d.ts → index-CTEU8_BN.d.ts} +45 -12
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/record-operation-DBY5XtZW.mjs +2 -0
- package/dist/record-operation-Dqvgxmnz.js +2 -0
- package/dist/{record-query-DTK1hCGH.d.mts → record-query-BY-r2Ck3.d.mts} +45 -12
- package/dist/validation/all.d.mts +1 -1
- package/dist/validation/all.d.ts +1 -1
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/openapi.json +787 -0
- package/package.json +2 -2
- package/dist/attribute-validators-BGKhSoi4.mjs +0 -11
- package/dist/attribute-validators-D-exV8OQ.js +0 -11
- package/dist/record-operation-D9HYWPOc.mjs +0 -2
- package/dist/record-operation-J70yJzyO.js +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-CYrBg3Iz.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 ne=[`read`,`create`,`update`,`delete`,`manage`],l=n.object({scope:n.enum([`object`,`system`]),target:n.string().min(1),actions:n.array(n.enum(ne))}).strict();function findGrantIssues(e,t){let n=[],r=/* @__PURE__ */ new Map;for(let i of e){let e=l.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 u=n.enum([...ne,`*`]),re=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}),ie=n.object({id:n.string(),roleId:n.string(),scope:l.shape.scope,target:n.string(),actions:n.array(u),createdAt:e.isoDateTime}),ae=n.object({objectPermissions:n.record(n.string(),n.array(u)),systemPermissions:n.record(n.string(),n.array(u))}),oe=n.object({canRead:n.boolean(),canCreate:n.boolean(),canUpdate:n.boolean(),canDelete:n.boolean(),canManage:n.boolean()}),se=re.pick({id:!0,name:!0,label:!0}),ce=n.object({id:n.string(),tenantId:n.string(),userProfileId:n.string().nullable(),name:n.string(),prefix:n.string(),expiresAt:n.string().nullable(),lastUsedAt:n.string().nullable(),revokedAt:n.string().nullable(),createdAt:n.string(),createdBy:n.string(),roles:n.array(se).optional(),authorityActorId:n.string().nullable(),detachedAt:n.string().nullable(),detachedBy:n.string().nullable(),mirrorsOwner:n.boolean()}),le=ce.extend({secret:n.string()}),ue=[`user`,`agent`,`api_key`,`system`],de={id:n.string(),tenantId: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({...de,type:n.literal(e),status:n.literal(t),subjectId:t===`deleted`?n.string().nullable():n.string()})}function subjectActors(e){return n.discriminatedUnion(`status`,[subjectActor(e,`active`),subjectActor(e,`suspended`),subjectActor(e,`deleted`)])}const fe=n.discriminatedUnion(`type`,[subjectActors(`user`),subjectActors(`agent`),subjectActors(`api_key`),n.object({...de,type:n.literal(`system`),status:n.enum([`active`,`suspended`,`deleted`]),subjectId:n.null().optional()})]),pe=[`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 me=[`createdAt`,`lastActivity`],he=[`mine`,`shared`,`team`],ge=Object.freeze({mutation:`ask`,destructive:`ask`,outward:`ask`}),_e=[`active`,`completed`,`abandoned`],ve=[`openai`,`anthropic`,`google`,`spacexai`,`deepseek`,`moonshotai`,`alibaba`,`mistral`,`minimax`,`meta`,`zai`,`cursor`],ye=[`standard`,`fast`],be=[`none`,`minimal`,`low`,`medium`,`high`,`xhigh`],xe=[`conversation`,`writing`,`coding`,`analysis`,`extraction`],Se=[`light`,`standard`,`heavy`],Ce=[`manual`,`auto`],we={interactive:{inputPerMillionUsd:5,outputPerMillionUsd:25},delegated:{inputPerMillionUsd:2,outputPerMillionUsd:12}},d=[`model`,`speed`,`reasoning`,`imageModel`,`routing`];function mergeSessionInferencePatch(e,t){let n={...e};for(let e of d){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(ue),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=r.AI_CHAT_MAX_FILES,tn=/^(file|document):[A-Za-z0-9_-]{1,128}$/,nn=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()]),rn=n.object({skipped:n.boolean().describe(`True if the person skipped all questions`),answers:n.record(n.string(),nn).describe(`Map of question ID to the answer given, with each chosen option's value and label, and the person's precision on it when they added one (note, or notes by value)`),unanswered:n.array(n.object({id:n.string(),question:n.string().optional()})).optional().describe(`The questions the person left empty, by ID and text: they did not answer them. Ask again if you still need the answer`),answeredBy:n.object({id:n.string(),name:n.string()}).optional().describe(`Who answered: one of the people the question went to, not always the person you act for`),addedFiles:n.array(n.string()).optional().describe(`The files the person added to their answer (file:<id> or document:<id>): read them before acting on the answer`)});function readAskQuestionsResult(e){let t=rn.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 an={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 on=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}),sn=n.object({urls:n.record(n.string(),n.string())}),cn={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()},ln=n.object({...cn,isHome:n.boolean(),codeDeclared:n.boolean()}),un=n.object({...cn,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 dn=n.object({recordId:e.brandedString(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(y,vt))}),fn=n.object({deviceId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(bt,[`manual`]))}),pn=n.object({pageId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:n.string().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(y,[`manual`]))}),mn=n.object({recordId:n.string(),objectId:n.string(),objectName:n.string(),label:n.string().optional()}),hn=[`confirmed`,`tentative`,`cancelled`],gn=[`organizer`,`required`,`optional`],_n=[`accepted`,`declined`,`tentative`,`needs_action`],vn=[`accepted`,`declined`,`tentative`],yn=[`scheduled`,`recording`,`completed`,`failed`],bn=[`force`,`skip`],xn=[`none`,`all`,`external_only`],Sn=n.object({override:n.enum(bn).nullable(),status:n.enum([`none`,...yn]),failureReason:n.string().nullable(),waitingRoom:n.boolean(),botId:n.string().nullable()}),Cn={override:null,status:`none`,failureReason:null,waitingRoom:!1,botId:null},T=n.object({speaker:n.string().nullable(),startsAtMs:n.number(),endsAtMs:n.number(),text:n.string()}),wn=n.object({fullText:n.string(),segments:n.array(T),language:n.string().nullable(),startedAt:n.string().nullable(),endedAt:n.string().nullable()}),Tn={width:1280,height:720,maxBytes:13e5,mimeType:`image/jpeg`},En=Math.ceil(Tn.maxBytes/3)*4,Dn=n.object({conferenceJoinUrl:n.string().min(1),botDisplayName:n.string().min(1),startsAt:n.string().nullable(),callbackUrl:n.url(),botImageJpeg:n.string().max(En).optional()}),On=n.object({botId:n.string().min(1)}),kn=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()})]),E=n.object({meetingId:n.string(),ownerActorId:n.string().nullable()}),An=E.extend({ownerDisplayName:n.string().nullable()}),jn=n.object({fullText:n.string(),segments:n.array(T),speakers:n.array(n.string()),language:n.string().nullable(),startedAt:n.string().nullable(),endedAt:n.string().nullable(),source:An.nullable()}),Mn=[`created`,`pending`,`refused`],D=n.object({address:n.string(),name:n.string().optional(),role:n.enum(gn),responseStatus:n.enum(_n).optional()}),Nn=mn.extend({sync:n.literal(!0).optional()}),Pn=n.object({id:n.string(),ownerActorId:n.string().nullable()}),Fn=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(hn),organizer:D.nullable(),conferenceProvider:n.string().nullable(),conferenceJoinUrl:n.string().nullable(),htmlLink:n.string().nullable(),participants:n.array(D),linkedRecords:n.array(Nn),recording:Sn,viewerAccess:w,callKey:n.string(),siblings:n.array(Pn),transcriptSource:E.nullable(),conferenceRequest:n.enum(Mn).optional()}),In=n.object({meetings:n.array(Fn),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 Ln=n.object({meetingRecordingPolicy:n.enum(xn),meetingBotDisplayName:n.string(),memoryPersonMonthlyLimitUsd:n.string().nullable(),memoryTenantMonthlyLimitUsd:n.string().nullable(),findImages:n.boolean(),memberMonthlyCapCredits:n.number().nullable()}),Rn=Ln.extend({meetingBotConfigured:n.boolean(),meetingBotImageUrl:n.string().nullable(),logosConfigured:n.boolean()}),zn=`Notetaker`,Bn=/^\d{1,9}(\.\d{1,6})?$/,Vn={meetingRecordingPolicy:`none`,meetingBotDisplayName:zn,memoryPersonMonthlyLimitUsd:null,memoryTenantMonthlyLimitUsd:null,findImages:!0,memberMonthlyCapCredits:null},Hn=[`pending`,`expired`,`revoked`,`accepted`],Un=[`pending`,`sent`,`failed`],Wn=n.object({id:n.string(),tenantId:e.brandedString(),email:n.string(),roleId:n.string(),invitingActorId:n.string(),status:n.enum(Hn),deliveryStatus:n.enum(Un),expiresAt:e.isoDateTime,lastSentAt:e.isoDateTime,acceptedAt:e.isoDateTime.optional(),revokedAt:e.isoDateTime.optional(),acceptedProfileId:n.string().optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),Gn=[`active`,`suspended`],Kn=[`architect`,`manual`,`auto`],qn=[`panel`,`fullscreen`],Jn=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(Gn),lastLoginAt:e.isoDateTime.optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),Yn=Jn.extend({actorId:n.string().nullable(),roleIds:n.array(n.string())}),Xn=[`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 Zn=[`storage.bytes`,`members.seats`,`data.live_records`,`email.mailboxes`,`calendar.connections`],Qn=/* @__PURE__ */ new Set([`data.live_records`,`email.mailboxes`,`calendar.connections`]),$n=n.object({key:n.enum(Zn),limit:n.number().nullable(),used:n.number(),reserved:n.number(),available:n.number().nullable(),version:n.string().nullable()}),er=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()})]),tr=n.strictObject({nodes:n.array(er).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 nr=`work`,rr=`/vercel/sandbox/${nr}`,ir=`/workspace`;function environmentWorkdir(e=null){return e?rr:ir}const O=[{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`}],k=new Map(O.map(e=>[e.id,e]));function isEnvironmentHarnessId(e){return k.has(e)}function findEnvironmentHarness(e){return k.get(e)}function environmentHarness(e){let n=k.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 ar=[`code`,`documents`],A=[`small`,`default`,`large`],or={small:2,default:4,large:8},j=[`setup`,`bake`,`publish`];function isEnvironmentBuildLogStep(e){return j.includes(e)}function utf8ByteLength(e){return new TextEncoder().encode(e).length}const sr=[{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.`}],cr={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`}},lr=`stone`,ur=/* @__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(`,`)),dr=new Set(sr.map(e=>e.key)),fr=new Set(Object.entries(cr).flatMap(([e,t])=>[e,t.en,t.fr].map(e=>e.toLowerCase())));function isSystemEmailCategory(e){return dr.has(e)}function isSystemEmailCategoryName(e){return fr.has(e.trim().toLowerCase())}function isPublicMailDomain(e){return ur.has(e.toLowerCase())}const pr=[`conversation`,`run`,`change`],M={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??M,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={...ge,...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??M,systemPrompt:this.bp.systemPrompt,model:this.bp.model}}};function agent(e){return new AgentBuilder(e)}const mr=[`circle`,`square`],N=[`upload`,`website`,`name`,`email`];function isImageSource(e){return N.some(t=>t===e)}const hr={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 P=[`record`,`document`,`file`,`email`,`thread`,`event`,`memory`,`skill`,`schema`,`user`,`guide`,`bundle`,`draft`,`decision`,`session`,`catalog`,`wake`],gr=/* @__PURE__ */ new Set([`memory`,`schema`,`wake`]),_r=/^[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 P.includes(e)}function refuse(e,t){return{ok:!1,reason:e,expected:t}}function parseReference(e){let t=e.trim();if(_r.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 ${P.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===`*`&&!gr.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===`*`&&gr.has(e.kind)}const vr={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()},yr=n.object(vr).readonly(),br=n.object(vr).strict().readonly(),F=n.number().finite().nonnegative(),I=n.enum(ve),L=n.enum(ye),R=n.enum(be),z=n.enum(Ce),B=n.object({provider:I,model:n.string().min(1)}).strict(),xr=n.object({speed:L.optional(),reasoning:R.optional(),routing:z.optional()}).strict(),Sr=n.string().regex(/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9._-]*$/),Cr=n.object({model:B.optional(),speed:L.optional(),reasoning:R.optional(),imageModel:Sr.optional(),routing:z.optional()}).strict(),wr=Cr.refine(e=>d.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 Tr=n.object({model:B.nullable().optional(),speed:L.nullable().optional(),reasoning:R.nullable().optional(),imageModel:Sr.nullable().optional(),routing:z.nullable().optional()}).strict().refine(isSessionInferencePatch,{message:`At least one inference override is required`}),Er=n.object({model:n.string().min(1),routing:n.object({mode:n.literal(`auto`),tasks:n.array(n.enum(xe)).optional(),demand:n.enum(Se).optional(),reason:n.enum([`selected`,`retained`,`fallback`]).optional(),relation:n.enum([`continue`,`modify`,`new`,`aside`,`unknown`]).optional(),anchorMessageId:n.string().min(1).optional()})}),Dr=n.object({objectName:n.string(),id:n.string(),label:n.string(),objectIcon:n.string().optional()}).strict(),Or=n.object({label:n.string(),denied:n.boolean().optional(),deletion:n.object({target:n.string().optional(),count:F.optional(),targets:n.array(n.string()).optional(),restorableDays:F.optional()}).strict().optional(),record:Dr.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:F,outsideThread:n.array(n.string()),attachments:n.array(n.object({name:n.string(),size:F}).strict()),updatedAt:n.string(),forwarded:n.object({from:n.string(),subject:n.string().nullable(),quote:n.string(),quoteTruncatedChars:F}).strict().optional()}).strict().optional(),move:br.optional(),parent:Dr.nullable().optional(),skill:n.object({source:n.string(),description:n.string(),audience:n.enum([`private`,`workspace`]),files:F,hasScripts:n.boolean()}).strict().optional(),outgoingText:n.string().optional(),counts:n.record(n.string(),F).optional(),warnings:n.array(n.string()).optional()}).strict(),kr=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:F.optional(),approvalId:n.string().optional(),approvalImpact:Or.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:F.optional(),reportedTokens:F.optional()}).strict(),n.object({type:n.literal(`compaction`),state:n.literal(`completed`),tokensBefore:F,tokensAfter:F,tokensSaved:F,strategy:n.enum([`no-op`,`summary`,`truncation`]),durationMs:F,summary:n.string().optional()}).strict(),n.object({type:n.literal(`compaction`),state:n.literal(`failed`),reason:n.string(),durationMs:F.optional()}).strict()]),Ar=n.object({id:n.string().min(1),name:n.string().min(1),mimeType:n.string().min(1),size:n.number().int().min(0)}).strict(),jr=n.object({id:n.string(),artifactId:n.string(),revision:n.number().int().min(1),selectedText:n.string()}).strict(),Mr=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(),Nr=n.object({provider:I,model:n.string().min(1),maxTokens:n.number().int().positive().optional(),contextWindow:F.optional()}).strict(),Pr=n.union([n.date(),n.string().datetime({offset:!0}).transform(e=>new Date(e))]),Fr=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(kr),attachments:n.array(Ar).optional(),mentions:n.array(Mr).optional(),quotes:n.array(jr).optional(),model:Nr.optional(),tokenUsage:n.object({input:F,output:F}).strict().optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:Pr}).strict(),Ir=n.object({id:n.string(),description:n.string(),status:n.enum([`pending`,`in_progress`,`completed`,`blocked`]),result:n.string().optional(),updatedAt:F.optional(),target:n.object({phase:n.enum(He)}).strict().optional()}).strict(),Lr=n.object({id:n.string(),sessionId:n.string(),status:n.enum([`active`,`completed`,`abandoned`]),todos:n.array(Ir),version:F,createdAt:n.string(),updatedAt:n.string(),completedAt:n.string().optional()}).strict(),Rr={"compaction-start":n.object({reason:n.enum([`preflight_threshold`,`overflow_recovery`]),estimatedTokens:F.optional(),reportedTokens:F.optional()}).strict(),"compaction-end":n.object({tokensBefore:F,tokensAfter:F,tokensSaved:F,strategy:n.enum([`no-op`,`summary`,`truncation`]),durationMs:F,summary:n.string().optional()}).strict(),"compaction-failed":n.object({reason:n.string()}).strict(),usage:n.object({messageId:n.string().min(1).optional(),inputTokens:F,outputTokens:F,totalTokens:F,cacheReadTokens:F.optional(),cacheCreationTokens:F.optional(),contextWindow:F,residentTokens:F,utilization:n.number().finite().min(0).max(1),costUsd:F.optional()}).strict(),"sent-message":n.object({text:n.string(),attachments:n.array(n.string()).optional()}).strict(),"message-updated":n.object({message:Fr}).strict(),"approval-context":n.object({approvalId:n.string(),toolCallId:n.string(),impact:Or.optional(),relaxableByAuto:n.boolean().optional()}).strict()};function isAgentUIDataName(e){return e in Rr}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:Rr[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 zr={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`]}},Br={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`]}},Vr=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 Hr=n.discriminatedUnion(`field`,[Vr,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`)]),Ur=n.discriminatedUnion(`field`,[Vr,n.object({field:n.literal(`position`),value:n.enum([`top_level`,`reply`])}).strict(),booleanCondition(`hasFile`),stringCondition(`messageAuthor`)]),Wr=Object.keys(zr),Gr=Object.keys(Br),Kr=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 qr=n.enum([`human`,`me`,`any`]),Jr=n.object({family:n.enum(Wr),actions:n.array(n.string()).default([]),repositories:n.array(Kr).default([]),sender:n.union([qr,n.object({logins:n.array(n.string().min(1)).min(1)}).strict()]).default(`human`),conditions:n.array(Hr).default([])}).strict().superRefine((e,t)=>{let n=zr[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),Yr=n.object({on:n.enum(Gr),channels:n.array(n.string().min(1)).default([]),reactions:n.array(n.string().min(1)).optional(),sender:n.union([qr,n.object({users:n.array(n.string().min(1)).min(1)}).strict()]).default(`human`),conditions:n.array(Ur).default([])}).strict().superRefine((e,t)=>{e.conditions.forEach((n,r)=>{Br[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),Xr=n.union([Jr,Yr]),Zr=[`record.created`,`record.updated`,`form.submitted`,`webhook`,`github`,`slack`],Qr=/* @__PURE__ */ new Set([`record.created`,`record.updated`]),$r=/^[A-Z_][A-Z0-9_]*$/,ei=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()}),ti=/^[A-Za-z0-9_$-]+(\.[A-Za-z0-9_$-]+)*$/,ni=n.object({name:n.string().max(120).optional(),eventType:n.enum(Zr),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(ti).nullable().optional(),connectionId:n.guid().optional(),match:Xr.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&&Qr.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 ri=refineTrigger(ni).transform(e=>({...e,...e.eventType===`github`||e.eventType===`slack`?{continueConversation:e.continueConversation??!0}:{}})),ii=ni.partial();function parseMergedAgentTrigger(e,t){let n=ii.safeParse(t);if(!n.success)throw triggerValidationError(n.error);let r=Object.fromEntries(Object.entries(n.data).filter(([,e])=>e!==void 0)),i=ri.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 ai=n.enum([`pending`,`running`,`completed`,`failed`,`cancelled`,`paused`,`skipped`]),oi=n.object({input:n.number(),output:n.number()}),si=n.object({provider:I,model:n.string()}),V=si.extend({maxTokens:n.number().optional(),contextWindow:n.number().optional()}),ci=n.object({speed:L.optional(),reasoning:R.optional(),routing:z.optional()}),li=ci.extend({model:si.optional(),imageModel:n.string().optional()}),ui=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(pe).optional(),runningTurnId:n.string().optional(),lastTurnId:n.string().optional()}),di=n.object({type:n.enum(Te),color:e.brandedString(),expression:n.enum(Ee)}),fi=n.object({name:n.string(),kind:n.enum([`agent`,`routine`]),label:n.string().optional(),avatar:di.optional()}),pi=n.object({id:n.string(),tenantId:n.string(),mode:n.enum([`interactive`,`autonomous`]),state:ui,approvalMode:n.enum([`manual`,`auto`]),workMode:n.enum([`execute`,`architect`]),focus:n.boolean(),personConversation:n.boolean(),workModeVersion:n.number(),version:n.number(),loadedToolsets:n.array(n.string()),inferenceOverrides:li,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(A).optional(),harnessState:n.unknown().optional(),definitionAppearance:fi.optional(),readThrough:n.literal(!0).optional(),listCursor:n.string().optional(),nextWakeAt:e.isoDateTime.nullable().optional()}),mi=n.discriminatedUnion(`kind`,[n.object({kind:n.enum([`changed`,`stale`]),session:pi}),n.object({kind:n.literal(`approval-required`),approvalId:n.string(),current:pi,targetApprovalMode:n.enum([`manual`,`auto`])})]),hi=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()})]),gi=n.discriminatedUnion(`kind`,[n.object({kind:n.literal(`routine`),definitionId:n.string()}),n.object({kind:n.literal(`conversation`),sessionId:n.string()})]),_i=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()}),vi=n.object({id:n.string(),sessionId:n.string(),status:n.enum(_e),todos:n.array(_i),version:n.number(),createdAt:n.string(),updatedAt:n.string(),completedAt:n.string().optional()}),yi=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}),bi=yi.extend({passesLeft:n.number().optional()}),xi=n.object({status:n.enum([`cancelled`,`finished`])}),Si=n.object({requestCount:n.number(),generatedImageCount:n.number(),confirmedCostUsd:n.string(),pendingCostCount:n.number()}),Ci=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()})]),wi=n.object({session:Si,tree:Si,byMessage:n.record(n.string(),Si),attempts:n.array(n.object({attemptId:n.string(),messageId:n.string(),requestedModelId:n.string(),executedModelId:n.string().nullable(),provider:n.string().nullable(),cost:Ci}))}),Ti=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`])}))}),Ei=n.object({sessionId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(xt,[`manual`]))}),Di=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(kr),attachments:n.array(Ar.strip()).optional(),mentions:n.array(Di).optional(),quotes:n.array(jr.strip()).optional(),model:V.optional(),tokenUsage:oi.optional(),metadata:n.record(n.string(),n.unknown()).optional(),createdAt:e.isoDateTime}),Oi=H.extend({waiting:n.boolean().optional()}),ki=n.object({messages:n.array(Oi),nextCursor:n.string().nullable(),hasMore:n.boolean(),committedSeq:n.number(),sessionState:ui.optional()}),Ai=n.object({outcome:hi,clientMessageId:n.string()}),ji=n.object({message:H,outcome:hi.optional()}),Mi=n.object({message:H}),Ni=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:ai,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:oi.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()}),Pi=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()}),Fi=n.object({memoryGranted:n.boolean(),profile:Pi.nullable()}),Ii=n.object({maxRetries:n.number(),backoffMs:n.number(),backoffMultiplier:n.number()}),Li=n.object({maxConcurrentRuns:n.number(),retryPolicy:Ii,costLimitUsd:n.number().optional(),inference:ci.optional()}),Ri=n.object({enabled:n.boolean(),model:V.optional(),systemPrompt:n.string().optional(),maxRetries:n.number().optional()}),zi=n.object({workspace:n.boolean(),roleIds:n.array(n.string()),actorIds:n.array(n.string())}),Bi=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:zi.optional(),continueConversation:n.boolean().optional()}),Vi=n.object({id:n.string(),tenantId:n.string(),name:n.string(),kind:n.enum([`agent`,`routine`]),label:n.string().optional(),avatar:di.optional(),starters:n.array(n.string()).optional(),description:n.string().optional(),systemPrompt:n.string(),model:V,toolGroups:n.array(e.brandedString()),schedule:Bi.optional(),scheduleLastFiredAt:e.isoDateTime.optional(),config:Li,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:Ri.optional(),autoDecide:n.boolean().optional(),singleConversation: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(A).optional()}),Hi=n.object({definitionId:n.string(),lastRunAt:e.isoDateTime.nullable(),lastRunStatus:ai.nullable(),lastRunError:n.string().nullable(),lastRunSessionId:n.string().nullable(),running:n.number(),runs7d:n.number(),failed7d:n.number()}),Ui=n.object({definitionId:n.string(),day:n.string(),runs:n.number(),failed:n.number()}),Wi=n.enum(Zr),Gi=n.object({definition:Vi,triggers:n.array(n.object({id:n.string(),eventType:Wi,hasWebhook:n.boolean()}))}),Ki=n.object({people:n.array(n.object({actorId:n.string(),source:e.brandedString(),missingConnections:n.array(n.string())}))}),qi=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()}),Ji=n.object({kinds:n.array(n.enum(P)),capabilities:n.array(n.enum([`bulk`,`activity`,`transcript`,`copy_email`]))}),Yi=e.brandedString(),Xi=n.object({core:n.array(qi),native:n.array(n.object({name:n.enum(f),granted:n.boolean(),grantable:n.boolean(),reason:Yi.optional(),enables:Ji,tools:n.array(qi)})),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:Yi.optional(),notes:n.array(Yi).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:Ji,tools:n.array(qi)}))}))}),Zi=n.object({visible:n.array(n.object({id:n.string(),name:n.string()})),hiddenCount:n.number()}),Qi=n.object({definitionId:n.string(),visibility:n.enum(e.RESOURCE_VISIBILITIES),ownedBy:e.brandedString().nullable(),viewerAccess:w,grants:n.array(accessGrantSchema(_t,[`manual`]))}),$i=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}),ea=n.object({ok:n.literal(!0)}),ta=n.object({at:e.isoDateTime,status:n.number(),payload:n.unknown(),truncated:n.boolean()}),na=n.object({id:n.string(),tenantId:n.string(),definitionId:n.string(),name:n.string().optional(),eventType:Wi,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:ta.optional(),createdAt:e.isoDateTime,updatedAt:e.isoDateTime}),ra=na.extend({addedToolGrants:n.array(e.brandedString()).optional()}),U=[`gmail`,`outlook`,`google-calendar`,`outlook-calendar`,`github`,`slack`],ia=[`slack`,`whatsapp`],aa=[`active`,`reauth_required`,`error`,`disconnected`],oa=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 sa=n.object({processed:n.number(),total:n.number().nullable(),backfilling:n.boolean()}),ca=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(aa),lastSyncedAt:n.string().nullable(),createdAt:n.string(),capabilities:oa,syncProgress:sa,usedBy:Zi.optional()}),la=[`actor`,`tenant`],ua=n.object({providers:n.array(n.enum(U)),mailTriageProviders:n.array(n.enum(U))}),da=[`read`,`write`,`delete`,`userDirectory`],fa=[`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 pa=n.object({attemptId:n.string(),authorizeUrl:n.string(),expiresAt:n.string()}),W=[`personal`,`workspace`],G=[`model`,`rule`,`manual`],K=[`address`,`domain`],ma=n.object({id:n.string(),scope:n.enum([...W,`system`]),name:n.string().nullable(),description:n.string(),icon:e.brandedString(),color:e.brandedString()}),ha=n.object({category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable()}),ga=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()}),_a=n.object({emails:n.number(),rules:n.number()}),va=n.object({verdict:ha,ruleId:n.string().nullable(),previousRule:n.object({scope:n.enum(K),match:n.string(),category:n.string()}).nullable()}),ya=n.object({verdict:ha,rule:ga.nullable(),undo:va}),ba=[`gmail`,`outlook`];function isMailProvider(e){return e===`gmail`||e===`outlook`}const xa=[`shared`,`private`],Sa=`DRAFT`;function isProviderDraft(e){return e.includes(Sa)}const Ca=[`inbound`,`outbound`],wa=[`read`,`unread`,`archive`,`trash`,`restore`],Ta=n.object({applied:n.array(n.string()),failed:n.array(n.object({id:n.string(),reason:n.string()})),synced:n.boolean()}),Ea=[`from`,`to`,`cc`,`bcc`],Da=n.object({address:n.string(),role:n.enum(Ea)}),Oa=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()}),ka=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(Ca),visibility:n.enum(e.RESOURCE_VISIBILITIES),isRead:n.boolean(),labels:n.array(n.string()),attachments:n.array(Oa),participants:n.array(Da),category:n.string().nullable(),important:n.boolean(),classifiedBy:n.enum(G).nullable(),verdictScope:n.enum(W).nullable(),fromImage:q.optional()}),Aa=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(Da),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()}),ja=n.object({id:n.string(),provider:n.enum(ba),externalAccountId:n.string(),visibility:n.enum(xa),status:n.enum(aa),capabilities:oa}),Ma=[`threads`,`messages`],Na=[`panel`,`fullscreen`];function isMailboxListMode(e){return Ma.includes(e)}const Pa=n.object({sentAt:n.string(),threadId:n.string(),emailId:n.string().optional()}),Fa=n.object({threads:n.array(Aa),nextCursor:Pa.optional(),total:n.number().nullable(),totalIsExact:n.boolean().optional()}),Ia=[`reply`,`reply_all`,`forward`,`new`],La=[`reply`,`reply_all`];function isReplyMode(e){return La.includes(e)}const Ra=n.object({accountId:n.string(),provider:n.enum(ba),canSend:n.boolean(),parentEmailId:n.string(),subject:n.string(),selfAddresses:n.array(n.string())}),za=n.object({fileId:n.string(),name:n.string(),mimeType:n.string(),sizeBytes:n.number()}),Ba=n.object({id:n.string(),accountId:n.string(),mode:n.enum(Ia),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(za),sendingAt:n.string().nullable(),createdAt:n.string(),updatedAt:n.string()}),Va=n.object({connectionId:n.string(),address:n.string(),html:n.string().nullable(),onReplies:n.boolean()}),Ha=n.object({address:n.string(),name:n.string().nullable(),occurrences:n.number(),image:q.optional()}).readonly(),Ua=n.object({recordId:n.string(),objectName:n.string()}).readonly(),Wa=n.object({address:n.string(),name:n.string().nullable(),image:q.optional(),contact:Ua.optional()}).readonly(),Ga=n.object({threadId:n.string(),subject:n.string(),emails:n.array(ka),replyDefaults:Ra.nullable(),linkedRecords:n.array(mn)}),Ka=/^[A-Za-z0-9_-]+$/,qa=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?Z$/,Ja=/^[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||!Ka.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||!qa.test(n)||!Ja.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 Ya=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()}),Xa=n.object({sessionId:n.string()}),Za=n.object({url:n.string()}),Qa=n.enum([`synced`,`added`]),$a=n.enum([`code`,`http`]),eo=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),mode:Qa,origin:$a.nullable(),hash:n.string().nullable(),uses:n.array(n.string()),installedAt:n.string(),updatedAt:n.string(),installedBy:n.string().nullable()}),to=n.enum([`current`,`update`,`repair`]),no=n.object({name:n.string(),status:to,usedBy:n.array(n.string())}),ro=e.brandedString().nullable(),io=n.object({objects:n.array(n.object({name:n.string(),label:n.string(),icon:n.string().nullable(),color:ro,attributes:n.array(n.string()),optionsLabel:n.string().nullable(),options:n.array(n.object({label:n.string(),color:ro})),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:ro})),skills:n.array(n.string()),agents:n.array(n.object({name:n.string(),label:n.string(),kind:n.enum([`routine`,`agent`]),inWorkspace:n.boolean()}))}),ao=n.object({name:n.string(),label:n.string(),description:n.string().nullable(),uses:n.array(n.string()),hasSamples:n.boolean(),installed:n.boolean(),contents:io}),oo=n.object({installed:n.array(eo),available:n.array(ao)}),so=n.object({kind:n.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:n.string()}),co=n.object({object:n.string(),attribute:n.string(),to:n.enum(e.ATTRIBUTE_TYPES),dependents:n.array(so),hiddenDependents:n.number()}),lo=n.object({object:n.string(),attribute:n.string(),declared:n.enum(e.ATTRIBUTE_TYPES),stored:n.enum(e.ATTRIBUTE_TYPES)}),uo=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(co).optional(),servedAsIs:n.array(lo).optional()}),fo=n.enum([`object`,`view`,`agent`]),po=n.object({pieceId:n.string(),bundleName:n.string(),kind:fo,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()}),mo=n.object({pieces:n.array(po),fingerprint:n.string()}),ho=n.enum([`object`,`view`,`page`,`tab`,`agent`,`attribute`,`option`]),go=n.enum([`added`,`updated`,`conflict`,`missing`,`notApplied`]),_o=n.enum([`lossy`,`required`,`retype`,`move`,`nameTaken`,`refused`,`precondition`,`dependents`,`conversion`]),vo=n.object({pieceId:n.string(),kind:ho,group:go,label:n.string(),reasonCode:_o.optional(),reasonName:n.string().optional(),fromType:n.enum(e.ATTRIBUTE_TYPES).optional(),toType:n.enum(e.ATTRIBUTE_TYPES).optional(),dependents:n.array(so).optional(),hiddenDependents:n.number().optional()}),yo=n.object({pieces:n.array(vo),fingerprint:n.string()}),bo=n.object({applied:n.number()}),xo=n.object({objectLabel:n.string(),attributeLabel:n.string()}),So=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(xo),computedAttributes:n.array(xo),prunedRelations:n.array(xo),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()}),Co=n.object({added:n.array(n.object({bundleName:n.string(),targetKind:fo,targetId:n.string()})),failed:n.array(n.object({pieceId:n.string(),reason:n.string()}))}),J=n.enum(O.map(e=>e.id)),wo=n.enum([`idle`,`building`,`failed`]),To=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())})]),Eo=n.object({step:n.enum([...j,`interrupted`]),exitCode:n.number().optional(),reason:n.literal(`credits_exhausted`).optional()}),Do=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:wo,buildFailure:Eo.nullable(),image:n.enum(ar),size:n.enum(A),maxSize:n.enum(A),networkPolicy:To,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()}),Oo=n.object({fullName:n.string(),ref:n.string().optional(),lazy:n.boolean().optional()}),ko=Do.extend({setupScript:n.string(),maintenanceScript:n.string(),repositories:n.array(Oo),buildLog:n.string()}),Ao=n.object({harness:J.nullable(),available:n.boolean()}),jo=n.object({defaults:n.array(Ao),environments:n.array(Do)}),Mo=n.object({id:n.string(),label:n.string(),isDefault:n.literal(!0).optional()}),No=n.object({source:n.enum([`live`,`served`,`compiled`]),models:n.array(Mo)}),Po=n.enum([`none`,`header`,`oauth`]),Fo=n.enum([`active`,`needs_reauth`,`error`]),Io=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:Po,trusted:n.boolean(),status:Fo,lastSyncedAt:n.string().nullable(),lastSyncError:n.string().nullable(),createdAt:n.string(),usedBy:Zi.optional()}),Lo=n.enum([`dev`,`data`,`ai`,`crm`,`comm`,`marketing`,`productivity`,`finance`,`payments`,`security`,`hr`,`design`]),Ro=n.object({id:n.string(),slug:n.string(),name:n.string(),url:n.string(),authType:Po,category:Lo,description:n.string()}),zo=n.object({callbackUrl:n.string(),clientMetadataUrl:n.string(),configured:n.boolean()}),Bo=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()}),Vo=n.object({options:n.array(Y),hasMore:n.boolean(),total:n.number(),nextOffset:n.number().optional()}),Ho=n.record(n.string(),n.array(Y)),Uo=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()})]),Wo=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()}),Go=n.object({nodes:n.array(Uo),edges:n.array(Wo),hidden:n.record(n.string(),n.object({count:n.number(),saturated:n.boolean()}))}),Ko=e.unchecked(),qo=e.unchecked(),Jo=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(Ko),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(),defaultDriveSort:n.enum(ot).optional()}),Yo=n.object({kind:n.literal(`bundle`),name:n.string(),label:n.string(),objectNames:n.array(n.string())}),Xo=n.object({groups:n.array(Yo)}),Zo=schemaStateAddressOf(n.string()),Qo=n.looseObject({address:Zo,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()}),$o=n.looseObject({modelVersion:n.literal(1),hashVersion:n.literal(1),tenant:n.string(),sourceFingerprint:n.string(),entries:n.array(Qo)}),es=n.object({id:n.string(),revision:n.number(),definition:e.unchecked()}),ts=n.object({viewId:n.string(),objectId:n.string(),objectName:n.string(),legacyObjectName:n.string(),legacyTabId:n.string(),contentName:n.string()}),ns=n.object({draftId:n.string(),version:n.number()}),rs=n.object({revision:ns.nullable(),targetTokens:n.record(n.string(),n.string()).readonly()}),is={objectName:n.string().optional(),attributeName:n.string().optional(),viewName:n.string().optional(),pageId:n.string().optional()},as=n.object({code:e.brandedString(),target:n.object({kind:n.enum([`object`,`attribute`,`view`,`page`]),...is}).optional(),operationId:n.string().optional(),message:n.string().optional(),at:n.string()}),os=n.object({draftId:n.string(),outcome:n.enum([`published`,`refused`]),at:n.string(),error:as.optional()}),ss=n.object({rule:n.enum([`computed-cycle`,`bilateral-pair`,`content-view`]),target:n.object(is),message:n.string()}),cs=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:as.optional()}),ls=cs.extend({commandGuard:rs,publishBlockers:n.array(ss)}),us=n.object({operationIds:n.array(n.string()),revision:ns,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()}),ds=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())}),fs={draftId:n.string().nullable(),version:n.number()},ps=n.discriminatedUnion(`status`,[n.object({...fs,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({...fs,status:n.literal(`invalid`),operationId:n.string().nullable(),message:n.string()})]),ms=n.object({kind:n.enum([`view`,`page`,`content`,`formula`,`rollup`,`relation`,`trigger`]),label:n.string()}),hs=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(ms),hiddenDependents:n.number()})),deferred:n.object({to:n.enum(e.ATTRIBUTE_TYPES),dependents:n.array(ms),hiddenDependents:n.number()}).nullable()}),X=e.brandedString(),gs=n.object({icon:e.brandedString().optional(),image:n.object({fileId:X,source:n.enum(N)}).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:gs.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}),_s=n.codec(n.string(),n.union([n.date(),n.string()]),{decode:e=>new Date(e),encode:e=>e instanceof Date?e.toISOString():e}),vs=n.object({start:_s,end:_s.nullable()}),ys=n.union([_s,vs]).nullable().optional(),bs=/* @__PURE__ */ new WeakMap,xs=n.looseObject({});function recordValuesCodec(e){if(e===null)return xs;let t=bs.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,ys])));return bs.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 Ss=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:Ss})}const Cs=collectionOutputSchema(Z),ws=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}),Ts=collectionOutputSchema(ws),Es=n.enum(t.SchemaErrorCode),Ds=n.object({created:n.array(Z),errors:n.array(n.object({index:n.number(),error:n.string()}))}),Os=n.object({updated:n.array(Z),errors:n.array(n.object({id:n.string(),error:n.string(),code:Es}))}),ks=n.object({deleted:n.array(n.string()),errors:n.array(n.object({id:n.string(),error:n.string(),code:Es}))}),As=n.object({incomingReferences:n.number(),descendants:n.number()}),js=n.object({purged:n.literal(!0),id:n.string()}),Ms=n.object({currency:n.string(),value:n.number()}),Ns=n.enum(e.AGGREGATE_BUCKETS),Ps=n.object({groups:n.array(n.object({key:n.string().nullable(),key2:n.string().nullable().optional(),value:n.number().nullable(),byCurrency:n.array(Ms).optional()})),total:n.number().nullable(),byCurrency:n.array(Ms).optional(),truncated:n.boolean(),appliedBucket:Ns.optional(),appliedBucket2:Ns.optional(),currency:n.string().optional(),previous:n.number().nullable().optional()}),Fs=n.string().trim().min(1).max(24),Is=n.string().trim().min(10).max(500),Ls=n.enum(K),Rs=n.object({scope:n.enum(W),name:Fs,description:Is,icon:e.iconNameSchema.default(`tag`),color:e.colorIdSchema.default(lr)}),zs=n.object({name:Fs.optional(),description:Is.optional(),icon:e.iconNameSchema.optional(),color:e.colorIdSchema.optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),Bs=n.object({moveTo:n.string().min(1).nullable().default(null)}),Vs=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`}),Hs=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:Ls,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`}),Us=n.object({scope:n.literal(`domain`)}),Ws=n.object({scope:n.enum(W)}),Gs=n.object({type:n.enum(Te),color:n.enum(r.AVATAR_COLOR_IDS),expression:n.enum(Ee).default(`relaxed`)}).strict(),Ks=n.array(n.string().trim().min(1).max(200)).max(4);function agentAvatarFromMetadata(e){let t=Gs.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 qs=Object.keys({home:!0,agents:!0,routines:!0,object:!0,settings:!0}),Js=[`dot`,`label`,`bubble`];function parseNewsIntensity(e){return Js.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 Ys=/^(\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=Ys.exec(e),r=Ys.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 Ys.test(e)}const Xs=n.looseObject({fr:n.string().optional(),en:n.string().optional()}),Zs=n.iso.datetime({offset:!0}),Qs=n.looseObject({id:n.string().min(1),slug:n.string().min(1),updatedAt:Zs,publishedAt:Zs,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:Xs,summary:Xs}),$s=n.object({fr:n.string().optional(),en:n.string().optional()}),ec=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()})]),tc=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:ec.optional(),intensity:n.enum(Js),title:$s,summary:$s}),nc=n.object({blogUrl:n.string().optional(),mediaBaseUrl:n.string().optional(),entries:n.array(tc)}),rc=n.object({id:n.string(),slug:n.string(),updatedAt:n.string(),body:$s});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=Qs.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 ic=n.looseObject({id:n.string().min(1),slug:n.string().min(1),updatedAt:Zs,body:Xs});function parseNewsBody(e){let n=ic.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 ac=e.unchecked(),oc=n.object({values:e.unchecked(),entries:n.array(ac)});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()),sc=n.strictObject({objectName:n.string(),recordId:Q,attribute:n.string(),base:n.unknown(),props:$.optional()}),cc=n.strictObject({kind:n.literal(`record.set`),objectId:Q,recordId:Q,values:$,base:$.optional(),metadata:$.optional()}),lc=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:sc.optional(),parentId:Q.optional(),metadata:$.optional()}).optional()}),uc=n.strictObject({kind:n.literal(`record.delete`),objectId:Q,recordId:Q}),dc=n.strictObject({kind:n.literal(`record.restore`),objectId:Q,recordId:Q}),fc=n.string().min(1),pc=n.discriminatedUnion(`command`,[n.strictObject({command:n.literal(`replace`),oldText:fc,newText:n.string(),replaceAll:n.boolean().optional()}),n.strictObject({command:n.literal(`insert`),text:fc,after:fc.optional()})]),mc=n.strictObject({kind:n.literal(`record.patch`),objectId:Q,recordId:Q,attribute:n.string(),edit:pc}),hc=n.discriminatedUnion(`kind`,[cc,lc,uc,dc,mc]),gc=n.strictObject({opId:Q,steps:n.array(hc).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 da}}),Object.defineProperty(exports,"ACCESS_LEVELS",{enumerable:!0,get:function(){return fa}}),Object.defineProperty(exports,"ACCESS_ROLES",{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,"ACTOR_TYPES",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,"AGENT_ASIDE_ANSWER_MAX_LENGTH",{enumerable:!0,get:function(){return 32e3}}),Object.defineProperty(exports,"AGENT_ASIDE_HISTORY_LIMIT",{enumerable:!0,get:function(){return 20}}),Object.defineProperty(exports,"AGENT_ASIDE_QUESTION_MAX_LENGTH",{enumerable:!0,get:function(){return 4e3}}),Object.defineProperty(exports,"AGENT_AVATAR_EXPRESSIONS",{enumerable:!0,get:function(){return 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 me}}),Object.defineProperty(exports,"AGENT_SESSION_ORIGINS",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"AGENT_SESSION_PROVENANCES",{enumerable:!0,get:function(){return he}}),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 xe}}),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 hr}}),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_FILE_REF",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,"ASK_QUESTIONS_MAX_ADDED_FILES",{enumerable:!0,get:function(){return en}}),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,"CHAT_PROVIDERS",{enumerable:!0,get:function(){return ia}}),Object.defineProperty(exports,"CONNECTION_GRANT_PROVIDERS",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,"CONNECTION_STATUS_IDS",{enumerable:!0,get:function(){return aa}}),Object.defineProperty(exports,"CONNECTOR_PROVIDER_IDS",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"CONNECTOR_SCOPES",{enumerable:!0,get:function(){return la}}),Object.defineProperty(exports,"CONTINUATION_KEY_PATTERN",{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,"CONVERSATION_SURFACES",{enumerable:!0,get:function(){return qn}}),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 M}}),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 ge}}),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 an}}),Object.defineProperty(exports,"DEFAULT_MEETING_BOT_DISPLAY_NAME",{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,"DEFAULT_TENANT_SETTINGS",{enumerable:!0,get:function(){return Vn}}),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 lr}}),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 Ca}}),Object.defineProperty(exports,"EMAIL_PARTICIPANT_ROLES",{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,"EMAIL_PROVIDERS",{enumerable:!0,get:function(){return ba}}),Object.defineProperty(exports,"EMAIL_RULE_SCOPES",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"ENVIRONMENT_BUILD_LOG_STEPS",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"ENVIRONMENT_BUILD_LOG_STEP_PREFIX",{enumerable:!0,get:function(){return`── `}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESSES",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESS_SANDBOX_WORKDIR",{enumerable:!0,get:function(){return nr}}),Object.defineProperty(exports,"ENVIRONMENT_HARNESS_WORKDIR",{enumerable:!0,get:function(){return rr}}),Object.defineProperty(exports,"ENVIRONMENT_IMAGES",{enumerable:!0,get:function(){return ar}}),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 A}}),Object.defineProperty(exports,"ENVIRONMENT_SIZE_VCPUS",{enumerable:!0,get:function(){return or}}),Object.defineProperty(exports,"ENVIRONMENT_STANDARDS_WORKDIR",{enumerable:!0,get:function(){return ir}}),Object.defineProperty(exports,"ENV_VAR_KEY_PATTERN",{enumerable:!0,get:function(){return $r}}),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 zr}}),Object.defineProperty(exports,"GITHUB_TRIGGER_FAMILIES",{enumerable:!0,get:function(){return Wr}}),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 Xn}}),Object.defineProperty(exports,"IMAGE_SHAPES",{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,"IMAGE_SOURCES",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"INFERENCE_REASONING_OPTIONS",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"INFERENCE_ROUTING_MODES",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"INFERENCE_SPEEDS",{enumerable:!0,get:function(){return ye}}),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 pr}}),Object.defineProperty(exports,"MAILBOX_ACCOUNT_VISIBILITIES",{enumerable:!0,get:function(){return xa}}),Object.defineProperty(exports,"MAILBOX_LIST_MODES",{enumerable:!0,get:function(){return Ma}}),Object.defineProperty(exports,"MAILBOX_READER_LAYOUTS",{enumerable:!0,get:function(){return Na}}),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 Ia}}),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 Tn}}),Object.defineProperty(exports,"MEETING_BOT_IMAGE_BASE64_MAX_LENGTH",{enumerable:!0,get:function(){return En}}),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 Mn}}),Object.defineProperty(exports,"MEETING_PARTICIPANT_ROLES",{enumerable:!0,get:function(){return gn}}),Object.defineProperty(exports,"MEETING_RESPONSES",{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,"MEETING_RESPONSE_STATUSES",{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,"MEETING_STATUSES",{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,"MEMORY_SPEND_LIMIT_PATTERN",{enumerable:!0,get:function(){return Bn}}),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 Js}}),Object.defineProperty(exports,"NEWS_TARGET_KINDS",{enumerable:!0,get:function(){return qs}}),Object.defineProperty(exports,"NO_ACCESS",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"NO_RECORDING",{enumerable:!0,get:function(){return Cn}}),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 ne}}),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 Qn}}),Object.defineProperty(exports,"PROVIDER_DRAFT_LABEL",{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(exports,"PROVIDER_NAMES",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,"PUBLIC_MAIL_DOMAINS",{enumerable:!0,get:function(){return ur}}),Object.defineProperty(exports,"QUESTION_FAMILY_TOOL_NAMES",{enumerable:!0,get:function(){return Qt}}),Object.defineProperty(exports,"QUOTA_KEYS",{enumerable:!0,get:function(){return Zn}}),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 bn}}),Object.defineProperty(exports,"RECORDING_POLICIES",{enumerable:!0,get:function(){return xn}}),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 P}}),Object.defineProperty(exports,"REPLY_MODES",{enumerable:!0,get:function(){return La}}),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 we}}),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 d}}),Object.defineProperty(exports,"SLACK_TRIGGER_CATALOG",{enumerable:!0,get:function(){return Br}}),Object.defineProperty(exports,"SLACK_TRIGGER_EVENTS",{enumerable:!0,get:function(){return Gr}}),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 sr}}),Object.defineProperty(exports,"SYSTEM_EMAIL_CATEGORY_NAMES",{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,"SYSTEM_PART_CODES",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"TASK_DEMAND_LEVELS",{enumerable:!0,get:function(){return Se}}),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 Un}}),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 Hn}}),Object.defineProperty(exports,"TODO_PHASES",{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,"TODO_PLAN_STATUSES",{enumerable:!0,get:function(){return _e}}),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 yn}}),Object.defineProperty(exports,"TRIAGE_ACTIONS",{enumerable:!0,get:function(){return wa}}),Object.defineProperty(exports,"TRIGGER_EVENT_TYPES",{enumerable:!0,get:function(){return Zr}}),Object.defineProperty(exports,"TRIGGER_MAX_REENTRY",{enumerable:!0,get:function(){return 25}}),Object.defineProperty(exports,"TURN_OUTCOMES",{enumerable:!0,get:function(){return pe}}),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 Gn}}),Object.defineProperty(exports,"USER_WORK_POSTURES",{enumerable:!0,get:function(){return Kn}}),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 fe}}),Object.defineProperty(exports,"agent",{enumerable:!0,get:function(){return agent}}),Object.defineProperty(exports,"agentApprovalResolutionSchema",{enumerable:!0,get:function(){return ji}}),Object.defineProperty(exports,"agentAvatarFromMetadata",{enumerable:!0,get:function(){return agentAvatarFromMetadata}}),Object.defineProperty(exports,"agentAvatarOutputSchema",{enumerable:!0,get:function(){return di}}),Object.defineProperty(exports,"agentAvatarSchema",{enumerable:!0,get:function(){return Gs}}),Object.defineProperty(exports,"agentConversationOverviewSchema",{enumerable:!0,get:function(){return Ti}}),Object.defineProperty(exports,"agentDataChunk",{enumerable:!0,get:function(){return agentDataChunk}}),Object.defineProperty(exports,"agentDefinitionActivitySchema",{enumerable:!0,get:function(){return Hi}}),Object.defineProperty(exports,"agentDefinitionAudienceSchema",{enumerable:!0,get:function(){return Qi}}),Object.defineProperty(exports,"agentDefinitionDailyActivitySchema",{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(exports,"agentDefinitionSchema",{enumerable:!0,get:function(){return Vi}}),Object.defineProperty(exports,"agentDisplayName",{enumerable:!0,get:function(){return agentDisplayName}}),Object.defineProperty(exports,"agentExecutionConfigOutputSchema",{enumerable:!0,get:function(){return Li}}),Object.defineProperty(exports,"agentHistoryMessageSchema",{enumerable:!0,get:function(){return Oi}}),Object.defineProperty(exports,"agentInferencePreferencesOutputSchema",{enumerable:!0,get:function(){return ci}}),Object.defineProperty(exports,"agentInferencePreferencesSchema",{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,"agentMemoryViewSchema",{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,"agentMessageAttachmentSchema",{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,"agentMessagePartSchema",{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,"agentRequestAnswerSchema",{enumerable:!0,get:function(){return Mi}}),Object.defineProperty(exports,"agentRoleSchema",{enumerable:!0,get:function(){return $i}}),Object.defineProperty(exports,"agentRolesSetResultSchema",{enumerable:!0,get:function(){return ea}}),Object.defineProperty(exports,"agentRunSchema",{enumerable:!0,get:function(){return Ni}}),Object.defineProperty(exports,"agentRunStatusSchema",{enumerable:!0,get:function(){return ai}}),Object.defineProperty(exports,"agentScheduleOutputSchema",{enumerable:!0,get:function(){return Bi}}),Object.defineProperty(exports,"agentScheduleSchema",{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,"agentSessionAudienceSchema",{enumerable:!0,get:function(){return Ei}}),Object.defineProperty(exports,"agentSessionDefinitionAppearanceSchema",{enumerable:!0,get:function(){return fi}}),Object.defineProperty(exports,"agentSessionHistoryPageSchema",{enumerable:!0,get:function(){return ki}}),Object.defineProperty(exports,"agentSessionInferenceOverridesInputSchema",{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,"agentSessionInferenceOverridesSchema",{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,"agentSessionLinkSchema",{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,"agentSessionMessageOutputSchema",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"agentSessionMessageSchema",{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,"agentSessionSchema",{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,"agentSetupResponseSchema",{enumerable:!0,get:function(){return Gi}}),Object.defineProperty(exports,"agentStartersSchema",{enumerable:!0,get:function(){return Ks}}),Object.defineProperty(exports,"agentTodoPlanViewSchema",{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,"agentToolCatalogSchema",{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(exports,"agentTriggerBaseSchema",{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,"agentTriggerDefinitionSchema",{enumerable:!0,get:function(){return na}}),Object.defineProperty(exports,"agentTriggerLastCallSchema",{enumerable:!0,get:function(){return ta}}),Object.defineProperty(exports,"agentTriggerPatchSchema",{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,"agentTriggerSchema",{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,"agentUIValidationError",{enumerable:!0,get:function(){return agentUIValidationError}}),Object.defineProperty(exports,"agentWakeSchema",{enumerable:!0,get:function(){return yi}}),Object.defineProperty(exports,"agentWakeViewSchema",{enumerable:!0,get:function(){return bi}}),Object.defineProperty(exports,"apiKeyRoleSchema",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"apiKeySchema",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"apiKeyWithSecretSchema",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"architectProjectionSchema",{enumerable:!0,get:function(){return ps}}),Object.defineProperty(exports,"artifactQuoteSchema",{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,"askQuestionsOutputSchema",{enumerable:!0,get:function(){return rn}}),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 Ko}}),Object.defineProperty(exports,"attributeSaveOutputSchema",{enumerable:!0,get:function(){return qo}}),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 ao}}),Object.defineProperty(exports,"browserProfilePreparationSchema",{enumerable:!0,get:function(){return Xa}}),Object.defineProperty(exports,"browserProfileViewSchema",{enumerable:!0,get:function(){return Ya}}),Object.defineProperty(exports,"bundleAddPlanSchema",{enumerable:!0,get:function(){return mo}}),Object.defineProperty(exports,"bundleAddResultSchema",{enumerable:!0,get:function(){return Co}}),Object.defineProperty(exports,"bundleContentsSchema",{enumerable:!0,get:function(){return io}}),Object.defineProperty(exports,"bundleListSchema",{enumerable:!0,get:function(){return oo}}),Object.defineProperty(exports,"bundleModeSchema",{enumerable:!0,get:function(){return Qa}}),Object.defineProperty(exports,"bundleOriginSchema",{enumerable:!0,get:function(){return $a}}),Object.defineProperty(exports,"bundlePieceKindSchema",{enumerable:!0,get:function(){return fo}}),Object.defineProperty(exports,"bundlePlanPieceSchema",{enumerable:!0,get:function(){return po}}),Object.defineProperty(exports,"bundleRemovalPreviewSchema",{enumerable:!0,get:function(){return So}}),Object.defineProperty(exports,"bundleStatusEntrySchema",{enumerable:!0,get:function(){return no}}),Object.defineProperty(exports,"bundleStatusSchema",{enumerable:!0,get:function(){return to}}),Object.defineProperty(exports,"bundleUpdateDependentSchema",{enumerable:!0,get:function(){return so}}),Object.defineProperty(exports,"bundleUpdateGroupSchema",{enumerable:!0,get:function(){return go}}),Object.defineProperty(exports,"bundleUpdatePieceKindSchema",{enumerable:!0,get:function(){return ho}}),Object.defineProperty(exports,"bundleUpdatePieceSchema",{enumerable:!0,get:function(){return vo}}),Object.defineProperty(exports,"bundleUpdatePlanSchema",{enumerable:!0,get:function(){return yo}}),Object.defineProperty(exports,"bundleUpdateReasonCodeSchema",{enumerable:!0,get:function(){return _o}}),Object.defineProperty(exports,"bundleUpdateResultSchema",{enumerable:!0,get:function(){return bo}}),Object.defineProperty(exports,"cancelAgentWakeResultSchema",{enumerable:!0,get:function(){return xi}}),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 Hs}}),Object.defineProperty(exports,"classificationUndoSchema",{enumerable:!0,get:function(){return va}}),Object.defineProperty(exports,"classifyEmailResultSchema",{enumerable:!0,get:function(){return ya}}),Object.defineProperty(exports,"classifyEmailSchema",{enumerable:!0,get:function(){return Vs}}),Object.defineProperty(exports,"cliDefaultModelOf",{enumerable:!0,get:function(){return cliDefaultModelOf}}),Object.defineProperty(exports,"cloudBrowserLiveViewSchema",{enumerable:!0,get:function(){return Za}}),Object.defineProperty(exports,"collectionOutputSchema",{enumerable:!0,get:function(){return collectionOutputSchema}}),Object.defineProperty(exports,"collectionPageSchema",{enumerable:!0,get:function(){return Ss}}),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 oa}}),Object.defineProperty(exports,"connectionGrantKindsOf",{enumerable:!0,get:function(){return connectionGrantKindsOf}}),Object.defineProperty(exports,"connectionSyncProgressSchema",{enumerable:!0,get:function(){return sa}}),Object.defineProperty(exports,"connectionViewSchema",{enumerable:!0,get:function(){return ca}}),Object.defineProperty(exports,"connectorProvidersResultSchema",{enumerable:!0,get:function(){return ua}}),Object.defineProperty(exports,"connectorTriggerMatchSchema",{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(exports,"createAgentTriggerResultSchema",{enumerable:!0,get:function(){return ra}}),Object.defineProperty(exports,"criticConfigOutputSchema",{enumerable:!0,get:function(){return Ri}}),Object.defineProperty(exports,"customDataChunkSchemas",{enumerable:!0,get:function(){return Rr}}),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 Ao}}),Object.defineProperty(exports,"deferredRetypeSchema",{enumerable:!0,get:function(){return co}}),Object.defineProperty(exports,"deriveViewerAccess",{enumerable:!0,get:function(){return deriveViewerAccess}}),Object.defineProperty(exports,"deviceAudienceSchema",{enumerable:!0,get:function(){return fn}}),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 ls}}),Object.defineProperty(exports,"draftCommandGuardSchema",{enumerable:!0,get:function(){return rs}}),Object.defineProperty(exports,"driveFileSchema",{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,"durableDateSchema",{enumerable:!0,get:function(){return Pr}}),Object.defineProperty(exports,"editAgentSessionMessageResultSchema",{enumerable:!0,get:function(){return Ai}}),Object.defineProperty(exports,"effectivePermissionsSchema",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"emailAttachmentMetaSchema",{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(exports,"emailCategoryCreateSchema",{enumerable:!0,get:function(){return Rs}}),Object.defineProperty(exports,"emailCategoryDeleteSchema",{enumerable:!0,get:function(){return Bs}}),Object.defineProperty(exports,"emailCategorySchema",{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,"emailCategoryScopeQuerySchema",{enumerable:!0,get:function(){return Ws}}),Object.defineProperty(exports,"emailCategoryUpdateSchema",{enumerable:!0,get:function(){return zs}}),Object.defineProperty(exports,"emailCategoryUsageSchema",{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,"emailParticipantRefSchema",{enumerable:!0,get:function(){return Da}}),Object.defineProperty(exports,"emailRuleScopeSchema",{enumerable:!0,get:function(){return Us}}),Object.defineProperty(exports,"emailSenderRuleSchema",{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,"emailVerdictSchema",{enumerable:!0,get:function(){return ha}}),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 Eo}}),Object.defineProperty(exports,"environmentBuildStateSchema",{enumerable:!0,get:function(){return wo}}),Object.defineProperty(exports,"environmentDetailSchema",{enumerable:!0,get:function(){return ko}}),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 jo}}),Object.defineProperty(exports,"environmentNetworkPolicyOutputSchema",{enumerable:!0,get:function(){return To}}),Object.defineProperty(exports,"environmentRepositorySourceSchema",{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(exports,"environmentSchema",{enumerable:!0,get:function(){return Do}}),Object.defineProperty(exports,"environmentWorkdir",{enumerable:!0,get:function(){return environmentWorkdir}}),Object.defineProperty(exports,"fileSchema",{enumerable:!0,get:function(){return on}}),Object.defineProperty(exports,"fileUrlsResponseSchema",{enumerable:!0,get:function(){return sn}}),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 Hr}}),Object.defineProperty(exports,"githubTriggerMatchSchema",{enumerable:!0,get:function(){return Jr}}),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 No}}),Object.defineProperty(exports,"harnessModelOptionSchema",{enumerable:!0,get:function(){return Mo}}),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 Sr}}),Object.defineProperty(exports,"inferenceReasoningSchema",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"inferenceRoutingSchema",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"inferenceSpeedSchema",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"installedBundleSummarySchema",{enumerable:!0,get:function(){return eo}}),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 os}}),Object.defineProperty(exports,"lastPublishErrorSchema",{enumerable:!0,get:function(){return as}}),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 mn}}),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 za}}),Object.defineProperty(exports,"mailDraftSchema",{enumerable:!0,get:function(){return Ba}}),Object.defineProperty(exports,"mailSignatureSchema",{enumerable:!0,get:function(){return Va}}),Object.defineProperty(exports,"mailboxAccountSchema",{enumerable:!0,get:function(){return ja}}),Object.defineProperty(exports,"mailboxCursorSchema",{enumerable:!0,get:function(){return Pa}}),Object.defineProperty(exports,"mailboxEmailSchema",{enumerable:!0,get:function(){return ka}}),Object.defineProperty(exports,"mailboxListResponseSchema",{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(exports,"mailboxSenderImageSchema",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"mailboxThreadDetailSchema",{enumerable:!0,get:function(){return Ga}}),Object.defineProperty(exports,"mailboxThreadSchema",{enumerable:!0,get:function(){return Aa}}),Object.defineProperty(exports,"matchesRepositoryPattern",{enumerable:!0,get:function(){return matchesRepositoryPattern}}),Object.defineProperty(exports,"mcpCatalogCategorySchema",{enumerable:!0,get:function(){return Lo}}),Object.defineProperty(exports,"mcpCatalogEntrySchema",{enumerable:!0,get:function(){return Ro}}),Object.defineProperty(exports,"mcpOAuthAttemptStartedSchema",{enumerable:!0,get:function(){return Bo}}),Object.defineProperty(exports,"mcpOAuthSetupSchema",{enumerable:!0,get:function(){return zo}}),Object.defineProperty(exports,"mcpServerAuthTypeSchema",{enumerable:!0,get:function(){return Po}}),Object.defineProperty(exports,"mcpServerStatusSchema",{enumerable:!0,get:function(){return Fo}}),Object.defineProperty(exports,"mcpServerViewSchema",{enumerable:!0,get:function(){return Io}}),Object.defineProperty(exports,"meetingBotDispatchRequestSchema",{enumerable:!0,get:function(){return Dn}}),Object.defineProperty(exports,"meetingBotDispatchResponseSchema",{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,"meetingBotNotificationSchema",{enumerable:!0,get:function(){return kn}}),Object.defineProperty(exports,"meetingLinkedRecordSchema",{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,"meetingParticipantRefSchema",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"meetingRecordingSchema",{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,"meetingSchema",{enumerable:!0,get:function(){return Fn}}),Object.defineProperty(exports,"meetingSiblingRefSchema",{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,"meetingTranscriptProvenanceSchema",{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,"meetingTranscriptResponseSchema",{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,"meetingTranscriptSegmentSchema",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"meetingTranscriptSourceRefSchema",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"meetingsListResponseSchema",{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,"memberSchema",{enumerable:!0,get:function(){return Yn}}),Object.defineProperty(exports,"mentionReferenceSchema",{enumerable:!0,get:function(){return Mr}}),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 Nr}}),Object.defineProperty(exports,"modelReferenceOutputSchema",{enumerable:!0,get:function(){return si}}),Object.defineProperty(exports,"modelReferenceSchema",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"moveImpactSchema",{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,"mutationReceiptSchema",{enumerable:!0,get:function(){return us}}),Object.defineProperty(exports,"myPreferencesSchema",{enumerable:!0,get:function(){return oc}}),Object.defineProperty(exports,"needsManageWhenUnattended",{enumerable:!0,get:function(){return needsManageWhenUnattended}}),Object.defineProperty(exports,"newsBodySchema",{enumerable:!0,get:function(){return rc}}),Object.defineProperty(exports,"newsIndexSchema",{enumerable:!0,get:function(){return nc}}),Object.defineProperty(exports,"normalizeNewsLocale",{enumerable:!0,get:function(){return normalizeNewsLocale}}),Object.defineProperty(exports,"normalizedMeetingTranscriptSchema",{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,"oauthAttemptStartedSchema",{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,"objectDefinitionOutputSchema",{enumerable:!0,get:function(){return Jo}}),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 pn}}),Object.defineProperty(exports,"pageReadSchema",{enumerable:!0,get:function(){return un}}),Object.defineProperty(exports,"pageSummarySchema",{enumerable:!0,get:function(){return ln}}),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 oe}}),Object.defineProperty(exports,"permissionGrantSchema",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"permissionSchema",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"preferenceEntry",{enumerable:!0,get:function(){return preferenceEntry}}),Object.defineProperty(exports,"preferenceEntrySchema",{enumerable:!0,get:function(){return ac}}),Object.defineProperty(exports,"providerNameSchema",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"publishBlockerSchema",{enumerable:!0,get:function(){return ss}}),Object.defineProperty(exports,"publishDraftOutputSchema",{enumerable:!0,get:function(){return ds}}),Object.defineProperty(exports,"quotaStateSchema",{enumerable:!0,get:function(){return $n}}),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 Ua}}),Object.defineProperty(exports,"recipientIdentitySchema",{enumerable:!0,get:function(){return Wa}}),Object.defineProperty(exports,"recipientSuggestionSchema",{enumerable:!0,get:function(){return Ha}}),Object.defineProperty(exports,"recordAggregatesSchema",{enumerable:!0,get:function(){return Ps}}),Object.defineProperty(exports,"recordAudienceSchema",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(exports,"recordCollectionOutputSchema",{enumerable:!0,get:function(){return Cs}}),Object.defineProperty(exports,"recordDeletionCountSchema",{enumerable:!0,get:function(){return As}}),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 Wo}}),Object.defineProperty(exports,"recordGraphNodeKey",{enumerable:!0,get:function(){return recordGraphNodeKey}}),Object.defineProperty(exports,"recordGraphNodeSchema",{enumerable:!0,get:function(){return Uo}}),Object.defineProperty(exports,"recordGraphRequestSchema",{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,"recordGraphResponseSchema",{enumerable:!0,get:function(){return Go}}),Object.defineProperty(exports,"recordIncomingReferenceSchema",{enumerable:!0,get:function(){return ws}}),Object.defineProperty(exports,"recordIncomingReferencesPageSchema",{enumerable:!0,get:function(){return Ts}}),Object.defineProperty(exports,"recordMeetingsCount",{enumerable:!0,get:function(){return recordMeetingsCount}}),Object.defineProperty(exports,"recordOperationSchema",{enumerable:!0,get:function(){return gc}}),Object.defineProperty(exports,"recordPurgeResultSchema",{enumerable:!0,get:function(){return js}}),Object.defineProperty(exports,"recordValuesCodec",{enumerable:!0,get:function(){return recordValuesCodec}}),Object.defineProperty(exports,"recordsBulkCreateResultSchema",{enumerable:!0,get:function(){return Ds}}),Object.defineProperty(exports,"recordsBulkDeleteResultSchema",{enumerable:!0,get:function(){return ks}}),Object.defineProperty(exports,"recordsBulkUpdateResultSchema",{enumerable:!0,get:function(){return Os}}),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 Vo}}),Object.defineProperty(exports,"replyDefaultsSchema",{enumerable:!0,get:function(){return Ra}}),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 Ho}}),Object.defineProperty(exports,"resourceGrant",{enumerable:!0,get:function(){return resourceGrant}}),Object.defineProperty(exports,"resourceUsedBySchema",{enumerable:!0,get:function(){return Zi}}),Object.defineProperty(exports,"retryPolicyOutputSchema",{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(exports,"retypeOptionsOutputSchema",{enumerable:!0,get:function(){return hs}}),Object.defineProperty(exports,"roleSchema",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"routedMessageInferenceSchema",{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,"routineAudiencePreviewSchema",{enumerable:!0,get:function(){return Ki}}),Object.defineProperty(exports,"routineAudienceSchema",{enumerable:!0,get:function(){return zi}}),Object.defineProperty(exports,"sameActions",{enumerable:!0,get:function(){return sameActions}}),Object.defineProperty(exports,"schemaDraftOutputSchema",{enumerable:!0,get:function(){return cs}}),Object.defineProperty(exports,"schemaGroupListSchema",{enumerable:!0,get:function(){return Xo}}),Object.defineProperty(exports,"schemaGroupSchema",{enumerable:!0,get:function(){return Yo}}),Object.defineProperty(exports,"schemaStateAddressOf",{enumerable:!0,get:function(){return schemaStateAddressOf}}),Object.defineProperty(exports,"schemaStateEntrySchema",{enumerable:!0,get:function(){return Qo}}),Object.defineProperty(exports,"schemaStateSchema",{enumerable:!0,get:function(){return $o}}),Object.defineProperty(exports,"secretEntrySchema",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,"servedAsIsAttributeSchema",{enumerable:!0,get:function(){return lo}}),Object.defineProperty(exports,"sessionImageUsageSchema",{enumerable:!0,get:function(){return wi}}),Object.defineProperty(exports,"sessionInferenceOverridesOutputSchema",{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,"sessionInferencePatchSchema",{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,"sessionStateSchema",{enumerable:!0,get:function(){return ui}}),Object.defineProperty(exports,"setAgentSessionWorkPostureResultSchema",{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,"slackConditionSchema",{enumerable:!0,get:function(){return Ur}}),Object.defineProperty(exports,"slackTriggerMatchSchema",{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,"submitOutcomeSchema",{enumerable:!0,get:function(){return hi}}),Object.defineProperty(exports,"syncBundleResultSchema",{enumerable:!0,get:function(){return uo}}),Object.defineProperty(exports,"tenantInvitationSchema",{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(exports,"tenantSettingsResponseSchema",{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,"tenantSettingsSchema",{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,"todoItemSchema",{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,"todoPlanSchema",{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,"toolImpactSchema",{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,"triageResultSchema",{enumerable:!0,get:function(){return Ta}}),Object.defineProperty(exports,"userProfileSchema",{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,"utf8ByteLength",{enumerable:!0,get:function(){return utf8ByteLength}}),Object.defineProperty(exports,"viewPreferenceAddressSchema",{enumerable:!0,get:function(){return ts}}),Object.defineProperty(exports,"viewReadSchema",{enumerable:!0,get:function(){return es}}),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}});
|
|
@@ -2355,8 +2355,12 @@ export declare const DECISION_TITLE_MAX_LENGTH = 120;
|
|
|
2355
2355
|
export declare const DECISION_LINE_MAX_LENGTH = 200;
|
|
2356
2356
|
/** The `questions` batch of a `send` (`{ questions: [...] }`), or an approval's tool summary. */
|
|
2357
2357
|
export type DecisionQuestions = Readonly<Record<string, unknown>>;
|
|
2358
|
-
/**
|
|
2359
|
-
|
|
2358
|
+
/**
|
|
2359
|
+
* Where an answer was given, when not in the app: a chat front's card (spec
|
|
2360
|
+
* § 2), a Slack card or a WhatsApp card on the person's private front (spec
|
|
2361
|
+
* 2026-11-09 § 5 "Cards").
|
|
2362
|
+
*/
|
|
2363
|
+
export type DecisionAnswerOrigin = "slack" | "whatsapp";
|
|
2360
2364
|
/**
|
|
2361
2365
|
* What the answerer chose, as stored: `{ kind: "answers", skipped, answers }`
|
|
2362
2366
|
* for a question batch. `via` names where it was given when not in the app;
|
|
@@ -8665,6 +8669,13 @@ export declare function isWildcard(ref: Reference): boolean;
|
|
|
8665
8669
|
* the scopes differ and a user may connect one without the other. */
|
|
8666
8670
|
export declare const CONNECTOR_PROVIDER_IDS: readonly ["gmail", "outlook", "google-calendar", "outlook-calendar", "github", "slack"];
|
|
8667
8671
|
export type ConnectorProviderId = (typeof CONNECTOR_PROVIDER_IDS)[number];
|
|
8672
|
+
/**
|
|
8673
|
+
* Providers a person can chat with an agent on (private fronts): a
|
|
8674
|
+
* workspace's Slack app, and the one WhatsApp number of the Standards
|
|
8675
|
+
* instance, which is no connector.
|
|
8676
|
+
*/
|
|
8677
|
+
export declare const CHAT_PROVIDERS: readonly ["slack", "whatsapp"];
|
|
8678
|
+
export type ChatProvider = (typeof CHAT_PROVIDERS)[number];
|
|
8668
8679
|
/** Providers that sync a mailbox. */
|
|
8669
8680
|
export type EmailConnectorProviderId = Extract<ConnectorProviderId, "gmail" | "outlook">;
|
|
8670
8681
|
/** Providers that sync a calendar. */
|
|
@@ -11617,7 +11628,11 @@ export interface RecordAggregateGroup {
|
|
|
11617
11628
|
/**
|
|
11618
11629
|
* The measure over the group's records. With no value to measure, `count`
|
|
11619
11630
|
* and `sum` read 0; `avg`, `min` and `max` read `null`. `null` too when
|
|
11620
|
-
* the answer met several currencies: see `byCurrency`.
|
|
11631
|
+
* the answer met several currencies: see `byCurrency`. A `cumulative` sum
|
|
11632
|
+
* along a date grouping reads the running total of the group's series (its
|
|
11633
|
+
* other key) from the oldest bucket through this one; with no date grouping,
|
|
11634
|
+
* the plain sum. It adds only the groups returned: a `truncated` answer
|
|
11635
|
+
* grouped by a field first leaves the cut groups out of their series.
|
|
11621
11636
|
*/
|
|
11622
11637
|
value: number | null;
|
|
11623
11638
|
/**
|
|
@@ -11637,12 +11652,13 @@ export interface RecordAggregates {
|
|
|
11637
11652
|
groups: RecordAggregateGroup[];
|
|
11638
11653
|
/**
|
|
11639
11654
|
* The measure over every matching record, the groups cut by the cap
|
|
11640
|
-
* included; `null` as `value`, and
|
|
11655
|
+
* included (for `cumulative`, their plain sum); `null` as `value`, and
|
|
11656
|
+
* `null` when several currencies were met.
|
|
11641
11657
|
*/
|
|
11642
11658
|
total: number | null;
|
|
11643
11659
|
/**
|
|
11644
11660
|
* The total per currency, sorted by currency code, present only for a
|
|
11645
|
-
* `sum | avg | min | max` over a currency attribute that met more than one
|
|
11661
|
+
* `sum | cumulative | avg | min | max` over a currency attribute that met more than one
|
|
11646
11662
|
* currency (then `total` and `previous` are `null` and `currency` is absent).
|
|
11647
11663
|
*/
|
|
11648
11664
|
byCurrency?: CurrencyValue[];
|
|
@@ -11660,7 +11676,7 @@ export interface RecordAggregates {
|
|
|
11660
11676
|
appliedBucket2?: AggregateBucket;
|
|
11661
11677
|
/**
|
|
11662
11678
|
* The currency code (`"USD"`) the measure was taken in: present only for a
|
|
11663
|
-
* `sum | avg | min | max` over a currency attribute that met at least one
|
|
11679
|
+
* `sum | cumulative | avg | min | max` over a currency attribute that met at least one
|
|
11664
11680
|
* record, in the current or the previous period, all in that one currency:
|
|
11665
11681
|
* write the amounts in it, not in the attribute's `defaultCurrency`. Absent
|
|
11666
11682
|
* when several were met: the answer is then per currency (`byCurrency`).
|
|
@@ -11681,8 +11697,11 @@ export interface RecordAggregates {
|
|
|
11681
11697
|
* `truncated` says so.
|
|
11682
11698
|
*/
|
|
11683
11699
|
export declare const MAX_AGGREGATE_GROUPS = 100;
|
|
11684
|
-
/**
|
|
11685
|
-
|
|
11700
|
+
/**
|
|
11701
|
+
* What an aggregate measures: the records, or a number / currency attribute's
|
|
11702
|
+
* values. `cumulative` is a sum running along a date grouping, oldest first.
|
|
11703
|
+
*/
|
|
11704
|
+
export declare const AGGREGATE_MEASURES: readonly ["count", "sum", "cumulative", "avg", "min", "max"];
|
|
11686
11705
|
export type AggregateMeasure = (typeof AGGREGATE_MEASURES)[number];
|
|
11687
11706
|
/** The date groupings, as {@link AggregateBucket} names them. */
|
|
11688
11707
|
export declare const AGGREGATE_BUCKETS: readonly ["day", "week", "month", "quarter", "year"];
|
|
@@ -13810,6 +13829,7 @@ declare const resolvedRecentActivitySchema: z$2.ZodObject<{
|
|
|
13810
13829
|
execute: "execute";
|
|
13811
13830
|
}>;
|
|
13812
13831
|
focus: z$2.ZodBoolean;
|
|
13832
|
+
personConversation: z$2.ZodBoolean;
|
|
13813
13833
|
workModeVersion: z$2.ZodNumber;
|
|
13814
13834
|
version: z$2.ZodNumber;
|
|
13815
13835
|
loadedToolsets: z$2.ZodArray<z$2.ZodString>;
|
|
@@ -18376,6 +18396,7 @@ export declare const METRIC_BLOCK: BlockDefinition<"metric", import("zod").ZodOb
|
|
|
18376
18396
|
readonly measure: ListableBlockInput<"enum", import("zod").ZodEnum<{
|
|
18377
18397
|
avg: "avg";
|
|
18378
18398
|
count: "count";
|
|
18399
|
+
cumulative: "cumulative";
|
|
18379
18400
|
max: "max";
|
|
18380
18401
|
min: "min";
|
|
18381
18402
|
sum: "sum";
|
|
@@ -18495,6 +18516,7 @@ export declare const CHART_BLOCK: BlockDefinition<"chart", import("zod").ZodObje
|
|
|
18495
18516
|
readonly measure: ListableBlockInput<"enum", import("zod").ZodEnum<{
|
|
18496
18517
|
avg: "avg";
|
|
18497
18518
|
count: "count";
|
|
18519
|
+
cumulative: "cumulative";
|
|
18498
18520
|
max: "max";
|
|
18499
18521
|
min: "min";
|
|
18500
18522
|
sum: "sum";
|
|
@@ -18800,6 +18822,7 @@ export declare const NATIVE_BLOCKS: readonly [BlockDefinition<"artifact_preview"
|
|
|
18800
18822
|
readonly measure: ListableBlockInput<"enum", import("zod").ZodEnum<{
|
|
18801
18823
|
avg: "avg";
|
|
18802
18824
|
count: "count";
|
|
18825
|
+
cumulative: "cumulative";
|
|
18803
18826
|
max: "max";
|
|
18804
18827
|
min: "min";
|
|
18805
18828
|
sum: "sum";
|
|
@@ -18918,6 +18941,7 @@ export declare const NATIVE_BLOCKS: readonly [BlockDefinition<"artifact_preview"
|
|
|
18918
18941
|
readonly measure: ListableBlockInput<"enum", import("zod").ZodEnum<{
|
|
18919
18942
|
avg: "avg";
|
|
18920
18943
|
count: "count";
|
|
18944
|
+
cumulative: "cumulative";
|
|
18921
18945
|
max: "max";
|
|
18922
18946
|
min: "min";
|
|
18923
18947
|
sum: "sum";
|
|
@@ -19163,6 +19187,8 @@ declare abstract class Measures<TB, R> {
|
|
|
19163
19187
|
protected abstract measured(measure: AggregateMeasure, attribute?: string): R;
|
|
19164
19188
|
count(): R;
|
|
19165
19189
|
sum(attribute: MeasurableAttribute<TB>): R;
|
|
19190
|
+
/** The sum running along a date grouping: each period reads the total through it. */
|
|
19191
|
+
cumulative(attribute: MeasurableAttribute<TB>): R;
|
|
19166
19192
|
avg(attribute: MeasurableAttribute<TB>): R;
|
|
19167
19193
|
min(attribute: MeasurableAttribute<TB>): R;
|
|
19168
19194
|
max(attribute: MeasurableAttribute<TB>): R;
|
|
@@ -20826,11 +20852,13 @@ export declare const EMAIL_DIRECTIONS: readonly ["inbound", "outbound"];
|
|
|
20826
20852
|
export type EmailDirection = (typeof EMAIL_DIRECTIONS)[number];
|
|
20827
20853
|
export type MailboxReadState = "all" | "unread" | "read";
|
|
20828
20854
|
/**
|
|
20829
|
-
* Where the mailbox looks: the inbox, the drafts,
|
|
20830
|
-
* or trashed.
|
|
20831
|
-
*
|
|
20855
|
+
* Where the mailbox looks: the inbox, the drafts, what the viewer sent, or
|
|
20856
|
+
* what they archived or trashed. `sent` is a filter, not a place mail is moved
|
|
20857
|
+
* into: the threads holding a message the viewer sent outside the trash,
|
|
20858
|
+
* wherever they sit. Read state is not a location: it stays the « Non lues »
|
|
20859
|
+
* Filters condition (`readState`), combinable with any of them.
|
|
20832
20860
|
*/
|
|
20833
|
-
export type MailboxLocation = "inbox" | "drafts" | "archived" | "trash";
|
|
20861
|
+
export type MailboxLocation = "inbox" | "sent" | "drafts" | "archived" | "trash";
|
|
20834
20862
|
export type ConnectionStatus = (typeof CONNECTION_STATUS_IDS)[number];
|
|
20835
20863
|
/**
|
|
20836
20864
|
* One triage gesture on mail (spec 2026-10-25 § 4): read state, or a move to
|
|
@@ -25825,6 +25853,7 @@ export declare const agentSessionSchema: z$2.ZodObject<{
|
|
|
25825
25853
|
execute: "execute";
|
|
25826
25854
|
}>;
|
|
25827
25855
|
focus: z$2.ZodBoolean;
|
|
25856
|
+
personConversation: z$2.ZodBoolean;
|
|
25828
25857
|
workModeVersion: z$2.ZodNumber;
|
|
25829
25858
|
version: z$2.ZodNumber;
|
|
25830
25859
|
loadedToolsets: z$2.ZodArray<z$2.ZodString>;
|
|
@@ -25973,6 +26002,7 @@ export declare const setAgentSessionWorkPostureResultSchema: z$2.ZodDiscriminate
|
|
|
25973
26002
|
execute: "execute";
|
|
25974
26003
|
}>;
|
|
25975
26004
|
focus: z$2.ZodBoolean;
|
|
26005
|
+
personConversation: z$2.ZodBoolean;
|
|
25976
26006
|
workModeVersion: z$2.ZodNumber;
|
|
25977
26007
|
version: z$2.ZodNumber;
|
|
25978
26008
|
loadedToolsets: z$2.ZodArray<z$2.ZodString>;
|
|
@@ -26118,6 +26148,7 @@ export declare const setAgentSessionWorkPostureResultSchema: z$2.ZodDiscriminate
|
|
|
26118
26148
|
execute: "execute";
|
|
26119
26149
|
}>;
|
|
26120
26150
|
focus: z$2.ZodBoolean;
|
|
26151
|
+
personConversation: z$2.ZodBoolean;
|
|
26121
26152
|
workModeVersion: z$2.ZodNumber;
|
|
26122
26153
|
version: z$2.ZodNumber;
|
|
26123
26154
|
loadedToolsets: z$2.ZodArray<z$2.ZodString>;
|
|
@@ -27940,6 +27971,7 @@ export declare const agentDefinitionSchema: z$2.ZodObject<{
|
|
|
27940
27971
|
maxRetries: z$2.ZodOptional<z$2.ZodNumber>;
|
|
27941
27972
|
}, z$2.core.$strip>>;
|
|
27942
27973
|
autoDecide: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
27974
|
+
singleConversation: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
27943
27975
|
active: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
27944
27976
|
scheduleNextRunAt: z$2.ZodOptional<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
27945
27977
|
viewerAccess: z$2.ZodOptional<z$2.ZodEnum<{
|
|
@@ -28123,6 +28155,7 @@ export declare const agentSetupResponseSchema: z$2.ZodObject<{
|
|
|
28123
28155
|
maxRetries: z$2.ZodOptional<z$2.ZodNumber>;
|
|
28124
28156
|
}, z$2.core.$strip>>;
|
|
28125
28157
|
autoDecide: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
28158
|
+
singleConversation: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
28126
28159
|
active: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
28127
28160
|
scheduleNextRunAt: z$2.ZodOptional<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
|
|
28128
28161
|
viewerAccess: z$2.ZodOptional<z$2.ZodEnum<{
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* createObjectValidator, etc.) are intentionally package-private — consumers
|
|
8
8
|
* should use createFormAttributeValidator() as the single entry point.
|
|
9
9
|
*/
|
|
10
|
-
import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../record-query-
|
|
10
|
+
import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../record-query-BY-r2Ck3.mjs";
|
|
11
11
|
export { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, type ValidationMessages, type ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys };
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* createObjectValidator, etc.) are intentionally package-private — consumers
|
|
8
8
|
* should use createFormAttributeValidator() as the single entry point.
|
|
9
9
|
*/
|
|
10
|
-
import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../index-
|
|
10
|
+
import { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, ValidationMessages, ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys } from "../index-CTEU8_BN.js";
|
|
11
11
|
export { DEFAULT_VALIDATION_MESSAGES, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, type ValidationMessages, type ValidationResult, WIRE_OFFERED_BASE_CONFIG, WIRE_OMITTED_CONFIG_KEYS, attributeConfigSchemas, collectionContentSourceSchema, colorIdSchema, contentViewDefinitionSchema, createAttributeValidator, createFormAttributeValidator, draftContentViewDefinitionSchema, formatZodErrors, getAttributeConfigSchema, getAttributeConfigWriteSchema, iconNameSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, selectOptionWriteSchema, statusGroupSchema, statusOptionWriteSchema, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow, wireHiddenTypeConfigMask, wireOmittedConfigKeysFor, withoutUnknownOptionKeys };
|