@keystrokehq/keystroke 1.0.27 → 1.0.28
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/action.cjs +1 -1
- package/dist/action.mjs +1 -1
- package/dist/agent.cjs +3 -3
- package/dist/agent.mjs +3 -3
- package/dist/app.cjs +1 -1
- package/dist/app.mjs +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.mjs +1 -1
- package/dist/credentials.cjs +1 -1
- package/dist/credentials.mjs +1 -1
- package/dist/{dist-D4eR5y3s.cjs → dist-BzUe51qj.cjs} +5 -3
- package/dist/dist-BzUe51qj.cjs.map +1 -0
- package/dist/{dist-CyC1Fjzk.mjs → dist-Ca2IO2Fx.mjs} +5 -3
- package/dist/dist-Ca2IO2Fx.mjs.map +1 -0
- package/dist/{dist-Djn_wU_d.cjs → dist-CfckkIpt.cjs} +11 -3
- package/dist/dist-CfckkIpt.cjs.map +1 -0
- package/dist/{dist-CY_Jygsh.mjs → dist-CuPZJCMc.mjs} +3 -3
- package/dist/{dist-CY_Jygsh.mjs.map → dist-CuPZJCMc.mjs.map} +1 -1
- package/dist/{dist-rXBu7BdX.mjs → dist-DITzMH5H.mjs} +11 -3
- package/dist/dist-DITzMH5H.mjs.map +1 -0
- package/dist/{dist-CIAJ_dc3.cjs → dist-ME6DBCVD.cjs} +3 -3
- package/dist/{dist-CIAJ_dc3.cjs.map → dist-ME6DBCVD.cjs.map} +1 -1
- package/dist/index-B1YicUCL.d.cts.map +1 -1
- package/dist/index-B1YicUCL.d.mts.map +1 -1
- package/dist/index-CGHk6JeR.d.mts.map +1 -1
- package/dist/index-DY2poEgq.d.cts.map +1 -1
- package/dist/{mistral-1FVB3xZQ.mjs → mistral-CkM_GBNT.mjs} +2 -2
- package/dist/{mistral-1FVB3xZQ.mjs.map → mistral-CkM_GBNT.mjs.map} +1 -1
- package/dist/{mistral-bpjTqWMv.cjs → mistral-DUs5ePfb.cjs} +2 -2
- package/dist/{mistral-bpjTqWMv.cjs.map → mistral-DUs5ePfb.cjs.map} +1 -1
- package/dist/{sse-B5Nydy6C.cjs → sse-CQ287z_7.cjs} +2 -2
- package/dist/{sse-B5Nydy6C.cjs.map → sse-CQ287z_7.cjs.map} +1 -1
- package/dist/{sse-BLq6yGPO.mjs → sse-CXokDbu2.mjs} +2 -2
- package/dist/{sse-BLq6yGPO.mjs.map → sse-CXokDbu2.mjs.map} +1 -1
- package/dist/trigger.cjs +1 -1
- package/dist/trigger.mjs +1 -1
- package/dist/workflow.cjs +1 -1
- package/dist/workflow.mjs +1 -1
- package/package.json +3 -3
- package/dist/dist-CyC1Fjzk.mjs.map +0 -1
- package/dist/dist-D4eR5y3s.cjs.map +0 -1
- package/dist/dist-Djn_wU_d.cjs.map +0 -1
- package/dist/dist-rXBu7BdX.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dist-CIAJ_dc3.cjs","names":["z","withSpan","logSystem","captureConsole","normalizeCredentialList","getActionCredentialRequirements","resolveActionCredentials","runWithMcpCredentialContext","executeAction","AsyncLocalStorage","registerWorkflowRunGetter","getRunSignal","getWorkflowRunHandle"],"sources":["../../workflow/dist/index.mjs"],"sourcesContent":["import { z } from \"zod\";\nimport { executeAction, getActionCredentialRequirements, getRunSignal, getWorkflowRunHandle, normalizeCredentialList, registerWorkflowRunGetter, runWithMcpCredentialContext } from \"@keystrokehq/action\";\nimport { captureConsole, logSystem, withSpan } from \"@keystrokehq/tracing\";\nimport { resolveActionCredentials } from \"@keystrokehq/credentials\";\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n//#region src/run-canceled-error.ts\nvar RunCanceledError = class extends Error {\n\tconstructor(runId) {\n\t\tsuper(runId ? `Workflow run ${runId} was canceled` : \"Workflow run was canceled\");\n\t\tthis.name = \"RunCanceledError\";\n\t}\n};\nfunction isRunCanceledError(error) {\n\treturn error instanceof RunCanceledError;\n}\n//#endregion\n//#region src/workflow-definition.ts\nconst zodSchema = z.custom((v) => v instanceof z.ZodType, \"must be a Zod schema\");\n/** Runtime validation for an unbranded workflow definition. */\nconst workflowCoreSchema = z.object({\n\tslug: z.string().trim().min(1),\n\tname: z.string().optional(),\n\tdescription: z.string().optional(),\n\tsubscription: z.object({ mode: z.enum([\"system\", \"subscribable\"]).optional() }).optional(),\n\tinput: zodSchema,\n\toutput: zodSchema,\n\trun: z.function()\n});\nconst WORKFLOW = Symbol.for(\"keystroke.workflow\");\n/**\n* Validates brand + shape via `workflowCoreSchema` so discovery and guards\n* reject malformed definitions.\n*/\nfunction isWorkflow(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\tif (!(WORKFLOW in value) || value[WORKFLOW] !== true) return false;\n\treturn workflowCoreSchema.safeParse(value).success;\n}\n//#endregion\n//#region src/define-workflow.ts\nfunction defineWorkflow(def) {\n\tconst result = workflowCoreSchema.safeParse(def);\n\tif (!result.success) throw new Error(`Invalid workflow definition: ${formatIssues(result.error.issues)}`);\n\treturn {\n\t\t...result.data,\n\t\t[WORKFLOW]: true\n\t};\n}\nfunction formatIssues(issues) {\n\treturn issues.map((issue) => {\n\t\treturn `${issue.path.length > 0 ? `${issue.path.join(\".\")}: ` : \"\"}${issue.message}`;\n\t}).join(\"; \");\n}\n//#endregion\n//#region src/replay/error.ts\nfunction serializeWorkflowError(error) {\n\tif (error instanceof Error) return {\n\t\tname: error.name,\n\t\tmessage: error.message\n\t};\n\treturn { message: String(error) };\n}\n/** Rebuild an Error from a recorded error so replay re-raises the same failure. */\nfunction deserializeWorkflowError(data) {\n\tconst serialized = data;\n\tconst error = new Error(serialized?.message ?? \"Workflow step failed\");\n\tif (serialized?.name) error.name = serialized.name;\n\treturn error;\n}\n//#endregion\n//#region src/replay/duration.ts\nconst UNIT_MS = {\n\tms: 1,\n\ts: 1e3,\n\tm: 6e4,\n\th: 36e5,\n\td: 864e5\n};\n/** Resolve a sleep duration to an absolute resume time. */\nfunction resolveResumeAt(duration, now = /* @__PURE__ */ new Date()) {\n\tif (duration instanceof Date) return duration;\n\tif (typeof duration === \"number\") return new Date(now.getTime() + Math.max(0, duration));\n\treturn new Date(now.getTime() + parseDurationToMs(duration));\n}\nfunction parseDurationToMs(value) {\n\tconst match = /^(\\d+(?:\\.\\d+)?)\\s*(ms|s|m|h|d)$/.exec(value.trim());\n\tif (!match) throw new Error(`Invalid sleep duration \"${value}\". Use a number of ms, a Date, or a string like \"5s\", \"10m\", \"1h\".`);\n\tconst amount = Number(match[1]);\n\tconst unit = match[2];\n\treturn Math.round(amount * UNIT_MS[unit]);\n}\n//#endregion\n//#region src/replay/events-consumer.ts\n/** Indexes replay events by correlationId for O(1) cache-hit checks during replay. */\nvar EventsConsumer = class {\n\tbyCorrelationId = /* @__PURE__ */ new Map();\n\tconstructor(events) {\n\t\tfor (const event of events) {\n\t\t\tif (!event.correlationId) continue;\n\t\t\tconst list = this.byCorrelationId.get(event.correlationId);\n\t\t\tif (list) list.push(event);\n\t\t\telse this.byCorrelationId.set(event.correlationId, [event]);\n\t\t}\n\t}\n\tevents(correlationId) {\n\t\treturn this.byCorrelationId.get(correlationId) ?? [];\n\t}\n\thasEventType(correlationId, type) {\n\t\treturn this.events(correlationId).some((event) => event.type === type);\n\t}\n\t/**\n\t* Cache lookup for a step. Returns the recorded output on a `step_completed`,\n\t* re-raises the recorded error on a terminal `step_failed` (so a permanently\n\t* failed step is not re-executed), and otherwise reports a miss — including\n\t* when only `step_retrying` events exist (the step re-runs on the next pass).\n\t*/\n\tgetStepResult(correlationId) {\n\t\tconst events = this.events(correlationId);\n\t\tconst failed = events.find((event) => event.type === \"step_failed\");\n\t\tif (failed) throw deserializeWorkflowError(failed.data);\n\t\tconst completed = events.find((event) => event.type === \"step_completed\");\n\t\tif (completed) return {\n\t\t\tcompleted: true,\n\t\t\tresult: completed.data\n\t\t};\n\t\treturn { completed: false };\n\t}\n\t/** Number of prior `step_retrying` events recorded for a step (= failed attempts so far). */\n\tcountRetrying(correlationId) {\n\t\treturn this.events(correlationId).filter((event) => event.type === \"step_retrying\").length;\n\t}\n\tisSleepCompleted(correlationId) {\n\t\treturn this.hasEventType(correlationId, \"sleep_completed\");\n\t}\n\t/** Returns the persisted resumeAt for a scheduled-but-not-completed sleep, if any. */\n\tgetSleepResumeAt(correlationId) {\n\t\tconst scheduled = this.events(correlationId).find((event) => event.type === \"sleep_scheduled\");\n\t\tif (!scheduled) return;\n\t\tconst data = scheduled.data;\n\t\treturn data?.resumeAt ? new Date(data.resumeAt) : void 0;\n\t}\n\tgetHookToken(correlationId) {\n\t\treturn (this.events(correlationId).find((event) => event.type === \"hook_created\")?.data)?.token;\n\t}\n\tgetHookResult(correlationId) {\n\t\tconst resumed = this.events(correlationId).find((event) => event.type === \"hook_resumed\");\n\t\tif (!resumed) return { resolved: false };\n\t\treturn {\n\t\t\tresolved: true,\n\t\t\tpayload: resumed.data?.payload\n\t\t};\n\t}\n};\n//#endregion\n//#region src/replay/suspension.ts\n/** A promise that never settles — returned by a suspending primitive so the body parks. */\nfunction createPendingPromise() {\n\treturn new Promise(() => {});\n}\n/**\n* Collects pending items requested within a single tick and resolves once, so\n* parallel suspensions (e.g. Promise.all of two sleeps) batch into one suspension.\n*/\nvar SuspensionCoordinator = class {\n\titems = /* @__PURE__ */ new Map();\n\tscheduled = false;\n\tresolve;\n\tpromise;\n\tconstructor() {\n\t\tthis.promise = new Promise((resolve) => {\n\t\t\tthis.resolve = resolve;\n\t\t});\n\t}\n\trequest(item) {\n\t\tthis.items.set(item.correlationId, item);\n\t\tif (!this.scheduled) {\n\t\t\tthis.scheduled = true;\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tthis.resolve([...this.items.values()]);\n\t\t\t});\n\t\t}\n\t}\n\twaitForSuspension() {\n\t\treturn this.promise;\n\t}\n};\n//#endregion\n//#region src/replay/replay-context.ts\nfunction createReplayState(params) {\n\treturn {\n\t\trunId: params.runId,\n\t\tconsumer: params.consumer,\n\t\tcoordinator: params.coordinator,\n\t\teventLog: params.eventLog,\n\t\tnewEvents: [],\n\t\tnow: params.now ?? /* @__PURE__ */ new Date(),\n\t\thookBaseUrl: params.hookBaseUrl,\n\t\tsleepCounter: 0,\n\t\thookCounter: 0,\n\t\tstepOccurrences: /* @__PURE__ */ new Map(),\n\t\tstepCorrelationIds: /* @__PURE__ */ new Set()\n\t};\n}\n/**\n* Allocate the correlation id for a step. An explicit `.stepId(x)` maps to\n* `step:x` (and must be unique within a run); otherwise the key is\n* `step:<actionKey>#<occurrence>` so that two calls to the same action get\n* distinct, replay-stable ids and inserting an unrelated call never shifts the\n* ids of later calls (unlike a single global ordinal).\n*/\nfunction nextStepCorrelationId(state, actionKey, explicitId) {\n\tif (explicitId !== void 0) {\n\t\tconst correlationId = `step:${explicitId}`;\n\t\tif (state.stepCorrelationIds.has(correlationId)) throw new Error(`Duplicate step id \"${explicitId}\" in workflow run ${state.runId}`);\n\t\tstate.stepCorrelationIds.add(correlationId);\n\t\treturn correlationId;\n\t}\n\tconst occurrence = state.stepOccurrences.get(actionKey) ?? 0;\n\tstate.stepOccurrences.set(actionKey, occurrence + 1);\n\tconst correlationId = `step:${actionKey}#${occurrence}`;\n\tstate.stepCorrelationIds.add(correlationId);\n\treturn correlationId;\n}\nfunction createSleep(state) {\n\treturn function sleep(duration) {\n\t\tconst correlationId = `sleep#${state.sleepCounter++}`;\n\t\tif (state.consumer.isSleepCompleted(correlationId)) return Promise.resolve();\n\t\tconst scheduledResumeAt = state.consumer.getSleepResumeAt(correlationId);\n\t\tconst resumeAt = scheduledResumeAt ?? resolveResumeAt(duration, state.now);\n\t\tif (scheduledResumeAt && resumeAt.getTime() <= state.now.getTime()) {\n\t\t\tstate.newEvents.push({\n\t\t\t\tid: `sleep_completed:${state.runId}:${correlationId}`,\n\t\t\t\trunId: state.runId,\n\t\t\t\ttype: \"sleep_completed\",\n\t\t\t\tcorrelationId\n\t\t\t});\n\t\t\treturn Promise.resolve();\n\t\t}\n\t\tif (!scheduledResumeAt) state.newEvents.push({\n\t\t\tid: `sleep_scheduled:${state.runId}:${correlationId}`,\n\t\t\trunId: state.runId,\n\t\t\ttype: \"sleep_scheduled\",\n\t\t\tcorrelationId,\n\t\t\tdata: { resumeAt: resumeAt.toISOString() }\n\t\t});\n\t\tstate.coordinator.request({\n\t\t\tkind: \"sleep\",\n\t\t\tcorrelationId,\n\t\t\tresumeAt\n\t\t});\n\t\treturn createPendingPromise();\n\t};\n}\nfunction createHook(state) {\n\treturn function hook(options) {\n\t\tconst correlationId = `hook#${state.hookCounter++}`;\n\t\tconst token = options?.token ?? state.consumer.getHookToken(correlationId) ?? `hook_${crypto.randomUUID()}`;\n\t\treturn {\n\t\t\ttoken,\n\t\t\tresumeUrl: state.hookBaseUrl ? `${state.hookBaseUrl}/hooks/${token}/resume` : `/hooks/${token}/resume`,\n\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\tconst result = state.consumer.getHookResult(correlationId);\n\t\t\t\tif (result.resolved) {\n\t\t\t\t\tconst payload = options?.schema ? options.schema.parse(result.payload) : result.payload;\n\t\t\t\t\treturn Promise.resolve(payload).then(onFulfilled, onRejected);\n\t\t\t\t}\n\t\t\t\tif (!state.consumer.hasEventType(correlationId, \"hook_created\")) state.newEvents.push({\n\t\t\t\t\tid: `hook_created:${state.runId}:${correlationId}`,\n\t\t\t\t\trunId: state.runId,\n\t\t\t\t\ttype: \"hook_created\",\n\t\t\t\t\tcorrelationId,\n\t\t\t\t\tdata: { token }\n\t\t\t\t});\n\t\t\t\tstate.coordinator.request({\n\t\t\t\t\tkind: \"hook\",\n\t\t\t\t\tcorrelationId,\n\t\t\t\t\ttoken\n\t\t\t\t});\n\t\t\t\treturn createPendingPromise().then(onFulfilled, onRejected);\n\t\t\t}\n\t\t};\n\t};\n}\n//#endregion\n//#region src/run-durable-step.ts\n/**\n* Shared durable-step shell: resolve a stable `correlation_id`, short-circuit\n* from the event log on a cache hit, otherwise execute and append\n* `step_completed` immediately (per-step crash durability). A thrown step\n* appends `step_retrying` (non-fatal, re-run on the next attempt) and\n* rethrows; the terminal `step_failed` is written by the job handler once the\n* queue exhausts retries.\n*/\nasync function runDurableStep(state, options) {\n\tconst { runId, consumer, eventLog } = state;\n\tgetRunSignal().throwIfAborted();\n\tconst correlationId = nextStepCorrelationId(state, options.key, options.id);\n\tconst cached = consumer.getStepResult(correlationId);\n\tconst metadata = {\n\t\trunId,\n\t\t[options.metadataKey]: options.key,\n\t\tcorrelationId\n\t};\n\tif (cached.completed) {\n\t\tawait withSpan({\n\t\t\tkind: options.kind,\n\t\t\tname: options.key,\n\t\t\trefId: `${runId}:${correlationId}`,\n\t\t\tmetadata: {\n\t\t\t\t...metadata,\n\t\t\t\treplayed: true\n\t\t\t}\n\t\t}, async () => {\n\t\t\tawait logSystem(\"info\", options.replayMessage, metadata);\n\t\t});\n\t\treturn options.parseCached ? options.parseCached(cached.result) : cached.result;\n\t}\n\treturn withSpan({\n\t\tkind: options.kind,\n\t\tname: options.key,\n\t\trefId: `${runId}:${correlationId}`,\n\t\tmetadata\n\t}, async () => captureConsole(async () => {\n\t\ttry {\n\t\t\tconst result = await options.execute(correlationId);\n\t\t\tawait eventLog.append({\n\t\t\t\tid: `step_completed:${runId}:${correlationId}`,\n\t\t\t\trunId,\n\t\t\t\ttype: \"step_completed\",\n\t\t\t\tcorrelationId,\n\t\t\t\tdata: result\n\t\t\t});\n\t\t\treturn result;\n\t\t} catch (error) {\n\t\t\tconst attempt = consumer.countRetrying(correlationId);\n\t\t\tawait eventLog.append({\n\t\t\t\tid: `step_retrying:${runId}:${correlationId}:${attempt}`,\n\t\t\t\trunId,\n\t\t\t\ttype: \"step_retrying\",\n\t\t\t\tcorrelationId,\n\t\t\t\tdata: serializeWorkflowError(error)\n\t\t\t});\n\t\t\tstate.failedCorrelationId = correlationId;\n\t\t\tthrow error;\n\t\t}\n\t}));\n}\n//#endregion\n//#region src/create-action-runner.ts\nfunction withCredentialScopeOverride(requirements, scope) {\n\tif (!requirements || !scope) return requirements;\n\treturn normalizeCredentialList(requirements).map((requirement) => ({\n\t\t...requirement,\n\t\tscope\n\t}));\n}\n/** Builds the per-run action runner; durability lives in {@link runDurableStep}. */\nfunction createActionRunner(state, options = {}) {\n\treturn (action, input, runOptions) => runDurableStep(state, {\n\t\tkind: \"action\",\n\t\tkey: action.slug,\n\t\tid: runOptions?.id,\n\t\tmetadataKey: \"actionKey\",\n\t\treplayMessage: \"action replayed from checkpoint\",\n\t\tparseCached: (cached) => action.output.parse(cached),\n\t\texecute: async (correlationId) => {\n\t\t\tconst requirements = withCredentialScopeOverride(getActionCredentialRequirements(action), runOptions?.credentialScope);\n\t\t\tconst credentials = requirements?.length ? await resolveActionCredentials(requirements, {\n\t\t\t\tresolveCredentials: options.resolveCredentials,\n\t\t\t\tcontext: options.credentialContext,\n\t\t\t\toauthAdapter: options.oauthAdapter,\n\t\t\t\tconsumer: {\n\t\t\t\t\tkind: \"action\",\n\t\t\t\t\tname: action.slug,\n\t\t\t\t\tid: correlationId\n\t\t\t\t}\n\t\t\t}) : {};\n\t\t\treturn runWithMcpCredentialContext({\n\t\t\t\t...options.mcpCredentialContext,\n\t\t\t\tconsumerId: correlationId\n\t\t\t}, () => executeAction(action, input, credentials));\n\t\t}\n\t});\n}\n//#endregion\n//#region src/create-agent-step-runner.ts\n/**\n* Builds the per-run agent runner: each `agent.prompt()` in a workflow body\n* becomes a durable step keyed `step:<agentKey>#<occurrence>` (same scheme as\n* actions). The actual prompt execution is delegated to `runAgent`, supplied\n* by the host (server) via `executeWorkflow({ runAgent })`.\n*/\nfunction createAgentStepRunner(state, runAgent) {\n\treturn (agent, input, options) => {\n\t\tconst slug = agent.slug;\n\t\treturn runDurableStep(state, {\n\t\t\tkind: \"agent_session\",\n\t\t\tkey: slug,\n\t\t\tid: options?.id,\n\t\t\tmetadataKey: \"agentKey\",\n\t\t\treplayMessage: \"agent step replayed from checkpoint\",\n\t\t\texecute: (_correlationId) => runAgent(agent, input, options?.runPrompt)\n\t\t});\n\t};\n}\n//#endregion\n//#region src/create-llm-step-runner.ts\n/**\n* Builds the per-run LLM runner: each `promptLlm()` in a workflow body becomes a\n* durable step keyed `step:promptLlm#<occurrence>`. The actual LLM call is\n* delegated to `runLlm`, supplied by the host (server) via `executeWorkflow({ runLlm })`.\n*/\nfunction createLlmStepRunner(state, runLlm) {\n\treturn (opts) => runDurableStep(state, {\n\t\tkind: \"llm\",\n\t\tkey: \"promptLlm\",\n\t\tid: opts.stepId,\n\t\tmetadataKey: \"llmKey\",\n\t\treplayMessage: \"llm step replayed from checkpoint\",\n\t\tparseCached: (cached) => opts.outputSchema ? opts.outputSchema.parse(cached) : cached,\n\t\texecute: (_correlationId) => runLlm(opts)\n\t});\n}\n//#endregion\n//#region src/run-context.ts\nconst storage = new AsyncLocalStorage();\nregisterWorkflowRunGetter(() => {\n\tconst store = storage.getStore();\n\tif (!store) return;\n\treturn {\n\t\tactionRunner: store.actionRunner,\n\t\tagentRunner: store.agentRunner,\n\t\tllmRunner: store.llmRunner\n\t};\n});\nfunction runWithWorkflowContext(store, fn) {\n\treturn storage.run(store, fn);\n}\n//#endregion\n//#region src/replay/memory-event-log.ts\n/** In-memory durable log for inline execution and tests. */\nvar MemoryEventLog = class {\n\tevents = [];\n\tids = /* @__PURE__ */ new Set();\n\tasync append(event) {\n\t\tconst id = event.id ?? crypto.randomUUID();\n\t\tif (this.ids.has(id)) return false;\n\t\tthis.ids.add(id);\n\t\tthis.events.push({\n\t\t\tid,\n\t\t\trunId: event.runId,\n\t\t\tseq: this.events.length,\n\t\t\ttype: event.type,\n\t\t\tcorrelationId: event.correlationId ?? null,\n\t\t\tdata: event.data ?? null\n\t\t});\n\t\treturn true;\n\t}\n\tasync listReplay(runId) {\n\t\treturn this.events.filter((event) => event.runId === runId).map((event) => ({ ...event }));\n\t}\n};\n//#endregion\n//#region src/execute-workflow.ts\n/**\n* The single way to run a workflow: replay its event log from the top, execute\n* un-cached primitives, and either complete/fail or suspend at the first\n* un-satisfied sleep/hook. New events (sleep_scheduled/sleep_completed/\n* hook_created/run_completed/run_failed) are flushed before returning.\n*\n* Durability comes entirely from the log — a suspended run resumes by calling\n* this again with the same `runId` and event log once the sleep is due or the\n* hook is resumed.\n*/\nasync function executeWorkflow(workflow, input, options = {}) {\n\tconst runId = options.runId ?? crypto.randomUUID();\n\tconst eventLog = options.eventLog ?? new MemoryEventLog();\n\tconst signal = getRunSignal();\n\tconst consumer = new EventsConsumer(await eventLog.listReplay(runId));\n\tconst coordinator = new SuspensionCoordinator();\n\tconst state = createReplayState({\n\t\trunId,\n\t\tconsumer,\n\t\tcoordinator,\n\t\teventLog,\n\t\thookBaseUrl: options.hookBaseUrl,\n\t\tnow: options.now\n\t});\n\tconst actionRunner = createActionRunner(state, {\n\t\tresolveCredentials: options.resolveCredentials,\n\t\tcredentialContext: options.credentialContext,\n\t\toauthAdapter: options.oauthAdapter,\n\t\tmcpCredentialContext: { assignmentTarget: {\n\t\t\ttype: \"workflow\",\n\t\t\tkey: workflow.slug\n\t\t} }\n\t});\n\tconst ctx = {\n\t\trunId,\n\t\tsleep: createSleep(state),\n\t\thook: createHook(state),\n\t\t...options.context\n\t};\n\tconst agentRunner = options.runAgent ? createAgentStepRunner(state, options.runAgent) : void 0;\n\tconst llmRunner = options.runLlm ? createLlmStepRunner(state, options.runLlm) : void 0;\n\tconst validatedInput = workflow.input.parse(input);\n\tconst bodyPromise = runWithWorkflowContext({\n\t\tactionRunner,\n\t\tagentRunner,\n\t\tllmRunner,\n\t\trunId\n\t}, () => captureConsole(async () => workflow.run(validatedInput, ctx)));\n\tlet onAbort;\n\tconst waitForAbort = signal.aborted ? Promise.resolve({ type: \"canceled\" }) : new Promise((resolve) => {\n\t\tonAbort = () => resolve({ type: \"canceled\" });\n\t\tsignal.addEventListener(\"abort\", onAbort, { once: true });\n\t});\n\tconst outcome = await Promise.race([\n\t\tbodyPromise.then((output) => ({\n\t\t\ttype: \"done\",\n\t\t\toutput\n\t\t}), (error) => ({\n\t\t\ttype: \"error\",\n\t\t\terror\n\t\t})),\n\t\tcoordinator.waitForSuspension().then((items) => ({\n\t\t\ttype: \"suspended\",\n\t\t\titems\n\t\t})),\n\t\twaitForAbort\n\t]);\n\tif (onAbort) signal.removeEventListener(\"abort\", onAbort);\n\tlet result;\n\tif (outcome.type === \"suspended\") {\n\t\tbodyPromise.catch(() => {});\n\t\tresult = {\n\t\t\tstatus: \"suspended\",\n\t\t\titems: outcome.items\n\t\t};\n\t} else if (outcome.type === \"done\") {\n\t\tconst output = workflow.output.parse(outcome.output);\n\t\tstate.newEvents.push({\n\t\t\tid: `run_completed:${runId}`,\n\t\t\trunId,\n\t\t\ttype: \"run_completed\",\n\t\t\tdata: { output }\n\t\t});\n\t\tresult = {\n\t\t\tstatus: \"completed\",\n\t\t\toutput\n\t\t};\n\t} else if (outcome.type === \"canceled\" || isRunCanceledError(outcome.error)) {\n\t\tbodyPromise.catch(() => {});\n\t\tstate.newEvents.push({\n\t\t\tid: `run_canceled:${runId}`,\n\t\t\trunId,\n\t\t\ttype: \"run_canceled\"\n\t\t});\n\t\tresult = { status: \"canceled\" };\n\t} else result = {\n\t\tstatus: \"failed\",\n\t\terror: outcome.error,\n\t\tfailedCorrelationId: state.failedCorrelationId\n\t};\n\tfor (const event of state.newEvents) await eventLog.append(event);\n\treturn result;\n}\n//#endregion\n//#region src/prompt-llm.ts\nfunction promptLlm(prompt, opts) {\n\tconst handle = getWorkflowRunHandle();\n\tif (!handle?.llmRunner) throw new Error(\"promptLlm must run inside a workflow with an injected llm executor (executeWorkflow({ runLlm })).\");\n\treturn handle.llmRunner({\n\t\tprompt,\n\t\t...opts\n\t});\n}\n//#endregion\nexport { MemoryEventLog, RunCanceledError, defineWorkflow, deserializeWorkflowError, executeWorkflow, isRunCanceledError, isWorkflow, promptLlm, serializeWorkflowError };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;AAMA,IAAI,mBAAmB,cAAc,MAAM;CAC1C,YAAY,OAAO;EAClB,MAAM,QAAQ,gBAAgB,MAAM,iBAAiB,2BAA2B;EAChF,K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AM,EAAE,OAAO;EAChB,CAAC;EACD,SAAS;GACR,QAAQ;GACR;EACD;CACD,OAAO,IAAI,QAAQ,SAAS,cAAc,mBAAmB,QAAQ,KAAK,GAAG;EAC5E,YAAY,YAAY,CAAC,CAAC;EAC1B,MAAM,UAAU,KAAK;GACpB,IAAI,gBAAgB;GACpB;GACA,MAAM;EACP,CAAC;EACD,SAAS,EAAE,QAAQ,WAAW;CAC/B,OAAO,SAAS;EACf,QAAQ;EACR,OAAO,QAAQ;EACf,qBAAqB,MAAM;CAC5B;CACA,KAAK,MAAM,SAAS,MAAM,WAAW,MAAM,SAAS,OAAO,KAAK;CAChE,OAAO;AACR;AAGA,SAAS,UAAU,QAAQ,MAAM;CAChC,MAAM,SAASS,aAAAA,qBAAqB;CACpC,IAAI,CAAC,QAAQ,WAAW,MAAM,IAAI,MAAM,mGAAmG;CAC3I,OAAO,OAAO,UAAU;EACvB;EACA,GAAG;CACJ,CAAC;AACF"}
|
|
1
|
+
{"version":3,"file":"dist-ME6DBCVD.cjs","names":["z","withSpan","logSystem","captureConsole","normalizeCredentialList","getActionCredentialRequirements","resolveActionCredentials","runWithMcpCredentialContext","executeAction","AsyncLocalStorage","registerWorkflowRunGetter","getRunSignal","getWorkflowRunHandle"],"sources":["../../workflow/dist/index.mjs"],"sourcesContent":["import { z } from \"zod\";\nimport { executeAction, getActionCredentialRequirements, getRunSignal, getWorkflowRunHandle, normalizeCredentialList, registerWorkflowRunGetter, runWithMcpCredentialContext } from \"@keystrokehq/action\";\nimport { captureConsole, logSystem, withSpan } from \"@keystrokehq/tracing\";\nimport { resolveActionCredentials } from \"@keystrokehq/credentials\";\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n//#region src/run-canceled-error.ts\nvar RunCanceledError = class extends Error {\n\tconstructor(runId) {\n\t\tsuper(runId ? `Workflow run ${runId} was canceled` : \"Workflow run was canceled\");\n\t\tthis.name = \"RunCanceledError\";\n\t}\n};\nfunction isRunCanceledError(error) {\n\treturn error instanceof RunCanceledError;\n}\n//#endregion\n//#region src/workflow-definition.ts\nconst zodSchema = z.custom((v) => v instanceof z.ZodType, \"must be a Zod schema\");\n/** Runtime validation for an unbranded workflow definition. */\nconst workflowCoreSchema = z.object({\n\tslug: z.string().trim().min(1),\n\tname: z.string().optional(),\n\tdescription: z.string().optional(),\n\tsubscription: z.object({ mode: z.enum([\"system\", \"subscribable\"]).optional() }).optional(),\n\tinput: zodSchema,\n\toutput: zodSchema,\n\trun: z.function()\n});\nconst WORKFLOW = Symbol.for(\"keystroke.workflow\");\n/**\n* Validates brand + shape via `workflowCoreSchema` so discovery and guards\n* reject malformed definitions.\n*/\nfunction isWorkflow(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\tif (!(WORKFLOW in value) || value[WORKFLOW] !== true) return false;\n\treturn workflowCoreSchema.safeParse(value).success;\n}\n//#endregion\n//#region src/define-workflow.ts\nfunction defineWorkflow(def) {\n\tconst result = workflowCoreSchema.safeParse(def);\n\tif (!result.success) throw new Error(`Invalid workflow definition: ${formatIssues(result.error.issues)}`);\n\treturn {\n\t\t...result.data,\n\t\t[WORKFLOW]: true\n\t};\n}\nfunction formatIssues(issues) {\n\treturn issues.map((issue) => {\n\t\treturn `${issue.path.length > 0 ? `${issue.path.join(\".\")}: ` : \"\"}${issue.message}`;\n\t}).join(\"; \");\n}\n//#endregion\n//#region src/replay/error.ts\nfunction serializeWorkflowError(error) {\n\tif (error instanceof Error) return {\n\t\tname: error.name,\n\t\tmessage: error.message\n\t};\n\treturn { message: String(error) };\n}\n/** Rebuild an Error from a recorded error so replay re-raises the same failure. */\nfunction deserializeWorkflowError(data) {\n\tconst serialized = data;\n\tconst error = new Error(serialized?.message ?? \"Workflow step failed\");\n\tif (serialized?.name) error.name = serialized.name;\n\treturn error;\n}\n//#endregion\n//#region src/replay/duration.ts\nconst UNIT_MS = {\n\tms: 1,\n\ts: 1e3,\n\tm: 6e4,\n\th: 36e5,\n\td: 864e5\n};\n/** Resolve a sleep duration to an absolute resume time. */\nfunction resolveResumeAt(duration, now = /* @__PURE__ */ new Date()) {\n\tif (duration instanceof Date) return duration;\n\tif (typeof duration === \"number\") return new Date(now.getTime() + Math.max(0, duration));\n\treturn new Date(now.getTime() + parseDurationToMs(duration));\n}\nfunction parseDurationToMs(value) {\n\tconst match = /^(\\d+(?:\\.\\d+)?)\\s*(ms|s|m|h|d)$/.exec(value.trim());\n\tif (!match) throw new Error(`Invalid sleep duration \"${value}\". Use a number of ms, a Date, or a string like \"5s\", \"10m\", \"1h\".`);\n\tconst amount = Number(match[1]);\n\tconst unit = match[2];\n\treturn Math.round(amount * UNIT_MS[unit]);\n}\n//#endregion\n//#region src/replay/events-consumer.ts\n/** Indexes replay events by correlationId for O(1) cache-hit checks during replay. */\nvar EventsConsumer = class {\n\tbyCorrelationId = /* @__PURE__ */ new Map();\n\tconstructor(events) {\n\t\tfor (const event of events) {\n\t\t\tif (!event.correlationId) continue;\n\t\t\tconst list = this.byCorrelationId.get(event.correlationId);\n\t\t\tif (list) list.push(event);\n\t\t\telse this.byCorrelationId.set(event.correlationId, [event]);\n\t\t}\n\t}\n\tevents(correlationId) {\n\t\treturn this.byCorrelationId.get(correlationId) ?? [];\n\t}\n\thasEventType(correlationId, type) {\n\t\treturn this.events(correlationId).some((event) => event.type === type);\n\t}\n\t/**\n\t* Cache lookup for a step. Returns the recorded output on a `step_completed`,\n\t* re-raises the recorded error on a terminal `step_failed` (so a permanently\n\t* failed step is not re-executed), and otherwise reports a miss — including\n\t* when only `step_retrying` events exist (the step re-runs on the next pass).\n\t*/\n\tgetStepResult(correlationId) {\n\t\tconst events = this.events(correlationId);\n\t\tconst failed = events.find((event) => event.type === \"step_failed\");\n\t\tif (failed) throw deserializeWorkflowError(failed.data);\n\t\tconst completed = events.find((event) => event.type === \"step_completed\");\n\t\tif (completed) return {\n\t\t\tcompleted: true,\n\t\t\tresult: completed.data\n\t\t};\n\t\treturn { completed: false };\n\t}\n\t/** Number of prior `step_retrying` events recorded for a step (= failed attempts so far). */\n\tcountRetrying(correlationId) {\n\t\treturn this.events(correlationId).filter((event) => event.type === \"step_retrying\").length;\n\t}\n\tisSleepCompleted(correlationId) {\n\t\treturn this.hasEventType(correlationId, \"sleep_completed\");\n\t}\n\t/** Returns the persisted resumeAt for a scheduled-but-not-completed sleep, if any. */\n\tgetSleepResumeAt(correlationId) {\n\t\tconst scheduled = this.events(correlationId).find((event) => event.type === \"sleep_scheduled\");\n\t\tif (!scheduled) return;\n\t\tconst data = scheduled.data;\n\t\treturn data?.resumeAt ? new Date(data.resumeAt) : void 0;\n\t}\n\tgetHookToken(correlationId) {\n\t\treturn (this.events(correlationId).find((event) => event.type === \"hook_created\")?.data)?.token;\n\t}\n\tgetHookResult(correlationId) {\n\t\tconst resumed = this.events(correlationId).find((event) => event.type === \"hook_resumed\");\n\t\tif (!resumed) return { resolved: false };\n\t\treturn {\n\t\t\tresolved: true,\n\t\t\tpayload: resumed.data?.payload\n\t\t};\n\t}\n};\n//#endregion\n//#region src/replay/suspension.ts\n/** A promise that never settles — returned by a suspending primitive so the body parks. */\nfunction createPendingPromise() {\n\treturn new Promise(() => {});\n}\n/**\n* Collects pending items requested within a single tick and resolves once, so\n* parallel suspensions (e.g. Promise.all of two sleeps) batch into one suspension.\n*/\nvar SuspensionCoordinator = class {\n\titems = /* @__PURE__ */ new Map();\n\tscheduled = false;\n\tresolve;\n\tpromise;\n\tconstructor() {\n\t\tthis.promise = new Promise((resolve) => {\n\t\t\tthis.resolve = resolve;\n\t\t});\n\t}\n\trequest(item) {\n\t\tthis.items.set(item.correlationId, item);\n\t\tif (!this.scheduled) {\n\t\t\tthis.scheduled = true;\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tthis.resolve([...this.items.values()]);\n\t\t\t});\n\t\t}\n\t}\n\twaitForSuspension() {\n\t\treturn this.promise;\n\t}\n};\n//#endregion\n//#region src/replay/replay-context.ts\nfunction createReplayState(params) {\n\treturn {\n\t\trunId: params.runId,\n\t\tconsumer: params.consumer,\n\t\tcoordinator: params.coordinator,\n\t\teventLog: params.eventLog,\n\t\tnewEvents: [],\n\t\tnow: params.now ?? /* @__PURE__ */ new Date(),\n\t\thookBaseUrl: params.hookBaseUrl,\n\t\tsleepCounter: 0,\n\t\thookCounter: 0,\n\t\tstepOccurrences: /* @__PURE__ */ new Map(),\n\t\tstepCorrelationIds: /* @__PURE__ */ new Set()\n\t};\n}\n/**\n* Allocate the correlation id for a step. An explicit `.stepId(x)` maps to\n* `step:x` (and must be unique within a run); otherwise the key is\n* `step:<actionKey>#<occurrence>` so that two calls to the same action get\n* distinct, replay-stable ids and inserting an unrelated call never shifts the\n* ids of later calls (unlike a single global ordinal).\n*/\nfunction nextStepCorrelationId(state, actionKey, explicitId) {\n\tif (explicitId !== void 0) {\n\t\tconst correlationId = `step:${explicitId}`;\n\t\tif (state.stepCorrelationIds.has(correlationId)) throw new Error(`Duplicate step id \"${explicitId}\" in workflow run ${state.runId}`);\n\t\tstate.stepCorrelationIds.add(correlationId);\n\t\treturn correlationId;\n\t}\n\tconst occurrence = state.stepOccurrences.get(actionKey) ?? 0;\n\tstate.stepOccurrences.set(actionKey, occurrence + 1);\n\tconst correlationId = `step:${actionKey}#${occurrence}`;\n\tstate.stepCorrelationIds.add(correlationId);\n\treturn correlationId;\n}\nfunction createSleep(state) {\n\treturn function sleep(duration) {\n\t\tconst correlationId = `sleep#${state.sleepCounter++}`;\n\t\tif (state.consumer.isSleepCompleted(correlationId)) return Promise.resolve();\n\t\tconst scheduledResumeAt = state.consumer.getSleepResumeAt(correlationId);\n\t\tconst resumeAt = scheduledResumeAt ?? resolveResumeAt(duration, state.now);\n\t\tif (scheduledResumeAt && resumeAt.getTime() <= state.now.getTime()) {\n\t\t\tstate.newEvents.push({\n\t\t\t\tid: `sleep_completed:${state.runId}:${correlationId}`,\n\t\t\t\trunId: state.runId,\n\t\t\t\ttype: \"sleep_completed\",\n\t\t\t\tcorrelationId\n\t\t\t});\n\t\t\treturn Promise.resolve();\n\t\t}\n\t\tif (!scheduledResumeAt) state.newEvents.push({\n\t\t\tid: `sleep_scheduled:${state.runId}:${correlationId}`,\n\t\t\trunId: state.runId,\n\t\t\ttype: \"sleep_scheduled\",\n\t\t\tcorrelationId,\n\t\t\tdata: { resumeAt: resumeAt.toISOString() }\n\t\t});\n\t\tstate.coordinator.request({\n\t\t\tkind: \"sleep\",\n\t\t\tcorrelationId,\n\t\t\tresumeAt\n\t\t});\n\t\treturn createPendingPromise();\n\t};\n}\nfunction createHook(state) {\n\treturn function hook(options) {\n\t\tconst correlationId = `hook#${state.hookCounter++}`;\n\t\tconst token = options?.token ?? state.consumer.getHookToken(correlationId) ?? `hook_${crypto.randomUUID()}`;\n\t\treturn {\n\t\t\ttoken,\n\t\t\tresumeUrl: state.hookBaseUrl ? `${state.hookBaseUrl}/hooks/${token}/resume` : `/hooks/${token}/resume`,\n\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\tconst result = state.consumer.getHookResult(correlationId);\n\t\t\t\tif (result.resolved) {\n\t\t\t\t\tconst payload = options?.schema ? options.schema.parse(result.payload) : result.payload;\n\t\t\t\t\treturn Promise.resolve(payload).then(onFulfilled, onRejected);\n\t\t\t\t}\n\t\t\t\tif (!state.consumer.hasEventType(correlationId, \"hook_created\")) state.newEvents.push({\n\t\t\t\t\tid: `hook_created:${state.runId}:${correlationId}`,\n\t\t\t\t\trunId: state.runId,\n\t\t\t\t\ttype: \"hook_created\",\n\t\t\t\t\tcorrelationId,\n\t\t\t\t\tdata: { token }\n\t\t\t\t});\n\t\t\t\tstate.coordinator.request({\n\t\t\t\t\tkind: \"hook\",\n\t\t\t\t\tcorrelationId,\n\t\t\t\t\ttoken\n\t\t\t\t});\n\t\t\t\treturn createPendingPromise().then(onFulfilled, onRejected);\n\t\t\t}\n\t\t};\n\t};\n}\n//#endregion\n//#region src/run-durable-step.ts\n/**\n* Shared durable-step shell: resolve a stable `correlation_id`, short-circuit\n* from the event log on a cache hit, otherwise execute and append\n* `step_completed` immediately (per-step crash durability). A thrown step\n* appends `step_retrying` (non-fatal, re-run on the next attempt) and\n* rethrows; the terminal `step_failed` is written by the job handler once the\n* queue exhausts retries.\n*/\nasync function runDurableStep(state, options) {\n\tconst { runId, consumer, eventLog } = state;\n\tgetRunSignal().throwIfAborted();\n\tconst correlationId = nextStepCorrelationId(state, options.key, options.id);\n\tconst cached = consumer.getStepResult(correlationId);\n\tconst metadata = {\n\t\trunId,\n\t\t[options.metadataKey]: options.key,\n\t\tcorrelationId\n\t};\n\tif (cached.completed) {\n\t\tawait withSpan({\n\t\t\tkind: options.kind,\n\t\t\tname: options.key,\n\t\t\trefId: `${runId}:${correlationId}`,\n\t\t\tmetadata: {\n\t\t\t\t...metadata,\n\t\t\t\treplayed: true\n\t\t\t}\n\t\t}, async () => {\n\t\t\tawait logSystem(\"info\", options.replayMessage, metadata);\n\t\t});\n\t\treturn options.parseCached ? options.parseCached(cached.result) : cached.result;\n\t}\n\treturn withSpan({\n\t\tkind: options.kind,\n\t\tname: options.key,\n\t\trefId: `${runId}:${correlationId}`,\n\t\tmetadata\n\t}, async () => captureConsole(async () => {\n\t\ttry {\n\t\t\tconst result = await options.execute(correlationId);\n\t\t\tawait eventLog.append({\n\t\t\t\tid: `step_completed:${runId}:${correlationId}`,\n\t\t\t\trunId,\n\t\t\t\ttype: \"step_completed\",\n\t\t\t\tcorrelationId,\n\t\t\t\tdata: result\n\t\t\t});\n\t\t\treturn result;\n\t\t} catch (error) {\n\t\t\tconst attempt = consumer.countRetrying(correlationId);\n\t\t\tawait eventLog.append({\n\t\t\t\tid: `step_retrying:${runId}:${correlationId}:${attempt}`,\n\t\t\t\trunId,\n\t\t\t\ttype: \"step_retrying\",\n\t\t\t\tcorrelationId,\n\t\t\t\tdata: serializeWorkflowError(error)\n\t\t\t});\n\t\t\tstate.failedCorrelationId = correlationId;\n\t\t\tthrow error;\n\t\t}\n\t}));\n}\n//#endregion\n//#region src/create-action-runner.ts\nfunction withCredentialScopeOverride(requirements, scope) {\n\tif (!requirements || !scope) return requirements;\n\treturn normalizeCredentialList(requirements).map((requirement) => ({\n\t\t...requirement,\n\t\tscope\n\t}));\n}\n/** Builds the per-run action runner; durability lives in {@link runDurableStep}. */\nfunction createActionRunner(state, options = {}) {\n\treturn (action, input, runOptions) => runDurableStep(state, {\n\t\tkind: \"action\",\n\t\tkey: action.slug,\n\t\tid: runOptions?.id,\n\t\tmetadataKey: \"actionKey\",\n\t\treplayMessage: \"action replayed from checkpoint\",\n\t\tparseCached: (cached) => action.output.parse(cached),\n\t\texecute: async (correlationId) => {\n\t\t\tconst requirements = withCredentialScopeOverride(getActionCredentialRequirements(action), runOptions?.credentialScope);\n\t\t\tconst credentials = requirements?.length ? await resolveActionCredentials(requirements, {\n\t\t\t\tresolveCredentials: options.resolveCredentials,\n\t\t\t\tcontext: options.credentialContext,\n\t\t\t\toauthAdapter: options.oauthAdapter,\n\t\t\t\tconsumer: {\n\t\t\t\t\tkind: \"action\",\n\t\t\t\t\tname: action.slug,\n\t\t\t\t\tid: correlationId\n\t\t\t\t}\n\t\t\t}) : {};\n\t\t\treturn runWithMcpCredentialContext({\n\t\t\t\t...options.mcpCredentialContext,\n\t\t\t\tconsumerId: correlationId\n\t\t\t}, () => executeAction(action, input, credentials));\n\t\t}\n\t});\n}\n//#endregion\n//#region src/create-agent-step-runner.ts\n/**\n* Builds the per-run agent runner: each `agent.prompt()` in a workflow body\n* becomes a durable step keyed `step:<agentKey>#<occurrence>` (same scheme as\n* actions). The actual prompt execution is delegated to `runAgent`, supplied\n* by the host (server) via `executeWorkflow({ runAgent })`.\n*/\nfunction createAgentStepRunner(state, runAgent) {\n\treturn (agent, input, options) => {\n\t\tconst slug = agent.slug;\n\t\treturn runDurableStep(state, {\n\t\t\tkind: \"agent_session\",\n\t\t\tkey: slug,\n\t\t\tid: options?.id,\n\t\t\tmetadataKey: \"agentKey\",\n\t\t\treplayMessage: \"agent step replayed from checkpoint\",\n\t\t\texecute: (_correlationId) => runAgent(agent, input, options?.runPrompt)\n\t\t});\n\t};\n}\n//#endregion\n//#region src/create-llm-step-runner.ts\n/**\n* Builds the per-run LLM runner: each `promptLlm()` in a workflow body becomes a\n* durable step keyed `step:promptLlm#<occurrence>`. The actual LLM call is\n* delegated to `runLlm`, supplied by the host (server) via `executeWorkflow({ runLlm })`.\n*/\nfunction createLlmStepRunner(state, runLlm) {\n\treturn (opts) => runDurableStep(state, {\n\t\tkind: \"llm\",\n\t\tkey: \"promptLlm\",\n\t\tid: opts.stepId,\n\t\tmetadataKey: \"llmKey\",\n\t\treplayMessage: \"llm step replayed from checkpoint\",\n\t\tparseCached: (cached) => opts.outputSchema ? opts.outputSchema.parse(cached) : cached,\n\t\texecute: (_correlationId) => runLlm(opts)\n\t});\n}\n//#endregion\n//#region src/run-context.ts\nconst storage = new AsyncLocalStorage();\nregisterWorkflowRunGetter(() => {\n\tconst store = storage.getStore();\n\tif (!store) return;\n\treturn {\n\t\tactionRunner: store.actionRunner,\n\t\tagentRunner: store.agentRunner,\n\t\tllmRunner: store.llmRunner\n\t};\n});\nfunction runWithWorkflowContext(store, fn) {\n\treturn storage.run(store, fn);\n}\n//#endregion\n//#region src/replay/memory-event-log.ts\n/** In-memory durable log for inline execution and tests. */\nvar MemoryEventLog = class {\n\tevents = [];\n\tids = /* @__PURE__ */ new Set();\n\tasync append(event) {\n\t\tconst id = event.id ?? crypto.randomUUID();\n\t\tif (this.ids.has(id)) return false;\n\t\tthis.ids.add(id);\n\t\tthis.events.push({\n\t\t\tid,\n\t\t\trunId: event.runId,\n\t\t\tseq: this.events.length,\n\t\t\ttype: event.type,\n\t\t\tcorrelationId: event.correlationId ?? null,\n\t\t\tdata: event.data ?? null\n\t\t});\n\t\treturn true;\n\t}\n\tasync listReplay(runId) {\n\t\treturn this.events.filter((event) => event.runId === runId).map((event) => ({ ...event }));\n\t}\n};\n//#endregion\n//#region src/execute-workflow.ts\n/**\n* The single way to run a workflow: replay its event log from the top, execute\n* un-cached primitives, and either complete/fail or suspend at the first\n* un-satisfied sleep/hook. New events (sleep_scheduled/sleep_completed/\n* hook_created/run_completed/run_failed) are flushed before returning.\n*\n* Durability comes entirely from the log — a suspended run resumes by calling\n* this again with the same `runId` and event log once the sleep is due or the\n* hook is resumed.\n*/\nasync function executeWorkflow(workflow, input, options = {}) {\n\tconst runId = options.runId ?? crypto.randomUUID();\n\tconst eventLog = options.eventLog ?? new MemoryEventLog();\n\tconst signal = getRunSignal();\n\tconst consumer = new EventsConsumer(await eventLog.listReplay(runId));\n\tconst coordinator = new SuspensionCoordinator();\n\tconst state = createReplayState({\n\t\trunId,\n\t\tconsumer,\n\t\tcoordinator,\n\t\teventLog,\n\t\thookBaseUrl: options.hookBaseUrl,\n\t\tnow: options.now\n\t});\n\tconst actionRunner = createActionRunner(state, {\n\t\tresolveCredentials: options.resolveCredentials,\n\t\tcredentialContext: options.credentialContext,\n\t\toauthAdapter: options.oauthAdapter,\n\t\tmcpCredentialContext: { assignmentTarget: {\n\t\t\ttype: \"workflow\",\n\t\t\tkey: workflow.slug\n\t\t} }\n\t});\n\tconst ctx = {\n\t\trunId,\n\t\tsleep: createSleep(state),\n\t\thook: createHook(state),\n\t\t...options.context\n\t};\n\tconst agentRunner = options.runAgent ? createAgentStepRunner(state, options.runAgent) : void 0;\n\tconst llmRunner = options.runLlm ? createLlmStepRunner(state, options.runLlm) : void 0;\n\tconst validatedInput = workflow.input.parse(input);\n\tconst bodyPromise = runWithWorkflowContext({\n\t\tactionRunner,\n\t\tagentRunner,\n\t\tllmRunner,\n\t\trunId\n\t}, () => captureConsole(async () => workflow.run(validatedInput, ctx)));\n\tlet onAbort;\n\tconst waitForAbort = signal.aborted ? Promise.resolve({ type: \"canceled\" }) : new Promise((resolve) => {\n\t\tonAbort = () => resolve({ type: \"canceled\" });\n\t\tsignal.addEventListener(\"abort\", onAbort, { once: true });\n\t});\n\tconst outcome = await Promise.race([\n\t\tbodyPromise.then((output) => ({\n\t\t\ttype: \"done\",\n\t\t\toutput\n\t\t}), (error) => ({\n\t\t\ttype: \"error\",\n\t\t\terror\n\t\t})),\n\t\tcoordinator.waitForSuspension().then((items) => ({\n\t\t\ttype: \"suspended\",\n\t\t\titems\n\t\t})),\n\t\twaitForAbort\n\t]);\n\tif (onAbort) signal.removeEventListener(\"abort\", onAbort);\n\tlet result;\n\tif (outcome.type === \"suspended\") {\n\t\tbodyPromise.catch(() => {});\n\t\tresult = {\n\t\t\tstatus: \"suspended\",\n\t\t\titems: outcome.items\n\t\t};\n\t} else if (outcome.type === \"done\") {\n\t\tconst output = workflow.output.parse(outcome.output);\n\t\tstate.newEvents.push({\n\t\t\tid: `run_completed:${runId}`,\n\t\t\trunId,\n\t\t\ttype: \"run_completed\",\n\t\t\tdata: { output }\n\t\t});\n\t\tresult = {\n\t\t\tstatus: \"completed\",\n\t\t\toutput\n\t\t};\n\t} else if (outcome.type === \"canceled\" || isRunCanceledError(outcome.error)) {\n\t\tbodyPromise.catch(() => {});\n\t\tstate.newEvents.push({\n\t\t\tid: `run_canceled:${runId}`,\n\t\t\trunId,\n\t\t\ttype: \"run_canceled\"\n\t\t});\n\t\tresult = { status: \"canceled\" };\n\t} else result = {\n\t\tstatus: \"failed\",\n\t\terror: outcome.error,\n\t\tfailedCorrelationId: state.failedCorrelationId\n\t};\n\tfor (const event of state.newEvents) await eventLog.append(event);\n\treturn result;\n}\n//#endregion\n//#region src/prompt-llm.ts\nfunction promptLlm(prompt, opts) {\n\tconst handle = getWorkflowRunHandle();\n\tif (!handle?.llmRunner) throw new Error(\"promptLlm must run inside a workflow with an injected llm executor (executeWorkflow({ runLlm })).\");\n\treturn handle.llmRunner({\n\t\tprompt,\n\t\t...opts\n\t});\n}\n//#endregion\nexport { MemoryEventLog, RunCanceledError, defineWorkflow, deserializeWorkflowError, executeWorkflow, isRunCanceledError, isWorkflow, promptLlm, serializeWorkflowError };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;AAMA,IAAI,mBAAmB,cAAc,MAAM;CAC1C,YAAY,OAAO;EAClB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U,KAAK;GACpB,IAAI,iBAAiB;GACrB;GACA,MAAM;GACN,MAAM,EAAE,OAAO;EAChB,CAAC;EACD,SAAS;GACR,QAAQ;GACR;EACD;CACD,OAAO,IAAI,QAAQ,SAAS,cAAc,mBAAmB,QAAQ,KAAK,GAAG;EAC5E,YAAY,YAAY,CAAC,CAAC;EAC1B,MAAM,UAAU,KAAK;GACpB,IAAI,gBAAgB;GACpB;GACA,MAAM;EACP,CAAC;EACD,SAAS,EAAE,QAAQ,WAAW;CAC/B,OAAO,SAAS;EACf,QAAQ;EACR,OAAO,QAAQ;EACf,qBAAqB,MAAM;CAC5B;CACA,KAAK,MAAM,SAAS,MAAM,WAAW,MAAM,SAAS,OAAO,KAAK;CAChE,OAAO;AACR;AAGA,SAAS,UAAU,QAAQ,MAAM;CAChC,MAAM,SAASS,aAAAA,qBAAqB;CACpC,IAAI,CAAC,QAAQ,WAAW,MAAM,IAAI,MAAM,mGAAmG;CAC3I,OAAO,OAAO,UAAU;EACvB;EACA,GAAG;CACJ,CAAC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-B1YicUCL.d.cts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","ZodEnum","slug_taken","slug_reserved","slug_invalid","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","invalid","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","ZodBoolean","ZodOptional","core","$strip","ZodObject","slug","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","message","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","failed","active","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","admin","owner","builder","OrganizationUserRole","OrganizationSchema","id","verified","createdAt","updatedAt","Organization","ProjectSchema","ZodNullable","organizationId","description","status","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","organization","role","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","ZodArray","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","ZodNumber","agentCount","workflowCount","skillCount","credentialCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","ZodRecord","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","AppSlugSchema","AppSlug","APP_SLUG_TAKEN_MESSAGE","slugifyAppName","validateAppSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","LOCAL_PLATFORM_ORIGIN","DEFAULT_CLOUD_PLATFORM_ORIGIN","resolveExplicitPublicPlatformOrigin","NodeJS","ProcessEnv","env","resolvePublicPlatformOrigin","resolveExternalPlatformOrigin","resolvePublicPlatformApiOrigin","resolvePlatformWebhookOrigin","projectId","resolveMcpPlatformUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","StoredRouteManifestSkillSchema","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodDefault","ZodUnknown","ZodDiscriminatedUnion","version","entries","kind","model","systemPrompt","toolCount","appSlugs","toolSlugs","subscribable","requestSchema","endpoint","attachmentIds","sourceHash","attachmentSchemas","filterSchema","attachmentMeta","attachmentId","schedule","pollId","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","AppCredentialFieldSchema","label","secret","optional","default","placement","prefix","AppCredentialFieldsSchema","AppCredentialField","AppCredentialFields","validateCredentialValueAgainstFields","fields","ok","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","keystroke","AppCredentialSchemeSchema","API_KEY","BEARER_TOKEN","BASIC","BASIC_WITH_JWT","AppSourceSchema","AppCatalogMetadataSchema","category","logo","authKind","oauthScopes","AppSeedEntrySchema","source","credentialFields","credentialScheme","AppSlugAvailabilityResponseSchema","AppSlugAvailabilityQuerySchema","CreateCustomAppRequestSchema","mcp","custom","mcpUrl","CustomAppDetailSchema","CreateCustomAppResponseSchema","GetCustomAppResponseSchema","AppRecordSchema","AppCatalogEntrySchema","integrationDescription","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","connectAppId","docsUrl","tagline","ListAppsResponseSchema","OAuthScopeOption","AppAuthKind","AppCredentialScheme","AppSource","AppCatalogMetadata","AppSeedEntry","AppRecord","AppCatalogEntry","ListAppsResponse","AppSlugAvailabilityResponse","AppSlugAvailabilityQuery","CreateCustomAppRequest","CustomAppDetail","CreateCustomAppResponse","GetCustomAppResponse","McpAuthProbeModeSchema","token","McpAuthProbeOAuthSchema","issuer","authorizationEndpoint","tokenEndpoint","registrationEndpoint","scopes","resource","resourceName","McpAuthProbeResultSchema","mode","unauthenticatedStatus","scheme","McpDiscoverRequestSchema","McpDiscoverResponseSchema","detected","template","serverName","serverDescription","StartMcpOAuthConnectionInputSchema","appSlug","projects","createOrganizationCredential","createUserProvidedCredential","credentialInstanceId","StartMcpOAuthConnectionResultSchema","authorizeUrl","McpAuthProbeMode","McpAuthProbeOAuth","McpAuthProbeResult","McpDiscoverRequest","McpDiscoverResponse","StartMcpOAuthConnectionInput","StartMcpOAuthConnectionResult","McpAppTemplate","mcpProbeToAppTemplate","probe","OpenApiAppTemplate","openapiUrl","homepageUrl","openApiSpecToAppTemplate","spec","OpenApiDiscoverRequestSchema","OpenApiDiscoverResponseSchema","OpenApiDiscoverRequest","OpenApiDiscoverResponse","McpApiKeyPlacementSchema","DEFAULT_MCP_API_KEY_PLACEMENT","McpApiKeyPlacement","McpApiKeyCredentialValueSchema","McpApiKeyCredentialValue","McpAuthInjection","headers","searchParams","mcpApiKeyAuthInjection","mcpCredentialAuthInjection","values","CatalogAppSummarySchema","package","CatalogAppsPageSchema","items","nextCursor","CatalogAppDetailSchema","CatalogActionSummarySchema","CatalogActionsPageSchema","toolkit","CatalogActionDetailSchema","inputParameters","outputParameters","CatalogAppSummary","CatalogAppsPage","CatalogAppDetail","CatalogActionSummary","CatalogActionsPage","CatalogActionDetail","CatalogAppsPageResponseSchema","CatalogAppDetailResponseSchema","CatalogActionsPageResponseSchema","CatalogActionDetailResponseSchema","isOfficialSlug","qualifyOrgSlug","orgSlug","ParsedOfficialAppSlug","ParsedOrgAppSlug","ParsedAppSlug","parseAppSlug","buildConnectDeeplink","webUrl","options","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","placeholder","helpText","type","password","text","textarea","ChannelBindingSchema","channelId","channelName","channelKind","subscribeOnMention","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","ChannelDirectoryListResponseSchema","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","CredentialScopeTypeSchema","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","deriveCredentialInstanceSlug","Iterable","explicitSlug","takenSlugs","resolveUniqueCredentialInstanceLabel","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","restricted","AppCredentialSummarySchema","scope","lastRefreshedAt","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","CredentialTargetsFields","StartOAuthConnectionInputSchema","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","StartOAuthConnectionResult","StartKeystrokeConnectionInputSchema","app","StartKeystrokeConnectionInput","StartKeystrokeConnectionResultSchema","connectionId","StartKeystrokeConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","GetCredentialResponseSchema","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","parseMcpEntityId","entityId","KeystrokeCredentialSchema","instanceId","KeystrokeCredential","McpCredentialAssignmentTargetSchema","agent","workflow","McpCredentialAssignmentTarget","ExecuteKeystrokeToolRequestSchema","tool","arguments","assignmentTarget","consumerId","ExecuteKeystrokeToolRequest","ExecuteKeystrokeToolErrorCodeSchema","not_found","forbidden","mcp_execute_failed","ExecuteKeystrokeToolErrorCode","ExecuteKeystrokeToolErrorResponseSchema","error","ExecuteKeystrokeToolErrorResponse","MCP_TOOL_EXECUTE_FAILED_STATUS","formatMcpToolErrorMessage","raw","TeamRequestTypeSchema","contact","verification","SubmitTeamRequestRequestSchema","SubmitTeamRequestResponseSchema","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","MarketingContactCompanySizeSchema","SubmitMarketingContactRequestSchema","fullName","workEmail","companySize","companyWebsite","SubmitMarketingContactResponseSchema","MarketingContactCompanySize","SubmitMarketingContactRequest","SubmitMarketingContactResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","credential","static","DefineStaticCredentialInput","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","path","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","needs_org_selection","org_unverified","ErrorResponseCode","ErrorResponseSchema","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentSlug","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","trigger","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","canceled","sourceId","title","ranByUserName","gatewayPlatform","triggerType","cron","webhook","poll","messageCount","AgentSessionSummary","AgentSessionRecordSchema","agentSlug","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerRunId","workflowSlug","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","AgentSessionChatStateQuerySchema","sinceSeq","AgentSessionChatStateQuery","AgentSessionChatStateResponseSchema","live","AgentSessionChatStateResponse","AgentTriggerOriginSchema","ephemeral","AgentTriggerStatusSchema","disabled","AgentTriggerTypeSchema","AgentTriggerType","AgentTriggerSummarySchema","origin","prompt","executionCount","until","AgentTriggerSummary","AgentTriggerSummaryListResponseSchema","AgentTriggerSummaryListResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","triggerId","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","CREDENTIAL_ASSIGNMENT_WILDCARD","CredentialAssignmentTargetTypeSchema","CredentialAssignmentRecordSchema","targetType","targetKey","credentialSlug","CredentialAssignmentListResponseSchema","assignments","AssignCredentialBodySchema","CredentialAssignmentListQuerySchema","CredentialConsumerListQuerySchema","CredentialConsumerSummarySchema","CredentialConsumerListResponseSchema","consumers","CredentialAssignmentTargetType","CredentialAssignmentRecord","AssignCredentialBody","CredentialAssignmentListQuery","CredentialConsumerListQuery","CredentialConsumerSummary","TriggerRunOutcomeSchema","dispatched","TriggerRunReasonSchema","filter_rejected","transform_undefined","invalid_payload","source_error","handler_error","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","outcome","detail","workflowRuns","agentSessions","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","TriggerRunDetailResponse","TriggerRunOutcome","TriggerRunReason","TriggerTypeSchema","TriggerTargetKindSchema","TriggerStatusSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","TriggerDetailResponseSchema","TriggerAssignmentSchema","TriggerAssignment","TriggerStatus","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","TriggerTargetKind","TriggerType","WorkspaceTriggerRunStatusSchema","WorkspaceTriggerRunStatus","WorkspaceTriggerSkipReasonSchema","filtered","no_new_data","WorkspaceTriggerSkipReason","WorkspaceTriggerRunTargetSchema","workflowId","WorkspaceTriggerRunTarget","WorkspaceTriggerRunOutcomeSchema","targets","WorkspaceTriggerRunOutcome","WorkspaceTriggerSummarySchema","lastFiredAt","fireCount","WorkspaceTriggerSummary","WorkspaceTriggerDetailSchema","WorkspaceTriggerDetail","WorkspaceTriggerListResponseSchema","WorkspaceTriggerListResponse","WorkspaceTriggerRunSummarySchema","WorkspaceTriggerRunSummary","WorkspaceTriggerRunListResponseSchema","WorkspaceTriggerRunListResponse","WorkspaceTriggerFileSchema","contents","WorkspaceTriggerFile","DEFAULT_TRIGGER_OVERVIEW_MODEL","WorkspaceTriggerOverviewStatusSchema","generating","ready","WorkspaceTriggerOverviewStatus","WorkspaceTriggerOverviewSchema","markdown","hash","generatedAt","WorkspaceTriggerOverview","TriggerOverviewInputSchema","sourceContents","TriggerOverviewInput","TriggerOverviewJobPayloadSchema","triggerHash","TriggerOverviewJobPayload","OrganizationMemberRoleSchema","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ProjectArtifactStatusSchema","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","apps","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","StoredProjectSourceManifest","projectFileLanguage","projectFileId","AgentMemoryFileSummarySchema","AgentMemoryFileSummary","ListAgentMemoryFilesResponseSchema","ListAgentMemoryFilesResponse","agentMemoryFileId","AgentWorkspaceFileSummarySchema","AgentWorkspaceFileSummary","ListAgentWorkspaceFilesResponseSchema","ListAgentWorkspaceFilesResponse","agentWorkspaceFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","outputSchema","temperature","maxTokens","stepId","CredentialAssignmentSet","byConsumer","wildcard","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","verifiedAt","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProjectDeployment"],"sources":["../../shared/dist/index.d.mts"],"mappings":";;;;;;cAksDc2b,wBAAAA,EAA0B1b,CAAAA,CAAE8B,OAAO;EAC/CwL,OAAAA;EACAC,SAAAA;EACAoO,aAAAA;AAAAA;;;;;;cAOYC,yBAAAA,EAA2B5b,CAAAA,CAAE8B,OAAO;EAChD+D,YAAAA;EACAgW,IAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,kBAAAA,GAAqB/b,CAAAA,CAAEgB,KAAK,QAAQ0a,wBAAAA;AAAAA,KACpCM,mBAAAA,GAAsBhc,CAAAA,CAAEgB,KAAK,QAAQ4a,yBAAAA;AAAAA,cAE5BM,sBAAAA;AAAAA;;;;KA0YTuH,qBAAAA;EAAAA,SACMpL,GAAAA;EAAAA,SACAtN,IAAAA,EAAMgR,kBAAAA;EAAAA,SACN5R,MAAAA,EAAQnK,CAAAA,CAAEiK,OAAAA;WACVsT,KAAAA,GAAQvB,mBAAAA;EAAAA,SACR0H,UAAAA;AAAAA;AAAAA,KAENC,UAAAA,sCAAgD3jB,CAAAA,CAAEiK,OAAAA,GAAUjK,CAAAA,CAAEiK,OAAAA;EAAAA,SACxDc,IAAAA,EAAMgR,kBAAAA;EAAAA,SACN1D,GAAAA,EAAKuL,CAAAA;EAAAA,SACLzZ,MAAAA,EAAQ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
|
|
1
|
+
{"version":3,"file":"index-B1YicUCL.d.cts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","ZodEnum","slug_taken","slug_reserved","slug_invalid","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","invalid","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","ZodBoolean","ZodOptional","core","$strip","ZodObject","slug","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","message","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","failed","active","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","admin","owner","builder","OrganizationUserRole","OrganizationSchema","id","verified","createdAt","updatedAt","Organization","ProjectSchema","ZodNullable","organizationId","description","status","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","organization","role","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","ZodArray","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","ZodNumber","agentCount","workflowCount","skillCount","credentialCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","ZodRecord","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","AppSlugSchema","AppSlug","APP_SLUG_TAKEN_MESSAGE","slugifyAppName","validateAppSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","LOCAL_PLATFORM_ORIGIN","DEFAULT_CLOUD_PLATFORM_ORIGIN","resolveExplicitPublicPlatformOrigin","NodeJS","ProcessEnv","env","resolvePublicPlatformOrigin","resolveExternalPlatformOrigin","resolvePublicPlatformApiOrigin","resolvePlatformWebhookOrigin","projectId","resolveMcpPlatformUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","StoredRouteManifestSkillSchema","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodDefault","ZodUnknown","ZodDiscriminatedUnion","version","entries","kind","model","systemPrompt","toolCount","appSlugs","toolSlugs","subscribable","requestSchema","endpoint","attachmentIds","sourceHash","attachmentSchemas","filterSchema","attachmentMeta","attachmentId","schedule","pollId","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","AppCredentialFieldSchema","label","secret","optional","default","placement","prefix","AppCredentialFieldsSchema","AppCredentialField","AppCredentialFields","validateCredentialValueAgainstFields","fields","ok","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","keystroke","AppCredentialSchemeSchema","API_KEY","BEARER_TOKEN","BASIC","BASIC_WITH_JWT","AppSourceSchema","AppCatalogMetadataSchema","category","logo","authKind","oauthScopes","AppSeedEntrySchema","source","credentialFields","credentialScheme","AppSlugAvailabilityResponseSchema","AppSlugAvailabilityQuerySchema","CreateCustomAppRequestSchema","mcp","custom","mcpUrl","CustomAppDetailSchema","CreateCustomAppResponseSchema","GetCustomAppResponseSchema","AppRecordSchema","AppCatalogEntrySchema","integrationDescription","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","connectAppId","docsUrl","tagline","ListAppsResponseSchema","OAuthScopeOption","AppAuthKind","AppCredentialScheme","AppSource","AppCatalogMetadata","AppSeedEntry","AppRecord","AppCatalogEntry","ListAppsResponse","AppSlugAvailabilityResponse","AppSlugAvailabilityQuery","CreateCustomAppRequest","CustomAppDetail","CreateCustomAppResponse","GetCustomAppResponse","McpAuthProbeModeSchema","token","McpAuthProbeOAuthSchema","issuer","authorizationEndpoint","tokenEndpoint","registrationEndpoint","scopes","resource","resourceName","McpAuthProbeResultSchema","mode","unauthenticatedStatus","scheme","McpDiscoverRequestSchema","McpDiscoverResponseSchema","detected","template","serverName","serverDescription","StartMcpOAuthConnectionInputSchema","appSlug","projects","createOrganizationCredential","createUserProvidedCredential","credentialInstanceId","StartMcpOAuthConnectionResultSchema","authorizeUrl","McpAuthProbeMode","McpAuthProbeOAuth","McpAuthProbeResult","McpDiscoverRequest","McpDiscoverResponse","StartMcpOAuthConnectionInput","StartMcpOAuthConnectionResult","McpAppTemplate","mcpProbeToAppTemplate","probe","OpenApiAppTemplate","openapiUrl","homepageUrl","openApiSpecToAppTemplate","spec","OpenApiDiscoverRequestSchema","OpenApiDiscoverResponseSchema","OpenApiDiscoverRequest","OpenApiDiscoverResponse","McpApiKeyPlacementSchema","DEFAULT_MCP_API_KEY_PLACEMENT","McpApiKeyPlacement","McpApiKeyCredentialValueSchema","McpApiKeyCredentialValue","McpAuthInjection","headers","searchParams","mcpApiKeyAuthInjection","mcpCredentialAuthInjection","values","CatalogAppSummarySchema","package","CatalogAppsPageSchema","items","nextCursor","CatalogAppDetailSchema","CatalogActionSummarySchema","CatalogActionsPageSchema","toolkit","CatalogActionDetailSchema","inputParameters","outputParameters","CatalogAppSummary","CatalogAppsPage","CatalogAppDetail","CatalogActionSummary","CatalogActionsPage","CatalogActionDetail","CatalogAppsPageResponseSchema","CatalogAppDetailResponseSchema","CatalogActionsPageResponseSchema","CatalogActionDetailResponseSchema","isOfficialSlug","qualifyOrgSlug","orgSlug","ParsedOfficialAppSlug","ParsedOrgAppSlug","ParsedAppSlug","parseAppSlug","buildConnectDeeplink","webUrl","options","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","placeholder","helpText","type","password","text","textarea","ChannelBindingSchema","channelId","channelName","channelKind","subscribeOnMention","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","ChannelDirectoryListResponseSchema","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","CredentialScopeTypeSchema","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","deriveCredentialInstanceSlug","Iterable","explicitSlug","takenSlugs","resolveUniqueCredentialInstanceLabel","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","restricted","AppCredentialSummarySchema","scope","lastRefreshedAt","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","CredentialTargetsFields","StartOAuthConnectionInputSchema","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","StartOAuthConnectionResult","StartKeystrokeConnectionInputSchema","app","StartKeystrokeConnectionInput","StartKeystrokeConnectionResultSchema","connectionId","StartKeystrokeConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","GetCredentialResponseSchema","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","parseMcpEntityId","entityId","KeystrokeCredentialSchema","instanceId","KeystrokeCredential","McpCredentialAssignmentTargetSchema","agent","workflow","McpCredentialAssignmentTarget","ExecuteKeystrokeToolRequestSchema","tool","arguments","assignmentTarget","consumerId","ExecuteKeystrokeToolRequest","ExecuteKeystrokeToolErrorCodeSchema","not_found","forbidden","mcp_execute_failed","ExecuteKeystrokeToolErrorCode","ExecuteKeystrokeToolErrorResponseSchema","error","ExecuteKeystrokeToolErrorResponse","MCP_TOOL_EXECUTE_FAILED_STATUS","formatMcpToolErrorMessage","raw","TeamRequestTypeSchema","contact","verification","SubmitTeamRequestRequestSchema","SubmitTeamRequestResponseSchema","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","MarketingContactCompanySizeSchema","SubmitMarketingContactRequestSchema","fullName","workEmail","companySize","companyWebsite","SubmitMarketingContactResponseSchema","MarketingContactCompanySize","SubmitMarketingContactRequest","SubmitMarketingContactResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","credential","static","DefineStaticCredentialInput","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","path","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","needs_org_selection","org_unverified","ErrorResponseCode","ErrorResponseSchema","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentSlug","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","trigger","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","canceled","sourceId","title","ranByUserName","gatewayPlatform","triggerType","cron","webhook","poll","messageCount","AgentSessionSummary","AgentSessionRecordSchema","agentSlug","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerRunId","workflowSlug","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","AgentSessionChatStateQuerySchema","sinceSeq","AgentSessionChatStateQuery","AgentSessionChatStateResponseSchema","live","AgentSessionChatStateResponse","AgentTriggerOriginSchema","ephemeral","AgentTriggerStatusSchema","disabled","AgentTriggerTypeSchema","AgentTriggerType","AgentTriggerSummarySchema","origin","prompt","executionCount","until","AgentTriggerSummary","AgentTriggerSummaryListResponseSchema","AgentTriggerSummaryListResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","triggerId","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","CREDENTIAL_ASSIGNMENT_WILDCARD","CredentialAssignmentTargetTypeSchema","CredentialAssignmentRecordSchema","targetType","targetKey","credentialSlug","CredentialAssignmentListResponseSchema","assignments","AssignCredentialBodySchema","CredentialAssignmentListQuerySchema","CredentialConsumerListQuerySchema","CredentialConsumerSummarySchema","CredentialConsumerListResponseSchema","consumers","CredentialAssignmentTargetType","CredentialAssignmentRecord","AssignCredentialBody","CredentialAssignmentListQuery","CredentialConsumerListQuery","CredentialConsumerSummary","TriggerRunOutcomeSchema","dispatched","TriggerRunReasonSchema","filter_rejected","transform_undefined","invalid_payload","source_error","handler_error","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","outcome","detail","workflowRuns","agentSessions","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","TriggerRunDetailResponse","TriggerRunOutcome","TriggerRunReason","TriggerTypeSchema","TriggerTargetKindSchema","TriggerStatusSchema","TriggerAttachmentStatusSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","TriggerDetailResponseSchema","TriggerAssignmentSchema","disabledAt","TriggerAssignment","TriggerAttachmentStatus","TriggerStatus","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","TriggerTargetKind","TriggerType","WorkspaceTriggerRunStatusSchema","WorkspaceTriggerRunStatus","WorkspaceTriggerSkipReasonSchema","filtered","no_new_data","WorkspaceTriggerSkipReason","WorkspaceTriggerRunTargetSchema","workflowId","WorkspaceTriggerRunTarget","WorkspaceTriggerRunOutcomeSchema","targets","WorkspaceTriggerRunOutcome","WorkspaceTriggerSummarySchema","lastFiredAt","fireCount","WorkspaceTriggerSummary","WorkspaceTriggerDetailSchema","WorkspaceTriggerDetail","WorkspaceTriggerListResponseSchema","WorkspaceTriggerListResponse","WorkspaceTriggerRunSummarySchema","WorkspaceTriggerRunSummary","WorkspaceTriggerRunListResponseSchema","WorkspaceTriggerRunListResponse","WorkspaceTriggerFileSchema","contents","WorkspaceTriggerFile","DEFAULT_TRIGGER_OVERVIEW_MODEL","WorkspaceTriggerOverviewStatusSchema","generating","ready","WorkspaceTriggerOverviewStatus","WorkspaceTriggerOverviewSchema","markdown","hash","generatedAt","WorkspaceTriggerOverview","TriggerOverviewInputSchema","sourceContents","TriggerOverviewInput","TriggerOverviewJobPayloadSchema","triggerHash","TriggerOverviewJobPayload","TriggerAttachmentUpdateRequestSchema","TriggerAttachmentUpdateRequest","TriggerAttachmentUpdateResponseSchema","TriggerAttachmentUpdateResponse","OrganizationMemberRoleSchema","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ProjectArtifactStatusSchema","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","apps","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","StoredProjectSourceManifest","projectFileLanguage","projectFileId","AgentMemoryFileSummarySchema","AgentMemoryFileSummary","ListAgentMemoryFilesResponseSchema","ListAgentMemoryFilesResponse","agentMemoryFileId","AgentWorkspaceFileSummarySchema","AgentWorkspaceFileSummary","ListAgentWorkspaceFilesResponseSchema","ListAgentWorkspaceFilesResponse","agentWorkspaceFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","outputSchema","temperature","maxTokens","stepId","CredentialAssignmentSet","byConsumer","wildcard","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","verifiedAt","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProjectDeployment"],"sources":["../../shared/dist/index.d.mts"],"mappings":";;;;;;cAksDc2b,wBAAAA,EAA0B1b,CAAAA,CAAE8B,OAAO;EAC/CwL,OAAAA;EACA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EACAgd,MAAAA;EACAC,OAAAA,GAAU7c,MAAAA;EACV8c,SAAAA,GAAY9c,MAAAA;EACZ0tB,WAAAA,GAAc+Y,uBAAAA;AAAAA;AAAAA,KAEXI,kBAAAA;EACHhmC,IAAAA;EACA5J,IAAAA;EACA2D,EAAAA;AAAAA;AAAAA,KAQGmsC,iBAAAA;EACHE,cAAAA,CAAe/xB,YAAAA,WAAuB8xB,OAAO;IAC3CxsB,WAAAA;EAAAA;AAAAA;AAAAA,KAGC0sB,6BAAAA;EACHC,QAAAA;EACAC,YAAAA;EACAC,YAAAA;EACAr/B,aAAAA;AAAAA;AAAAA,KAEGs/B,6BAAAA;EACH9sB,WAAAA;EACA6sB,YAAAA;EACAG,oBAAAA,GAAuBD,IAAI;AAAA;AAAA,KAExBE,yBAAAA,IAA6BC,MAAAA,EAAQR,6BAAAA,KAAkCF,OAAAA,CAAQM,6BAAAA;AAAAA,KAC/EK,yBAAAA;EACHC,QAAAA,CAASC,MAAAA,UAAgBC,SAAAA,EAAWL,yBAAAA;EACpCM,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-B1YicUCL.d.mts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","ZodEnum","slug_taken","slug_reserved","slug_invalid","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","invalid","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","ZodBoolean","ZodOptional","core","$strip","ZodObject","slug","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","message","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","failed","active","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","admin","owner","builder","OrganizationUserRole","OrganizationSchema","id","verified","createdAt","updatedAt","Organization","ProjectSchema","ZodNullable","organizationId","description","status","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","organization","role","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","ZodArray","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","ZodNumber","agentCount","workflowCount","skillCount","credentialCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","ZodRecord","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","AppSlugSchema","AppSlug","APP_SLUG_TAKEN_MESSAGE","slugifyAppName","validateAppSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","LOCAL_PLATFORM_ORIGIN","DEFAULT_CLOUD_PLATFORM_ORIGIN","resolveExplicitPublicPlatformOrigin","NodeJS","ProcessEnv","env","resolvePublicPlatformOrigin","resolveExternalPlatformOrigin","resolvePublicPlatformApiOrigin","resolvePlatformWebhookOrigin","projectId","resolveMcpPlatformUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","StoredRouteManifestSkillSchema","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodDefault","ZodUnknown","ZodDiscriminatedUnion","version","entries","kind","model","systemPrompt","toolCount","appSlugs","toolSlugs","subscribable","requestSchema","endpoint","attachmentIds","sourceHash","attachmentSchemas","filterSchema","attachmentMeta","attachmentId","schedule","pollId","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","AppCredentialFieldSchema","label","secret","optional","default","placement","prefix","AppCredentialFieldsSchema","AppCredentialField","AppCredentialFields","validateCredentialValueAgainstFields","fields","ok","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","keystroke","AppCredentialSchemeSchema","API_KEY","BEARER_TOKEN","BASIC","BASIC_WITH_JWT","AppSourceSchema","AppCatalogMetadataSchema","category","logo","authKind","oauthScopes","AppSeedEntrySchema","source","credentialFields","credentialScheme","AppSlugAvailabilityResponseSchema","AppSlugAvailabilityQuerySchema","CreateCustomAppRequestSchema","mcp","custom","mcpUrl","CustomAppDetailSchema","CreateCustomAppResponseSchema","GetCustomAppResponseSchema","AppRecordSchema","AppCatalogEntrySchema","integrationDescription","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","connectAppId","docsUrl","tagline","ListAppsResponseSchema","OAuthScopeOption","AppAuthKind","AppCredentialScheme","AppSource","AppCatalogMetadata","AppSeedEntry","AppRecord","AppCatalogEntry","ListAppsResponse","AppSlugAvailabilityResponse","AppSlugAvailabilityQuery","CreateCustomAppRequest","CustomAppDetail","CreateCustomAppResponse","GetCustomAppResponse","McpAuthProbeModeSchema","token","McpAuthProbeOAuthSchema","issuer","authorizationEndpoint","tokenEndpoint","registrationEndpoint","scopes","resource","resourceName","McpAuthProbeResultSchema","mode","unauthenticatedStatus","scheme","McpDiscoverRequestSchema","McpDiscoverResponseSchema","detected","template","serverName","serverDescription","StartMcpOAuthConnectionInputSchema","appSlug","projects","createOrganizationCredential","createUserProvidedCredential","credentialInstanceId","StartMcpOAuthConnectionResultSchema","authorizeUrl","McpAuthProbeMode","McpAuthProbeOAuth","McpAuthProbeResult","McpDiscoverRequest","McpDiscoverResponse","StartMcpOAuthConnectionInput","StartMcpOAuthConnectionResult","McpAppTemplate","mcpProbeToAppTemplate","probe","OpenApiAppTemplate","openapiUrl","homepageUrl","openApiSpecToAppTemplate","spec","OpenApiDiscoverRequestSchema","OpenApiDiscoverResponseSchema","OpenApiDiscoverRequest","OpenApiDiscoverResponse","McpApiKeyPlacementSchema","DEFAULT_MCP_API_KEY_PLACEMENT","McpApiKeyPlacement","McpApiKeyCredentialValueSchema","McpApiKeyCredentialValue","McpAuthInjection","headers","searchParams","mcpApiKeyAuthInjection","mcpCredentialAuthInjection","values","CatalogAppSummarySchema","package","CatalogAppsPageSchema","items","nextCursor","CatalogAppDetailSchema","CatalogActionSummarySchema","CatalogActionsPageSchema","toolkit","CatalogActionDetailSchema","inputParameters","outputParameters","CatalogAppSummary","CatalogAppsPage","CatalogAppDetail","CatalogActionSummary","CatalogActionsPage","CatalogActionDetail","CatalogAppsPageResponseSchema","CatalogAppDetailResponseSchema","CatalogActionsPageResponseSchema","CatalogActionDetailResponseSchema","isOfficialSlug","qualifyOrgSlug","orgSlug","ParsedOfficialAppSlug","ParsedOrgAppSlug","ParsedAppSlug","parseAppSlug","buildConnectDeeplink","webUrl","options","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","placeholder","helpText","type","password","text","textarea","ChannelBindingSchema","channelId","channelName","channelKind","subscribeOnMention","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","ChannelDirectoryListResponseSchema","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","CredentialScopeTypeSchema","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","deriveCredentialInstanceSlug","Iterable","explicitSlug","takenSlugs","resolveUniqueCredentialInstanceLabel","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","restricted","AppCredentialSummarySchema","scope","lastRefreshedAt","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","CredentialTargetsFields","StartOAuthConnectionInputSchema","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","StartOAuthConnectionResult","StartKeystrokeConnectionInputSchema","app","StartKeystrokeConnectionInput","StartKeystrokeConnectionResultSchema","connectionId","StartKeystrokeConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","GetCredentialResponseSchema","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","parseMcpEntityId","entityId","KeystrokeCredentialSchema","instanceId","KeystrokeCredential","McpCredentialAssignmentTargetSchema","agent","workflow","McpCredentialAssignmentTarget","ExecuteKeystrokeToolRequestSchema","tool","arguments","assignmentTarget","consumerId","ExecuteKeystrokeToolRequest","ExecuteKeystrokeToolErrorCodeSchema","not_found","forbidden","mcp_execute_failed","ExecuteKeystrokeToolErrorCode","ExecuteKeystrokeToolErrorResponseSchema","error","ExecuteKeystrokeToolErrorResponse","MCP_TOOL_EXECUTE_FAILED_STATUS","formatMcpToolErrorMessage","raw","TeamRequestTypeSchema","contact","verification","SubmitTeamRequestRequestSchema","SubmitTeamRequestResponseSchema","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","MarketingContactCompanySizeSchema","SubmitMarketingContactRequestSchema","fullName","workEmail","companySize","companyWebsite","SubmitMarketingContactResponseSchema","MarketingContactCompanySize","SubmitMarketingContactRequest","SubmitMarketingContactResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","credential","static","DefineStaticCredentialInput","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","path","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","needs_org_selection","org_unverified","ErrorResponseCode","ErrorResponseSchema","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentSlug","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","trigger","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","canceled","sourceId","title","ranByUserName","gatewayPlatform","triggerType","cron","webhook","poll","messageCount","AgentSessionSummary","AgentSessionRecordSchema","agentSlug","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerRunId","workflowSlug","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","AgentSessionChatStateQuerySchema","sinceSeq","AgentSessionChatStateQuery","AgentSessionChatStateResponseSchema","live","AgentSessionChatStateResponse","AgentTriggerOriginSchema","ephemeral","AgentTriggerStatusSchema","disabled","AgentTriggerTypeSchema","AgentTriggerType","AgentTriggerSummarySchema","origin","prompt","executionCount","until","AgentTriggerSummary","AgentTriggerSummaryListResponseSchema","AgentTriggerSummaryListResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","triggerId","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","CREDENTIAL_ASSIGNMENT_WILDCARD","CredentialAssignmentTargetTypeSchema","CredentialAssignmentRecordSchema","targetType","targetKey","credentialSlug","CredentialAssignmentListResponseSchema","assignments","AssignCredentialBodySchema","CredentialAssignmentListQuerySchema","CredentialConsumerListQuerySchema","CredentialConsumerSummarySchema","CredentialConsumerListResponseSchema","consumers","CredentialAssignmentTargetType","CredentialAssignmentRecord","AssignCredentialBody","CredentialAssignmentListQuery","CredentialConsumerListQuery","CredentialConsumerSummary","TriggerRunOutcomeSchema","dispatched","TriggerRunReasonSchema","filter_rejected","transform_undefined","invalid_payload","source_error","handler_error","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","outcome","detail","workflowRuns","agentSessions","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","TriggerRunDetailResponse","TriggerRunOutcome","TriggerRunReason","TriggerTypeSchema","TriggerTargetKindSchema","TriggerStatusSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","TriggerDetailResponseSchema","TriggerAssignmentSchema","TriggerAssignment","TriggerStatus","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","TriggerTargetKind","TriggerType","WorkspaceTriggerRunStatusSchema","WorkspaceTriggerRunStatus","WorkspaceTriggerSkipReasonSchema","filtered","no_new_data","WorkspaceTriggerSkipReason","WorkspaceTriggerRunTargetSchema","workflowId","WorkspaceTriggerRunTarget","WorkspaceTriggerRunOutcomeSchema","targets","WorkspaceTriggerRunOutcome","WorkspaceTriggerSummarySchema","lastFiredAt","fireCount","WorkspaceTriggerSummary","WorkspaceTriggerDetailSchema","WorkspaceTriggerDetail","WorkspaceTriggerListResponseSchema","WorkspaceTriggerListResponse","WorkspaceTriggerRunSummarySchema","WorkspaceTriggerRunSummary","WorkspaceTriggerRunListResponseSchema","WorkspaceTriggerRunListResponse","WorkspaceTriggerFileSchema","contents","WorkspaceTriggerFile","DEFAULT_TRIGGER_OVERVIEW_MODEL","WorkspaceTriggerOverviewStatusSchema","generating","ready","WorkspaceTriggerOverviewStatus","WorkspaceTriggerOverviewSchema","markdown","hash","generatedAt","WorkspaceTriggerOverview","TriggerOverviewInputSchema","sourceContents","TriggerOverviewInput","TriggerOverviewJobPayloadSchema","triggerHash","TriggerOverviewJobPayload","OrganizationMemberRoleSchema","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ProjectArtifactStatusSchema","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","apps","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","StoredProjectSourceManifest","projectFileLanguage","projectFileId","AgentMemoryFileSummarySchema","AgentMemoryFileSummary","ListAgentMemoryFilesResponseSchema","ListAgentMemoryFilesResponse","agentMemoryFileId","AgentWorkspaceFileSummarySchema","AgentWorkspaceFileSummary","ListAgentWorkspaceFilesResponseSchema","ListAgentWorkspaceFilesResponse","agentWorkspaceFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","outputSchema","temperature","maxTokens","stepId","CredentialAssignmentSet","byConsumer","wildcard","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","verifiedAt","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProjectDeployment"],"sources":["../../shared/dist/index.d.mts"],"mappings":";;;;;;cAksDc2b,wBAAAA,EAA0B1b,CAAAA,CAAE8B,OAAO;EAC/CwL,OAAAA;EACAC,SAAAA;EACAoO,aAAAA;AAAAA;;;;;;cAOYC,yBAAAA,EAA2B5b,CAAAA,CAAE8B,OAAO;EAChD+D,YAAAA;EACAgW,IAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,kBAAAA,GAAqB/b,CAAAA,CAAEgB,KAAK,QAAQ0a,wBAAAA;AAAAA,KACpCM,mBAAAA,GAAsBhc,CAAAA,CAAEgB,KAAK,QAAQ4a,yBAAAA;AAAAA,cAE5BM,sBAAAA;AAAAA;;;;KA0YTuH,qBAAAA;EAAAA,SACMpL,GAAAA;EAAAA,SACAtN,IAAAA,EAAMgR,kBAAAA;EAAAA,SACN5R,MAAAA,EAAQnK,CAAAA,CAAEiK,OAAAA;WACVsT,KAAAA,GAAQvB,mBAAAA;EAAAA,SACR0H,UAAAA;AAAAA;AAAAA,KAENC,UAAAA,sCAAgD3jB,CAAAA,CAAEiK,OAAAA,GAAUjK,CAAAA,CAAEiK,OAAAA;EAAAA,SACxDc,IAAAA,EAAMgR,kBAAAA;EAAAA,SACN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,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index-B1YicUCL.d.mts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","ZodEnum","slug_taken","slug_reserved","slug_invalid","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","invalid","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","ZodBoolean","ZodOptional","core","$strip","ZodObject","slug","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","message","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","failed","active","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","admin","owner","builder","OrganizationUserRole","OrganizationSchema","id","verified","createdAt","updatedAt","Organization","ProjectSchema","ZodNullable","organizationId","description","status","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","organization","role","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","ZodArray","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","ZodNumber","agentCount","workflowCount","skillCount","credentialCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","ZodRecord","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","AppSlugSchema","AppSlug","APP_SLUG_TAKEN_MESSAGE","slugifyAppName","validateAppSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","LOCAL_PLATFORM_ORIGIN","DEFAULT_CLOUD_PLATFORM_ORIGIN","resolveExplicitPublicPlatformOrigin","NodeJS","ProcessEnv","env","resolvePublicPlatformOrigin","resolveExternalPlatformOrigin","resolvePublicPlatformApiOrigin","resolvePlatformWebhookOrigin","projectId","resolveMcpPlatformUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","StoredRouteManifestSkillSchema","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodDefault","ZodUnknown","ZodDiscriminatedUnion","version","entries","kind","model","systemPrompt","toolCount","appSlugs","toolSlugs","subscribable","requestSchema","endpoint","attachmentIds","sourceHash","attachmentSchemas","filterSchema","attachmentMeta","attachmentId","schedule","pollId","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","AppCredentialFieldSchema","label","secret","optional","default","placement","prefix","AppCredentialFieldsSchema","AppCredentialField","AppCredentialFields","validateCredentialValueAgainstFields","fields","ok","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","keystroke","AppCredentialSchemeSchema","API_KEY","BEARER_TOKEN","BASIC","BASIC_WITH_JWT","AppSourceSchema","AppCatalogMetadataSchema","category","logo","authKind","oauthScopes","AppSeedEntrySchema","source","credentialFields","credentialScheme","AppSlugAvailabilityResponseSchema","AppSlugAvailabilityQuerySchema","CreateCustomAppRequestSchema","mcp","custom","mcpUrl","CustomAppDetailSchema","CreateCustomAppResponseSchema","GetCustomAppResponseSchema","AppRecordSchema","AppCatalogEntrySchema","integrationDescription","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","connectAppId","docsUrl","tagline","ListAppsResponseSchema","OAuthScopeOption","AppAuthKind","AppCredentialScheme","AppSource","AppCatalogMetadata","AppSeedEntry","AppRecord","AppCatalogEntry","ListAppsResponse","AppSlugAvailabilityResponse","AppSlugAvailabilityQuery","CreateCustomAppRequest","CustomAppDetail","CreateCustomAppResponse","GetCustomAppResponse","McpAuthProbeModeSchema","token","McpAuthProbeOAuthSchema","issuer","authorizationEndpoint","tokenEndpoint","registrationEndpoint","scopes","resource","resourceName","McpAuthProbeResultSchema","mode","unauthenticatedStatus","scheme","McpDiscoverRequestSchema","McpDiscoverResponseSchema","detected","template","serverName","serverDescription","StartMcpOAuthConnectionInputSchema","appSlug","projects","createOrganizationCredential","createUserProvidedCredential","credentialInstanceId","StartMcpOAuthConnectionResultSchema","authorizeUrl","McpAuthProbeMode","McpAuthProbeOAuth","McpAuthProbeResult","McpDiscoverRequest","McpDiscoverResponse","StartMcpOAuthConnectionInput","StartMcpOAuthConnectionResult","McpAppTemplate","mcpProbeToAppTemplate","probe","OpenApiAppTemplate","openapiUrl","homepageUrl","openApiSpecToAppTemplate","spec","OpenApiDiscoverRequestSchema","OpenApiDiscoverResponseSchema","OpenApiDiscoverRequest","OpenApiDiscoverResponse","McpApiKeyPlacementSchema","DEFAULT_MCP_API_KEY_PLACEMENT","McpApiKeyPlacement","McpApiKeyCredentialValueSchema","McpApiKeyCredentialValue","McpAuthInjection","headers","searchParams","mcpApiKeyAuthInjection","mcpCredentialAuthInjection","values","CatalogAppSummarySchema","package","CatalogAppsPageSchema","items","nextCursor","CatalogAppDetailSchema","CatalogActionSummarySchema","CatalogActionsPageSchema","toolkit","CatalogActionDetailSchema","inputParameters","outputParameters","CatalogAppSummary","CatalogAppsPage","CatalogAppDetail","CatalogActionSummary","CatalogActionsPage","CatalogActionDetail","CatalogAppsPageResponseSchema","CatalogAppDetailResponseSchema","CatalogActionsPageResponseSchema","CatalogActionDetailResponseSchema","isOfficialSlug","qualifyOrgSlug","orgSlug","ParsedOfficialAppSlug","ParsedOrgAppSlug","ParsedAppSlug","parseAppSlug","buildConnectDeeplink","webUrl","options","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","placeholder","helpText","type","password","text","textarea","ChannelBindingSchema","channelId","channelName","channelKind","subscribeOnMention","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","ChannelDirectoryListResponseSchema","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","CredentialScopeTypeSchema","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","deriveCredentialInstanceSlug","Iterable","explicitSlug","takenSlugs","resolveUniqueCredentialInstanceLabel","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","restricted","AppCredentialSummarySchema","scope","lastRefreshedAt","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","CredentialTargetsFields","StartOAuthConnectionInputSchema","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","StartOAuthConnectionResult","StartKeystrokeConnectionInputSchema","app","StartKeystrokeConnectionInput","StartKeystrokeConnectionResultSchema","connectionId","StartKeystrokeConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","GetCredentialResponseSchema","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","parseMcpEntityId","entityId","KeystrokeCredentialSchema","instanceId","KeystrokeCredential","McpCredentialAssignmentTargetSchema","agent","workflow","McpCredentialAssignmentTarget","ExecuteKeystrokeToolRequestSchema","tool","arguments","assignmentTarget","consumerId","ExecuteKeystrokeToolRequest","ExecuteKeystrokeToolErrorCodeSchema","not_found","forbidden","mcp_execute_failed","ExecuteKeystrokeToolErrorCode","ExecuteKeystrokeToolErrorResponseSchema","error","ExecuteKeystrokeToolErrorResponse","MCP_TOOL_EXECUTE_FAILED_STATUS","formatMcpToolErrorMessage","raw","TeamRequestTypeSchema","contact","verification","SubmitTeamRequestRequestSchema","SubmitTeamRequestResponseSchema","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","MarketingContactCompanySizeSchema","SubmitMarketingContactRequestSchema","fullName","workEmail","companySize","companyWebsite","SubmitMarketingContactResponseSchema","MarketingContactCompanySize","SubmitMarketingContactRequest","SubmitMarketingContactResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","credential","static","DefineStaticCredentialInput","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","path","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","needs_org_selection","org_unverified","ErrorResponseCode","ErrorResponseSchema","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentSlug","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","trigger","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","canceled","sourceId","title","ranByUserName","gatewayPlatform","triggerType","cron","webhook","poll","messageCount","AgentSessionSummary","AgentSessionRecordSchema","agentSlug","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerRunId","workflowSlug","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","AgentSessionChatStateQuerySchema","sinceSeq","AgentSessionChatStateQuery","AgentSessionChatStateResponseSchema","live","AgentSessionChatStateResponse","AgentTriggerOriginSchema","ephemeral","AgentTriggerStatusSchema","disabled","AgentTriggerTypeSchema","AgentTriggerType","AgentTriggerSummarySchema","origin","prompt","executionCount","until","AgentTriggerSummary","AgentTriggerSummaryListResponseSchema","AgentTriggerSummaryListResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","triggerId","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","CREDENTIAL_ASSIGNMENT_WILDCARD","CredentialAssignmentTargetTypeSchema","CredentialAssignmentRecordSchema","targetType","targetKey","credentialSlug","CredentialAssignmentListResponseSchema","assignments","AssignCredentialBodySchema","CredentialAssignmentListQuerySchema","CredentialConsumerListQuerySchema","CredentialConsumerSummarySchema","CredentialConsumerListResponseSchema","consumers","CredentialAssignmentTargetType","CredentialAssignmentRecord","AssignCredentialBody","CredentialAssignmentListQuery","CredentialConsumerListQuery","CredentialConsumerSummary","TriggerRunOutcomeSchema","dispatched","TriggerRunReasonSchema","filter_rejected","transform_undefined","invalid_payload","source_error","handler_error","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","outcome","detail","workflowRuns","agentSessions","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","TriggerRunDetailResponse","TriggerRunOutcome","TriggerRunReason","TriggerTypeSchema","TriggerTargetKindSchema","TriggerStatusSchema","TriggerAttachmentStatusSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","TriggerDetailResponseSchema","TriggerAssignmentSchema","disabledAt","TriggerAssignment","TriggerAttachmentStatus","TriggerStatus","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","TriggerTargetKind","TriggerType","WorkspaceTriggerRunStatusSchema","WorkspaceTriggerRunStatus","WorkspaceTriggerSkipReasonSchema","filtered","no_new_data","WorkspaceTriggerSkipReason","WorkspaceTriggerRunTargetSchema","workflowId","WorkspaceTriggerRunTarget","WorkspaceTriggerRunOutcomeSchema","targets","WorkspaceTriggerRunOutcome","WorkspaceTriggerSummarySchema","lastFiredAt","fireCount","WorkspaceTriggerSummary","WorkspaceTriggerDetailSchema","WorkspaceTriggerDetail","WorkspaceTriggerListResponseSchema","WorkspaceTriggerListResponse","WorkspaceTriggerRunSummarySchema","WorkspaceTriggerRunSummary","WorkspaceTriggerRunListResponseSchema","WorkspaceTriggerRunListResponse","WorkspaceTriggerFileSchema","contents","WorkspaceTriggerFile","DEFAULT_TRIGGER_OVERVIEW_MODEL","WorkspaceTriggerOverviewStatusSchema","generating","ready","WorkspaceTriggerOverviewStatus","WorkspaceTriggerOverviewSchema","markdown","hash","generatedAt","WorkspaceTriggerOverview","TriggerOverviewInputSchema","sourceContents","TriggerOverviewInput","TriggerOverviewJobPayloadSchema","triggerHash","TriggerOverviewJobPayload","TriggerAttachmentUpdateRequestSchema","TriggerAttachmentUpdateRequest","TriggerAttachmentUpdateResponseSchema","TriggerAttachmentUpdateResponse","OrganizationMemberRoleSchema","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ProjectArtifactStatusSchema","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","apps","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","StoredProjectSourceManifest","projectFileLanguage","projectFileId","AgentMemoryFileSummarySchema","AgentMemoryFileSummary","ListAgentMemoryFilesResponseSchema","ListAgentMemoryFilesResponse","agentMemoryFileId","AgentWorkspaceFileSummarySchema","AgentWorkspaceFileSummary","ListAgentWorkspaceFilesResponseSchema","ListAgentWorkspaceFilesResponse","agentWorkspaceFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","outputSchema","temperature","maxTokens","stepId","CredentialAssignmentSet","byConsumer","wildcard","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","verifiedAt","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProjectDeployment"],"sources":["../../shared/dist/index.d.mts"],"mappings":";;;;;;cAksDc2b,wBAAA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