@ravi-os/sdk 0.1.0
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/README.md +70 -0
- package/dist/client.d.ts +1549 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +2736 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +69 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +119 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas.d.ts +6398 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +6978 -0
- package/dist/schemas.js.map +1 -0
- package/dist/transport/http.d.ts +26 -0
- package/dist/transport/http.d.ts.map +1 -0
- package/dist/transport/http.js +86 -0
- package/dist/transport/http.js.map +1 -0
- package/dist/transport/types.d.ts +25 -0
- package/dist/transport/types.d.ts.map +1 -0
- package/dist/transport/types.js +11 -0
- package/dist/transport/types.js.map +1 -0
- package/dist/types.d.ts +2550 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +7 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +10 -0
- package/dist/version.js.map +1 -0
- package/package.json +51 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,1549 @@
|
|
|
1
|
+
import type { Transport } from "./transport/types.js";
|
|
2
|
+
import type { AdaptersListReturn, AdaptersShowReturn, AgentsCreateReturn, AgentsDebounceReturn, AgentsDebugReturn, AgentsDeleteReturn, AgentsListReturn, AgentsResetReturn, AgentsSessionReturn, AgentsSetReturn, AgentsShowReturn, AgentsSpecModeReturn, AgentsSyncInstructionsReturn, ArtifactsArchiveReturn, ArtifactsAttachReturn, ArtifactsCreateReturn, ArtifactsEventReturn, ArtifactsEventsReturn, ArtifactsListReturn, ArtifactsShowReturn, ArtifactsUpdateReturn, ArtifactsWatchReturn, AudioGenerateReturn, ContactsAddReturn, ContactsAllowReturn, ContactsApproveReturn, ContactsBlockReturn, ContactsCheckReturn, ContactsDuplicatesReturn, ContactsFindReturn, ContactsGetReturn, ContactsGroupTagReturn, ContactsGroupUntagReturn, ContactsIdentityAddReturn, ContactsIdentityRemoveReturn, ContactsInfoReturn, ContactsLinkReturn, ContactsListReturn, ContactsMergeReturn, ContactsPendingReturn, ContactsRemoveReturn, ContactsSetReturn, ContactsTagReturn, ContactsUnlinkReturn, ContactsUntagReturn, ContextAuthorizeReturn, ContextCapabilitiesReturn, ContextCheckReturn, ContextCodexBashHookReturn, ContextCredentialsAddReturn, ContextCredentialsListReturn, ContextCredentialsRemoveReturn, ContextCredentialsSetDefaultReturn, ContextInfoReturn, ContextIssueReturn, ContextLineageReturn, ContextListReturn, ContextRevokeReturn, ContextWhoamiReturn, CostsAgentReturn, CostsAgentsReturn, CostsSessionReturn, CostsSummaryReturn, CostsTopSessionsReturn, CronAddReturn, CronDisableReturn, CronEnableReturn, CronListReturn, CronRmReturn, CronRunReturn, CronSetReturn, CronShowReturn, DaemonDevReturn, DaemonEnvReturn, DaemonInitAdminKeyReturn, DaemonInstallReturn, DaemonLogsReturn, DaemonRestartReturn, DaemonRunReturn, DaemonStartReturn, DaemonStatusReturn, DaemonStopReturn, DaemonUninstallReturn, DevinAuthCheckReturn, DevinSessionsArchiveReturn, DevinSessionsAttachmentsReturn, DevinSessionsCreateReturn, DevinSessionsInsightsReturn, DevinSessionsListReturn, DevinSessionsMessagesReturn, DevinSessionsSendReturn, DevinSessionsShowReturn, DevinSessionsSyncReturn, DevinSessionsTerminateReturn, EvalRunReturn, EventsReplayReturn, EventsStreamReturn, HeartbeatDisableReturn, HeartbeatEnableReturn, HeartbeatSetReturn, HeartbeatShowReturn, HeartbeatStatusReturn, HeartbeatTriggerReturn, HooksCreateReturn, HooksDisableReturn, HooksEnableReturn, HooksListReturn, HooksRmReturn, HooksShowReturn, HooksTestReturn, ImageAtlasSplitReturn, ImageGenerateReturn, InsightsCreateReturn, InsightsListReturn, InsightsSearchReturn, InsightsShowReturn, InstancesConnectReturn, InstancesCreateReturn, InstancesDeleteReturn, InstancesDeletedReturn, InstancesDisableReturn, InstancesDisconnectReturn, InstancesEnableReturn, InstancesGetReturn, InstancesListReturn, InstancesPendingApproveReturn, InstancesPendingListReturn, InstancesPendingRejectReturn, InstancesRestoreReturn, InstancesRoutesAddReturn, InstancesRoutesDeletedReturn, InstancesRoutesListReturn, InstancesRoutesRemoveReturn, InstancesRoutesRestoreReturn, InstancesRoutesSetReturn, InstancesRoutesShowReturn, InstancesSetReturn, InstancesShowReturn, InstancesStatusReturn, InstancesTargetReturn, MediaSendReturn, PermissionsCheckReturn, PermissionsClearReturn, PermissionsGrantReturn, PermissionsInitReturn, PermissionsListReturn, PermissionsRevokeReturn, PermissionsSyncReturn, ProjectsCreateReturn, ProjectsFixturesSeedReturn, ProjectsInitReturn, ProjectsLinkReturn, ProjectsListReturn, ProjectsNextReturn, ProjectsResourcesAddReturn, ProjectsResourcesImportReturn, ProjectsResourcesListReturn, ProjectsResourcesShowReturn, ProjectsShowReturn, ProjectsStatusReturn, ProjectsTasksAttachReturn, ProjectsTasksCreateReturn, ProjectsTasksDispatchReturn, ProjectsUpdateReturn, ProjectsWorkflowsAttachReturn, ProjectsWorkflowsStartReturn, ProxCallsCancelReturn, ProxCallsEventsReturn, ProxCallsProfilesConfigureReturn, ProxCallsProfilesListReturn, ProxCallsProfilesShowReturn, ProxCallsRequestReturn, ProxCallsRulesReturn, ProxCallsShowReturn, ProxCallsToolsBindReturn, ProxCallsToolsConfigureReturn, ProxCallsToolsCreateReturn, ProxCallsToolsListReturn, ProxCallsToolsRunReturn, ProxCallsToolsRunsReturn, ProxCallsToolsShowReturn, ProxCallsToolsUnbindReturn, ProxCallsTranscriptReturn, ProxCallsVoiceAgentsBindToolReturn, ProxCallsVoiceAgentsConfigureReturn, ProxCallsVoiceAgentsCreateReturn, ProxCallsVoiceAgentsListReturn, ProxCallsVoiceAgentsShowReturn, ProxCallsVoiceAgentsSyncReturn, ProxCallsVoiceAgentsUnbindToolReturn, ReactSendReturn, RoutesExplainReturn, RoutesListReturn, RoutesShowReturn, SdkClientCheckReturn, SdkClientGenerateReturn, SdkOpenapiCheckReturn, SdkOpenapiEmitReturn, ServiceStartReturn, ServiceTuiReturn, ServiceWaReturn, SessionsAnswerReturn, SessionsAskReturn, SessionsDebugReturn, SessionsDeleteReturn, SessionsExecuteReturn, SessionsExtendReturn, SessionsInfoReturn, SessionsInformReturn, SessionsKeepReturn, SessionsListReturn, SessionsReadReturn, SessionsRenameReturn, SessionsResetReturn, SessionsRuntimeFollowUpReturn, SessionsRuntimeForkReturn, SessionsRuntimeInterruptReturn, SessionsRuntimeListReturn, SessionsRuntimeReadReturn, SessionsRuntimeRollbackReturn, SessionsRuntimeSteerReturn, SessionsSendReturn, SessionsSetDisplayReturn, SessionsSetModelReturn, SessionsSetThinkingReturn, SessionsSetTtlReturn, SessionsTraceReturn, SettingsDeleteReturn, SettingsGetReturn, SettingsListReturn, SettingsSetReturn, SkillsInstallReturn, SkillsListReturn, SkillsShowReturn, SkillsSyncReturn, SpecsGetReturn, SpecsListReturn, SpecsNewReturn, SpecsSyncReturn, StickersAddReturn, StickersListReturn, StickersRemoveReturn, StickersSendReturn, StickersShowReturn, TagsAttachReturn, TagsCreateReturn, TagsDetachReturn, TagsListReturn, TagsSearchReturn, TagsShowReturn, TasksArchiveReturn, TasksAutomationsAddReturn, TasksAutomationsDisableReturn, TasksAutomationsEnableReturn, TasksAutomationsListReturn, TasksAutomationsRmReturn, TasksAutomationsShowReturn, TasksBlockReturn, TasksCommentReturn, TasksCreateReturn, TasksDepsAddReturn, TasksDepsLsReturn, TasksDepsRmReturn, TasksDispatchReturn, TasksDoneReturn, TasksFailReturn, TasksListReturn, TasksProfilesInitReturn, TasksProfilesListReturn, TasksProfilesPreviewReturn, TasksProfilesShowReturn, TasksProfilesValidateReturn, TasksReportReturn, TasksShowReturn, TasksUnarchiveReturn, TasksWatchReturn, TmuxAttachReturn, TmuxListReturn, TmuxOpenReturn, TmuxWatchReturn, ToolsListReturn, ToolsManifestReturn, ToolsSchemaReturn, ToolsShowReturn, ToolsTestReturn, TranscribeFileReturn, TriggersAddReturn, TriggersDisableReturn, TriggersEnableReturn, TriggersListReturn, TriggersRmReturn, TriggersSetReturn, TriggersShowReturn, TriggersTestReturn, VideoAnalyzeReturn, WhatsappDmAckReturn, WhatsappDmReadReturn, WhatsappDmSendReturn, WhatsappGroupAddReturn, WhatsappGroupCreateReturn, WhatsappGroupDemoteReturn, WhatsappGroupDescriptionReturn, WhatsappGroupInfoReturn, WhatsappGroupInviteReturn, WhatsappGroupJoinReturn, WhatsappGroupLeaveReturn, WhatsappGroupListReturn, WhatsappGroupPromoteReturn, WhatsappGroupRemoveReturn, WhatsappGroupRenameReturn, WhatsappGroupRevokeInviteReturn, WhatsappGroupSettingsReturn, WorkflowsRunsArchiveNodeReturn, WorkflowsRunsCancelReturn, WorkflowsRunsListReturn, WorkflowsRunsReleaseReturn, WorkflowsRunsShowReturn, WorkflowsRunsSkipReturn, WorkflowsRunsStartReturn, WorkflowsRunsTaskAttachReturn, WorkflowsRunsTaskCreateReturn, WorkflowsSpecsCreateReturn, WorkflowsSpecsListReturn, WorkflowsSpecsShowReturn } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* `RaviClient` exposes every registry command as a typed method.
|
|
5
|
+
*
|
|
6
|
+
* The class is generated 1:1 from `getRegistry()`. Every method calls into
|
|
7
|
+
* the supplied `Transport`, which is responsible for validation, scope
|
|
8
|
+
* enforcement, and audit (see `transport/http.ts` and
|
|
9
|
+
* `transport/in-process.ts`).
|
|
10
|
+
*/
|
|
11
|
+
export declare class RaviClient {
|
|
12
|
+
private readonly transport;
|
|
13
|
+
constructor(transport: Transport);
|
|
14
|
+
readonly adapters: {
|
|
15
|
+
/** List session adapters with health and bind state */
|
|
16
|
+
list: (options?: {
|
|
17
|
+
session?: string;
|
|
18
|
+
status?: string;
|
|
19
|
+
}) => Promise<AdaptersListReturn>;
|
|
20
|
+
/** Show a session adapter debug snapshot */
|
|
21
|
+
show: (adapterId: string) => Promise<AdaptersShowReturn>;
|
|
22
|
+
};
|
|
23
|
+
readonly agents: {
|
|
24
|
+
/** Create a new agent */
|
|
25
|
+
create: (id: string, cwd: string, options?: {
|
|
26
|
+
allowRuntimeMismatch?: boolean;
|
|
27
|
+
provider?: string;
|
|
28
|
+
}) => Promise<AgentsCreateReturn>;
|
|
29
|
+
/** Set message debounce time */
|
|
30
|
+
debounce: (id: string, ms?: string) => Promise<AgentsDebounceReturn>;
|
|
31
|
+
/** Show last turns of an agent session (what it received, what it responded) */
|
|
32
|
+
debug: (id: string, nameOrKey?: string, options?: {
|
|
33
|
+
turns?: string;
|
|
34
|
+
}) => Promise<AgentsDebugReturn>;
|
|
35
|
+
/** Delete an agent */
|
|
36
|
+
delete: (id: string) => Promise<AgentsDeleteReturn>;
|
|
37
|
+
/** List all agents */
|
|
38
|
+
list: () => Promise<AgentsListReturn>;
|
|
39
|
+
/** Reset agent session */
|
|
40
|
+
reset: (id: string, nameOrKey?: string) => Promise<AgentsResetReturn>;
|
|
41
|
+
/** Show agent session status */
|
|
42
|
+
session: (id: string) => Promise<AgentsSessionReturn>;
|
|
43
|
+
/** Set agent property */
|
|
44
|
+
set: (id: string, key: string, value: string) => Promise<AgentsSetReturn>;
|
|
45
|
+
/** Show agent details */
|
|
46
|
+
show: (id: string) => Promise<AgentsShowReturn>;
|
|
47
|
+
/** Enable or disable spec mode for an agent */
|
|
48
|
+
specMode: (id: string, enabled?: string) => Promise<AgentsSpecModeReturn>;
|
|
49
|
+
/** Migrate agent workspaces to AGENTS.md as the canonical file */
|
|
50
|
+
syncInstructions: (options?: {
|
|
51
|
+
agent?: string;
|
|
52
|
+
materializeMissing?: boolean;
|
|
53
|
+
}) => Promise<AgentsSyncInstructionsReturn>;
|
|
54
|
+
};
|
|
55
|
+
readonly artifacts: {
|
|
56
|
+
/** Soft-archive an artifact */
|
|
57
|
+
archive: (id: string) => Promise<ArtifactsArchiveReturn>;
|
|
58
|
+
/** Attach an artifact to a task, session, message or any target */
|
|
59
|
+
attach: (id: string, targetType: string, targetId: string, options?: {
|
|
60
|
+
metadata?: string;
|
|
61
|
+
relation?: string;
|
|
62
|
+
}) => Promise<ArtifactsAttachReturn>;
|
|
63
|
+
/** Create a generic Ravi artifact record */
|
|
64
|
+
create: (kind: string, options?: {
|
|
65
|
+
command?: string;
|
|
66
|
+
costUsd?: string;
|
|
67
|
+
durationMs?: string;
|
|
68
|
+
input?: string;
|
|
69
|
+
inputTokens?: string;
|
|
70
|
+
lineage?: string;
|
|
71
|
+
message?: string;
|
|
72
|
+
metadata?: string;
|
|
73
|
+
metrics?: string;
|
|
74
|
+
mime?: string;
|
|
75
|
+
model?: string;
|
|
76
|
+
output?: string;
|
|
77
|
+
outputTokens?: string;
|
|
78
|
+
path?: string;
|
|
79
|
+
prompt?: string;
|
|
80
|
+
provider?: string;
|
|
81
|
+
session?: string;
|
|
82
|
+
summary?: string;
|
|
83
|
+
tags?: string;
|
|
84
|
+
task?: string;
|
|
85
|
+
title?: string;
|
|
86
|
+
totalTokens?: string;
|
|
87
|
+
uri?: string;
|
|
88
|
+
}) => Promise<ArtifactsCreateReturn>;
|
|
89
|
+
/** Append an artifact lifecycle event */
|
|
90
|
+
event: (id: string, eventType: string, options?: {
|
|
91
|
+
message?: string;
|
|
92
|
+
payload?: string;
|
|
93
|
+
source?: string;
|
|
94
|
+
status?: string;
|
|
95
|
+
}) => Promise<ArtifactsEventReturn>;
|
|
96
|
+
/** List artifact lifecycle events */
|
|
97
|
+
events: (id: string) => Promise<ArtifactsEventsReturn>;
|
|
98
|
+
/** List artifacts */
|
|
99
|
+
list: (options?: {
|
|
100
|
+
includeDeleted?: boolean;
|
|
101
|
+
kind?: string;
|
|
102
|
+
limit?: string;
|
|
103
|
+
session?: string;
|
|
104
|
+
tag?: string;
|
|
105
|
+
task?: string;
|
|
106
|
+
}) => Promise<ArtifactsListReturn>;
|
|
107
|
+
/** Show artifact details, links and events */
|
|
108
|
+
show: (id: string) => Promise<ArtifactsShowReturn>;
|
|
109
|
+
/** Edit artifact metadata and high-level fields */
|
|
110
|
+
update: (id: string, options?: {
|
|
111
|
+
command?: string;
|
|
112
|
+
costUsd?: string;
|
|
113
|
+
durationMs?: string;
|
|
114
|
+
input?: string;
|
|
115
|
+
inputTokens?: string;
|
|
116
|
+
lineage?: string;
|
|
117
|
+
message?: string;
|
|
118
|
+
metadata?: string;
|
|
119
|
+
metrics?: string;
|
|
120
|
+
mime?: string;
|
|
121
|
+
model?: string;
|
|
122
|
+
output?: string;
|
|
123
|
+
outputTokens?: string;
|
|
124
|
+
path?: string;
|
|
125
|
+
prompt?: string;
|
|
126
|
+
provider?: string;
|
|
127
|
+
session?: string;
|
|
128
|
+
status?: string;
|
|
129
|
+
summary?: string;
|
|
130
|
+
tags?: string;
|
|
131
|
+
task?: string;
|
|
132
|
+
title?: string;
|
|
133
|
+
totalTokens?: string;
|
|
134
|
+
uri?: string;
|
|
135
|
+
}) => Promise<ArtifactsUpdateReturn>;
|
|
136
|
+
/** Watch artifact lifecycle until a terminal status */
|
|
137
|
+
watch: (id: string, options?: {
|
|
138
|
+
intervalMs?: string;
|
|
139
|
+
timeoutMs?: string;
|
|
140
|
+
}) => Promise<ArtifactsWatchReturn>;
|
|
141
|
+
};
|
|
142
|
+
readonly audio: {
|
|
143
|
+
/** Generate speech from text using ElevenLabs TTS */
|
|
144
|
+
generate: (text: string, options?: {
|
|
145
|
+
caption?: string;
|
|
146
|
+
format?: string;
|
|
147
|
+
lang?: string;
|
|
148
|
+
model?: string;
|
|
149
|
+
output?: string;
|
|
150
|
+
send?: boolean;
|
|
151
|
+
speed?: string;
|
|
152
|
+
voice?: string;
|
|
153
|
+
}) => Promise<AudioGenerateReturn>;
|
|
154
|
+
};
|
|
155
|
+
readonly contacts: {
|
|
156
|
+
/** Add/allow a contact */
|
|
157
|
+
add: (identity: string, name?: string, options?: {
|
|
158
|
+
agent?: string;
|
|
159
|
+
kind?: string;
|
|
160
|
+
}) => Promise<ContactsAddReturn>;
|
|
161
|
+
/** Allow a contact */
|
|
162
|
+
allow: (contact: string) => Promise<ContactsAllowReturn>;
|
|
163
|
+
/** Approve pending contact */
|
|
164
|
+
approve: (contact: string, mode?: string, options?: {
|
|
165
|
+
agent?: string;
|
|
166
|
+
}) => Promise<ContactsApproveReturn>;
|
|
167
|
+
/** Block a contact */
|
|
168
|
+
block: (contact: string) => Promise<ContactsBlockReturn>;
|
|
169
|
+
/** Check contact status (alias for info) */
|
|
170
|
+
check: (contact: string) => Promise<ContactsCheckReturn>;
|
|
171
|
+
/** Find likely duplicate contacts */
|
|
172
|
+
duplicates: () => Promise<ContactsDuplicatesReturn>;
|
|
173
|
+
/** Find contacts by tag or search query */
|
|
174
|
+
find: (query: string, options?: {
|
|
175
|
+
tag?: boolean;
|
|
176
|
+
}) => Promise<ContactsFindReturn>;
|
|
177
|
+
/** Show canonical contact details */
|
|
178
|
+
get: (contact: string) => Promise<ContactsGetReturn>;
|
|
179
|
+
/** Set a contact's tag in a specific group */
|
|
180
|
+
groupTag: (contact: string, group: string, tag: string) => Promise<ContactsGroupTagReturn>;
|
|
181
|
+
/** Remove a contact's tag from a specific group */
|
|
182
|
+
groupUntag: (contact: string, group: string) => Promise<ContactsGroupUntagReturn>;
|
|
183
|
+
/** Add an identity to a contact (legacy alias for link) */
|
|
184
|
+
identityAdd: (contact: string, platform: string, value: string) => Promise<ContactsIdentityAddReturn>;
|
|
185
|
+
/** Remove an identity (legacy alias for unlink) */
|
|
186
|
+
identityRemove: (platform: string, value: string) => Promise<ContactsIdentityRemoveReturn>;
|
|
187
|
+
/** Show contact details with all identities */
|
|
188
|
+
info: (contact: string) => Promise<ContactsInfoReturn>;
|
|
189
|
+
/** Link a platform identity to a contact */
|
|
190
|
+
link: (contact: string, options?: {
|
|
191
|
+
channel?: string;
|
|
192
|
+
id?: string;
|
|
193
|
+
instance?: string;
|
|
194
|
+
reason?: string;
|
|
195
|
+
}) => Promise<ContactsLinkReturn>;
|
|
196
|
+
/** List all contacts */
|
|
197
|
+
list: (options?: {
|
|
198
|
+
status?: string;
|
|
199
|
+
}) => Promise<ContactsListReturn>;
|
|
200
|
+
/** Merge two contacts (move identities from source to target) */
|
|
201
|
+
merge: (source: string, target: string) => Promise<ContactsMergeReturn>;
|
|
202
|
+
/** List pending contacts */
|
|
203
|
+
pending: (options?: {
|
|
204
|
+
account?: string;
|
|
205
|
+
}) => Promise<ContactsPendingReturn>;
|
|
206
|
+
/** Remove a contact */
|
|
207
|
+
remove: (contact: string) => Promise<ContactsRemoveReturn>;
|
|
208
|
+
/** Set contact property */
|
|
209
|
+
set: (contact: string, key: string, value: string) => Promise<ContactsSetReturn>;
|
|
210
|
+
/** Add a tag to a contact */
|
|
211
|
+
tag: (contact: string, tag: string) => Promise<ContactsTagReturn>;
|
|
212
|
+
/** Unlink a platform identity from its contact */
|
|
213
|
+
unlink: (platformIdentity: string, options?: {
|
|
214
|
+
channel?: string;
|
|
215
|
+
instance?: string;
|
|
216
|
+
reason?: string;
|
|
217
|
+
}) => Promise<ContactsUnlinkReturn>;
|
|
218
|
+
/** Remove a tag from a contact */
|
|
219
|
+
untag: (contact: string, tag: string) => Promise<ContactsUntagReturn>;
|
|
220
|
+
};
|
|
221
|
+
readonly context: {
|
|
222
|
+
/** Request approval and extend the current runtime context if approved */
|
|
223
|
+
authorize: (permission: string, objectType: string, objectId: string) => Promise<ContextAuthorizeReturn>;
|
|
224
|
+
/** List inherited capabilities for the current runtime context */
|
|
225
|
+
capabilities: () => Promise<ContextCapabilitiesReturn>;
|
|
226
|
+
/** Check whether the current runtime context allows an action */
|
|
227
|
+
check: (permission: string, objectType: string, objectId: string) => Promise<ContextCheckReturn>;
|
|
228
|
+
/** Evaluate a Codex PreToolUse Bash hook payload from stdin using the current Ravi context */
|
|
229
|
+
codexBashHook: () => Promise<ContextCodexBashHookReturn>;
|
|
230
|
+
credentials: {
|
|
231
|
+
/** Add a runtime context-key to the local credentials store */
|
|
232
|
+
add: (contextKey: string, options?: {
|
|
233
|
+
label?: string;
|
|
234
|
+
setDefault?: boolean;
|
|
235
|
+
}) => Promise<ContextCredentialsAddReturn>;
|
|
236
|
+
/** List entries in the local credentials store */
|
|
237
|
+
list: () => Promise<ContextCredentialsListReturn>;
|
|
238
|
+
/** Remove a stored context-key from the credentials store */
|
|
239
|
+
remove: (contextKey: string) => Promise<ContextCredentialsRemoveReturn>;
|
|
240
|
+
/** Mark a stored context-key as the default */
|
|
241
|
+
setDefault: (contextKey: string) => Promise<ContextCredentialsSetDefaultReturn>;
|
|
242
|
+
};
|
|
243
|
+
/** Show full runtime context details without exposing the context key */
|
|
244
|
+
info: (contextId: string) => Promise<ContextInfoReturn>;
|
|
245
|
+
/** Issue a least-privilege child context for an external CLI */
|
|
246
|
+
issue: (cliName: string, options?: {
|
|
247
|
+
allow?: string;
|
|
248
|
+
inherit?: boolean;
|
|
249
|
+
ttl?: string;
|
|
250
|
+
}) => Promise<ContextIssueReturn>;
|
|
251
|
+
/** Show ancestor chain and descendant tree for a runtime context */
|
|
252
|
+
lineage: (contextId: string) => Promise<ContextLineageReturn>;
|
|
253
|
+
/** List issued runtime contexts without exposing context keys */
|
|
254
|
+
list: (options?: {
|
|
255
|
+
agent?: string;
|
|
256
|
+
all?: boolean;
|
|
257
|
+
kind?: string;
|
|
258
|
+
session?: string;
|
|
259
|
+
}) => Promise<ContextListReturn>;
|
|
260
|
+
/** Revoke a runtime context by context ID */
|
|
261
|
+
revoke: (contextId: string, options?: {
|
|
262
|
+
noCascade?: boolean;
|
|
263
|
+
reason?: string;
|
|
264
|
+
}) => Promise<ContextRevokeReturn>;
|
|
265
|
+
/** Resolve the current runtime context */
|
|
266
|
+
whoami: () => Promise<ContextWhoamiReturn>;
|
|
267
|
+
};
|
|
268
|
+
readonly costs: {
|
|
269
|
+
/** Show detailed cost summary for one agent */
|
|
270
|
+
agent: (agentId: string, options?: {
|
|
271
|
+
hours?: string;
|
|
272
|
+
}) => Promise<CostsAgentReturn>;
|
|
273
|
+
/** Show cost breakdown by agent */
|
|
274
|
+
agents: (options?: {
|
|
275
|
+
hours?: string;
|
|
276
|
+
limit?: string;
|
|
277
|
+
}) => Promise<CostsAgentsReturn>;
|
|
278
|
+
/** Show detailed cost summary for one session */
|
|
279
|
+
session: (nameOrKey: string) => Promise<CostsSessionReturn>;
|
|
280
|
+
/** Show total cost summary for a recent window */
|
|
281
|
+
summary: (options?: {
|
|
282
|
+
hours?: string;
|
|
283
|
+
}) => Promise<CostsSummaryReturn>;
|
|
284
|
+
/** Show most expensive sessions */
|
|
285
|
+
topSessions: (options?: {
|
|
286
|
+
hours?: string;
|
|
287
|
+
limit?: string;
|
|
288
|
+
}) => Promise<CostsTopSessionsReturn>;
|
|
289
|
+
};
|
|
290
|
+
readonly cron: {
|
|
291
|
+
/** Add a new scheduled job */
|
|
292
|
+
add: (name: string, options?: {
|
|
293
|
+
account?: string;
|
|
294
|
+
agent?: string;
|
|
295
|
+
at?: string;
|
|
296
|
+
cron?: string;
|
|
297
|
+
deleteAfter?: boolean;
|
|
298
|
+
description?: string;
|
|
299
|
+
every?: string;
|
|
300
|
+
isolated?: boolean;
|
|
301
|
+
message?: string;
|
|
302
|
+
tz?: string;
|
|
303
|
+
}) => Promise<CronAddReturn>;
|
|
304
|
+
/** Disable a job */
|
|
305
|
+
disable: (id: string) => Promise<CronDisableReturn>;
|
|
306
|
+
/** Enable a job */
|
|
307
|
+
enable: (id: string) => Promise<CronEnableReturn>;
|
|
308
|
+
/** List all scheduled jobs */
|
|
309
|
+
list: () => Promise<CronListReturn>;
|
|
310
|
+
/** Delete a job */
|
|
311
|
+
rm: (id: string) => Promise<CronRmReturn>;
|
|
312
|
+
/** Manually run a job (ignores schedule) */
|
|
313
|
+
run: (id: string) => Promise<CronRunReturn>;
|
|
314
|
+
/** Set job property */
|
|
315
|
+
set: (id: string, key: string, value: string) => Promise<CronSetReturn>;
|
|
316
|
+
/** Show job details */
|
|
317
|
+
show: (id: string) => Promise<CronShowReturn>;
|
|
318
|
+
};
|
|
319
|
+
readonly daemon: {
|
|
320
|
+
/** Run daemon in dev mode with auto-rebuild on file changes */
|
|
321
|
+
dev: () => Promise<DaemonDevReturn>;
|
|
322
|
+
/** Edit environment file (~/.ravi/.env) */
|
|
323
|
+
env: () => Promise<DaemonEnvReturn>;
|
|
324
|
+
/** Bootstrap the admin runtime context-key. Refuses to run if any live admin context already exists. */
|
|
325
|
+
initAdminKey: (options?: {
|
|
326
|
+
fromEnv?: boolean;
|
|
327
|
+
label?: string;
|
|
328
|
+
noStore?: boolean;
|
|
329
|
+
printOnly?: boolean;
|
|
330
|
+
}) => Promise<DaemonInitAdminKeyReturn>;
|
|
331
|
+
/** Save PM2 process list and suggest startup */
|
|
332
|
+
install: () => Promise<DaemonInstallReturn>;
|
|
333
|
+
/** Show daemon logs (PM2) */
|
|
334
|
+
logs: (options?: {
|
|
335
|
+
clear?: boolean;
|
|
336
|
+
follow?: boolean;
|
|
337
|
+
path?: boolean;
|
|
338
|
+
tail?: string;
|
|
339
|
+
}) => Promise<DaemonLogsReturn>;
|
|
340
|
+
/** Restart the daemon */
|
|
341
|
+
restart: (options?: {
|
|
342
|
+
build?: boolean;
|
|
343
|
+
message?: string;
|
|
344
|
+
}) => Promise<DaemonRestartReturn>;
|
|
345
|
+
/** Run daemon in foreground (used by PM2) */
|
|
346
|
+
run: () => Promise<DaemonRunReturn>;
|
|
347
|
+
/** Start the daemon via PM2 */
|
|
348
|
+
start: () => Promise<DaemonStartReturn>;
|
|
349
|
+
/** Show daemon and infrastructure status */
|
|
350
|
+
status: () => Promise<DaemonStatusReturn>;
|
|
351
|
+
/** Stop the daemon */
|
|
352
|
+
stop: () => Promise<DaemonStopReturn>;
|
|
353
|
+
/** Remove ravi from PM2 and clean up */
|
|
354
|
+
uninstall: () => Promise<DaemonUninstallReturn>;
|
|
355
|
+
};
|
|
356
|
+
readonly devin: {
|
|
357
|
+
auth: {
|
|
358
|
+
/** Validate Devin API credentials */
|
|
359
|
+
check: () => Promise<DevinAuthCheckReturn>;
|
|
360
|
+
};
|
|
361
|
+
sessions: {
|
|
362
|
+
/** Archive a Devin session */
|
|
363
|
+
archive: (session: string) => Promise<DevinSessionsArchiveReturn>;
|
|
364
|
+
/** List and cache session attachments */
|
|
365
|
+
attachments: (session: string, options?: {
|
|
366
|
+
cached?: boolean;
|
|
367
|
+
}) => Promise<DevinSessionsAttachmentsReturn>;
|
|
368
|
+
/** Create a Devin session */
|
|
369
|
+
create: (options?: {
|
|
370
|
+
advancedMode?: string;
|
|
371
|
+
asUser?: string;
|
|
372
|
+
attachmentUrl?: string[];
|
|
373
|
+
bypassApproval?: boolean;
|
|
374
|
+
childPlaybook?: string;
|
|
375
|
+
knowledge?: string[];
|
|
376
|
+
maxAcu?: string;
|
|
377
|
+
noMaxAcuLimit?: boolean;
|
|
378
|
+
playbook?: string;
|
|
379
|
+
project?: string;
|
|
380
|
+
prompt?: string;
|
|
381
|
+
promptFile?: string;
|
|
382
|
+
proxRun?: string;
|
|
383
|
+
repo?: string[];
|
|
384
|
+
secret?: string[];
|
|
385
|
+
sessionLink?: string[];
|
|
386
|
+
structuredOutputSchema?: string;
|
|
387
|
+
tag?: string[];
|
|
388
|
+
task?: string;
|
|
389
|
+
title?: string;
|
|
390
|
+
}) => Promise<DevinSessionsCreateReturn>;
|
|
391
|
+
/** Show Devin session insights/activity summary */
|
|
392
|
+
insights: (session: string, options?: {
|
|
393
|
+
generate?: boolean;
|
|
394
|
+
}) => Promise<DevinSessionsInsightsReturn>;
|
|
395
|
+
/** List local or remote Devin sessions */
|
|
396
|
+
list: (options?: {
|
|
397
|
+
limit?: string;
|
|
398
|
+
remote?: boolean;
|
|
399
|
+
status?: string;
|
|
400
|
+
tag?: string;
|
|
401
|
+
}) => Promise<DevinSessionsListReturn>;
|
|
402
|
+
/** List and cache session messages */
|
|
403
|
+
messages: (session: string, options?: {
|
|
404
|
+
cached?: boolean;
|
|
405
|
+
}) => Promise<DevinSessionsMessagesReturn>;
|
|
406
|
+
/** Send a message to a Devin session */
|
|
407
|
+
send: (session: string, message: string, options?: {
|
|
408
|
+
asUser?: string;
|
|
409
|
+
}) => Promise<DevinSessionsSendReturn>;
|
|
410
|
+
/** Show one Devin session */
|
|
411
|
+
show: (session: string, options?: {
|
|
412
|
+
sync?: boolean;
|
|
413
|
+
}) => Promise<DevinSessionsShowReturn>;
|
|
414
|
+
/** Sync session status, messages and attachments */
|
|
415
|
+
sync: (session: string, options?: {
|
|
416
|
+
artifacts?: boolean;
|
|
417
|
+
insights?: boolean;
|
|
418
|
+
}) => Promise<DevinSessionsSyncReturn>;
|
|
419
|
+
/** Terminate a Devin session */
|
|
420
|
+
terminate: (session: string, options?: {
|
|
421
|
+
archive?: boolean;
|
|
422
|
+
}) => Promise<DevinSessionsTerminateReturn>;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly eval: {
|
|
426
|
+
/** Run an eval task spec and persist artifacts */
|
|
427
|
+
run: (specPath: string, options?: {
|
|
428
|
+
output?: string;
|
|
429
|
+
}) => Promise<EvalRunReturn>;
|
|
430
|
+
};
|
|
431
|
+
readonly events: {
|
|
432
|
+
/** Replay persisted JetStream events with filters */
|
|
433
|
+
replay: (options?: {
|
|
434
|
+
agent?: string;
|
|
435
|
+
chat?: string;
|
|
436
|
+
contains?: string;
|
|
437
|
+
limit?: string;
|
|
438
|
+
raw?: boolean;
|
|
439
|
+
scan?: string;
|
|
440
|
+
session?: string;
|
|
441
|
+
since?: string;
|
|
442
|
+
stream?: string;
|
|
443
|
+
subject?: string;
|
|
444
|
+
type?: string;
|
|
445
|
+
until?: string;
|
|
446
|
+
where?: string;
|
|
447
|
+
}) => Promise<EventsReplayReturn>;
|
|
448
|
+
/** Stream all events in real-time (default command) */
|
|
449
|
+
stream: (options?: {
|
|
450
|
+
filter?: string;
|
|
451
|
+
noClaude?: boolean;
|
|
452
|
+
noHeartbeat?: boolean;
|
|
453
|
+
only?: string;
|
|
454
|
+
}) => Promise<EventsStreamReturn>;
|
|
455
|
+
};
|
|
456
|
+
readonly heartbeat: {
|
|
457
|
+
/** Disable heartbeat for an agent */
|
|
458
|
+
disable: (id: string) => Promise<HeartbeatDisableReturn>;
|
|
459
|
+
/** Enable heartbeat for an agent */
|
|
460
|
+
enable: (id: string, interval?: string) => Promise<HeartbeatEnableReturn>;
|
|
461
|
+
/** Set heartbeat property */
|
|
462
|
+
set: (id: string, key: string, value: string) => Promise<HeartbeatSetReturn>;
|
|
463
|
+
/** Show heartbeat config for an agent */
|
|
464
|
+
show: (id: string) => Promise<HeartbeatShowReturn>;
|
|
465
|
+
/** Show heartbeat status for all agents */
|
|
466
|
+
status: () => Promise<HeartbeatStatusReturn>;
|
|
467
|
+
/** Manually trigger a heartbeat */
|
|
468
|
+
trigger: (id: string) => Promise<HeartbeatTriggerReturn>;
|
|
469
|
+
};
|
|
470
|
+
readonly hooks: {
|
|
471
|
+
/** Create a new runtime hook */
|
|
472
|
+
create: (name: string, options?: {
|
|
473
|
+
action?: string;
|
|
474
|
+
agent?: string;
|
|
475
|
+
async?: boolean;
|
|
476
|
+
barrier?: string;
|
|
477
|
+
cooldown?: string;
|
|
478
|
+
dedupeKey?: string;
|
|
479
|
+
disabled?: boolean;
|
|
480
|
+
event?: string;
|
|
481
|
+
matcher?: string;
|
|
482
|
+
message?: string;
|
|
483
|
+
role?: string;
|
|
484
|
+
scope?: string;
|
|
485
|
+
session?: string;
|
|
486
|
+
targetSession?: string;
|
|
487
|
+
targetTask?: string;
|
|
488
|
+
task?: string;
|
|
489
|
+
workspace?: string;
|
|
490
|
+
}) => Promise<HooksCreateReturn>;
|
|
491
|
+
/** Disable a hook */
|
|
492
|
+
disable: (id: string) => Promise<HooksDisableReturn>;
|
|
493
|
+
/** Enable a hook */
|
|
494
|
+
enable: (id: string) => Promise<HooksEnableReturn>;
|
|
495
|
+
/** List configured hooks */
|
|
496
|
+
list: () => Promise<HooksListReturn>;
|
|
497
|
+
/** Delete a hook */
|
|
498
|
+
rm: (id: string) => Promise<HooksRmReturn>;
|
|
499
|
+
/** Show hook details */
|
|
500
|
+
show: (id: string) => Promise<HooksShowReturn>;
|
|
501
|
+
/** Execute a hook once with a synthetic event */
|
|
502
|
+
test: (id: string) => Promise<HooksTestReturn>;
|
|
503
|
+
};
|
|
504
|
+
readonly image: {
|
|
505
|
+
atlas: {
|
|
506
|
+
/** Split an image atlas/contact sheet into deterministic crop artifacts */
|
|
507
|
+
split: (input: string, options?: {
|
|
508
|
+
account?: string;
|
|
509
|
+
background?: string;
|
|
510
|
+
caption?: string;
|
|
511
|
+
channel?: string;
|
|
512
|
+
cols?: string;
|
|
513
|
+
fit?: string;
|
|
514
|
+
fuzz?: string;
|
|
515
|
+
mode?: string;
|
|
516
|
+
names?: string;
|
|
517
|
+
output?: string;
|
|
518
|
+
pad?: string;
|
|
519
|
+
parentArtifact?: string;
|
|
520
|
+
rows?: string;
|
|
521
|
+
send?: boolean;
|
|
522
|
+
size?: string;
|
|
523
|
+
threadId?: string;
|
|
524
|
+
to?: string;
|
|
525
|
+
}) => Promise<ImageAtlasSplitReturn>;
|
|
526
|
+
};
|
|
527
|
+
/** Generate an image from a text prompt */
|
|
528
|
+
generate: (prompt: string, options?: {
|
|
529
|
+
artifactId?: string;
|
|
530
|
+
aspect?: string;
|
|
531
|
+
async?: boolean;
|
|
532
|
+
asyncWorker?: boolean;
|
|
533
|
+
background?: string;
|
|
534
|
+
caption?: string;
|
|
535
|
+
compression?: string;
|
|
536
|
+
format?: string;
|
|
537
|
+
mode?: string;
|
|
538
|
+
model?: string;
|
|
539
|
+
output?: string;
|
|
540
|
+
provider?: string;
|
|
541
|
+
quality?: string;
|
|
542
|
+
send?: boolean;
|
|
543
|
+
size?: string;
|
|
544
|
+
source?: string;
|
|
545
|
+
sync?: boolean;
|
|
546
|
+
}) => Promise<ImageGenerateReturn>;
|
|
547
|
+
};
|
|
548
|
+
readonly insights: {
|
|
549
|
+
/** Create a new insight with lineage captured from the current runtime context */
|
|
550
|
+
create: (summary: string, options?: {
|
|
551
|
+
agent?: string;
|
|
552
|
+
artifact?: string;
|
|
553
|
+
autoContext?: boolean;
|
|
554
|
+
comment?: string;
|
|
555
|
+
confidence?: string;
|
|
556
|
+
detail?: string;
|
|
557
|
+
importance?: string;
|
|
558
|
+
kind?: string;
|
|
559
|
+
linkId?: string;
|
|
560
|
+
linkType?: string;
|
|
561
|
+
profile?: string;
|
|
562
|
+
session?: string;
|
|
563
|
+
task?: string;
|
|
564
|
+
}) => Promise<InsightsCreateReturn>;
|
|
565
|
+
/** List recent insights with optional filters */
|
|
566
|
+
list: (options?: {
|
|
567
|
+
agent?: string;
|
|
568
|
+
confidence?: string;
|
|
569
|
+
importance?: string;
|
|
570
|
+
kind?: string;
|
|
571
|
+
limit?: string;
|
|
572
|
+
profile?: string;
|
|
573
|
+
query?: string;
|
|
574
|
+
session?: string;
|
|
575
|
+
task?: string;
|
|
576
|
+
}) => Promise<InsightsListReturn>;
|
|
577
|
+
/** Search insights by free text */
|
|
578
|
+
search: (text: string, options?: {
|
|
579
|
+
limit?: string;
|
|
580
|
+
}) => Promise<InsightsSearchReturn>;
|
|
581
|
+
/** Show one insight with lineage and comments */
|
|
582
|
+
show: (id: string) => Promise<InsightsShowReturn>;
|
|
583
|
+
};
|
|
584
|
+
readonly instances: {
|
|
585
|
+
/** Connect an instance to omni (QR code for WhatsApp) */
|
|
586
|
+
connect: (name: string, options?: {
|
|
587
|
+
agent?: string;
|
|
588
|
+
channel?: string;
|
|
589
|
+
}) => Promise<InstancesConnectReturn>;
|
|
590
|
+
/** Create a new instance */
|
|
591
|
+
create: (name: string, options?: {
|
|
592
|
+
agent?: string;
|
|
593
|
+
channel?: string;
|
|
594
|
+
dmPolicy?: string;
|
|
595
|
+
groupPolicy?: string;
|
|
596
|
+
}) => Promise<InstancesCreateReturn>;
|
|
597
|
+
/** Delete an instance (soft-delete, recoverable) */
|
|
598
|
+
delete: (name: string) => Promise<InstancesDeleteReturn>;
|
|
599
|
+
/** List soft-deleted instances */
|
|
600
|
+
deleted: () => Promise<InstancesDeletedReturn>;
|
|
601
|
+
/** Disable an instance in Ravi without changing omni */
|
|
602
|
+
disable: (target: string) => Promise<InstancesDisableReturn>;
|
|
603
|
+
/** Disconnect an instance from omni */
|
|
604
|
+
disconnect: (name: string) => Promise<InstancesDisconnectReturn>;
|
|
605
|
+
/** Enable an instance in Ravi without changing omni */
|
|
606
|
+
enable: (target: string) => Promise<InstancesEnableReturn>;
|
|
607
|
+
/** Get an instance property */
|
|
608
|
+
get: (name: string, key: string) => Promise<InstancesGetReturn>;
|
|
609
|
+
/** List all instances */
|
|
610
|
+
list: () => Promise<InstancesListReturn>;
|
|
611
|
+
pending: {
|
|
612
|
+
/** Approve a pending contact or chat */
|
|
613
|
+
approve: (name: string, contact: string, options?: {
|
|
614
|
+
agent?: string;
|
|
615
|
+
}) => Promise<InstancesPendingApproveReturn>;
|
|
616
|
+
/** List pending contacts and chats for an instance */
|
|
617
|
+
list: (name: string) => Promise<InstancesPendingListReturn>;
|
|
618
|
+
/** Reject and remove a pending contact or chat */
|
|
619
|
+
reject: (name: string, contact: string) => Promise<InstancesPendingRejectReturn>;
|
|
620
|
+
};
|
|
621
|
+
/** Restore a soft-deleted instance */
|
|
622
|
+
restore: (name: string) => Promise<InstancesRestoreReturn>;
|
|
623
|
+
routes: {
|
|
624
|
+
/** Add a route to an instance */
|
|
625
|
+
add: (name: string, pattern: string, agent: string, options?: {
|
|
626
|
+
allowRuntimeMismatch?: boolean;
|
|
627
|
+
channel?: string;
|
|
628
|
+
dmScope?: string;
|
|
629
|
+
policy?: string;
|
|
630
|
+
priority?: string;
|
|
631
|
+
session?: string;
|
|
632
|
+
}) => Promise<InstancesRoutesAddReturn>;
|
|
633
|
+
/** List soft-deleted routes */
|
|
634
|
+
deleted: (name?: string) => Promise<InstancesRoutesDeletedReturn>;
|
|
635
|
+
/** List routes for an instance */
|
|
636
|
+
list: (name: string) => Promise<InstancesRoutesListReturn>;
|
|
637
|
+
/** Remove a route (soft-delete, recoverable) */
|
|
638
|
+
remove: (name: string, pattern: string, options?: {
|
|
639
|
+
allowRuntimeMismatch?: boolean;
|
|
640
|
+
}) => Promise<InstancesRoutesRemoveReturn>;
|
|
641
|
+
/** Restore a soft-deleted route */
|
|
642
|
+
restore: (name: string, pattern: string, options?: {
|
|
643
|
+
allowRuntimeMismatch?: boolean;
|
|
644
|
+
}) => Promise<InstancesRoutesRestoreReturn>;
|
|
645
|
+
/** Set a route property */
|
|
646
|
+
set: (name: string, pattern: string, key: string, value: string, options?: {
|
|
647
|
+
allowRuntimeMismatch?: boolean;
|
|
648
|
+
}) => Promise<InstancesRoutesSetReturn>;
|
|
649
|
+
/** Show route details */
|
|
650
|
+
show: (name: string, pattern: string) => Promise<InstancesRoutesShowReturn>;
|
|
651
|
+
};
|
|
652
|
+
/** Set an instance property */
|
|
653
|
+
set: (name: string, key: string, value: string) => Promise<InstancesSetReturn>;
|
|
654
|
+
/** Show instance details */
|
|
655
|
+
show: (name: string) => Promise<InstancesShowReturn>;
|
|
656
|
+
/** Show connection status for an instance */
|
|
657
|
+
status: (name: string) => Promise<InstancesStatusReturn>;
|
|
658
|
+
/** Explain which runtime, DB, and live instance this CLI would affect */
|
|
659
|
+
target: (name: string, options?: {
|
|
660
|
+
channel?: string;
|
|
661
|
+
pattern?: string;
|
|
662
|
+
}) => Promise<InstancesTargetReturn>;
|
|
663
|
+
};
|
|
664
|
+
readonly media: {
|
|
665
|
+
/** Send a media file (image, video, audio, document) */
|
|
666
|
+
send: (filePath: string, options?: {
|
|
667
|
+
account?: string;
|
|
668
|
+
caption?: string;
|
|
669
|
+
channel?: string;
|
|
670
|
+
ptt?: boolean;
|
|
671
|
+
threadId?: string;
|
|
672
|
+
to?: string;
|
|
673
|
+
}) => Promise<MediaSendReturn>;
|
|
674
|
+
};
|
|
675
|
+
readonly permissions: {
|
|
676
|
+
/** Check if a subject has a permission on an object */
|
|
677
|
+
check: (subject: string, permission: string, object: string) => Promise<PermissionsCheckReturn>;
|
|
678
|
+
/** Clear all manual relations */
|
|
679
|
+
clear: (options?: {
|
|
680
|
+
all?: boolean;
|
|
681
|
+
}) => Promise<PermissionsClearReturn>;
|
|
682
|
+
/** Grant a relation */
|
|
683
|
+
grant: (subject: string, relation: string, object: string) => Promise<PermissionsGrantReturn>;
|
|
684
|
+
/** Apply a permission template to an agent */
|
|
685
|
+
init: (subject: string, template: string) => Promise<PermissionsInitReturn>;
|
|
686
|
+
/** List relations */
|
|
687
|
+
list: (options?: {
|
|
688
|
+
object?: string;
|
|
689
|
+
relation?: string;
|
|
690
|
+
source?: string;
|
|
691
|
+
subject?: string;
|
|
692
|
+
}) => Promise<PermissionsListReturn>;
|
|
693
|
+
/** Revoke a relation */
|
|
694
|
+
revoke: (subject: string, relation: string, object: string) => Promise<PermissionsRevokeReturn>;
|
|
695
|
+
/** Re-sync relations from agent configs */
|
|
696
|
+
sync: () => Promise<PermissionsSyncReturn>;
|
|
697
|
+
};
|
|
698
|
+
readonly projects: {
|
|
699
|
+
/** Create one project */
|
|
700
|
+
create: (title: string, options?: {
|
|
701
|
+
hypothesis?: string;
|
|
702
|
+
lastSignalAt?: string;
|
|
703
|
+
nextStep?: string;
|
|
704
|
+
ownerAgent?: string;
|
|
705
|
+
session?: string;
|
|
706
|
+
slug?: string;
|
|
707
|
+
status?: string;
|
|
708
|
+
summary?: string;
|
|
709
|
+
}) => Promise<ProjectsCreateReturn>;
|
|
710
|
+
fixtures: {
|
|
711
|
+
/** Reset and seed the canonical project fixtures used in demos and smoke tests */
|
|
712
|
+
seed: (options?: {
|
|
713
|
+
ownerAgent?: string;
|
|
714
|
+
}) => Promise<ProjectsFixturesSeedReturn>;
|
|
715
|
+
};
|
|
716
|
+
/** Materialize a project with cheap links and optional canonical workflows */
|
|
717
|
+
init: (title: string, options?: {
|
|
718
|
+
hypothesis?: string;
|
|
719
|
+
lastSignalAt?: string;
|
|
720
|
+
nextStep?: string;
|
|
721
|
+
ownerAgent?: string;
|
|
722
|
+
resource?: string[];
|
|
723
|
+
session?: string;
|
|
724
|
+
slug?: string;
|
|
725
|
+
status?: string;
|
|
726
|
+
summary?: string;
|
|
727
|
+
workflowRun?: string[];
|
|
728
|
+
workflowTemplate?: string[];
|
|
729
|
+
}) => Promise<ProjectsInitReturn>;
|
|
730
|
+
/** Link workflow/session/agent/resource/spec context to a project */
|
|
731
|
+
link: (assetType: string, project: string, target: string, options?: {
|
|
732
|
+
label?: string;
|
|
733
|
+
meta?: string;
|
|
734
|
+
resourceType?: string;
|
|
735
|
+
role?: string;
|
|
736
|
+
}) => Promise<ProjectsLinkReturn>;
|
|
737
|
+
/** List projects */
|
|
738
|
+
list: (options?: {
|
|
739
|
+
status?: string;
|
|
740
|
+
}) => Promise<ProjectsListReturn>;
|
|
741
|
+
/** List projects as an operational next-work surface */
|
|
742
|
+
next: (options?: {
|
|
743
|
+
status?: string;
|
|
744
|
+
}) => Promise<ProjectsNextReturn>;
|
|
745
|
+
resources: {
|
|
746
|
+
/** Add one resource link to a project */
|
|
747
|
+
add: (project: string, target: string, options?: {
|
|
748
|
+
label?: string;
|
|
749
|
+
meta?: string;
|
|
750
|
+
role?: string;
|
|
751
|
+
type?: string;
|
|
752
|
+
}) => Promise<ProjectsResourcesAddReturn>;
|
|
753
|
+
/** Import multiple cheap resources into a project */
|
|
754
|
+
import: (project: string, options?: {
|
|
755
|
+
group?: string[];
|
|
756
|
+
meta?: string;
|
|
757
|
+
repo?: string[];
|
|
758
|
+
role?: string;
|
|
759
|
+
url?: string[];
|
|
760
|
+
worktree?: string[];
|
|
761
|
+
}) => Promise<ProjectsResourcesImportReturn>;
|
|
762
|
+
/** List resource links for a project */
|
|
763
|
+
list: (project: string, options?: {
|
|
764
|
+
type?: string;
|
|
765
|
+
}) => Promise<ProjectsResourcesListReturn>;
|
|
766
|
+
/** Show one resource link on a project */
|
|
767
|
+
show: (project: string, resource: string) => Promise<ProjectsResourcesShowReturn>;
|
|
768
|
+
};
|
|
769
|
+
/** Show one project with linked context */
|
|
770
|
+
show: (project: string) => Promise<ProjectsShowReturn>;
|
|
771
|
+
/** Show one project with workflow runtime rollup */
|
|
772
|
+
status: (project: string) => Promise<ProjectsStatusReturn>;
|
|
773
|
+
tasks: {
|
|
774
|
+
/** Attach an existing task to a project workflow node */
|
|
775
|
+
attach: (project: string, nodeKey: string, taskId: string, options?: {
|
|
776
|
+
agent?: string;
|
|
777
|
+
dispatch?: boolean;
|
|
778
|
+
session?: string;
|
|
779
|
+
workflow?: string;
|
|
780
|
+
}) => Promise<ProjectsTasksAttachReturn>;
|
|
781
|
+
/** Create a task attempt from a project workflow node */
|
|
782
|
+
create: (project: string, nodeKey: string, title: string, options?: {
|
|
783
|
+
agent?: string;
|
|
784
|
+
dispatch?: boolean;
|
|
785
|
+
instructions?: string;
|
|
786
|
+
priority?: string;
|
|
787
|
+
profile?: string;
|
|
788
|
+
session?: string;
|
|
789
|
+
workflow?: string;
|
|
790
|
+
}) => Promise<ProjectsTasksCreateReturn>;
|
|
791
|
+
/** Dispatch a task using project owner/session defaults */
|
|
792
|
+
dispatch: (project: string, taskId: string, options?: {
|
|
793
|
+
agent?: string;
|
|
794
|
+
session?: string;
|
|
795
|
+
}) => Promise<ProjectsTasksDispatchReturn>;
|
|
796
|
+
};
|
|
797
|
+
/** Update one project */
|
|
798
|
+
update: (project: string, options?: {
|
|
799
|
+
hypothesis?: string;
|
|
800
|
+
lastSignalAt?: string;
|
|
801
|
+
nextStep?: string;
|
|
802
|
+
ownerAgent?: string;
|
|
803
|
+
session?: string;
|
|
804
|
+
status?: string;
|
|
805
|
+
summary?: string;
|
|
806
|
+
title?: string;
|
|
807
|
+
touchSignal?: boolean;
|
|
808
|
+
}) => Promise<ProjectsUpdateReturn>;
|
|
809
|
+
workflows: {
|
|
810
|
+
/** Attach one existing workflow run to a project in one step */
|
|
811
|
+
attach: (project: string, runId: string, options?: {
|
|
812
|
+
role?: string;
|
|
813
|
+
}) => Promise<ProjectsWorkflowsAttachReturn>;
|
|
814
|
+
/** Start one workflow run from a project and link it in one step */
|
|
815
|
+
start: (project: string, specId: string, options?: {
|
|
816
|
+
role?: string;
|
|
817
|
+
runId?: string;
|
|
818
|
+
}) => Promise<ProjectsWorkflowsStartReturn>;
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
readonly prox: {
|
|
822
|
+
calls: {
|
|
823
|
+
/** Cancel a pending call request */
|
|
824
|
+
cancel: (call_request_id: string, options?: {
|
|
825
|
+
reason?: string;
|
|
826
|
+
}) => Promise<ProxCallsCancelReturn>;
|
|
827
|
+
/** Show event timeline for a call request */
|
|
828
|
+
events: (call_request_id: string) => Promise<ProxCallsEventsReturn>;
|
|
829
|
+
profiles: {
|
|
830
|
+
/** Configure a call profile's provider settings */
|
|
831
|
+
configure: (profile_id: string, options?: {
|
|
832
|
+
agentId?: string;
|
|
833
|
+
dynamicPlaceholder?: string[];
|
|
834
|
+
firstMessage?: string;
|
|
835
|
+
language?: string;
|
|
836
|
+
prompt?: string;
|
|
837
|
+
provider?: string;
|
|
838
|
+
skipProviderSync?: boolean;
|
|
839
|
+
systemPromptPath?: string;
|
|
840
|
+
twilioNumberId?: string;
|
|
841
|
+
voicemailPolicy?: string;
|
|
842
|
+
}) => Promise<ProxCallsProfilesConfigureReturn>;
|
|
843
|
+
/** List available call profiles */
|
|
844
|
+
list: () => Promise<ProxCallsProfilesListReturn>;
|
|
845
|
+
/** Show a call profile by ID */
|
|
846
|
+
show: (profile_id: string) => Promise<ProxCallsProfilesShowReturn>;
|
|
847
|
+
};
|
|
848
|
+
/** Request a call to a person */
|
|
849
|
+
request: (options?: {
|
|
850
|
+
force?: boolean;
|
|
851
|
+
person?: string;
|
|
852
|
+
phone?: string;
|
|
853
|
+
priority?: string;
|
|
854
|
+
profile?: string;
|
|
855
|
+
reason?: string;
|
|
856
|
+
skipOriginNotify?: boolean;
|
|
857
|
+
var?: string[];
|
|
858
|
+
}) => Promise<ProxCallsRequestReturn>;
|
|
859
|
+
/** Show active call rules */
|
|
860
|
+
rules: (options?: {
|
|
861
|
+
scope?: string;
|
|
862
|
+
}) => Promise<ProxCallsRulesReturn>;
|
|
863
|
+
/** Show details of a call request */
|
|
864
|
+
show: (call_request_id: string) => Promise<ProxCallsShowReturn>;
|
|
865
|
+
tools: {
|
|
866
|
+
/** Bind a tool to a profile */
|
|
867
|
+
bind: (profile_id: string, tool_id: string, options?: {
|
|
868
|
+
providerToolName?: string;
|
|
869
|
+
required?: boolean;
|
|
870
|
+
toolPrompt?: string;
|
|
871
|
+
}) => Promise<ProxCallsToolsBindReturn>;
|
|
872
|
+
/** Configure a call tool */
|
|
873
|
+
configure: (tool_id: string, options?: {
|
|
874
|
+
enabled?: string;
|
|
875
|
+
timeoutMs?: string;
|
|
876
|
+
}) => Promise<ProxCallsToolsConfigureReturn>;
|
|
877
|
+
/** Create a new call tool */
|
|
878
|
+
create: (tool_id: string, options?: {
|
|
879
|
+
description?: string;
|
|
880
|
+
executor?: string;
|
|
881
|
+
inputSchema?: string;
|
|
882
|
+
name?: string;
|
|
883
|
+
outputSchema?: string;
|
|
884
|
+
sideEffect?: string;
|
|
885
|
+
}) => Promise<ProxCallsToolsCreateReturn>;
|
|
886
|
+
/** List call tools */
|
|
887
|
+
list: (options?: {
|
|
888
|
+
profile?: string;
|
|
889
|
+
}) => Promise<ProxCallsToolsListReturn>;
|
|
890
|
+
/** Execute a tool (dry-run validates without side effects) */
|
|
891
|
+
run: (tool_id: string, options?: {
|
|
892
|
+
dryRun?: boolean;
|
|
893
|
+
input?: string;
|
|
894
|
+
profile?: string;
|
|
895
|
+
}) => Promise<ProxCallsToolsRunReturn>;
|
|
896
|
+
/** List tool runs for a call request */
|
|
897
|
+
runs: (call_request_id: string) => Promise<ProxCallsToolsRunsReturn>;
|
|
898
|
+
/** Show a call tool by ID */
|
|
899
|
+
show: (tool_id: string) => Promise<ProxCallsToolsShowReturn>;
|
|
900
|
+
/** Unbind a tool from a profile */
|
|
901
|
+
unbind: (profile_id: string, tool_id: string) => Promise<ProxCallsToolsUnbindReturn>;
|
|
902
|
+
};
|
|
903
|
+
/** Show call transcript, syncing provider state when needed */
|
|
904
|
+
transcript: (call_request_id: string, options?: {
|
|
905
|
+
sync?: boolean;
|
|
906
|
+
}) => Promise<ProxCallsTranscriptReturn>;
|
|
907
|
+
voiceAgents: {
|
|
908
|
+
/** Bind a tool to a voice agent */
|
|
909
|
+
bindTool: (voice_agent_id: string, tool_id: string, options?: {
|
|
910
|
+
providerToolName?: string;
|
|
911
|
+
}) => Promise<ProxCallsVoiceAgentsBindToolReturn>;
|
|
912
|
+
/** Configure a voice agent */
|
|
913
|
+
configure: (voice_agent_id: string, options?: {
|
|
914
|
+
firstMessage?: string;
|
|
915
|
+
providerAgentId?: string;
|
|
916
|
+
systemPromptPath?: string;
|
|
917
|
+
voiceId?: string;
|
|
918
|
+
}) => Promise<ProxCallsVoiceAgentsConfigureReturn>;
|
|
919
|
+
/** Create a new voice agent */
|
|
920
|
+
create: (voice_agent_id: string, options?: {
|
|
921
|
+
name?: string;
|
|
922
|
+
provider?: string;
|
|
923
|
+
systemPromptPath?: string;
|
|
924
|
+
voiceId?: string;
|
|
925
|
+
}) => Promise<ProxCallsVoiceAgentsCreateReturn>;
|
|
926
|
+
/** List voice agents */
|
|
927
|
+
list: () => Promise<ProxCallsVoiceAgentsListReturn>;
|
|
928
|
+
/** Show a voice agent by ID */
|
|
929
|
+
show: (voice_agent_id: string) => Promise<ProxCallsVoiceAgentsShowReturn>;
|
|
930
|
+
/** Sync voice agent to provider (dry-run by default) */
|
|
931
|
+
sync: (voice_agent_id: string, options?: {
|
|
932
|
+
dryRun?: boolean;
|
|
933
|
+
provider?: boolean;
|
|
934
|
+
}) => Promise<ProxCallsVoiceAgentsSyncReturn>;
|
|
935
|
+
/** Unbind a tool from a voice agent */
|
|
936
|
+
unbindTool: (voice_agent_id: string, tool_id: string) => Promise<ProxCallsVoiceAgentsUnbindToolReturn>;
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
readonly react: {
|
|
941
|
+
/** Send an emoji reaction to a message */
|
|
942
|
+
send: (messageId: string, emoji: string) => Promise<ReactSendReturn>;
|
|
943
|
+
};
|
|
944
|
+
readonly routes: {
|
|
945
|
+
/** Explain how a pattern resolves in config and the live router */
|
|
946
|
+
explain: (name: string, pattern: string, options?: {
|
|
947
|
+
channel?: string;
|
|
948
|
+
}) => Promise<RoutesExplainReturn>;
|
|
949
|
+
/** List routes across all instances or for one instance */
|
|
950
|
+
list: (name?: string) => Promise<RoutesListReturn>;
|
|
951
|
+
/** Show route details */
|
|
952
|
+
show: (name: string, pattern: string) => Promise<RoutesShowReturn>;
|
|
953
|
+
};
|
|
954
|
+
readonly sdk: {
|
|
955
|
+
client: {
|
|
956
|
+
/** Compare on-disk @ravi-os/sdk sources to a fresh emit; exit 1 on drift */
|
|
957
|
+
check: (options?: {
|
|
958
|
+
out?: string;
|
|
959
|
+
version?: string;
|
|
960
|
+
}) => Promise<SdkClientCheckReturn>;
|
|
961
|
+
/** Generate the four @ravi-os/sdk source files from the live registry */
|
|
962
|
+
generate: (options?: {
|
|
963
|
+
out?: string;
|
|
964
|
+
version?: string;
|
|
965
|
+
}) => Promise<SdkClientGenerateReturn>;
|
|
966
|
+
};
|
|
967
|
+
openapi: {
|
|
968
|
+
/** Diff a stored OpenAPI spec against the live registry */
|
|
969
|
+
check: (options?: {
|
|
970
|
+
against?: string;
|
|
971
|
+
}) => Promise<SdkOpenapiCheckReturn>;
|
|
972
|
+
/** Emit OpenAPI 3.1 spec from the CLI registry */
|
|
973
|
+
emit: (options?: {
|
|
974
|
+
out?: string;
|
|
975
|
+
stdout?: boolean;
|
|
976
|
+
}) => Promise<SdkOpenapiEmitReturn>;
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
readonly service: {
|
|
980
|
+
/** Start the bot server */
|
|
981
|
+
start: () => Promise<ServiceStartReturn>;
|
|
982
|
+
/** Start the TUI interface */
|
|
983
|
+
tui: (session?: string) => Promise<ServiceTuiReturn>;
|
|
984
|
+
/** Start WhatsApp gateway (deprecated — use daemon start) */
|
|
985
|
+
wa: () => Promise<ServiceWaReturn>;
|
|
986
|
+
};
|
|
987
|
+
readonly sessions: {
|
|
988
|
+
/** Answer a question from another session (fire-and-forget) */
|
|
989
|
+
answer: (target: string, message: string, sender?: string, options?: {
|
|
990
|
+
barrier?: string;
|
|
991
|
+
channel?: string;
|
|
992
|
+
to?: string;
|
|
993
|
+
}) => Promise<SessionsAnswerReturn>;
|
|
994
|
+
/** Ask a question to another session (fire-and-forget) */
|
|
995
|
+
ask: (target: string, message: string, sender?: string, options?: {
|
|
996
|
+
barrier?: string;
|
|
997
|
+
channel?: string;
|
|
998
|
+
to?: string;
|
|
999
|
+
}) => Promise<SessionsAskReturn>;
|
|
1000
|
+
/** Tail live runtime events for a session (defaults to current session when available) */
|
|
1001
|
+
debug: (nameOrKey?: string, options?: {
|
|
1002
|
+
timeout?: string;
|
|
1003
|
+
}) => Promise<SessionsDebugReturn>;
|
|
1004
|
+
/** Delete a session permanently */
|
|
1005
|
+
delete: (nameOrKey: string) => Promise<SessionsDeleteReturn>;
|
|
1006
|
+
/** Send an execute command to another session (fire-and-forget) */
|
|
1007
|
+
execute: (target: string, message: string, options?: {
|
|
1008
|
+
barrier?: string;
|
|
1009
|
+
channel?: string;
|
|
1010
|
+
to?: string;
|
|
1011
|
+
}) => Promise<SessionsExecuteReturn>;
|
|
1012
|
+
/** Extend an ephemeral session's TTL */
|
|
1013
|
+
extend: (nameOrKey: string, duration?: string) => Promise<SessionsExtendReturn>;
|
|
1014
|
+
/** Show unified session inspection details */
|
|
1015
|
+
info: (nameOrKey: string) => Promise<SessionsInfoReturn>;
|
|
1016
|
+
/** Send an informational message to another session (fire-and-forget) */
|
|
1017
|
+
inform: (target: string, message: string, options?: {
|
|
1018
|
+
barrier?: string;
|
|
1019
|
+
channel?: string;
|
|
1020
|
+
to?: string;
|
|
1021
|
+
}) => Promise<SessionsInformReturn>;
|
|
1022
|
+
/** Make an ephemeral session permanent */
|
|
1023
|
+
keep: (nameOrKey: string) => Promise<SessionsKeepReturn>;
|
|
1024
|
+
/** List all sessions */
|
|
1025
|
+
list: (options?: {
|
|
1026
|
+
agent?: string;
|
|
1027
|
+
ephemeral?: boolean;
|
|
1028
|
+
}) => Promise<SessionsListReturn>;
|
|
1029
|
+
/** Read message history of a session (normalized) */
|
|
1030
|
+
read: (nameOrKey: string, options?: {
|
|
1031
|
+
count?: string;
|
|
1032
|
+
}) => Promise<SessionsReadReturn>;
|
|
1033
|
+
/** Rename canonical session name */
|
|
1034
|
+
rename: (nameOrKey: string, newName: string) => Promise<SessionsRenameReturn>;
|
|
1035
|
+
/** Reset a session (fresh start) */
|
|
1036
|
+
reset: (nameOrKey: string) => Promise<SessionsResetReturn>;
|
|
1037
|
+
runtime: {
|
|
1038
|
+
/** Queue a follow-up after the active runtime turn */
|
|
1039
|
+
followUp: (session: string, text: string, options?: {
|
|
1040
|
+
expectedTurn?: string;
|
|
1041
|
+
thread?: string;
|
|
1042
|
+
turn?: string;
|
|
1043
|
+
}) => Promise<SessionsRuntimeFollowUpReturn>;
|
|
1044
|
+
/** Fork a runtime thread if the provider supports it */
|
|
1045
|
+
fork: (session: string, threadId?: string, options?: {
|
|
1046
|
+
cwd?: string;
|
|
1047
|
+
path?: string;
|
|
1048
|
+
}) => Promise<SessionsRuntimeForkReturn>;
|
|
1049
|
+
/** Interrupt the active runtime turn */
|
|
1050
|
+
interrupt: (session: string, options?: {
|
|
1051
|
+
thread?: string;
|
|
1052
|
+
turn?: string;
|
|
1053
|
+
}) => Promise<SessionsRuntimeInterruptReturn>;
|
|
1054
|
+
/** List runtime threads through an active session */
|
|
1055
|
+
list: (session: string, options?: {
|
|
1056
|
+
archived?: boolean;
|
|
1057
|
+
cursor?: string;
|
|
1058
|
+
cwd?: string;
|
|
1059
|
+
limit?: string;
|
|
1060
|
+
search?: string;
|
|
1061
|
+
}) => Promise<SessionsRuntimeListReturn>;
|
|
1062
|
+
/** Read a runtime thread through an active session */
|
|
1063
|
+
read: (session: string, threadId?: string, options?: {
|
|
1064
|
+
summaryOnly?: boolean;
|
|
1065
|
+
}) => Promise<SessionsRuntimeReadReturn>;
|
|
1066
|
+
/** Rollback completed runtime turns */
|
|
1067
|
+
rollback: (session: string, turns?: string, options?: {
|
|
1068
|
+
thread?: string;
|
|
1069
|
+
}) => Promise<SessionsRuntimeRollbackReturn>;
|
|
1070
|
+
/** Steer the active runtime turn */
|
|
1071
|
+
steer: (session: string, text: string, options?: {
|
|
1072
|
+
expectedTurn?: string;
|
|
1073
|
+
thread?: string;
|
|
1074
|
+
turn?: string;
|
|
1075
|
+
}) => Promise<SessionsRuntimeSteerReturn>;
|
|
1076
|
+
};
|
|
1077
|
+
/** Send a prompt to a session (fire-and-forget). Use -w to wait for response, -i for interactive. */
|
|
1078
|
+
send: (nameOrKey: string, prompt?: string, options?: {
|
|
1079
|
+
agent?: string;
|
|
1080
|
+
barrier?: string;
|
|
1081
|
+
channel?: string;
|
|
1082
|
+
interactive?: boolean;
|
|
1083
|
+
to?: string;
|
|
1084
|
+
wait?: boolean;
|
|
1085
|
+
}) => Promise<SessionsSendReturn>;
|
|
1086
|
+
/** Set session display label */
|
|
1087
|
+
setDisplay: (nameOrKey: string, displayName: string) => Promise<SessionsSetDisplayReturn>;
|
|
1088
|
+
/** Set session model override */
|
|
1089
|
+
setModel: (nameOrKey: string, model: string) => Promise<SessionsSetModelReturn>;
|
|
1090
|
+
/** Set session thinking level */
|
|
1091
|
+
setThinking: (nameOrKey: string, level: string) => Promise<SessionsSetThinkingReturn>;
|
|
1092
|
+
/** Make a session ephemeral with a TTL */
|
|
1093
|
+
setTtl: (nameOrKey: string, duration: string) => Promise<SessionsSetTtlReturn>;
|
|
1094
|
+
/** Read the SQLite session trace timeline */
|
|
1095
|
+
trace: (nameOrKey: string, options?: {
|
|
1096
|
+
correlation?: string;
|
|
1097
|
+
explain?: boolean;
|
|
1098
|
+
includeStream?: boolean;
|
|
1099
|
+
limit?: string;
|
|
1100
|
+
message?: string;
|
|
1101
|
+
only?: string;
|
|
1102
|
+
raw?: boolean;
|
|
1103
|
+
run?: string;
|
|
1104
|
+
showSystemPrompt?: boolean;
|
|
1105
|
+
showUserPrompt?: boolean;
|
|
1106
|
+
since?: string;
|
|
1107
|
+
turn?: string;
|
|
1108
|
+
until?: string;
|
|
1109
|
+
}) => Promise<SessionsTraceReturn>;
|
|
1110
|
+
};
|
|
1111
|
+
readonly settings: {
|
|
1112
|
+
/** Delete a setting */
|
|
1113
|
+
delete: (key: string) => Promise<SettingsDeleteReturn>;
|
|
1114
|
+
/** Get a setting value */
|
|
1115
|
+
get: (key: string) => Promise<SettingsGetReturn>;
|
|
1116
|
+
/** List live settings (legacy account.* hidden by default) */
|
|
1117
|
+
list: (options?: {
|
|
1118
|
+
legacy?: boolean;
|
|
1119
|
+
}) => Promise<SettingsListReturn>;
|
|
1120
|
+
/** Set a setting value */
|
|
1121
|
+
set: (key: string, value: string) => Promise<SettingsSetReturn>;
|
|
1122
|
+
};
|
|
1123
|
+
readonly skills: {
|
|
1124
|
+
/** Install Ravi catalog skills or skills from an explicit source */
|
|
1125
|
+
install: (name?: string, options?: {
|
|
1126
|
+
all?: boolean;
|
|
1127
|
+
overwrite?: boolean;
|
|
1128
|
+
plugin?: string;
|
|
1129
|
+
skill?: string;
|
|
1130
|
+
skipCodexSync?: boolean;
|
|
1131
|
+
source?: string;
|
|
1132
|
+
}) => Promise<SkillsInstallReturn>;
|
|
1133
|
+
/** List Ravi catalog skills, installed skills or source skills */
|
|
1134
|
+
list: (options?: {
|
|
1135
|
+
codex?: boolean;
|
|
1136
|
+
installed?: boolean;
|
|
1137
|
+
source?: string;
|
|
1138
|
+
}) => Promise<SkillsListReturn>;
|
|
1139
|
+
/** Show a Ravi catalog skill, installed skill or source skill */
|
|
1140
|
+
show: (name: string, options?: {
|
|
1141
|
+
installed?: boolean;
|
|
1142
|
+
source?: string;
|
|
1143
|
+
}) => Promise<SkillsShowReturn>;
|
|
1144
|
+
/** Sync Ravi plugin skills into the Codex skills directory */
|
|
1145
|
+
sync: () => Promise<SkillsSyncReturn>;
|
|
1146
|
+
};
|
|
1147
|
+
readonly specs: {
|
|
1148
|
+
/** Get inherited spec context */
|
|
1149
|
+
get: (id: string, options?: {
|
|
1150
|
+
mode?: string;
|
|
1151
|
+
}) => Promise<SpecsGetReturn>;
|
|
1152
|
+
/** List specs from .ravi/specs */
|
|
1153
|
+
list: (options?: {
|
|
1154
|
+
domain?: string;
|
|
1155
|
+
kind?: string;
|
|
1156
|
+
}) => Promise<SpecsListReturn>;
|
|
1157
|
+
/** Create a new spec under .ravi/specs */
|
|
1158
|
+
new: (id: string, options?: {
|
|
1159
|
+
full?: boolean;
|
|
1160
|
+
kind?: string;
|
|
1161
|
+
title?: string;
|
|
1162
|
+
}) => Promise<SpecsNewReturn>;
|
|
1163
|
+
/** Rebuild the specs SQLite index from Markdown */
|
|
1164
|
+
sync: () => Promise<SpecsSyncReturn>;
|
|
1165
|
+
};
|
|
1166
|
+
readonly stickers: {
|
|
1167
|
+
/** Add or update a sticker catalog entry */
|
|
1168
|
+
add: (id: string, mediaPath: string, options?: {
|
|
1169
|
+
agents?: string;
|
|
1170
|
+
avoid?: string;
|
|
1171
|
+
channels?: string;
|
|
1172
|
+
description?: string;
|
|
1173
|
+
disabled?: boolean;
|
|
1174
|
+
label?: string;
|
|
1175
|
+
overwrite?: boolean;
|
|
1176
|
+
}) => Promise<StickersAddReturn>;
|
|
1177
|
+
/** List stickers in the typed catalog */
|
|
1178
|
+
list: () => Promise<StickersListReturn>;
|
|
1179
|
+
/** Remove a sticker catalog entry */
|
|
1180
|
+
remove: (id: string) => Promise<StickersRemoveReturn>;
|
|
1181
|
+
/** Send a sticker to the current WhatsApp chat */
|
|
1182
|
+
send: (id: string, options?: {
|
|
1183
|
+
account?: string;
|
|
1184
|
+
channel?: string;
|
|
1185
|
+
session?: string;
|
|
1186
|
+
to?: string;
|
|
1187
|
+
}) => Promise<StickersSendReturn>;
|
|
1188
|
+
/** Show one sticker catalog entry */
|
|
1189
|
+
show: (id: string) => Promise<StickersShowReturn>;
|
|
1190
|
+
};
|
|
1191
|
+
readonly tags: {
|
|
1192
|
+
/** Attach a tag to an agent or session */
|
|
1193
|
+
attach: (slug: string, options?: {
|
|
1194
|
+
agent?: string;
|
|
1195
|
+
meta?: string;
|
|
1196
|
+
session?: string;
|
|
1197
|
+
}) => Promise<TagsAttachReturn>;
|
|
1198
|
+
/** Create a new tag definition */
|
|
1199
|
+
create: (slug: string, options?: {
|
|
1200
|
+
description?: string;
|
|
1201
|
+
kind?: string;
|
|
1202
|
+
label?: string;
|
|
1203
|
+
meta?: string;
|
|
1204
|
+
}) => Promise<TagsCreateReturn>;
|
|
1205
|
+
/** Detach a tag from an agent or session */
|
|
1206
|
+
detach: (slug: string, options?: {
|
|
1207
|
+
agent?: string;
|
|
1208
|
+
session?: string;
|
|
1209
|
+
}) => Promise<TagsDetachReturn>;
|
|
1210
|
+
/** List tag definitions */
|
|
1211
|
+
list: () => Promise<TagsListReturn>;
|
|
1212
|
+
/** Search bindings by tag or asset */
|
|
1213
|
+
search: (options?: {
|
|
1214
|
+
agent?: string;
|
|
1215
|
+
session?: string;
|
|
1216
|
+
tag?: string;
|
|
1217
|
+
}) => Promise<TagsSearchReturn>;
|
|
1218
|
+
/** Show one tag and its bindings */
|
|
1219
|
+
show: (slug: string) => Promise<TagsShowReturn>;
|
|
1220
|
+
};
|
|
1221
|
+
readonly tasks: {
|
|
1222
|
+
/** Archive a task without changing its execution status */
|
|
1223
|
+
archive: (taskId: string, options?: {
|
|
1224
|
+
reason?: string;
|
|
1225
|
+
}) => Promise<TasksArchiveReturn>;
|
|
1226
|
+
automations: {
|
|
1227
|
+
/** Create a new task automation */
|
|
1228
|
+
add: (name: string, options?: {
|
|
1229
|
+
agent?: string;
|
|
1230
|
+
checkpoint?: string;
|
|
1231
|
+
detached?: boolean;
|
|
1232
|
+
disabled?: boolean;
|
|
1233
|
+
filter?: string;
|
|
1234
|
+
freshCheckpoint?: boolean;
|
|
1235
|
+
freshReportEvents?: boolean;
|
|
1236
|
+
freshReportTo?: boolean;
|
|
1237
|
+
freshWorktree?: boolean;
|
|
1238
|
+
input?: string[];
|
|
1239
|
+
instructions?: string;
|
|
1240
|
+
on?: string;
|
|
1241
|
+
priority?: string;
|
|
1242
|
+
profile?: string;
|
|
1243
|
+
reportEvents?: string;
|
|
1244
|
+
reportTo?: string;
|
|
1245
|
+
session?: string;
|
|
1246
|
+
title?: string;
|
|
1247
|
+
}) => Promise<TasksAutomationsAddReturn>;
|
|
1248
|
+
/** Disable a task automation */
|
|
1249
|
+
disable: (id: string) => Promise<TasksAutomationsDisableReturn>;
|
|
1250
|
+
/** Enable a task automation */
|
|
1251
|
+
enable: (id: string) => Promise<TasksAutomationsEnableReturn>;
|
|
1252
|
+
/** List configured task automations */
|
|
1253
|
+
list: () => Promise<TasksAutomationsListReturn>;
|
|
1254
|
+
/** Delete a task automation */
|
|
1255
|
+
rm: (id: string) => Promise<TasksAutomationsRmReturn>;
|
|
1256
|
+
/** Show one task automation and its recent runs */
|
|
1257
|
+
show: (id: string) => Promise<TasksAutomationsShowReturn>;
|
|
1258
|
+
};
|
|
1259
|
+
/** Mark a task as blocked */
|
|
1260
|
+
block: (taskId: string, options?: {
|
|
1261
|
+
reason?: string;
|
|
1262
|
+
}) => Promise<TasksBlockReturn>;
|
|
1263
|
+
/** Add a comment to a task and steer the assignee if it is active */
|
|
1264
|
+
comment: (taskId: string, body: string) => Promise<TasksCommentReturn>;
|
|
1265
|
+
/** Create a tracked task; unresolved dependencies arm launch plans instead of dispatching early */
|
|
1266
|
+
create: (title: string, options?: {
|
|
1267
|
+
agent?: string;
|
|
1268
|
+
assignee?: string;
|
|
1269
|
+
checkpoint?: string;
|
|
1270
|
+
dependsOn?: string[];
|
|
1271
|
+
effort?: string;
|
|
1272
|
+
input?: string[];
|
|
1273
|
+
instructions?: string;
|
|
1274
|
+
model?: string;
|
|
1275
|
+
parent?: string;
|
|
1276
|
+
priority?: string;
|
|
1277
|
+
profile?: string;
|
|
1278
|
+
reportEvents?: string;
|
|
1279
|
+
reportTo?: string;
|
|
1280
|
+
session?: string;
|
|
1281
|
+
thinking?: string;
|
|
1282
|
+
worktreeBranch?: string;
|
|
1283
|
+
worktreeMode?: string;
|
|
1284
|
+
worktreePath?: string;
|
|
1285
|
+
}) => Promise<TasksCreateReturn>;
|
|
1286
|
+
deps: {
|
|
1287
|
+
/** Add one gating dependency to a task */
|
|
1288
|
+
add: (taskId: string, dependencyTaskId: string) => Promise<TasksDepsAddReturn>;
|
|
1289
|
+
/** List gating dependencies and dependents for a task */
|
|
1290
|
+
ls: (taskId: string) => Promise<TasksDepsLsReturn>;
|
|
1291
|
+
/** Remove one gating dependency from a task */
|
|
1292
|
+
rm: (taskId: string, dependencyTaskId: string) => Promise<TasksDepsRmReturn>;
|
|
1293
|
+
};
|
|
1294
|
+
/** Dispatch a task now, or arm a launch plan if dependencies still gate start */
|
|
1295
|
+
dispatch: (taskId: string, options?: {
|
|
1296
|
+
agent?: string;
|
|
1297
|
+
checkpoint?: string;
|
|
1298
|
+
effort?: string;
|
|
1299
|
+
model?: string;
|
|
1300
|
+
reportEvents?: string;
|
|
1301
|
+
reportTo?: string;
|
|
1302
|
+
session?: string;
|
|
1303
|
+
thinking?: string;
|
|
1304
|
+
}) => Promise<TasksDispatchReturn>;
|
|
1305
|
+
/** Mark a task as done */
|
|
1306
|
+
done: (taskId: string, options?: {
|
|
1307
|
+
summary?: string;
|
|
1308
|
+
}) => Promise<TasksDoneReturn>;
|
|
1309
|
+
/** Mark a task as failed */
|
|
1310
|
+
fail: (taskId: string, options?: {
|
|
1311
|
+
reason?: string;
|
|
1312
|
+
}) => Promise<TasksFailReturn>;
|
|
1313
|
+
/** List tasks */
|
|
1314
|
+
list: (options?: {
|
|
1315
|
+
agent?: string;
|
|
1316
|
+
all?: boolean;
|
|
1317
|
+
archived?: boolean;
|
|
1318
|
+
last?: string;
|
|
1319
|
+
mine?: boolean;
|
|
1320
|
+
parent?: string;
|
|
1321
|
+
profile?: string;
|
|
1322
|
+
root?: string;
|
|
1323
|
+
roots?: boolean;
|
|
1324
|
+
session?: string;
|
|
1325
|
+
status?: string;
|
|
1326
|
+
text?: string;
|
|
1327
|
+
}) => Promise<TasksListReturn>;
|
|
1328
|
+
profiles: {
|
|
1329
|
+
/** Create a profile scaffold in the workspace or user catalog */
|
|
1330
|
+
init: (profileId: string, options?: {
|
|
1331
|
+
preset?: string;
|
|
1332
|
+
source?: string;
|
|
1333
|
+
}) => Promise<TasksProfilesInitReturn>;
|
|
1334
|
+
/** List resolved task profiles from all catalog sources */
|
|
1335
|
+
list: () => Promise<TasksProfilesListReturn>;
|
|
1336
|
+
/** Render a profile preview with the resolved template context */
|
|
1337
|
+
preview: (profileId: string, options?: {
|
|
1338
|
+
agent?: string;
|
|
1339
|
+
input?: string[];
|
|
1340
|
+
instructions?: string;
|
|
1341
|
+
session?: string;
|
|
1342
|
+
title?: string;
|
|
1343
|
+
worktreeBranch?: string;
|
|
1344
|
+
worktreeMode?: string;
|
|
1345
|
+
worktreePath?: string;
|
|
1346
|
+
}) => Promise<TasksProfilesPreviewReturn>;
|
|
1347
|
+
/** Show the resolved manifest for one task profile */
|
|
1348
|
+
show: (profileId: string) => Promise<TasksProfilesShowReturn>;
|
|
1349
|
+
/** Validate one profile or the whole resolved catalog */
|
|
1350
|
+
validate: (profileId?: string) => Promise<TasksProfilesValidateReturn>;
|
|
1351
|
+
};
|
|
1352
|
+
/** Report task progress from a CLI or agent session */
|
|
1353
|
+
report: (taskId: string, options?: {
|
|
1354
|
+
message?: string;
|
|
1355
|
+
progress?: string;
|
|
1356
|
+
}) => Promise<TasksReportReturn>;
|
|
1357
|
+
/** Show task details and history */
|
|
1358
|
+
show: (taskId: string, options?: {
|
|
1359
|
+
last?: string;
|
|
1360
|
+
}) => Promise<TasksShowReturn>;
|
|
1361
|
+
/** Restore an archived task to the default list */
|
|
1362
|
+
unarchive: (taskId: string) => Promise<TasksUnarchiveReturn>;
|
|
1363
|
+
/** Watch task events live */
|
|
1364
|
+
watch: (taskId?: string) => Promise<TasksWatchReturn>;
|
|
1365
|
+
};
|
|
1366
|
+
readonly tmux: {
|
|
1367
|
+
/** Attach or switch to an agent/session inside tmux */
|
|
1368
|
+
attach: (agent: string, session?: string) => Promise<TmuxAttachReturn>;
|
|
1369
|
+
/** List Ravi-managed tmux sessions and windows */
|
|
1370
|
+
list: () => Promise<TmuxListReturn>;
|
|
1371
|
+
/** Ensure a tmux session/window exists for an agent or session */
|
|
1372
|
+
open: (agent: string, session?: string) => Promise<TmuxOpenReturn>;
|
|
1373
|
+
/** Listen to NATS prompts and open tmux windows automatically */
|
|
1374
|
+
watch: (options?: {
|
|
1375
|
+
sync?: boolean;
|
|
1376
|
+
}) => Promise<TmuxWatchReturn>;
|
|
1377
|
+
};
|
|
1378
|
+
readonly tools: {
|
|
1379
|
+
/** List all available CLI tools */
|
|
1380
|
+
list: () => Promise<ToolsListReturn>;
|
|
1381
|
+
/** Export tools as JSON manifest */
|
|
1382
|
+
manifest: () => Promise<ToolsManifestReturn>;
|
|
1383
|
+
/** Export tools as JSON Schema */
|
|
1384
|
+
schema: () => Promise<ToolsSchemaReturn>;
|
|
1385
|
+
/** Show details for a specific tool */
|
|
1386
|
+
show: (name: string) => Promise<ToolsShowReturn>;
|
|
1387
|
+
/** Test a tool execution */
|
|
1388
|
+
test: (name: string, args?: string) => Promise<ToolsTestReturn>;
|
|
1389
|
+
};
|
|
1390
|
+
readonly transcribe: {
|
|
1391
|
+
/** Transcribe a local audio file */
|
|
1392
|
+
file: (path: string, options?: {
|
|
1393
|
+
lang?: string;
|
|
1394
|
+
}) => Promise<TranscribeFileReturn>;
|
|
1395
|
+
};
|
|
1396
|
+
readonly triggers: {
|
|
1397
|
+
/** Add a new event trigger */
|
|
1398
|
+
add: (name: string, options?: {
|
|
1399
|
+
account?: string;
|
|
1400
|
+
agent?: string;
|
|
1401
|
+
cooldown?: string;
|
|
1402
|
+
filter?: string;
|
|
1403
|
+
message?: string;
|
|
1404
|
+
session?: string;
|
|
1405
|
+
topic?: string;
|
|
1406
|
+
}) => Promise<TriggersAddReturn>;
|
|
1407
|
+
/** Disable a trigger */
|
|
1408
|
+
disable: (id: string) => Promise<TriggersDisableReturn>;
|
|
1409
|
+
/** Enable a trigger */
|
|
1410
|
+
enable: (id: string) => Promise<TriggersEnableReturn>;
|
|
1411
|
+
/** List all event triggers */
|
|
1412
|
+
list: () => Promise<TriggersListReturn>;
|
|
1413
|
+
/** Delete a trigger */
|
|
1414
|
+
rm: (id: string) => Promise<TriggersRmReturn>;
|
|
1415
|
+
/** Set trigger property */
|
|
1416
|
+
set: (id: string, key: string, value: string) => Promise<TriggersSetReturn>;
|
|
1417
|
+
/** Show trigger details */
|
|
1418
|
+
show: (id: string) => Promise<TriggersShowReturn>;
|
|
1419
|
+
/** Test trigger with fake event data */
|
|
1420
|
+
test: (id: string) => Promise<TriggersTestReturn>;
|
|
1421
|
+
};
|
|
1422
|
+
readonly video: {
|
|
1423
|
+
/** Analyze a video (YouTube URL or local file) and save to markdown */
|
|
1424
|
+
analyze: (url: string, options?: {
|
|
1425
|
+
output?: string;
|
|
1426
|
+
prompt?: string;
|
|
1427
|
+
}) => Promise<VideoAnalyzeReturn>;
|
|
1428
|
+
};
|
|
1429
|
+
readonly whatsapp: {
|
|
1430
|
+
dm: {
|
|
1431
|
+
/** Send read receipt (blue ticks) for a specific message */
|
|
1432
|
+
ack: (contact: string, messageId: string, options?: {
|
|
1433
|
+
account?: string;
|
|
1434
|
+
}) => Promise<WhatsappDmAckReturn>;
|
|
1435
|
+
/** Read recent messages from a DM chat */
|
|
1436
|
+
read: (contact: string, options?: {
|
|
1437
|
+
account?: string;
|
|
1438
|
+
last?: string;
|
|
1439
|
+
noAck?: boolean;
|
|
1440
|
+
}) => Promise<WhatsappDmReadReturn>;
|
|
1441
|
+
/** Send a direct message to a contact */
|
|
1442
|
+
send: (contact: string, message: string, options?: {
|
|
1443
|
+
account?: string;
|
|
1444
|
+
}) => Promise<WhatsappDmSendReturn>;
|
|
1445
|
+
};
|
|
1446
|
+
group: {
|
|
1447
|
+
/** Add participants to a group */
|
|
1448
|
+
add: (groupId: string, participants: string, options?: {
|
|
1449
|
+
account?: string;
|
|
1450
|
+
}) => Promise<WhatsappGroupAddReturn>;
|
|
1451
|
+
/** Create a new group */
|
|
1452
|
+
create: (name: string, participants: string, options?: {
|
|
1453
|
+
account?: string;
|
|
1454
|
+
agent?: string;
|
|
1455
|
+
}) => Promise<WhatsappGroupCreateReturn>;
|
|
1456
|
+
/** Demote participants from admin */
|
|
1457
|
+
demote: (groupId: string, participants: string, options?: {
|
|
1458
|
+
account?: string;
|
|
1459
|
+
}) => Promise<WhatsappGroupDemoteReturn>;
|
|
1460
|
+
/** Update group description */
|
|
1461
|
+
description: (groupId: string, text: string, options?: {
|
|
1462
|
+
account?: string;
|
|
1463
|
+
}) => Promise<WhatsappGroupDescriptionReturn>;
|
|
1464
|
+
/** Show group metadata */
|
|
1465
|
+
info: (groupId: string, options?: {
|
|
1466
|
+
account?: string;
|
|
1467
|
+
}) => Promise<WhatsappGroupInfoReturn>;
|
|
1468
|
+
/** Get group invite link */
|
|
1469
|
+
invite: (groupId: string, options?: {
|
|
1470
|
+
account?: string;
|
|
1471
|
+
}) => Promise<WhatsappGroupInviteReturn>;
|
|
1472
|
+
/** Join a group via invite link/code */
|
|
1473
|
+
join: (code: string, options?: {
|
|
1474
|
+
account?: string;
|
|
1475
|
+
}) => Promise<WhatsappGroupJoinReturn>;
|
|
1476
|
+
/** Leave a group */
|
|
1477
|
+
leave: (groupId: string, options?: {
|
|
1478
|
+
account?: string;
|
|
1479
|
+
}) => Promise<WhatsappGroupLeaveReturn>;
|
|
1480
|
+
/** List all groups the bot participates in */
|
|
1481
|
+
list: (options?: {
|
|
1482
|
+
account?: string;
|
|
1483
|
+
}) => Promise<WhatsappGroupListReturn>;
|
|
1484
|
+
/** Promote participants to admin */
|
|
1485
|
+
promote: (groupId: string, participants: string, options?: {
|
|
1486
|
+
account?: string;
|
|
1487
|
+
}) => Promise<WhatsappGroupPromoteReturn>;
|
|
1488
|
+
/** Remove participants from a group */
|
|
1489
|
+
remove: (groupId: string, participants: string, options?: {
|
|
1490
|
+
account?: string;
|
|
1491
|
+
}) => Promise<WhatsappGroupRemoveReturn>;
|
|
1492
|
+
/** Rename a group */
|
|
1493
|
+
rename: (groupId: string, name: string, options?: {
|
|
1494
|
+
account?: string;
|
|
1495
|
+
}) => Promise<WhatsappGroupRenameReturn>;
|
|
1496
|
+
/** Revoke current invite link */
|
|
1497
|
+
revokeInvite: (groupId: string, options?: {
|
|
1498
|
+
account?: string;
|
|
1499
|
+
}) => Promise<WhatsappGroupRevokeInviteReturn>;
|
|
1500
|
+
/** Update group settings (announcement, not_announcement, locked, unlocked) */
|
|
1501
|
+
settings: (groupId: string, setting: string, options?: {
|
|
1502
|
+
account?: string;
|
|
1503
|
+
}) => Promise<WhatsappGroupSettingsReturn>;
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
readonly workflows: {
|
|
1507
|
+
runs: {
|
|
1508
|
+
/** Archive one node run from workflow aggregate state */
|
|
1509
|
+
archiveNode: (runId: string, nodeKey: string) => Promise<WorkflowsRunsArchiveNodeReturn>;
|
|
1510
|
+
/** Cancel one workflow node run */
|
|
1511
|
+
cancel: (runId: string, nodeKey: string) => Promise<WorkflowsRunsCancelReturn>;
|
|
1512
|
+
/** List workflow runs */
|
|
1513
|
+
list: () => Promise<WorkflowsRunsListReturn>;
|
|
1514
|
+
/** Release a manual node transition or gate */
|
|
1515
|
+
release: (runId: string, nodeKey: string) => Promise<WorkflowsRunsReleaseReturn>;
|
|
1516
|
+
/** Show one workflow run with node state */
|
|
1517
|
+
show: (runId: string) => Promise<WorkflowsRunsShowReturn>;
|
|
1518
|
+
/** Skip one optional workflow node */
|
|
1519
|
+
skip: (runId: string, nodeKey: string) => Promise<WorkflowsRunsSkipReturn>;
|
|
1520
|
+
/** Instantiate one workflow run from a spec */
|
|
1521
|
+
start: (specId: string, options?: {
|
|
1522
|
+
runId?: string;
|
|
1523
|
+
}) => Promise<WorkflowsRunsStartReturn>;
|
|
1524
|
+
/** Attach an existing task to a workflow task node */
|
|
1525
|
+
taskAttach: (runId: string, nodeKey: string, taskId: string) => Promise<WorkflowsRunsTaskAttachReturn>;
|
|
1526
|
+
/** Create a new task attempt for one workflow task node */
|
|
1527
|
+
taskCreate: (runId: string, nodeKey: string, options?: {
|
|
1528
|
+
agent?: string;
|
|
1529
|
+
instructions?: string;
|
|
1530
|
+
priority?: string;
|
|
1531
|
+
profile?: string;
|
|
1532
|
+
session?: string;
|
|
1533
|
+
title?: string;
|
|
1534
|
+
}) => Promise<WorkflowsRunsTaskCreateReturn>;
|
|
1535
|
+
};
|
|
1536
|
+
specs: {
|
|
1537
|
+
/** Create one workflow spec from narrow JSON definition */
|
|
1538
|
+
create: (specId: string, options?: {
|
|
1539
|
+
definition?: string;
|
|
1540
|
+
file?: string;
|
|
1541
|
+
}) => Promise<WorkflowsSpecsCreateReturn>;
|
|
1542
|
+
/** List workflow specs */
|
|
1543
|
+
list: () => Promise<WorkflowsSpecsListReturn>;
|
|
1544
|
+
/** Show one workflow spec */
|
|
1545
|
+
show: (specId: string) => Promise<WorkflowsSpecsShowReturn>;
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
//# sourceMappingURL=client.d.ts.map
|