|
|
|
@@ -20,6 +20,13 @@ export type SessionForkBoundary = { type: "before"; messageID: string } | { type
|
|
|
|
|
|
|
|
|
|
export type MoneyUSD = number
|
|
|
|
|
|
|
|
|
|
export type TokenUsageInfo = {
|
|
|
|
|
input: number
|
|
|
|
|
output: number
|
|
|
|
|
reasoning: number
|
|
|
|
|
cache: { read: number; write: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type LocationRef = { directory: string; workspaceID?: string }
|
|
|
|
|
|
|
|
|
|
export type FileDiffInfo = {
|
|
|
|
@@ -30,22 +37,105 @@ export type FileDiffInfo = {
|
|
|
|
|
status: "added" | "deleted" | "modified"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAgentSelected = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "agent-switched"
|
|
|
|
|
agent: string
|
|
|
|
|
previous?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PromptBase64 = string
|
|
|
|
|
|
|
|
|
|
export type PromptFileSource = { type: "inline" } | { type: "uri"; uri: string }
|
|
|
|
|
|
|
|
|
|
export type PromptMention = { start: number; end: number; text: string }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageSynthetic = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
text: string
|
|
|
|
|
description?: string
|
|
|
|
|
type: "synthetic"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageSystem = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "system"
|
|
|
|
|
text: string
|
|
|
|
|
description?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageSkill = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "skill"
|
|
|
|
|
skill: string
|
|
|
|
|
name: string
|
|
|
|
|
text: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageShell = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number; completed?: number }
|
|
|
|
|
type: "shell"
|
|
|
|
|
shellID: string
|
|
|
|
|
command: string
|
|
|
|
|
status: "running" | "exited" | "timeout" | "killed"
|
|
|
|
|
exit?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
output?: { output: string; cursor: number; size: number; truncated: boolean }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageProviderState = { [x: string]: JsonValue }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageToolStateStreaming = { status: "streaming"; input: string }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageToolStateRunning = {
|
|
|
|
|
status: "running"
|
|
|
|
|
input: { [x: string]: JsonValue }
|
|
|
|
|
metadata: { [x: string]: JsonValue }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ToolTextContent = { type: "text"; text: string }
|
|
|
|
|
|
|
|
|
|
export type ToolFileContent = { type: "file"; uri: string; mime: string; name?: string | null }
|
|
|
|
|
|
|
|
|
|
export type SessionStructuredError = { type: string; message: string; status?: number }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompactionRunning = {
|
|
|
|
|
type: "compaction"
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
status: "running"
|
|
|
|
|
reason: "auto" | "manual"
|
|
|
|
|
summary: string
|
|
|
|
|
recent: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompactionCompleted = {
|
|
|
|
|
type: "compaction"
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
status: "completed"
|
|
|
|
|
reason: "auto" | "manual"
|
|
|
|
|
summary: string
|
|
|
|
|
recent: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionActive = { type: "running" }
|
|
|
|
|
|
|
|
|
|
export type SessionInboxDelivery = "steer" | "queue"
|
|
|
|
|
|
|
|
|
|
export type SessionInboxSyntheticPayload = { text: string; description?: string; metadata?: { [x: string]: JsonValue } }
|
|
|
|
|
|
|
|
|
|
export type SessionInboxCompactionPayload = {}
|
|
|
|
|
|
|
|
|
|
export type InstructionEntryKey = string
|
|
|
|
@@ -54,6 +144,19 @@ export type SessionGenerateResponse = { data: { text: string } }
|
|
|
|
|
|
|
|
|
|
export type SessionInboxSyntheticPayload1 = { text: string; description?: string; metadata?: { [x: string]: any } }
|
|
|
|
|
|
|
|
|
|
export type ShellInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
status: "running" | "exited" | "timeout" | "killed"
|
|
|
|
|
command: string
|
|
|
|
|
cwd: string
|
|
|
|
|
shell: string
|
|
|
|
|
file: string
|
|
|
|
|
pid?: number
|
|
|
|
|
exit?: number
|
|
|
|
|
metadata: { [x: string]: any }
|
|
|
|
|
time: { started: number; completed?: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageProviderState1 = { [x: string]: any }
|
|
|
|
|
|
|
|
|
|
export type ToolFileContent1 = { type: "file"; uri: string; mime: string; name?: string | undefined }
|
|
|
|
@@ -64,10 +167,41 @@ export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning
|
|
|
|
|
|
|
|
|
|
export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens"
|
|
|
|
|
|
|
|
|
|
export type ModelCapabilities = {
|
|
|
|
|
tools: boolean
|
|
|
|
|
input: Array<string>
|
|
|
|
|
output: Array<string>
|
|
|
|
|
responsesWebsockets?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelVariant = {
|
|
|
|
|
id: string
|
|
|
|
|
settings?: { [x: string]: any }
|
|
|
|
|
headers?: { [x: string]: string }
|
|
|
|
|
body?: { [x: string]: any }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MoneyUSDPerMillionTokens = number
|
|
|
|
|
|
|
|
|
|
export type GenerateTextResponse = { data: { text: string } }
|
|
|
|
|
|
|
|
|
|
export type ProviderInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
integrationID?: string
|
|
|
|
|
name: string
|
|
|
|
|
activation: "auto" | "enabled" | "disabled"
|
|
|
|
|
package: string
|
|
|
|
|
settings?: { [x: string]: any }
|
|
|
|
|
headers?: { [x: string]: string }
|
|
|
|
|
body?: { [x: string]: any }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormWhen = {
|
|
|
|
|
key: string
|
|
|
|
|
op: "eq" | "neq"
|
|
|
|
|
value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormOption = { value: string; label: string; description?: string }
|
|
|
|
|
|
|
|
|
|
export type FormExternalField = { key: string; type: "external"; url: string; title?: string; description?: string }
|
|
|
|
@@ -80,6 +214,50 @@ export type ConnectionCredentialInfo = { type: "credential"; id: string; label:
|
|
|
|
|
|
|
|
|
|
export type ConnectionEnvInfo = { type: "env"; name: string }
|
|
|
|
|
|
|
|
|
|
export type IntegrationAttemptStatus =
|
|
|
|
|
| {
|
|
|
|
|
status: "pending"
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "complete"
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "failed"
|
|
|
|
|
message: string
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "expired"
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IntegrationCommandAttempt = {
|
|
|
|
|
attemptID: string
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IntegrationCommandAttemptStatus =
|
|
|
|
|
| {
|
|
|
|
|
status: "pending"
|
|
|
|
|
message?: string
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "complete"
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "failed"
|
|
|
|
|
message: string
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "expired"
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type McpStatusConnected = { status: "connected" }
|
|
|
|
|
|
|
|
|
|
export type McpStatusPending = { status: "pending" }
|
|
|
|
@@ -110,6 +288,8 @@ export type ProjectTime = { created: number; updated: number; initialized?: numb
|
|
|
|
|
|
|
|
|
|
export type ProjectCurrent = { id: string; directory: string; canonical: string }
|
|
|
|
|
|
|
|
|
|
export type FormMetadata = { [x: string]: JsonValue }
|
|
|
|
|
|
|
|
|
|
export type FormValue = string | number | boolean | Array<string>
|
|
|
|
|
|
|
|
|
|
export type PermissionSource = { type: "tool"; messageID: string; id: string }
|
|
|
|
@@ -158,6 +338,19 @@ export type SessionStatus =
|
|
|
|
|
|
|
|
|
|
export type PtyTicketConnectToken = { ticket: string; expires_in: number }
|
|
|
|
|
|
|
|
|
|
export type ShellInfo1 = {
|
|
|
|
|
id: string
|
|
|
|
|
status: "running" | "exited" | "timeout" | "killed"
|
|
|
|
|
command: string
|
|
|
|
|
cwd: string
|
|
|
|
|
shell: string
|
|
|
|
|
file: string
|
|
|
|
|
pid?: number
|
|
|
|
|
exit?: number
|
|
|
|
|
metadata: { [x: string]: JsonValue }
|
|
|
|
|
time: { started: number; completed?: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ReferenceLocalSource = { type: "local"; path: string; description?: string; hidden?: boolean }
|
|
|
|
|
|
|
|
|
|
export type ReferenceGitSource = {
|
|
|
|
@@ -206,11 +399,15 @@ export type PluginInfo =
|
|
|
|
|
| { id: string; source: PluginSource; status: "active"; tui: boolean }
|
|
|
|
|
| { id?: string; source: PluginSource; status: "failed"; error: string; tui: boolean }
|
|
|
|
|
|
|
|
|
|
export type TokenUsageInfo = {
|
|
|
|
|
input: number
|
|
|
|
|
output: number
|
|
|
|
|
reasoning: number
|
|
|
|
|
cache: { read: number; write: number }
|
|
|
|
|
export type SessionMessageLocationSwitched = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "location-switched"
|
|
|
|
|
location: LocationRef
|
|
|
|
|
projectID?: string
|
|
|
|
|
subpath?: string
|
|
|
|
|
previous?: { location: LocationRef; projectID?: string; subpath?: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxMovePayload = { location: LocationRef; projectID: string; subpath?: string }
|
|
|
|
@@ -223,18 +420,17 @@ export type V2EventServerConnected = {
|
|
|
|
|
data: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageProviderState = { [x: string]: JsonValue }
|
|
|
|
|
export type SessionRevert = { messageID: string; partID?: string; snapshot?: string; files?: Array<FileDiffInfo> }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageToolStateRunning = {
|
|
|
|
|
status: "running"
|
|
|
|
|
input: { [x: string]: JsonValue }
|
|
|
|
|
metadata: { [x: string]: JsonValue }
|
|
|
|
|
export type SessionMessageModelSelected = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "model-switched"
|
|
|
|
|
model: ModelRef
|
|
|
|
|
previous?: ModelRef
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxSyntheticPayload = { text: string; description?: string; metadata?: { [x: string]: JsonValue } }
|
|
|
|
|
|
|
|
|
|
export type FormMetadata = { [x: string]: JsonValue }
|
|
|
|
|
|
|
|
|
|
export type PromptFileAttachment = {
|
|
|
|
|
data: PromptBase64
|
|
|
|
|
mime: string
|
|
|
|
@@ -248,10 +444,38 @@ export type PromptAgentAttachment = { name: string; mention?: PromptMention }
|
|
|
|
|
|
|
|
|
|
export type PromptSkillAttachment = { id: string; name: string; mention?: PromptMention }
|
|
|
|
|
|
|
|
|
|
export type ToolFileContent = { type: "file"; uri: string; mime: string; name?: string | null }
|
|
|
|
|
export type SessionMessageAssistantText = { type: "text"; text: string; state?: SessionMessageProviderState }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAssistantReasoning = {
|
|
|
|
|
type: "reasoning"
|
|
|
|
|
text: string
|
|
|
|
|
state?: SessionMessageProviderState
|
|
|
|
|
time?: { created: number; completed?: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ToolContent = ToolTextContent | ToolFileContent
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAssistantRetry = { attempt: number; at: number; error: SessionStructuredError }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompactionFailed = {
|
|
|
|
|
type: "compaction"
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
status: "failed"
|
|
|
|
|
reason: "auto" | "manual"
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxSynthetic = {
|
|
|
|
|
id: string
|
|
|
|
|
sessionID: string
|
|
|
|
|
timeCreated: number
|
|
|
|
|
type: "synthetic"
|
|
|
|
|
payload: SessionInboxSyntheticPayload
|
|
|
|
|
delivery: SessionInboxDelivery
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxCompaction = {
|
|
|
|
|
id: string
|
|
|
|
|
sessionID: string
|
|
|
|
@@ -496,6 +720,36 @@ export type SessionRetryScheduled = {
|
|
|
|
|
data: { sessionID: string; assistantMessageID: string; attempt: number; at: number; error: SessionStructuredError }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionCompactionStarted = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.compaction.started"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; reason: "auto" | "manual"; recent: string; inputID?: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionCompactionEnded = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.compaction.ended"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; reason: "auto" | "manual"; text: string; recent: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionCompactionFailed = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.compaction.failed"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; reason: "auto" | "manual"; error: SessionStructuredError; inputID?: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionRevertCleared = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
@@ -516,6 +770,16 @@ export type SessionRevertCommitted = {
|
|
|
|
|
data: { sessionID: string; to: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionUsageRecorded = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.usage.recorded"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; source: "title" | "compaction"; cost: MoneyUSD; tokens: TokenUsageInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelsDevRefreshed = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
@@ -561,6 +825,15 @@ export type AgentUpdated = {
|
|
|
|
|
data: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionUsageUpdated = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.usage.updated"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; cost: MoneyUSD; tokens: TokenUsageInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionTextDelta = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
@@ -857,30 +1130,78 @@ export type McpResourcesChanged = {
|
|
|
|
|
data: { server: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ShellInfo = {
|
|
|
|
|
export type SessionShellStarted = {
|
|
|
|
|
id: string
|
|
|
|
|
status: "running" | "exited" | "timeout" | "killed"
|
|
|
|
|
command: string
|
|
|
|
|
cwd: string
|
|
|
|
|
shell: string
|
|
|
|
|
file: string
|
|
|
|
|
pid?: number
|
|
|
|
|
exit?: number
|
|
|
|
|
metadata: { [x: string]: any }
|
|
|
|
|
time: { started: number; completed?: number }
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.shell.started"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; shell: ShellInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ShellInfo1 = {
|
|
|
|
|
export type SessionShellEnded = {
|
|
|
|
|
id: string
|
|
|
|
|
status: "running" | "exited" | "timeout" | "killed"
|
|
|
|
|
command: string
|
|
|
|
|
cwd: string
|
|
|
|
|
shell: string
|
|
|
|
|
file: string
|
|
|
|
|
pid?: number
|
|
|
|
|
exit?: number
|
|
|
|
|
metadata: { [x: string]: JsonValue }
|
|
|
|
|
time: { started: number; completed?: number }
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.shell.ended"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
shell: ShellInfo
|
|
|
|
|
output: { output: string; cursor: number; size: number; truncated: boolean }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ShellCreated = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "shell.created"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { info: ShellInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionStepEnded = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.step.ended"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown"
|
|
|
|
|
rawFinish?: string
|
|
|
|
|
providerState?: SessionMessageProviderState1
|
|
|
|
|
cost: MoneyUSD
|
|
|
|
|
tokens: TokenUsageInfo
|
|
|
|
|
snapshot?: string
|
|
|
|
|
files?: Array<string>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionStepFailed = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.step.failed"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
finish?: "content-filter"
|
|
|
|
|
rawFinish?: string
|
|
|
|
|
providerState?: SessionMessageProviderState1
|
|
|
|
|
cost?: MoneyUSD
|
|
|
|
|
tokens?: TokenUsageInfo
|
|
|
|
|
snapshot?: string
|
|
|
|
|
files?: Array<string>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionTextEnded = {
|
|
|
|
@@ -944,67 +1265,12 @@ export type SessionToolCalled = {
|
|
|
|
|
|
|
|
|
|
export type ToolContent1 = ToolTextContent | ToolFileContent1
|
|
|
|
|
|
|
|
|
|
export type SessionCompactionStarted = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.compaction.started"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; reason: "auto" | "manual"; recent: string; inputID?: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionCompactionEnded = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.compaction.ended"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; reason: "auto" | "manual"; text: string; recent: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionCompactionFailed = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.compaction.failed"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; reason: "auto" | "manual"; error: SessionStructuredError; inputID?: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelCompatibility = {
|
|
|
|
|
reasoningField?: ModelReasoningField
|
|
|
|
|
maxTokensField?: ModelMaxTokensField
|
|
|
|
|
requireFinishReason?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelVariant = {
|
|
|
|
|
id: string
|
|
|
|
|
settings?: { [x: string]: any }
|
|
|
|
|
headers?: { [x: string]: string }
|
|
|
|
|
body?: { [x: string]: any }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ProviderInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
integrationID?: string
|
|
|
|
|
name: string
|
|
|
|
|
activation: "auto" | "enabled" | "disabled"
|
|
|
|
|
package: string
|
|
|
|
|
settings?: { [x: string]: any }
|
|
|
|
|
headers?: { [x: string]: string }
|
|
|
|
|
body?: { [x: string]: any }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelCapabilities = {
|
|
|
|
|
tools: boolean
|
|
|
|
|
input: Array<string>
|
|
|
|
|
output: Array<string>
|
|
|
|
|
responsesWebsockets?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelCost = {
|
|
|
|
|
tier?: { type: "context"; size: number }
|
|
|
|
|
input: MoneyUSDPerMillionTokens
|
|
|
|
@@ -1012,6 +1278,71 @@ export type ModelCost = {
|
|
|
|
|
cache: { read: MoneyUSDPerMillionTokens; write: MoneyUSDPerMillionTokens }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormNumberField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "number"
|
|
|
|
|
minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormIntegerField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "integer"
|
|
|
|
|
minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormBooleanField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "boolean"
|
|
|
|
|
default?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormStringField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "string"
|
|
|
|
|
format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
|
minLength?: number
|
|
|
|
|
maxLength?: number
|
|
|
|
|
pattern?: string
|
|
|
|
|
placeholder?: string
|
|
|
|
|
default?: string
|
|
|
|
|
options?: Array<FormOption>
|
|
|
|
|
custom?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormMultiselectField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "multiselect"
|
|
|
|
|
options: Array<FormOption>
|
|
|
|
|
minItems?: number
|
|
|
|
|
maxItems?: number
|
|
|
|
|
custom?: boolean
|
|
|
|
|
default?: Array<string>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo
|
|
|
|
|
|
|
|
|
|
export type McpServer = {
|
|
|
|
@@ -1089,338 +1420,6 @@ export type PtyUpdated = {
|
|
|
|
|
data: { info: Pty }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionStatusUpdated = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.status"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; status: SessionStatus }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ReferenceSource = ReferenceLocalSource | ReferenceGitSource
|
|
|
|
|
|
|
|
|
|
export type WorktreeList = Array<WorktreeDirectory>
|
|
|
|
|
|
|
|
|
|
export type VcsInfo = { branch: VcsBranch }
|
|
|
|
|
|
|
|
|
|
export type PermissionRuleset = Array<PermissionRule>
|
|
|
|
|
|
|
|
|
|
export type SessionStepEnded = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.step.ended"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown"
|
|
|
|
|
rawFinish?: string
|
|
|
|
|
providerState?: SessionMessageProviderState1
|
|
|
|
|
cost: MoneyUSD
|
|
|
|
|
tokens: TokenUsageInfo
|
|
|
|
|
snapshot?: string
|
|
|
|
|
files?: Array<string>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionUsageRecorded = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.usage.recorded"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; source: "title" | "compaction"; cost: MoneyUSD; tokens: TokenUsageInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionUsageUpdated = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.usage.updated"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; cost: MoneyUSD; tokens: TokenUsageInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionStepFailed = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.step.failed"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
finish?: "content-filter"
|
|
|
|
|
rawFinish?: string
|
|
|
|
|
providerState?: SessionMessageProviderState1
|
|
|
|
|
cost?: MoneyUSD
|
|
|
|
|
tokens?: TokenUsageInfo
|
|
|
|
|
snapshot?: string
|
|
|
|
|
files?: Array<string>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxMove = {
|
|
|
|
|
id: string
|
|
|
|
|
sessionID: string
|
|
|
|
|
timeCreated: number
|
|
|
|
|
type: "move"
|
|
|
|
|
payload: SessionInboxMovePayload
|
|
|
|
|
delivery: SessionInboxDelivery
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionRevert = { messageID: string; partID?: string; snapshot?: string; files?: Array<FileDiffInfo> }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAgentSelected = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "agent-switched"
|
|
|
|
|
agent: string
|
|
|
|
|
previous?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageModelSelected = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "model-switched"
|
|
|
|
|
model: ModelRef
|
|
|
|
|
previous?: ModelRef
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageLocationSwitched = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "location-switched"
|
|
|
|
|
location: LocationRef
|
|
|
|
|
projectID?: string
|
|
|
|
|
subpath?: string
|
|
|
|
|
previous?: { location: LocationRef; projectID?: string; subpath?: string }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageSynthetic = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
text: string
|
|
|
|
|
description?: string
|
|
|
|
|
type: "synthetic"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageSystem = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "system"
|
|
|
|
|
text: string
|
|
|
|
|
description?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageSkill = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
type: "skill"
|
|
|
|
|
skill: string
|
|
|
|
|
name: string
|
|
|
|
|
text: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageShell = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number; completed?: number }
|
|
|
|
|
type: "shell"
|
|
|
|
|
shellID: string
|
|
|
|
|
command: string
|
|
|
|
|
status: "running" | "exited" | "timeout" | "killed"
|
|
|
|
|
exit?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
output?: { output: string; cursor: number; size: number; truncated: boolean }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompactionRunning = {
|
|
|
|
|
type: "compaction"
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
status: "running"
|
|
|
|
|
reason: "auto" | "manual"
|
|
|
|
|
summary: string
|
|
|
|
|
recent: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompactionCompleted = {
|
|
|
|
|
type: "compaction"
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
status: "completed"
|
|
|
|
|
reason: "auto" | "manual"
|
|
|
|
|
summary: string
|
|
|
|
|
recent: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompactionFailed = {
|
|
|
|
|
type: "compaction"
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
status: "failed"
|
|
|
|
|
reason: "auto" | "manual"
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAssistantText = { type: "text"; text: string; state?: SessionMessageProviderState }
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAssistantReasoning = {
|
|
|
|
|
type: "reasoning"
|
|
|
|
|
text: string
|
|
|
|
|
state?: SessionMessageProviderState
|
|
|
|
|
time?: { created: number; completed?: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxSynthetic = {
|
|
|
|
|
id: string
|
|
|
|
|
sessionID: string
|
|
|
|
|
timeCreated: number
|
|
|
|
|
type: "synthetic"
|
|
|
|
|
payload: SessionInboxSyntheticPayload
|
|
|
|
|
delivery: SessionInboxDelivery
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormWhen = {
|
|
|
|
|
key: string
|
|
|
|
|
op: "eq" | "neq"
|
|
|
|
|
value: string | (number | ("Infinity" | "-Infinity" | "NaN")) | boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ToolContent = ToolTextContent | ToolFileContent
|
|
|
|
|
|
|
|
|
|
export type SessionForked = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.forked"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 2 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
parentID: string
|
|
|
|
|
boundary: SessionForkBoundary
|
|
|
|
|
instructions?: { [x: string]: string }
|
|
|
|
|
instructionEntries?: InstructionEntrySnapshot
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionShellStarted = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.shell.started"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; shell: ShellInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionShellEnded = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.shell.ended"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
shell: ShellInfo
|
|
|
|
|
output: { output: string; cursor: number; size: number; truncated: boolean }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ShellCreated = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "shell.created"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { info: ShellInfo }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionToolSuccess = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.tool.success"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 2 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
id: string
|
|
|
|
|
content: [ToolContent1, ...Array<ToolContent1>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
executed: boolean
|
|
|
|
|
resultState?: SessionMessageProviderState1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionToolFailed = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.tool.failed"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 2 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
id: string
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
content?: [ToolContent1, ...Array<ToolContent1>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
executed: boolean
|
|
|
|
|
resultState?: SessionMessageProviderState1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
modelID: string
|
|
|
|
|
providerID: string
|
|
|
|
|
family?: string
|
|
|
|
|
name: string
|
|
|
|
|
compatibility?: ModelCompatibility
|
|
|
|
|
package?: string
|
|
|
|
|
settings?: { [x: string]: any }
|
|
|
|
|
headers?: { [x: string]: string }
|
|
|
|
|
body?: { [x: string]: any }
|
|
|
|
|
capabilities: ModelCapabilities
|
|
|
|
|
variants: Array<ModelVariant>
|
|
|
|
|
time: { released: number }
|
|
|
|
|
cost: Array<ModelCost>
|
|
|
|
|
status: "alpha" | "beta" | "deprecated" | "active"
|
|
|
|
|
enabled: boolean
|
|
|
|
|
limit: { context: number; input?: number; output: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormState = { status: "pending" } | { status: "answered"; answer: FormAnswer } | { status: "cancelled" }
|
|
|
|
|
|
|
|
|
|
export type FormReplied = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "form.replied"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { id: string; sessionID: string; answer: FormAnswer }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormStringField1 = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
@@ -1486,6 +1485,206 @@ export type FormMultiselectField1 = {
|
|
|
|
|
default?: Array<string>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionStatusUpdated = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.status"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; status: SessionStatus }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ReferenceSource = ReferenceLocalSource | ReferenceGitSource
|
|
|
|
|
|
|
|
|
|
export type WorktreeList = Array<WorktreeDirectory>
|
|
|
|
|
|
|
|
|
|
export type VcsInfo = { branch: VcsBranch }
|
|
|
|
|
|
|
|
|
|
export type PermissionRuleset = Array<PermissionRule>
|
|
|
|
|
|
|
|
|
|
export type SessionInboxMove = {
|
|
|
|
|
id: string
|
|
|
|
|
sessionID: string
|
|
|
|
|
timeCreated: number
|
|
|
|
|
type: "move"
|
|
|
|
|
payload: SessionInboxMovePayload
|
|
|
|
|
delivery: SessionInboxDelivery
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
parentID?: string
|
|
|
|
|
fork?: { sessionID: string; boundary: SessionForkBoundary }
|
|
|
|
|
projectID: string
|
|
|
|
|
agent?: string
|
|
|
|
|
model?: ModelRef
|
|
|
|
|
cost: MoneyUSD
|
|
|
|
|
tokens: TokenUsageInfo
|
|
|
|
|
outcome?: "succeeded" | "failed" | "interrupted"
|
|
|
|
|
time: { created: number; updated: number; idle?: number; viewed?: number; archived?: number }
|
|
|
|
|
title?: string
|
|
|
|
|
location: LocationRef
|
|
|
|
|
subpath?: string
|
|
|
|
|
revert?: SessionRevert
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionRevertStaged = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.revert.staged"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; revert: SessionRevert }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageUser = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
text: string
|
|
|
|
|
files?: Array<PromptFileAttachment>
|
|
|
|
|
agents?: Array<PromptAgentAttachment>
|
|
|
|
|
skills?: Array<PromptSkillAttachment>
|
|
|
|
|
type: "user"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxUserPayload = {
|
|
|
|
|
text: string
|
|
|
|
|
files?: Array<PromptFileAttachment>
|
|
|
|
|
agents?: Array<PromptAgentAttachment>
|
|
|
|
|
skills?: Array<PromptSkillAttachment>
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxUserPayload1 = {
|
|
|
|
|
text: string
|
|
|
|
|
files?: Array<PromptFileAttachment>
|
|
|
|
|
agents?: Array<PromptAgentAttachment>
|
|
|
|
|
skills?: Array<PromptSkillAttachment>
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageToolStateCompleted = {
|
|
|
|
|
status: "completed"
|
|
|
|
|
input: { [x: string]: JsonValue }
|
|
|
|
|
content: [ToolContent, ...Array<ToolContent>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageToolStateError = {
|
|
|
|
|
status: "error"
|
|
|
|
|
input: { [x: string]: JsonValue }
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
content?: [ToolContent, ...Array<ToolContent>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompaction =
|
|
|
|
|
| SessionMessageCompactionRunning
|
|
|
|
|
| SessionMessageCompactionCompleted
|
|
|
|
|
| SessionMessageCompactionFailed
|
|
|
|
|
|
|
|
|
|
export type SessionForked = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.forked"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 2 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
parentID: string
|
|
|
|
|
boundary: SessionForkBoundary
|
|
|
|
|
instructions?: { [x: string]: string }
|
|
|
|
|
instructionEntries?: InstructionEntrySnapshot
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionToolSuccess = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.tool.success"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 2 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
id: string
|
|
|
|
|
content: [ToolContent1, ...Array<ToolContent1>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
executed: boolean
|
|
|
|
|
resultState?: SessionMessageProviderState1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionToolFailed = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.tool.failed"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 2 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: {
|
|
|
|
|
sessionID: string
|
|
|
|
|
assistantMessageID: string
|
|
|
|
|
id: string
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
content?: [ToolContent1, ...Array<ToolContent1>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
executed: boolean
|
|
|
|
|
resultState?: SessionMessageProviderState1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ModelInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
modelID: string
|
|
|
|
|
providerID: string
|
|
|
|
|
family?: string
|
|
|
|
|
name: string
|
|
|
|
|
compatibility?: ModelCompatibility
|
|
|
|
|
package?: string
|
|
|
|
|
settings?: { [x: string]: any }
|
|
|
|
|
headers?: { [x: string]: string }
|
|
|
|
|
body?: { [x: string]: any }
|
|
|
|
|
capabilities: ModelCapabilities
|
|
|
|
|
variants: Array<ModelVariant>
|
|
|
|
|
time: { released: number }
|
|
|
|
|
cost: Array<ModelCost>
|
|
|
|
|
status: "alpha" | "beta" | "deprecated" | "active"
|
|
|
|
|
enabled: boolean
|
|
|
|
|
limit: { context: number; input?: number; output: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormField =
|
|
|
|
|
| FormStringField
|
|
|
|
|
| FormNumberField
|
|
|
|
|
| FormIntegerField
|
|
|
|
|
| FormBooleanField
|
|
|
|
|
| FormMultiselectField
|
|
|
|
|
| FormExternalField
|
|
|
|
|
|
|
|
|
|
export type FormState = { status: "pending" } | { status: "answered"; answer: FormAnswer } | { status: "cancelled" }
|
|
|
|
|
|
|
|
|
|
export type FormReplied = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "form.replied"
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { id: string; sessionID: string; answer: FormAnswer }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormField1 =
|
|
|
|
|
| FormStringField1
|
|
|
|
|
| FormNumberField1
|
|
|
|
|
| FormIntegerField1
|
|
|
|
|
| FormBooleanField1
|
|
|
|
|
| FormMultiselectField1
|
|
|
|
|
| FormExternalField
|
|
|
|
|
|
|
|
|
|
export type ReferenceInfo = {
|
|
|
|
|
name: string
|
|
|
|
|
path: string
|
|
|
|
@@ -1673,156 +1872,6 @@ export type ConfigEntry =
|
|
|
|
|
| { type: "agents"; path: string }
|
|
|
|
|
| { type: "claude"; path: string }
|
|
|
|
|
|
|
|
|
|
export type SessionInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
parentID?: string
|
|
|
|
|
fork?: { sessionID: string; boundary: SessionForkBoundary }
|
|
|
|
|
projectID: string
|
|
|
|
|
agent?: string
|
|
|
|
|
model?: ModelRef
|
|
|
|
|
cost: MoneyUSD
|
|
|
|
|
tokens: TokenUsageInfo
|
|
|
|
|
outcome?: "succeeded" | "failed" | "interrupted"
|
|
|
|
|
time: { created: number; updated: number; idle?: number; viewed?: number; archived?: number }
|
|
|
|
|
title?: string
|
|
|
|
|
location: LocationRef
|
|
|
|
|
subpath?: string
|
|
|
|
|
revert?: SessionRevert
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionRevertStaged = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
type: "session.revert.staged"
|
|
|
|
|
durable: { aggregateID: string; seq: number; version: 1 }
|
|
|
|
|
location?: LocationRef
|
|
|
|
|
data: { sessionID: string; revert: SessionRevert }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageCompaction =
|
|
|
|
|
| SessionMessageCompactionRunning
|
|
|
|
|
| SessionMessageCompactionCompleted
|
|
|
|
|
| SessionMessageCompactionFailed
|
|
|
|
|
|
|
|
|
|
export type SessionMessageUser = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
time: { created: number }
|
|
|
|
|
text: string
|
|
|
|
|
files?: Array<PromptFileAttachment>
|
|
|
|
|
agents?: Array<PromptAgentAttachment>
|
|
|
|
|
skills?: Array<PromptSkillAttachment>
|
|
|
|
|
type: "user"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxUserPayload = {
|
|
|
|
|
text: string
|
|
|
|
|
files?: Array<PromptFileAttachment>
|
|
|
|
|
agents?: Array<PromptAgentAttachment>
|
|
|
|
|
skills?: Array<PromptSkillAttachment>
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionInboxUserPayload1 = {
|
|
|
|
|
text: string
|
|
|
|
|
files?: Array<PromptFileAttachment>
|
|
|
|
|
agents?: Array<PromptAgentAttachment>
|
|
|
|
|
skills?: Array<PromptSkillAttachment>
|
|
|
|
|
metadata?: { [x: string]: any }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IntegrationAttemptStatus =
|
|
|
|
|
| {
|
|
|
|
|
status: "pending"
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "complete"
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "failed"
|
|
|
|
|
message: string
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "expired"
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IntegrationCommandAttempt = {
|
|
|
|
|
attemptID: string
|
|
|
|
|
time: { created: number | ("Infinity" | "-Infinity" | "NaN"); expires: number | ("Infinity" | "-Infinity" | "NaN") }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IntegrationCommandAttemptStatus =
|
|
|
|
|
| {
|
|
|
|
|
status: "pending"
|
|
|
|
|
message?: string
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "complete"
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "failed"
|
|
|
|
|
message: string
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
status: "expired"
|
|
|
|
|
time: {
|
|
|
|
|
created: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
expires: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageToolStateCompleted = {
|
|
|
|
|
status: "completed"
|
|
|
|
|
input: { [x: string]: JsonValue }
|
|
|
|
|
content: [ToolContent, ...Array<ToolContent>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageToolStateError = {
|
|
|
|
|
status: "error"
|
|
|
|
|
input: { [x: string]: JsonValue }
|
|
|
|
|
error: SessionStructuredError
|
|
|
|
|
content?: [ToolContent, ...Array<ToolContent>]
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormField1 =
|
|
|
|
|
| FormStringField1
|
|
|
|
|
| FormNumberField1
|
|
|
|
|
| FormIntegerField1
|
|
|
|
|
| FormBooleanField1
|
|
|
|
|
| FormMultiselectField1
|
|
|
|
|
| FormExternalField
|
|
|
|
|
|
|
|
|
|
export type SessionsResponse = { data: Array<SessionInfo>; cursor: { previous?: string | null; next?: string | null } }
|
|
|
|
|
|
|
|
|
|
export type SessionInboxUser = {
|
|
|
|
@@ -1840,71 +1889,6 @@ export type SessionInboxItem =
|
|
|
|
|
| { type: "compaction"; payload: SessionInboxCompactionPayload; delivery: SessionInboxDelivery }
|
|
|
|
|
| { type: "move"; payload: SessionInboxMovePayload; delivery: SessionInboxDelivery }
|
|
|
|
|
|
|
|
|
|
export type FormStringField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "string"
|
|
|
|
|
format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
|
minLength?: number
|
|
|
|
|
maxLength?: number
|
|
|
|
|
pattern?: string
|
|
|
|
|
placeholder?: string
|
|
|
|
|
default?: string
|
|
|
|
|
options?: Array<FormOption>
|
|
|
|
|
custom?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormNumberField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "number"
|
|
|
|
|
minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormIntegerField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "integer"
|
|
|
|
|
minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormBooleanField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "boolean"
|
|
|
|
|
default?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormMultiselectField = {
|
|
|
|
|
key: string
|
|
|
|
|
title?: string
|
|
|
|
|
description?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
when?: Array<FormWhen>
|
|
|
|
|
type: "multiselect"
|
|
|
|
|
options: Array<FormOption>
|
|
|
|
|
minItems?: number
|
|
|
|
|
maxItems?: number
|
|
|
|
|
custom?: boolean
|
|
|
|
|
default?: Array<string>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAssistantTool = {
|
|
|
|
|
type: "tool"
|
|
|
|
|
id: string
|
|
|
|
@@ -1920,6 +1904,8 @@ export type SessionMessageAssistantTool = {
|
|
|
|
|
time: { created: number; ran?: number; completed?: number }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormFields = [FormField, ...Array<FormField>]
|
|
|
|
|
|
|
|
|
|
export type FormFields2 = [FormField1, ...Array<FormField1>]
|
|
|
|
|
|
|
|
|
|
export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove
|
|
|
|
@@ -1934,14 +1920,6 @@ export type SessionInboxEnqueued = {
|
|
|
|
|
data: { sessionID: string; inboxID: string; item: SessionInboxItem }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormField =
|
|
|
|
|
| FormStringField
|
|
|
|
|
| FormNumberField
|
|
|
|
|
| FormIntegerField
|
|
|
|
|
| FormBooleanField
|
|
|
|
|
| FormMultiselectField
|
|
|
|
|
| FormExternalField
|
|
|
|
|
|
|
|
|
|
export type SessionMessageAssistant = {
|
|
|
|
|
id: string
|
|
|
|
|
metadata?: { [x: string]: JsonValue }
|
|
|
|
@@ -1960,6 +1938,12 @@ export type SessionMessageAssistant = {
|
|
|
|
|
retry?: SessionMessageAssistantRetry
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IntegrationOAuthMethod = { id: string; type: "oauth"; label: string; form?: FormFields }
|
|
|
|
|
|
|
|
|
|
export type IntegrationKeyMethod = { type: "key"; label?: string; form?: FormFields }
|
|
|
|
|
|
|
|
|
|
export type FormInfo = { id: string; sessionID: string; title: string; metadata?: FormMetadata; fields: FormFields }
|
|
|
|
|
|
|
|
|
|
export type FormInfo1 = { id: string; sessionID: string; title: string; metadata?: FormMetadata1; fields: FormFields2 }
|
|
|
|
|
|
|
|
|
|
export type SessionEventDurable =
|
|
|
|
@@ -2005,8 +1989,6 @@ export type SessionEventDurable =
|
|
|
|
|
| SessionRevertCommitted
|
|
|
|
|
| SessionUsageRecorded
|
|
|
|
|
|
|
|
|
|
export type FormFields = [FormField, ...Array<FormField>]
|
|
|
|
|
|
|
|
|
|
export type SessionMessageInfo =
|
|
|
|
|
| SessionMessageAgentSelected
|
|
|
|
|
| SessionMessageModelSelected
|
|
|
|
@@ -2019,6 +2001,12 @@ export type SessionMessageInfo =
|
|
|
|
|
| SessionMessageAssistant
|
|
|
|
|
| SessionMessageCompaction
|
|
|
|
|
|
|
|
|
|
export type IntegrationMethod =
|
|
|
|
|
| IntegrationOAuthMethod
|
|
|
|
|
| IntegrationCommandMethod
|
|
|
|
|
| IntegrationKeyMethod
|
|
|
|
|
| IntegrationEnvMethod
|
|
|
|
|
|
|
|
|
|
export type FormCreated = {
|
|
|
|
|
id: string
|
|
|
|
|
created: number
|
|
|
|
@@ -2030,12 +2018,6 @@ export type FormCreated = {
|
|
|
|
|
|
|
|
|
|
export type SessionLogItem = SessionEventDurable | EventLogSynced
|
|
|
|
|
|
|
|
|
|
export type IntegrationOAuthMethod = { id: string; type: "oauth"; label: string; form?: FormFields }
|
|
|
|
|
|
|
|
|
|
export type IntegrationKeyMethod = { type: "key"; label?: string; form?: FormFields }
|
|
|
|
|
|
|
|
|
|
export type FormInfo = { id: string; sessionID: string; title: string; metadata?: FormMetadata; fields: FormFields }
|
|
|
|
|
|
|
|
|
|
export type SessionTransferData = { info: SessionInfo; messages: Array<SessionMessageInfo> }
|
|
|
|
|
|
|
|
|
|
export type SessionMessagesResponse = {
|
|
|
|
@@ -2043,6 +2025,13 @@ export type SessionMessagesResponse = {
|
|
|
|
|
cursor: { previous?: string | null; next?: string | null }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IntegrationInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
name: string
|
|
|
|
|
methods: Array<IntegrationMethod>
|
|
|
|
|
connections: Array<ConnectionInfo>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type V2Event =
|
|
|
|
|
| ModelsDevRefreshed
|
|
|
|
|
| IntegrationUpdated
|
|
|
|
@@ -2130,19 +2119,6 @@ export type V2Event =
|
|
|
|
|
| McpResourcesChanged
|
|
|
|
|
| V2EventServerConnected
|
|
|
|
|
|
|
|
|
|
export type IntegrationMethod =
|
|
|
|
|
| IntegrationOAuthMethod
|
|
|
|
|
| IntegrationCommandMethod
|
|
|
|
|
| IntegrationKeyMethod
|
|
|
|
|
| IntegrationEnvMethod
|
|
|
|
|
|
|
|
|
|
export type IntegrationInfo = {
|
|
|
|
|
id: string
|
|
|
|
|
name: string
|
|
|
|
|
methods: Array<IntegrationMethod>
|
|
|
|
|
connections: Array<ConnectionInfo>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UnauthorizedError = { readonly _tag: "UnauthorizedError"; readonly message: string }
|
|
|
|
|
export const isUnauthorizedError = (value: unknown): value is UnauthorizedError =>
|
|
|
|
|
typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnauthorizedError"
|
|
|
|
@@ -4196,7 +4172,7 @@ export type IntegrationOauthConnectOutput = {
|
|
|
|
|
url: string
|
|
|
|
|
instructions: string
|
|
|
|
|
mode: "auto" | "code"
|
|
|
|
|
time: { created: number | ("Infinity" | "-Infinity" | "NaN"); expires: number | ("Infinity" | "-Infinity" | "NaN") }
|
|
|
|
|
time: { created: number | "Infinity" | "-Infinity" | "NaN"; expires: number | "Infinity" | "-Infinity" | "NaN" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -4418,7 +4394,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -4442,12 +4418,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4457,12 +4433,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4472,7 +4448,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -4485,7 +4461,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
@@ -4515,7 +4491,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -4539,12 +4515,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4554,12 +4530,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4569,7 +4545,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -4582,7 +4558,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
@@ -4619,7 +4595,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -4643,12 +4619,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4658,12 +4634,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4673,7 +4649,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -4686,7 +4662,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
@@ -4716,7 +4692,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -4740,12 +4716,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4755,12 +4731,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4770,7 +4746,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -4783,7 +4759,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
@@ -4820,7 +4796,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -4844,12 +4820,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4859,12 +4835,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4874,7 +4850,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -4887,7 +4863,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
@@ -4917,7 +4893,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -4941,12 +4917,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4956,12 +4932,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -4971,7 +4947,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -4984,7 +4960,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
@@ -5021,7 +4997,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -5045,12 +5021,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -5060,12 +5036,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -5075,7 +5051,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -5088,7 +5064,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
@@ -5118,7 +5094,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "string"
|
|
|
|
|
readonly format?: "email" | "uri" | "date" | "date-time"
|
|
|
|
@@ -5142,12 +5118,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "number"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -5157,12 +5133,12 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "integer"
|
|
|
|
|
readonly minimum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly maximum?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly default?: number | ("Infinity" | "-Infinity" | "NaN")
|
|
|
|
|
readonly minimum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly maximum?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
readonly default?: number | "Infinity" | "-Infinity" | "NaN"
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
readonly key: string
|
|
|
|
@@ -5172,7 +5148,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "boolean"
|
|
|
|
|
readonly default?: boolean
|
|
|
|
@@ -5185,7 +5161,7 @@ export type FormCreateInput = {
|
|
|
|
|
readonly when?: ReadonlyArray<{
|
|
|
|
|
readonly key: string
|
|
|
|
|
readonly op: "eq" | "neq"
|
|
|
|
|
readonly value: string | number | ("Infinity" | "-Infinity" | "NaN") | boolean
|
|
|
|
|
readonly value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean
|
|
|
|
|
}>
|
|
|
|
|
readonly type: "multiselect"
|
|
|
|
|
readonly options: ReadonlyArray<{
|
|
|
|
|