@ravi-os/sdk 0.1.0 → 0.2.1
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 +179 -36
- package/dist/client.d.ts +656 -80
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +734 -137
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +4525 -2296
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +4751 -2401
- package/dist/schemas.js.map +1 -1
- package/dist/streaming.d.ts +71 -0
- package/dist/streaming.d.ts.map +1 -0
- package/dist/streaming.js +183 -0
- package/dist/streaming.js.map +1 -0
- package/dist/transport/http.d.ts.map +1 -1
- package/dist/transport/http.js +9 -1
- package/dist/transport/http.js.map +1 -1
- package/dist/transport/types.d.ts +7 -0
- package/dist/transport/types.d.ts.map +1 -1
- package/dist/types.d.ts +882 -102
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +3 -3
- package/dist/version.js +3 -3
- package/package.json +5 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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,
|
|
2
|
+
import type { AdaptersListReturn, AdaptersShowReturn, AgentsCreateReturn, AgentsDebounceReturn, AgentsDebugReturn, AgentsDeleteReturn, AgentsListReturn, AgentsResetReturn, AgentsSessionReturn, AgentsSetReturn, AgentsShowReturn, AgentsSpecModeReturn, AgentsSyncInstructionsReturn, ArtifactsArchiveReturn, ArtifactsAttachReturn, ArtifactsBlobReturn, ArtifactsCreateReturn, ArtifactsEventReturn, ArtifactsEventsReturn, ArtifactsListReturn, ArtifactsPublishReturn, ArtifactsReleaseActivateReturn, ArtifactsRestoreReturn, ArtifactsShowReturn, ArtifactsSnapshotReturn, ArtifactsUpdateReturn, ArtifactsVersionReturn, ArtifactsVersionsReturn, AudioGenerateReturn, CommandsListReturn, CommandsRunReturn, CommandsShowReturn, CommandsValidateReturn, ContactsActivityReturn, ContactsAddReturn, ContactsAllowReturn, ContactsApproveReturn, ContactsBlockReturn, ContactsCheckReturn, ContactsDuplicatesReturn, ContactsFindReturn, ContactsGetReturn, ContactsGroupTagReturn, ContactsGroupUntagReturn, ContactsIdentityAddReturn, ContactsIdentityRemoveReturn, ContactsInfoReturn, ContactsLinkReturn, ContactsListReturn, ContactsMergeReturn, ContactsMessagesReturn, ContactsMetadataListReturn, ContactsMetadataRemoveReturn, ContactsMetadataSetReturn, ContactsNoteReturn, ContactsPendingReturn, ContactsProfileReturn, ContactsRemoveReturn, ContactsSessionsReturn, ContactsSetReturn, ContactsTagReturn, ContactsTimelineReturn, ContactsUnlinkReturn, ContactsUntagReturn, ContextAuthorizeReturn, ContextCapabilitiesReturn, ContextCheckReturn, ContextCleanupAgentRuntimeReturn, ContextCodexBashHookReturn, ContextCredentialsAddReturn, ContextCredentialsListReturn, ContextCredentialsRemoveReturn, ContextCredentialsSetDefaultReturn, ContextInfoReturn, ContextIssueReturn, ContextLineageReturn, ContextListReturn, ContextRevokeReturn, ContextVisibilityReturn, ContextWhoamiReturn, CostsAgentReturn, CostsAgentsReturn, CostsSessionReturn, CostsSummaryReturn, CostsTopSessionsReturn, CrmAccountCreateReturn, CrmAccountLinkContactReturn, CrmAccountReturn, CrmAccountShowReturn, CrmBoardReturn, CrmContactReturn, CrmContactSetReturn, CrmContactShowReturn, CrmContactsReturn, CrmFactConfirmReturn, CrmFactListReturn, CrmFactProposeReturn, CrmFactRejectReturn, CrmNextReturn, CrmOpportunityContactsReturn, CrmOpportunityCreateReturn, CrmOpportunityLinkContactReturn, CrmOpportunityMoveReturn, CrmOpportunityReturn, CrmOpportunityShowReturn, CrmTaskCreateReturn, CrmTaskDoneReturn, CrmTaskShowReturn, CronAddReturn, CronDisableReturn, CronEnableReturn, CronListReturn, CronRmReturn, CronRunReturn, CronSetReturn, CronShowReturn, DaemonEnvReturn, DaemonInitAdminKeyReturn, DaemonInstallReturn, DaemonLogsReturn, DaemonRestartReturn, DaemonStartReturn, DaemonStatusReturn, DaemonStopReturn, DaemonUninstallReturn, DevinAuthCheckReturn, DevinSessionsArchiveReturn, DevinSessionsAttachmentsReturn, DevinSessionsCreateReturn, DevinSessionsInsightsReturn, DevinSessionsListReturn, DevinSessionsMessagesReturn, DevinSessionsSendReturn, DevinSessionsShowReturn, DevinSessionsSyncReturn, DevinSessionsTerminateReturn, EvalRunReturn, HeartbeatDisableReturn, HeartbeatEnableReturn, HeartbeatSetReturn, HeartbeatShowReturn, HeartbeatStatusReturn, HeartbeatTriggerReturn, HooksCreateReturn, HooksDisableReturn, HooksEnableReturn, HooksListReturn, HooksRmReturn, HooksShowReturn, HooksTestReturn, ImageAtlasSplitReturn, ImageGenerateReturn, InsightsCreateReturn, InsightsListReturn, InsightsSearchReturn, InsightsShowReturn, InstancesCreateReturn, InstancesDeleteReturn, InstancesDeletedReturn, InstancesDisableReturn, InstancesDisconnectReturn, InstancesEnableReturn, InstancesGetReturn, InstancesListReturn, InstancesPendingApproveReturn, InstancesPendingListReturn, InstancesPendingRejectReturn, InstancesRestoreReturn, InstancesRoutesAddReturn, InstancesRoutesDeletedReturn, InstancesRoutesListReturn, InstancesRoutesRemoveReturn, InstancesRoutesRestoreReturn, InstancesRoutesSetReturn, InstancesRoutesShowReturn, InstancesSetReturn, InstancesShowReturn, InstancesStatusReturn, InstancesTargetReturn, MediaSendReturn, ObserversListReturn, ObserversProfilesInitReturn, ObserversProfilesListReturn, ObserversProfilesPreviewReturn, ObserversProfilesShowReturn, ObserversProfilesValidateReturn, ObserversRefreshReturn, ObserversRulesDisableReturn, ObserversRulesEnableReturn, ObserversRulesExplainReturn, ObserversRulesListReturn, ObserversRulesRmReturn, ObserversRulesSetReturn, ObserversRulesShowReturn, ObserversRulesValidateReturn, ObserversShowReturn, 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, SdkSwiftCheckReturn, SdkSwiftGenerateReturn, SelfChatReturn, SelfContextReturn, SelfExplainReturn, SelfKnowledgeReturn, SelfPermissionsReturn, SelfRecentReturn, SelfRouteReturn, SelfWhoamiReturn, ServiceStartReturn, ServiceTuiReturn, ServiceWaReturn, SessionsAnswerReturn, SessionsAskReturn, SessionsDeleteReturn, SessionsExecuteReturn, SessionsExtendReturn, SessionsGoalReturn, SessionsInfoReturn, SessionsInformReturn, SessionsKeepReturn, SessionsListReturn, SessionsPruneReturn, SessionsReadReturn, SessionsRenameReturn, SessionsResetReturn, SessionsRuntimeFollowUpReturn, SessionsRuntimeForkReturn, SessionsRuntimeInterruptReturn, SessionsRuntimeListReturn, SessionsRuntimeReadReturn, SessionsRuntimeRollbackReturn, SessionsRuntimeSteerReturn, SessionsSendReturn, SessionsSetDisplayReturn, SessionsSetModelReturn, SessionsSetThinkingReturn, SessionsSetTtlReturn, SessionsTraceReturn, SessionsVisibilityReturn, SettingsDeleteReturn, SettingsGetReturn, SettingsListReturn, SettingsSetReturn, SkillGatesDisableReturn, SkillGatesEnableReturn, SkillGatesListReturn, SkillGatesResetReturn, SkillGatesRmReturn, SkillGatesSetReturn, SkillGatesShowReturn, SkillsInstallReturn, SkillsListReturn, SkillsShowReturn, SkillsSyncReturn, SpecsGetReturn, SpecsListReturn, SpecsNewReturn, SpecsSyncReturn, StickersAddReturn, StickersListReturn, StickersRemoveReturn, StickersSendReturn, StickersShowReturn, TagsAttachReturn, TagsCreateReturn, TagsDetachReturn, TagsListReturn, TagsSearchReturn, TagsSetReturn, 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, ToolsListReturn, ToolsManifestReturn, ToolsSchemaReturn, ToolsShowReturn, ToolsTestReturn, TranscribeFileReturn, TriggersAddReturn, TriggersDisableReturn, TriggersEnableReturn, TriggersListReturn, TriggersRmReturn, TriggersSetReturn, TriggersShowReturn, TriggersTestReturn, VideoAnalyzeReturn, WhatsappChatsListReturn, 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
3
|
/**
|
|
4
4
|
* `RaviClient` exposes every registry command as a typed method.
|
|
5
5
|
*
|
|
@@ -14,6 +14,8 @@ export declare class RaviClient {
|
|
|
14
14
|
readonly adapters: {
|
|
15
15
|
/** List session adapters with health and bind state */
|
|
16
16
|
list: (options?: {
|
|
17
|
+
limit?: string;
|
|
18
|
+
offset?: string;
|
|
17
19
|
session?: string;
|
|
18
20
|
status?: string;
|
|
19
21
|
}) => Promise<AdaptersListReturn>;
|
|
@@ -35,7 +37,11 @@ export declare class RaviClient {
|
|
|
35
37
|
/** Delete an agent */
|
|
36
38
|
delete: (id: string) => Promise<AgentsDeleteReturn>;
|
|
37
39
|
/** List all agents */
|
|
38
|
-
list: (
|
|
40
|
+
list: (options?: {
|
|
41
|
+
limit?: string;
|
|
42
|
+
offset?: string;
|
|
43
|
+
tag?: string;
|
|
44
|
+
}) => Promise<AgentsListReturn>;
|
|
39
45
|
/** Reset agent session */
|
|
40
46
|
reset: (id: string, nameOrKey?: string) => Promise<AgentsResetReturn>;
|
|
41
47
|
/** Show agent session status */
|
|
@@ -60,13 +66,19 @@ export declare class RaviClient {
|
|
|
60
66
|
metadata?: string;
|
|
61
67
|
relation?: string;
|
|
62
68
|
}) => Promise<ArtifactsAttachReturn>;
|
|
69
|
+
/** Stream raw artifact bytes */
|
|
70
|
+
blob: (id: string) => Promise<ArtifactsBlobReturn>;
|
|
63
71
|
/** Create a generic Ravi artifact record */
|
|
64
|
-
create: (
|
|
72
|
+
create: (options?: {
|
|
73
|
+
assetBase?: string;
|
|
74
|
+
basePath?: string;
|
|
65
75
|
command?: string;
|
|
66
76
|
costUsd?: string;
|
|
67
77
|
durationMs?: string;
|
|
78
|
+
entrypoint?: string;
|
|
68
79
|
input?: string;
|
|
69
80
|
inputTokens?: string;
|
|
81
|
+
kind?: string;
|
|
70
82
|
lineage?: string;
|
|
71
83
|
message?: string;
|
|
72
84
|
metadata?: string;
|
|
@@ -97,15 +109,62 @@ export declare class RaviClient {
|
|
|
97
109
|
events: (id: string) => Promise<ArtifactsEventsReturn>;
|
|
98
110
|
/** List artifacts */
|
|
99
111
|
list: (options?: {
|
|
112
|
+
agent?: string;
|
|
100
113
|
includeDeleted?: boolean;
|
|
101
114
|
kind?: string;
|
|
115
|
+
lifecycle?: string;
|
|
102
116
|
limit?: string;
|
|
117
|
+
offset?: string;
|
|
118
|
+
rich?: boolean;
|
|
103
119
|
session?: string;
|
|
104
120
|
tag?: string;
|
|
105
121
|
task?: string;
|
|
106
122
|
}) => Promise<ArtifactsListReturn>;
|
|
123
|
+
/** Publish a local artifact package through a Console-compatible endpoint */
|
|
124
|
+
publish: (target: string, options?: {
|
|
125
|
+
artifactVersion?: string;
|
|
126
|
+
assetBase?: string;
|
|
127
|
+
basePath?: string;
|
|
128
|
+
console?: string;
|
|
129
|
+
description?: string;
|
|
130
|
+
entrypoint?: string;
|
|
131
|
+
idempotencyKey?: string;
|
|
132
|
+
name?: string;
|
|
133
|
+
noActivate?: boolean;
|
|
134
|
+
project?: string;
|
|
135
|
+
reason?: string;
|
|
136
|
+
replaceRelease?: boolean;
|
|
137
|
+
route?: string;
|
|
138
|
+
site?: string;
|
|
139
|
+
slug?: string;
|
|
140
|
+
uploadSession?: string;
|
|
141
|
+
visibility?: string;
|
|
142
|
+
}) => Promise<ArtifactsPublishReturn>;
|
|
143
|
+
release: {
|
|
144
|
+
/** Activate an existing Pages release for a local artifact */
|
|
145
|
+
activate: (id: string, options?: {
|
|
146
|
+
console?: string;
|
|
147
|
+
release?: string;
|
|
148
|
+
site?: string;
|
|
149
|
+
version?: string;
|
|
150
|
+
}) => Promise<ArtifactsReleaseActivateReturn>;
|
|
151
|
+
};
|
|
152
|
+
/** Restore current artifact content from an immutable version */
|
|
153
|
+
restore: (id: string, options?: {
|
|
154
|
+
message?: string;
|
|
155
|
+
version?: string;
|
|
156
|
+
}) => Promise<ArtifactsRestoreReturn>;
|
|
107
157
|
/** Show artifact details, links and events */
|
|
108
158
|
show: (id: string) => Promise<ArtifactsShowReturn>;
|
|
159
|
+
/** Create an immutable version snapshot for an artifact */
|
|
160
|
+
snapshot: (id: string, options?: {
|
|
161
|
+
label?: string;
|
|
162
|
+
manifest?: string;
|
|
163
|
+
message?: string;
|
|
164
|
+
metadata?: string;
|
|
165
|
+
source?: string;
|
|
166
|
+
status?: string;
|
|
167
|
+
}) => Promise<ArtifactsSnapshotReturn>;
|
|
109
168
|
/** Edit artifact metadata and high-level fields */
|
|
110
169
|
update: (id: string, options?: {
|
|
111
170
|
command?: string;
|
|
@@ -133,11 +192,12 @@ export declare class RaviClient {
|
|
|
133
192
|
totalTokens?: string;
|
|
134
193
|
uri?: string;
|
|
135
194
|
}) => Promise<ArtifactsUpdateReturn>;
|
|
136
|
-
/**
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
195
|
+
/** Show one immutable artifact version */
|
|
196
|
+
version: (id: string, options?: {
|
|
197
|
+
version?: string;
|
|
198
|
+
}) => Promise<ArtifactsVersionReturn>;
|
|
199
|
+
/** List immutable versions for an artifact */
|
|
200
|
+
versions: (id: string) => Promise<ArtifactsVersionsReturn>;
|
|
141
201
|
};
|
|
142
202
|
readonly audio: {
|
|
143
203
|
/** Generate speech from text using ElevenLabs TTS */
|
|
@@ -152,7 +212,34 @@ export declare class RaviClient {
|
|
|
152
212
|
voice?: string;
|
|
153
213
|
}) => Promise<AudioGenerateReturn>;
|
|
154
214
|
};
|
|
215
|
+
readonly commands: {
|
|
216
|
+
/** List Ravi commands */
|
|
217
|
+
list: (options?: {
|
|
218
|
+
agent?: string;
|
|
219
|
+
limit?: string;
|
|
220
|
+
offset?: string;
|
|
221
|
+
tag?: string;
|
|
222
|
+
}) => Promise<CommandsListReturn>;
|
|
223
|
+
/** Render a Ravi command into its composed prompt */
|
|
224
|
+
run: (name: string, args: string[], options?: {
|
|
225
|
+
agent?: string;
|
|
226
|
+
}) => Promise<CommandsRunReturn>;
|
|
227
|
+
/** Show one Ravi command */
|
|
228
|
+
show: (name: string, options?: {
|
|
229
|
+
agent?: string;
|
|
230
|
+
}) => Promise<CommandsShowReturn>;
|
|
231
|
+
/** Validate Ravi command files */
|
|
232
|
+
validate: (options?: {
|
|
233
|
+
agent?: string;
|
|
234
|
+
}) => Promise<CommandsValidateReturn>;
|
|
235
|
+
};
|
|
155
236
|
readonly contacts: {
|
|
237
|
+
/** Show session activity attributed to a contact */
|
|
238
|
+
activity: (contact: string, options?: {
|
|
239
|
+
limit?: string;
|
|
240
|
+
offset?: string;
|
|
241
|
+
raw?: boolean;
|
|
242
|
+
}) => Promise<ContactsActivityReturn>;
|
|
156
243
|
/** Add/allow a contact */
|
|
157
244
|
add: (identity: string, name?: string, options?: {
|
|
158
245
|
agent?: string;
|
|
@@ -195,20 +282,67 @@ export declare class RaviClient {
|
|
|
195
282
|
}) => Promise<ContactsLinkReturn>;
|
|
196
283
|
/** List all contacts */
|
|
197
284
|
list: (options?: {
|
|
285
|
+
limit?: string;
|
|
286
|
+
offset?: string;
|
|
198
287
|
status?: string;
|
|
199
288
|
}) => Promise<ContactsListReturn>;
|
|
200
289
|
/** Merge two contacts (move identities from source to target) */
|
|
201
290
|
merge: (source: string, target: string) => Promise<ContactsMergeReturn>;
|
|
291
|
+
/** Show messages attributed to a contact */
|
|
292
|
+
messages: (contact: string, options?: {
|
|
293
|
+
limit?: string;
|
|
294
|
+
offset?: string;
|
|
295
|
+
}) => Promise<ContactsMessagesReturn>;
|
|
296
|
+
metadata: {
|
|
297
|
+
/** List current scoped metadata for a contact */
|
|
298
|
+
list: (contact: string, options?: {
|
|
299
|
+
limit?: string;
|
|
300
|
+
offset?: string;
|
|
301
|
+
scope?: string;
|
|
302
|
+
}) => Promise<ContactsMetadataListReturn>;
|
|
303
|
+
/** Remove scoped metadata from a contact */
|
|
304
|
+
remove: (contact: string, key: string, options?: {
|
|
305
|
+
scope?: string;
|
|
306
|
+
source?: string;
|
|
307
|
+
}) => Promise<ContactsMetadataRemoveReturn>;
|
|
308
|
+
/** Set scoped metadata for a contact */
|
|
309
|
+
set: (contact: string, key: string, value: string, options?: {
|
|
310
|
+
scope?: string;
|
|
311
|
+
source?: string;
|
|
312
|
+
}) => Promise<ContactsMetadataSetReturn>;
|
|
313
|
+
};
|
|
314
|
+
/** Append a note to a contact timeline */
|
|
315
|
+
note: (contact: string, text: string, options?: {
|
|
316
|
+
scope?: string;
|
|
317
|
+
source?: string;
|
|
318
|
+
}) => Promise<ContactsNoteReturn>;
|
|
202
319
|
/** List pending contacts */
|
|
203
320
|
pending: (options?: {
|
|
204
321
|
account?: string;
|
|
205
322
|
}) => Promise<ContactsPendingReturn>;
|
|
323
|
+
/** Show a contact profile card */
|
|
324
|
+
profile: (contact: string, options?: {
|
|
325
|
+
includeCrm?: boolean;
|
|
326
|
+
limit?: string;
|
|
327
|
+
}) => Promise<ContactsProfileReturn>;
|
|
206
328
|
/** Remove a contact */
|
|
207
329
|
remove: (contact: string) => Promise<ContactsRemoveReturn>;
|
|
330
|
+
/** Show session summaries attributed to a contact */
|
|
331
|
+
sessions: (contact: string, options?: {
|
|
332
|
+
limit?: string;
|
|
333
|
+
offset?: string;
|
|
334
|
+
}) => Promise<ContactsSessionsReturn>;
|
|
208
335
|
/** Set contact property */
|
|
209
336
|
set: (contact: string, key: string, value: string) => Promise<ContactsSetReturn>;
|
|
210
337
|
/** Add a tag to a contact */
|
|
211
338
|
tag: (contact: string, tag: string) => Promise<ContactsTagReturn>;
|
|
339
|
+
/** Show contact timeline events */
|
|
340
|
+
timeline: (contact: string, options?: {
|
|
341
|
+
event?: string;
|
|
342
|
+
limit?: string;
|
|
343
|
+
offset?: string;
|
|
344
|
+
scope?: string;
|
|
345
|
+
}) => Promise<ContactsTimelineReturn>;
|
|
212
346
|
/** Unlink a platform identity from its contact */
|
|
213
347
|
unlink: (platformIdentity: string, options?: {
|
|
214
348
|
channel?: string;
|
|
@@ -225,6 +359,14 @@ export declare class RaviClient {
|
|
|
225
359
|
capabilities: () => Promise<ContextCapabilitiesReturn>;
|
|
226
360
|
/** Check whether the current runtime context allows an action */
|
|
227
361
|
check: (permission: string, objectType: string, objectId: string) => Promise<ContextCheckReturn>;
|
|
362
|
+
/** Dry-run or revoke stale agent-runtime contexts left by old turn-scoped issuance */
|
|
363
|
+
cleanupAgentRuntime: (options?: {
|
|
364
|
+
agent?: string;
|
|
365
|
+
olderThan?: string;
|
|
366
|
+
reason?: string;
|
|
367
|
+
revoke?: boolean;
|
|
368
|
+
session?: string;
|
|
369
|
+
}) => Promise<ContextCleanupAgentRuntimeReturn>;
|
|
228
370
|
/** Evaluate a Codex PreToolUse Bash hook payload from stdin using the current Ravi context */
|
|
229
371
|
codexBashHook: () => Promise<ContextCodexBashHookReturn>;
|
|
230
372
|
credentials: {
|
|
@@ -234,7 +376,10 @@ export declare class RaviClient {
|
|
|
234
376
|
setDefault?: boolean;
|
|
235
377
|
}) => Promise<ContextCredentialsAddReturn>;
|
|
236
378
|
/** List entries in the local credentials store */
|
|
237
|
-
list: (
|
|
379
|
+
list: (options?: {
|
|
380
|
+
limit?: string;
|
|
381
|
+
offset?: string;
|
|
382
|
+
}) => Promise<ContextCredentialsListReturn>;
|
|
238
383
|
/** Remove a stored context-key from the credentials store */
|
|
239
384
|
remove: (contextKey: string) => Promise<ContextCredentialsRemoveReturn>;
|
|
240
385
|
/** Mark a stored context-key as the default */
|
|
@@ -255,6 +400,8 @@ export declare class RaviClient {
|
|
|
255
400
|
agent?: string;
|
|
256
401
|
all?: boolean;
|
|
257
402
|
kind?: string;
|
|
403
|
+
limit?: string;
|
|
404
|
+
offset?: string;
|
|
258
405
|
session?: string;
|
|
259
406
|
}) => Promise<ContextListReturn>;
|
|
260
407
|
/** Revoke a runtime context by context ID */
|
|
@@ -262,6 +409,8 @@ export declare class RaviClient {
|
|
|
262
409
|
noCascade?: boolean;
|
|
263
410
|
reason?: string;
|
|
264
411
|
}) => Promise<ContextRevokeReturn>;
|
|
412
|
+
/** Show the current context session visibility */
|
|
413
|
+
visibility: () => Promise<ContextVisibilityReturn>;
|
|
265
414
|
/** Resolve the current runtime context */
|
|
266
415
|
whoami: () => Promise<ContextWhoamiReturn>;
|
|
267
416
|
};
|
|
@@ -287,6 +436,125 @@ export declare class RaviClient {
|
|
|
287
436
|
limit?: string;
|
|
288
437
|
}) => Promise<CostsTopSessionsReturn>;
|
|
289
438
|
};
|
|
439
|
+
readonly crm: {
|
|
440
|
+
account: {
|
|
441
|
+
/** Create a CRM account */
|
|
442
|
+
create: (name: string, options?: {
|
|
443
|
+
contact?: string;
|
|
444
|
+
domain?: string;
|
|
445
|
+
idempotencyKey?: string;
|
|
446
|
+
owner?: string;
|
|
447
|
+
}) => Promise<CrmAccountCreateReturn>;
|
|
448
|
+
/** Link a contact to an account */
|
|
449
|
+
linkContact: (account: string, contact: string, options?: {
|
|
450
|
+
primary?: boolean;
|
|
451
|
+
role?: string;
|
|
452
|
+
}) => Promise<CrmAccountLinkContactReturn>;
|
|
453
|
+
/** Show CRM account */
|
|
454
|
+
show: (account: string) => Promise<CrmAccountShowReturn>;
|
|
455
|
+
};
|
|
456
|
+
/** Show CRM account */
|
|
457
|
+
accountCommand: (account: string) => Promise<CrmAccountReturn>;
|
|
458
|
+
/** Show open opportunity board */
|
|
459
|
+
board: () => Promise<CrmBoardReturn>;
|
|
460
|
+
contact: {
|
|
461
|
+
/** Set one CRM contact profile field */
|
|
462
|
+
set: (contact: string, field: string, value: string, options?: {
|
|
463
|
+
source?: string;
|
|
464
|
+
}) => Promise<CrmContactSetReturn>;
|
|
465
|
+
/** Show CRM profile for one contact */
|
|
466
|
+
show: (contact: string) => Promise<CrmContactShowReturn>;
|
|
467
|
+
};
|
|
468
|
+
/** Show CRM profile for one contact */
|
|
469
|
+
contactCommand: (contact: string) => Promise<CrmContactReturn>;
|
|
470
|
+
/** List CRM contact cards */
|
|
471
|
+
contacts: (options?: {
|
|
472
|
+
limit?: string;
|
|
473
|
+
offset?: string;
|
|
474
|
+
owner?: string;
|
|
475
|
+
status?: string;
|
|
476
|
+
}) => Promise<CrmContactsReturn>;
|
|
477
|
+
fact: {
|
|
478
|
+
/** Confirm a CRM fact */
|
|
479
|
+
confirm: (fact: string) => Promise<CrmFactConfirmReturn>;
|
|
480
|
+
/** List CRM facts */
|
|
481
|
+
list: (options?: {
|
|
482
|
+
account?: string;
|
|
483
|
+
contact?: string;
|
|
484
|
+
entity?: string;
|
|
485
|
+
entityType?: string;
|
|
486
|
+
key?: string;
|
|
487
|
+
limit?: string;
|
|
488
|
+
offset?: string;
|
|
489
|
+
opportunity?: string;
|
|
490
|
+
status?: string;
|
|
491
|
+
}) => Promise<CrmFactListReturn>;
|
|
492
|
+
/** Propose or confirm a CRM fact */
|
|
493
|
+
propose: (entityType: string, entity: string, key: string, value: string, options?: {
|
|
494
|
+
account?: string;
|
|
495
|
+
confidence?: string;
|
|
496
|
+
contact?: string;
|
|
497
|
+
idempotencyKey?: string;
|
|
498
|
+
opportunity?: string;
|
|
499
|
+
status?: string;
|
|
500
|
+
}) => Promise<CrmFactProposeReturn>;
|
|
501
|
+
/** Reject a CRM fact */
|
|
502
|
+
reject: (fact: string) => Promise<CrmFactRejectReturn>;
|
|
503
|
+
};
|
|
504
|
+
/** List open CRM next actions */
|
|
505
|
+
next: (options?: {
|
|
506
|
+
account?: string;
|
|
507
|
+
contact?: string;
|
|
508
|
+
limit?: string;
|
|
509
|
+
offset?: string;
|
|
510
|
+
opportunity?: string;
|
|
511
|
+
owner?: string;
|
|
512
|
+
}) => Promise<CrmNextReturn>;
|
|
513
|
+
opportunity: {
|
|
514
|
+
/** List contacts linked to an opportunity */
|
|
515
|
+
contacts: (opportunity: string) => Promise<CrmOpportunityContactsReturn>;
|
|
516
|
+
/** Create a CRM opportunity */
|
|
517
|
+
create: (title: string, options?: {
|
|
518
|
+
account?: string;
|
|
519
|
+
contact?: string;
|
|
520
|
+
currency?: string;
|
|
521
|
+
idempotencyKey?: string;
|
|
522
|
+
owner?: string;
|
|
523
|
+
stage?: string;
|
|
524
|
+
value?: string;
|
|
525
|
+
}) => Promise<CrmOpportunityCreateReturn>;
|
|
526
|
+
/** Link a contact to an opportunity */
|
|
527
|
+
linkContact: (opportunity: string, contact: string, options?: {
|
|
528
|
+
account?: string;
|
|
529
|
+
primary?: boolean;
|
|
530
|
+
role?: string;
|
|
531
|
+
}) => Promise<CrmOpportunityLinkContactReturn>;
|
|
532
|
+
/** Move an opportunity to another stage */
|
|
533
|
+
move: (opportunity: string, stage: string, options?: {
|
|
534
|
+
lostReason?: string;
|
|
535
|
+
}) => Promise<CrmOpportunityMoveReturn>;
|
|
536
|
+
/** Show CRM opportunity */
|
|
537
|
+
show: (opportunity: string) => Promise<CrmOpportunityShowReturn>;
|
|
538
|
+
};
|
|
539
|
+
/** Show CRM opportunity */
|
|
540
|
+
opportunityCommand: (opportunity: string) => Promise<CrmOpportunityReturn>;
|
|
541
|
+
task: {
|
|
542
|
+
/** Create a CRM relationship task */
|
|
543
|
+
create: (title: string, options?: {
|
|
544
|
+
account?: string;
|
|
545
|
+
contact?: string;
|
|
546
|
+
due?: string;
|
|
547
|
+
idempotencyKey?: string;
|
|
548
|
+
opportunity?: string;
|
|
549
|
+
owner?: string;
|
|
550
|
+
priority?: string;
|
|
551
|
+
}) => Promise<CrmTaskCreateReturn>;
|
|
552
|
+
/** Complete a CRM task */
|
|
553
|
+
done: (task: string) => Promise<CrmTaskDoneReturn>;
|
|
554
|
+
/** Show CRM task */
|
|
555
|
+
show: (task: string) => Promise<CrmTaskShowReturn>;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
290
558
|
readonly cron: {
|
|
291
559
|
/** Add a new scheduled job */
|
|
292
560
|
add: (name: string, options?: {
|
|
@@ -306,7 +574,11 @@ export declare class RaviClient {
|
|
|
306
574
|
/** Enable a job */
|
|
307
575
|
enable: (id: string) => Promise<CronEnableReturn>;
|
|
308
576
|
/** List all scheduled jobs */
|
|
309
|
-
list: (
|
|
577
|
+
list: (options?: {
|
|
578
|
+
limit?: string;
|
|
579
|
+
offset?: string;
|
|
580
|
+
tag?: string;
|
|
581
|
+
}) => Promise<CronListReturn>;
|
|
310
582
|
/** Delete a job */
|
|
311
583
|
rm: (id: string) => Promise<CronRmReturn>;
|
|
312
584
|
/** Manually run a job (ignores schedule) */
|
|
@@ -317,8 +589,6 @@ export declare class RaviClient {
|
|
|
317
589
|
show: (id: string) => Promise<CronShowReturn>;
|
|
318
590
|
};
|
|
319
591
|
readonly daemon: {
|
|
320
|
-
/** Run daemon in dev mode with auto-rebuild on file changes */
|
|
321
|
-
dev: () => Promise<DaemonDevReturn>;
|
|
322
592
|
/** Edit environment file (~/.ravi/.env) */
|
|
323
593
|
env: () => Promise<DaemonEnvReturn>;
|
|
324
594
|
/** Bootstrap the admin runtime context-key. Refuses to run if any live admin context already exists. */
|
|
@@ -342,8 +612,6 @@ export declare class RaviClient {
|
|
|
342
612
|
build?: boolean;
|
|
343
613
|
message?: string;
|
|
344
614
|
}) => Promise<DaemonRestartReturn>;
|
|
345
|
-
/** Run daemon in foreground (used by PM2) */
|
|
346
|
-
run: () => Promise<DaemonRunReturn>;
|
|
347
615
|
/** Start the daemon via PM2 */
|
|
348
616
|
start: () => Promise<DaemonStartReturn>;
|
|
349
617
|
/** Show daemon and infrastructure status */
|
|
@@ -395,6 +663,7 @@ export declare class RaviClient {
|
|
|
395
663
|
/** List local or remote Devin sessions */
|
|
396
664
|
list: (options?: {
|
|
397
665
|
limit?: string;
|
|
666
|
+
offset?: string;
|
|
398
667
|
remote?: boolean;
|
|
399
668
|
status?: string;
|
|
400
669
|
tag?: string;
|
|
@@ -428,31 +697,6 @@ export declare class RaviClient {
|
|
|
428
697
|
output?: string;
|
|
429
698
|
}) => Promise<EvalRunReturn>;
|
|
430
699
|
};
|
|
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
700
|
readonly heartbeat: {
|
|
457
701
|
/** Disable heartbeat for an agent */
|
|
458
702
|
disable: (id: string) => Promise<HeartbeatDisableReturn>;
|
|
@@ -493,7 +737,11 @@ export declare class RaviClient {
|
|
|
493
737
|
/** Enable a hook */
|
|
494
738
|
enable: (id: string) => Promise<HooksEnableReturn>;
|
|
495
739
|
/** List configured hooks */
|
|
496
|
-
list: (
|
|
740
|
+
list: (options?: {
|
|
741
|
+
limit?: string;
|
|
742
|
+
offset?: string;
|
|
743
|
+
tag?: string;
|
|
744
|
+
}) => Promise<HooksListReturn>;
|
|
497
745
|
/** Delete a hook */
|
|
498
746
|
rm: (id: string) => Promise<HooksRmReturn>;
|
|
499
747
|
/** Show hook details */
|
|
@@ -560,6 +808,7 @@ export declare class RaviClient {
|
|
|
560
808
|
linkType?: string;
|
|
561
809
|
profile?: string;
|
|
562
810
|
session?: string;
|
|
811
|
+
tag?: string[];
|
|
563
812
|
task?: string;
|
|
564
813
|
}) => Promise<InsightsCreateReturn>;
|
|
565
814
|
/** List recent insights with optional filters */
|
|
@@ -569,9 +818,12 @@ export declare class RaviClient {
|
|
|
569
818
|
importance?: string;
|
|
570
819
|
kind?: string;
|
|
571
820
|
limit?: string;
|
|
821
|
+
offset?: string;
|
|
572
822
|
profile?: string;
|
|
573
823
|
query?: string;
|
|
824
|
+
rich?: boolean;
|
|
574
825
|
session?: string;
|
|
826
|
+
tag?: string;
|
|
575
827
|
task?: string;
|
|
576
828
|
}) => Promise<InsightsListReturn>;
|
|
577
829
|
/** Search insights by free text */
|
|
@@ -582,11 +834,6 @@ export declare class RaviClient {
|
|
|
582
834
|
show: (id: string) => Promise<InsightsShowReturn>;
|
|
583
835
|
};
|
|
584
836
|
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
837
|
/** Create a new instance */
|
|
591
838
|
create: (name: string, options?: {
|
|
592
839
|
agent?: string;
|
|
@@ -607,14 +854,21 @@ export declare class RaviClient {
|
|
|
607
854
|
/** Get an instance property */
|
|
608
855
|
get: (name: string, key: string) => Promise<InstancesGetReturn>;
|
|
609
856
|
/** List all instances */
|
|
610
|
-
list: (
|
|
857
|
+
list: (options?: {
|
|
858
|
+
limit?: string;
|
|
859
|
+
offset?: string;
|
|
860
|
+
tag?: string;
|
|
861
|
+
}) => Promise<InstancesListReturn>;
|
|
611
862
|
pending: {
|
|
612
863
|
/** Approve a pending contact or chat */
|
|
613
864
|
approve: (name: string, contact: string, options?: {
|
|
614
865
|
agent?: string;
|
|
615
866
|
}) => Promise<InstancesPendingApproveReturn>;
|
|
616
867
|
/** List pending contacts and chats for an instance */
|
|
617
|
-
list: (name: string
|
|
868
|
+
list: (name: string, options?: {
|
|
869
|
+
limit?: string;
|
|
870
|
+
offset?: string;
|
|
871
|
+
}) => Promise<InstancesPendingListReturn>;
|
|
618
872
|
/** Reject and remove a pending contact or chat */
|
|
619
873
|
reject: (name: string, contact: string) => Promise<InstancesPendingRejectReturn>;
|
|
620
874
|
};
|
|
@@ -633,7 +887,11 @@ export declare class RaviClient {
|
|
|
633
887
|
/** List soft-deleted routes */
|
|
634
888
|
deleted: (name?: string) => Promise<InstancesRoutesDeletedReturn>;
|
|
635
889
|
/** List routes for an instance */
|
|
636
|
-
list: (name: string
|
|
890
|
+
list: (name: string, options?: {
|
|
891
|
+
limit?: string;
|
|
892
|
+
offset?: string;
|
|
893
|
+
tag?: string;
|
|
894
|
+
}) => Promise<InstancesRoutesListReturn>;
|
|
637
895
|
/** Remove a route (soft-delete, recoverable) */
|
|
638
896
|
remove: (name: string, pattern: string, options?: {
|
|
639
897
|
allowRuntimeMismatch?: boolean;
|
|
@@ -672,6 +930,81 @@ export declare class RaviClient {
|
|
|
672
930
|
to?: string;
|
|
673
931
|
}) => Promise<MediaSendReturn>;
|
|
674
932
|
};
|
|
933
|
+
readonly observers: {
|
|
934
|
+
/** List session observer bindings */
|
|
935
|
+
list: (options?: {
|
|
936
|
+
agent?: string;
|
|
937
|
+
limit?: string;
|
|
938
|
+
offset?: string;
|
|
939
|
+
session?: string;
|
|
940
|
+
}) => Promise<ObserversListReturn>;
|
|
941
|
+
profiles: {
|
|
942
|
+
/** Create a Markdown observer profile scaffold */
|
|
943
|
+
init: (profileId: string, options?: {
|
|
944
|
+
overwrite?: boolean;
|
|
945
|
+
source?: string;
|
|
946
|
+
}) => Promise<ObserversProfilesInitReturn>;
|
|
947
|
+
/** List observer profiles */
|
|
948
|
+
list: (options?: {
|
|
949
|
+
limit?: string;
|
|
950
|
+
offset?: string;
|
|
951
|
+
}) => Promise<ObserversProfilesListReturn>;
|
|
952
|
+
/** Render an observer profile preview */
|
|
953
|
+
preview: (profileId: string, options?: {
|
|
954
|
+
event?: string;
|
|
955
|
+
}) => Promise<ObserversProfilesPreviewReturn>;
|
|
956
|
+
/** Show one observer profile */
|
|
957
|
+
show: (profileId: string) => Promise<ObserversProfilesShowReturn>;
|
|
958
|
+
/** Validate observer profiles */
|
|
959
|
+
validate: (profileId?: string) => Promise<ObserversProfilesValidateReturn>;
|
|
960
|
+
};
|
|
961
|
+
/** Apply observer rules to an existing source session */
|
|
962
|
+
refresh: (session: string) => Promise<ObserversRefreshReturn>;
|
|
963
|
+
rules: {
|
|
964
|
+
/** Disable an observer rule */
|
|
965
|
+
disable: (id: string) => Promise<ObserversRulesDisableReturn>;
|
|
966
|
+
/** Enable an observer rule */
|
|
967
|
+
enable: (id: string) => Promise<ObserversRulesEnableReturn>;
|
|
968
|
+
/** Explain observer rule matching for a source session */
|
|
969
|
+
explain: (session: string) => Promise<ObserversRulesExplainReturn>;
|
|
970
|
+
/** List observer rules */
|
|
971
|
+
list: (options?: {
|
|
972
|
+
limit?: string;
|
|
973
|
+
offset?: string;
|
|
974
|
+
}) => Promise<ObserversRulesListReturn>;
|
|
975
|
+
/** Delete an observer rule */
|
|
976
|
+
rm: (id: string) => Promise<ObserversRulesRmReturn>;
|
|
977
|
+
/** Create or overwrite an observer rule */
|
|
978
|
+
set: (id: string, observerAgentId: string, options?: {
|
|
979
|
+
delivery?: string;
|
|
980
|
+
disabled?: boolean;
|
|
981
|
+
events?: string;
|
|
982
|
+
meta?: string;
|
|
983
|
+
mode?: string;
|
|
984
|
+
model?: string;
|
|
985
|
+
permissions?: string;
|
|
986
|
+
priority?: string;
|
|
987
|
+
profile?: string;
|
|
988
|
+
provider?: string;
|
|
989
|
+
role?: string;
|
|
990
|
+
scope?: string;
|
|
991
|
+
sourceAgent?: string;
|
|
992
|
+
sourceProfile?: string;
|
|
993
|
+
sourceProject?: string;
|
|
994
|
+
sourceSession?: string;
|
|
995
|
+
sourceTask?: string;
|
|
996
|
+
tag?: string;
|
|
997
|
+
tagInherited?: boolean;
|
|
998
|
+
tagTarget?: string;
|
|
999
|
+
}) => Promise<ObserversRulesSetReturn>;
|
|
1000
|
+
/** Show one observer rule */
|
|
1001
|
+
show: (id: string) => Promise<ObserversRulesShowReturn>;
|
|
1002
|
+
/** Validate observer rules */
|
|
1003
|
+
validate: () => Promise<ObserversRulesValidateReturn>;
|
|
1004
|
+
};
|
|
1005
|
+
/** Show one observer binding */
|
|
1006
|
+
show: (bindingId: string) => Promise<ObserversShowReturn>;
|
|
1007
|
+
};
|
|
675
1008
|
readonly permissions: {
|
|
676
1009
|
/** Check if a subject has a permission on an object */
|
|
677
1010
|
check: (subject: string, permission: string, object: string) => Promise<PermissionsCheckReturn>;
|
|
@@ -685,7 +1018,9 @@ export declare class RaviClient {
|
|
|
685
1018
|
init: (subject: string, template: string) => Promise<PermissionsInitReturn>;
|
|
686
1019
|
/** List relations */
|
|
687
1020
|
list: (options?: {
|
|
1021
|
+
limit?: string;
|
|
688
1022
|
object?: string;
|
|
1023
|
+
offset?: string;
|
|
689
1024
|
relation?: string;
|
|
690
1025
|
source?: string;
|
|
691
1026
|
subject?: string;
|
|
@@ -736,11 +1071,15 @@ export declare class RaviClient {
|
|
|
736
1071
|
}) => Promise<ProjectsLinkReturn>;
|
|
737
1072
|
/** List projects */
|
|
738
1073
|
list: (options?: {
|
|
1074
|
+
limit?: string;
|
|
1075
|
+
offset?: string;
|
|
739
1076
|
status?: string;
|
|
1077
|
+
tag?: string;
|
|
740
1078
|
}) => Promise<ProjectsListReturn>;
|
|
741
1079
|
/** List projects as an operational next-work surface */
|
|
742
1080
|
next: (options?: {
|
|
743
1081
|
status?: string;
|
|
1082
|
+
tag?: string;
|
|
744
1083
|
}) => Promise<ProjectsNextReturn>;
|
|
745
1084
|
resources: {
|
|
746
1085
|
/** Add one resource link to a project */
|
|
@@ -761,6 +1100,8 @@ export declare class RaviClient {
|
|
|
761
1100
|
}) => Promise<ProjectsResourcesImportReturn>;
|
|
762
1101
|
/** List resource links for a project */
|
|
763
1102
|
list: (project: string, options?: {
|
|
1103
|
+
limit?: string;
|
|
1104
|
+
offset?: string;
|
|
764
1105
|
type?: string;
|
|
765
1106
|
}) => Promise<ProjectsResourcesListReturn>;
|
|
766
1107
|
/** Show one resource link on a project */
|
|
@@ -841,7 +1182,11 @@ export declare class RaviClient {
|
|
|
841
1182
|
voicemailPolicy?: string;
|
|
842
1183
|
}) => Promise<ProxCallsProfilesConfigureReturn>;
|
|
843
1184
|
/** List available call profiles */
|
|
844
|
-
list: (
|
|
1185
|
+
list: (options?: {
|
|
1186
|
+
limit?: string;
|
|
1187
|
+
offset?: string;
|
|
1188
|
+
tag?: string;
|
|
1189
|
+
}) => Promise<ProxCallsProfilesListReturn>;
|
|
845
1190
|
/** Show a call profile by ID */
|
|
846
1191
|
show: (profile_id: string) => Promise<ProxCallsProfilesShowReturn>;
|
|
847
1192
|
};
|
|
@@ -885,7 +1230,10 @@ export declare class RaviClient {
|
|
|
885
1230
|
}) => Promise<ProxCallsToolsCreateReturn>;
|
|
886
1231
|
/** List call tools */
|
|
887
1232
|
list: (options?: {
|
|
1233
|
+
limit?: string;
|
|
1234
|
+
offset?: string;
|
|
888
1235
|
profile?: string;
|
|
1236
|
+
tag?: string;
|
|
889
1237
|
}) => Promise<ProxCallsToolsListReturn>;
|
|
890
1238
|
/** Execute a tool (dry-run validates without side effects) */
|
|
891
1239
|
run: (tool_id: string, options?: {
|
|
@@ -924,7 +1272,11 @@ export declare class RaviClient {
|
|
|
924
1272
|
voiceId?: string;
|
|
925
1273
|
}) => Promise<ProxCallsVoiceAgentsCreateReturn>;
|
|
926
1274
|
/** List voice agents */
|
|
927
|
-
list: (
|
|
1275
|
+
list: (options?: {
|
|
1276
|
+
limit?: string;
|
|
1277
|
+
offset?: string;
|
|
1278
|
+
tag?: string;
|
|
1279
|
+
}) => Promise<ProxCallsVoiceAgentsListReturn>;
|
|
928
1280
|
/** Show a voice agent by ID */
|
|
929
1281
|
show: (voice_agent_id: string) => Promise<ProxCallsVoiceAgentsShowReturn>;
|
|
930
1282
|
/** Sync voice agent to provider (dry-run by default) */
|
|
@@ -947,7 +1299,11 @@ export declare class RaviClient {
|
|
|
947
1299
|
channel?: string;
|
|
948
1300
|
}) => Promise<RoutesExplainReturn>;
|
|
949
1301
|
/** List routes across all instances or for one instance */
|
|
950
|
-
list: (name?: string
|
|
1302
|
+
list: (name?: string, options?: {
|
|
1303
|
+
limit?: string;
|
|
1304
|
+
offset?: string;
|
|
1305
|
+
tag?: string;
|
|
1306
|
+
}) => Promise<RoutesListReturn>;
|
|
951
1307
|
/** Show route details */
|
|
952
1308
|
show: (name: string, pattern: string) => Promise<RoutesShowReturn>;
|
|
953
1309
|
};
|
|
@@ -975,6 +1331,43 @@ export declare class RaviClient {
|
|
|
975
1331
|
stdout?: boolean;
|
|
976
1332
|
}) => Promise<SdkOpenapiEmitReturn>;
|
|
977
1333
|
};
|
|
1334
|
+
swift: {
|
|
1335
|
+
/** Compare on-disk Ravi Swift SDK sources to a fresh emit; exit 1 on drift */
|
|
1336
|
+
check: (options?: {
|
|
1337
|
+
out?: string;
|
|
1338
|
+
version?: string;
|
|
1339
|
+
}) => Promise<SdkSwiftCheckReturn>;
|
|
1340
|
+
/** Generate the Ravi Swift SDK source files from the live registry */
|
|
1341
|
+
generate: (options?: {
|
|
1342
|
+
out?: string;
|
|
1343
|
+
version?: string;
|
|
1344
|
+
}) => Promise<SdkSwiftGenerateReturn>;
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1347
|
+
readonly self: {
|
|
1348
|
+
/** Show the current chat binding and participants */
|
|
1349
|
+
chat: (options?: {
|
|
1350
|
+
depth?: string;
|
|
1351
|
+
}) => Promise<SelfChatReturn>;
|
|
1352
|
+
/** Show the full current self-context packet */
|
|
1353
|
+
context: (options?: {
|
|
1354
|
+
depth?: string;
|
|
1355
|
+
limit?: string;
|
|
1356
|
+
}) => Promise<SelfContextReturn>;
|
|
1357
|
+
/** Explain how Ravi resolved the current self-context */
|
|
1358
|
+
explain: () => Promise<SelfExplainReturn>;
|
|
1359
|
+
/** Show current knowledge integration status for this context */
|
|
1360
|
+
knowledge: () => Promise<SelfKnowledgeReturn>;
|
|
1361
|
+
/** Show capabilities inherited by the current context */
|
|
1362
|
+
permissions: () => Promise<SelfPermissionsReturn>;
|
|
1363
|
+
/** Show bounded recent message metadata for the current chat */
|
|
1364
|
+
recent: (options?: {
|
|
1365
|
+
limit?: string;
|
|
1366
|
+
}) => Promise<SelfRecentReturn>;
|
|
1367
|
+
/** Show route information that led to the current session */
|
|
1368
|
+
route: () => Promise<SelfRouteReturn>;
|
|
1369
|
+
/** Show the current agent/session identity */
|
|
1370
|
+
whoami: () => Promise<SelfWhoamiReturn>;
|
|
978
1371
|
};
|
|
979
1372
|
readonly service: {
|
|
980
1373
|
/** Start the bot server */
|
|
@@ -997,10 +1390,6 @@ export declare class RaviClient {
|
|
|
997
1390
|
channel?: string;
|
|
998
1391
|
to?: string;
|
|
999
1392
|
}) => 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
1393
|
/** Delete a session permanently */
|
|
1005
1394
|
delete: (nameOrKey: string) => Promise<SessionsDeleteReturn>;
|
|
1006
1395
|
/** Send an execute command to another session (fire-and-forget) */
|
|
@@ -1011,6 +1400,14 @@ export declare class RaviClient {
|
|
|
1011
1400
|
}) => Promise<SessionsExecuteReturn>;
|
|
1012
1401
|
/** Extend an ephemeral session's TTL */
|
|
1013
1402
|
extend: (nameOrKey: string, duration?: string) => Promise<SessionsExtendReturn>;
|
|
1403
|
+
/** Inspect or mutate persisted session goal state */
|
|
1404
|
+
goal: (action: string, nameOrKey: string, objective?: string, options?: {
|
|
1405
|
+
budget?: string;
|
|
1406
|
+
project?: string;
|
|
1407
|
+
seconds?: string;
|
|
1408
|
+
task?: string;
|
|
1409
|
+
tokens?: string;
|
|
1410
|
+
}) => Promise<SessionsGoalReturn>;
|
|
1014
1411
|
/** Show unified session inspection details */
|
|
1015
1412
|
info: (nameOrKey: string) => Promise<SessionsInfoReturn>;
|
|
1016
1413
|
/** Send an informational message to another session (fire-and-forget) */
|
|
@@ -1025,10 +1422,24 @@ export declare class RaviClient {
|
|
|
1025
1422
|
list: (options?: {
|
|
1026
1423
|
agent?: string;
|
|
1027
1424
|
ephemeral?: boolean;
|
|
1425
|
+
limit?: string;
|
|
1426
|
+
live?: boolean;
|
|
1427
|
+
offset?: string;
|
|
1428
|
+
tag?: string;
|
|
1028
1429
|
}) => Promise<SessionsListReturn>;
|
|
1430
|
+
/** Prune sessions inactive for a duration (dry-run by default) */
|
|
1431
|
+
prune: (options?: {
|
|
1432
|
+
agent?: string;
|
|
1433
|
+
ephemeral?: boolean;
|
|
1434
|
+
execute?: boolean;
|
|
1435
|
+
inactiveFor?: string;
|
|
1436
|
+
namePrefix?: string;
|
|
1437
|
+
}) => Promise<SessionsPruneReturn>;
|
|
1029
1438
|
/** Read message history of a session (normalized) */
|
|
1030
1439
|
read: (nameOrKey: string, options?: {
|
|
1031
1440
|
count?: string;
|
|
1441
|
+
messageId?: string;
|
|
1442
|
+
workspace?: boolean;
|
|
1032
1443
|
}) => Promise<SessionsReadReturn>;
|
|
1033
1444
|
/** Rename canonical session name */
|
|
1034
1445
|
rename: (nameOrKey: string, newName: string) => Promise<SessionsRenameReturn>;
|
|
@@ -1107,6 +1518,8 @@ export declare class RaviClient {
|
|
|
1107
1518
|
turn?: string;
|
|
1108
1519
|
until?: string;
|
|
1109
1520
|
}) => Promise<SessionsTraceReturn>;
|
|
1521
|
+
/** Show runtime session visibility state */
|
|
1522
|
+
visibility: (nameOrKey: string) => Promise<SessionsVisibilityReturn>;
|
|
1110
1523
|
};
|
|
1111
1524
|
readonly settings: {
|
|
1112
1525
|
/** Delete a setting */
|
|
@@ -1116,10 +1529,41 @@ export declare class RaviClient {
|
|
|
1116
1529
|
/** List live settings (legacy account.* hidden by default) */
|
|
1117
1530
|
list: (options?: {
|
|
1118
1531
|
legacy?: boolean;
|
|
1532
|
+
limit?: string;
|
|
1533
|
+
offset?: string;
|
|
1119
1534
|
}) => Promise<SettingsListReturn>;
|
|
1120
1535
|
/** Set a setting value */
|
|
1121
1536
|
set: (key: string, value: string) => Promise<SettingsSetReturn>;
|
|
1122
1537
|
};
|
|
1538
|
+
readonly skillGates: {
|
|
1539
|
+
/** Disable a skill gate rule */
|
|
1540
|
+
disable: (id: string) => Promise<SkillGatesDisableReturn>;
|
|
1541
|
+
/** Enable a configured skill gate rule */
|
|
1542
|
+
enable: (id: string) => Promise<SkillGatesEnableReturn>;
|
|
1543
|
+
/** List skill gate rules */
|
|
1544
|
+
list: (options?: {
|
|
1545
|
+
limit?: string;
|
|
1546
|
+
offset?: string;
|
|
1547
|
+
tag?: string;
|
|
1548
|
+
}) => Promise<SkillGatesListReturn>;
|
|
1549
|
+
/** Delete a configured override and restore the default behavior */
|
|
1550
|
+
reset: (id: string) => Promise<SkillGatesResetReturn>;
|
|
1551
|
+
/** Remove a custom gate or disable a default gate */
|
|
1552
|
+
rm: (id: string) => Promise<SkillGatesRmReturn>;
|
|
1553
|
+
/** Create or overwrite a skill gate rule */
|
|
1554
|
+
set: (id: string, skill: string, options?: {
|
|
1555
|
+
command?: string;
|
|
1556
|
+
commandPrefix?: string;
|
|
1557
|
+
commandRegex?: string;
|
|
1558
|
+
groupRegex?: string;
|
|
1559
|
+
pattern?: string;
|
|
1560
|
+
tool?: string;
|
|
1561
|
+
toolPrefix?: string;
|
|
1562
|
+
toolRegex?: string;
|
|
1563
|
+
}) => Promise<SkillGatesSetReturn>;
|
|
1564
|
+
/** Show one skill gate rule */
|
|
1565
|
+
show: (id: string) => Promise<SkillGatesShowReturn>;
|
|
1566
|
+
};
|
|
1123
1567
|
readonly skills: {
|
|
1124
1568
|
/** Install Ravi catalog skills or skills from an explicit source */
|
|
1125
1569
|
install: (name?: string, options?: {
|
|
@@ -1134,7 +1578,10 @@ export declare class RaviClient {
|
|
|
1134
1578
|
list: (options?: {
|
|
1135
1579
|
codex?: boolean;
|
|
1136
1580
|
installed?: boolean;
|
|
1581
|
+
limit?: string;
|
|
1582
|
+
offset?: string;
|
|
1137
1583
|
source?: string;
|
|
1584
|
+
tag?: string;
|
|
1138
1585
|
}) => Promise<SkillsListReturn>;
|
|
1139
1586
|
/** Show a Ravi catalog skill, installed skill or source skill */
|
|
1140
1587
|
show: (name: string, options?: {
|
|
@@ -1153,6 +1600,8 @@ export declare class RaviClient {
|
|
|
1153
1600
|
list: (options?: {
|
|
1154
1601
|
domain?: string;
|
|
1155
1602
|
kind?: string;
|
|
1603
|
+
limit?: string;
|
|
1604
|
+
offset?: string;
|
|
1156
1605
|
}) => Promise<SpecsListReturn>;
|
|
1157
1606
|
/** Create a new spec under .ravi/specs */
|
|
1158
1607
|
new: (id: string, options?: {
|
|
@@ -1175,7 +1624,10 @@ export declare class RaviClient {
|
|
|
1175
1624
|
overwrite?: boolean;
|
|
1176
1625
|
}) => Promise<StickersAddReturn>;
|
|
1177
1626
|
/** List stickers in the typed catalog */
|
|
1178
|
-
list: (
|
|
1627
|
+
list: (options?: {
|
|
1628
|
+
limit?: string;
|
|
1629
|
+
offset?: string;
|
|
1630
|
+
}) => Promise<StickersListReturn>;
|
|
1179
1631
|
/** Remove a sticker catalog entry */
|
|
1180
1632
|
remove: (id: string) => Promise<StickersRemoveReturn>;
|
|
1181
1633
|
/** Send a sticker to the current WhatsApp chat */
|
|
@@ -1189,11 +1641,37 @@ export declare class RaviClient {
|
|
|
1189
1641
|
show: (id: string) => Promise<StickersShowReturn>;
|
|
1190
1642
|
};
|
|
1191
1643
|
readonly tags: {
|
|
1192
|
-
/** Attach a tag to
|
|
1644
|
+
/** Attach a tag to a Ravi asset */
|
|
1193
1645
|
attach: (slug: string, options?: {
|
|
1194
1646
|
agent?: string;
|
|
1647
|
+
artifact?: string;
|
|
1648
|
+
callProfile?: string;
|
|
1649
|
+
callRequest?: string;
|
|
1650
|
+
callTool?: string;
|
|
1651
|
+
callVoiceAgent?: string;
|
|
1652
|
+
chat?: string;
|
|
1653
|
+
command?: string;
|
|
1654
|
+
contact?: string;
|
|
1655
|
+
cronJob?: string;
|
|
1656
|
+
devinSession?: string;
|
|
1657
|
+
hook?: string;
|
|
1658
|
+
insight?: string;
|
|
1659
|
+
instance?: string;
|
|
1195
1660
|
meta?: string;
|
|
1661
|
+
profile?: string;
|
|
1662
|
+
project?: string;
|
|
1663
|
+
route?: string;
|
|
1196
1664
|
session?: string;
|
|
1665
|
+
skill?: string;
|
|
1666
|
+
skillGateRule?: string;
|
|
1667
|
+
source?: string;
|
|
1668
|
+
target?: string;
|
|
1669
|
+
task?: string;
|
|
1670
|
+
taskAutomation?: string;
|
|
1671
|
+
trigger?: string;
|
|
1672
|
+
workflowNode?: string;
|
|
1673
|
+
workflowRun?: string;
|
|
1674
|
+
workflowSpec?: string;
|
|
1197
1675
|
}) => Promise<TagsAttachReturn>;
|
|
1198
1676
|
/** Create a new tag definition */
|
|
1199
1677
|
create: (slug: string, options?: {
|
|
@@ -1201,20 +1679,88 @@ export declare class RaviClient {
|
|
|
1201
1679
|
kind?: string;
|
|
1202
1680
|
label?: string;
|
|
1203
1681
|
meta?: string;
|
|
1682
|
+
source?: string;
|
|
1204
1683
|
}) => Promise<TagsCreateReturn>;
|
|
1205
|
-
/** Detach a tag from
|
|
1684
|
+
/** Detach a tag from a Ravi asset */
|
|
1206
1685
|
detach: (slug: string, options?: {
|
|
1207
1686
|
agent?: string;
|
|
1687
|
+
artifact?: string;
|
|
1688
|
+
callProfile?: string;
|
|
1689
|
+
callRequest?: string;
|
|
1690
|
+
callTool?: string;
|
|
1691
|
+
callVoiceAgent?: string;
|
|
1692
|
+
chat?: string;
|
|
1693
|
+
command?: string;
|
|
1694
|
+
contact?: string;
|
|
1695
|
+
cronJob?: string;
|
|
1696
|
+
devinSession?: string;
|
|
1697
|
+
hook?: string;
|
|
1698
|
+
insight?: string;
|
|
1699
|
+
instance?: string;
|
|
1700
|
+
profile?: string;
|
|
1701
|
+
project?: string;
|
|
1702
|
+
route?: string;
|
|
1208
1703
|
session?: string;
|
|
1704
|
+
skill?: string;
|
|
1705
|
+
skillGateRule?: string;
|
|
1706
|
+
source?: string;
|
|
1707
|
+
target?: string;
|
|
1708
|
+
task?: string;
|
|
1709
|
+
taskAutomation?: string;
|
|
1710
|
+
trigger?: string;
|
|
1711
|
+
workflowNode?: string;
|
|
1712
|
+
workflowRun?: string;
|
|
1713
|
+
workflowSpec?: string;
|
|
1209
1714
|
}) => Promise<TagsDetachReturn>;
|
|
1210
1715
|
/** List tag definitions */
|
|
1211
|
-
list: (
|
|
1716
|
+
list: (options?: {
|
|
1717
|
+
cursor?: string;
|
|
1718
|
+
kind?: string;
|
|
1719
|
+
limit?: string;
|
|
1720
|
+
order?: string;
|
|
1721
|
+
query?: string;
|
|
1722
|
+
sort?: string;
|
|
1723
|
+
source?: string;
|
|
1724
|
+
}) => Promise<TagsListReturn>;
|
|
1212
1725
|
/** Search bindings by tag or asset */
|
|
1213
1726
|
search: (options?: {
|
|
1214
1727
|
agent?: string;
|
|
1728
|
+
artifact?: string;
|
|
1729
|
+
callProfile?: string;
|
|
1730
|
+
callRequest?: string;
|
|
1731
|
+
callTool?: string;
|
|
1732
|
+
callVoiceAgent?: string;
|
|
1733
|
+
chat?: string;
|
|
1734
|
+
command?: string;
|
|
1735
|
+
contact?: string;
|
|
1736
|
+
cronJob?: string;
|
|
1737
|
+
cursor?: string;
|
|
1738
|
+
devinSession?: string;
|
|
1739
|
+
hook?: string;
|
|
1740
|
+
insight?: string;
|
|
1741
|
+
instance?: string;
|
|
1742
|
+
kind?: string;
|
|
1743
|
+
limit?: string;
|
|
1744
|
+
order?: string;
|
|
1745
|
+
profile?: string;
|
|
1746
|
+
project?: string;
|
|
1747
|
+
route?: string;
|
|
1215
1748
|
session?: string;
|
|
1749
|
+
skill?: string;
|
|
1750
|
+
skillGateRule?: string;
|
|
1751
|
+
sort?: string;
|
|
1752
|
+
source?: string;
|
|
1216
1753
|
tag?: string;
|
|
1754
|
+
target?: string;
|
|
1755
|
+
task?: string;
|
|
1756
|
+
taskAutomation?: string;
|
|
1757
|
+
trigger?: string;
|
|
1758
|
+
workflowNode?: string;
|
|
1759
|
+
workflowRun?: string;
|
|
1760
|
+
workflowSpec?: string;
|
|
1217
1761
|
}) => Promise<TagsSearchReturn>;
|
|
1762
|
+
/** Set tag definition metadata */
|
|
1763
|
+
set: (slug: string, key: string, value: string) => Promise<TagsSetReturn>;
|
|
1218
1764
|
/** Show one tag and its bindings */
|
|
1219
1765
|
show: (slug: string) => Promise<TagsShowReturn>;
|
|
1220
1766
|
};
|
|
@@ -1250,7 +1796,11 @@ export declare class RaviClient {
|
|
|
1250
1796
|
/** Enable a task automation */
|
|
1251
1797
|
enable: (id: string) => Promise<TasksAutomationsEnableReturn>;
|
|
1252
1798
|
/** List configured task automations */
|
|
1253
|
-
list: (
|
|
1799
|
+
list: (options?: {
|
|
1800
|
+
limit?: string;
|
|
1801
|
+
offset?: string;
|
|
1802
|
+
tag?: string;
|
|
1803
|
+
}) => Promise<TasksAutomationsListReturn>;
|
|
1254
1804
|
/** Delete a task automation */
|
|
1255
1805
|
rm: (id: string) => Promise<TasksAutomationsRmReturn>;
|
|
1256
1806
|
/** Show one task automation and its recent runs */
|
|
@@ -1278,6 +1828,7 @@ export declare class RaviClient {
|
|
|
1278
1828
|
reportEvents?: string;
|
|
1279
1829
|
reportTo?: string;
|
|
1280
1830
|
session?: string;
|
|
1831
|
+
tag?: string[];
|
|
1281
1832
|
thinking?: string;
|
|
1282
1833
|
worktreeBranch?: string;
|
|
1283
1834
|
worktreeMode?: string;
|
|
@@ -1287,12 +1838,16 @@ export declare class RaviClient {
|
|
|
1287
1838
|
/** Add one gating dependency to a task */
|
|
1288
1839
|
add: (taskId: string, dependencyTaskId: string) => Promise<TasksDepsAddReturn>;
|
|
1289
1840
|
/** List gating dependencies and dependents for a task */
|
|
1290
|
-
ls: (taskId: string
|
|
1841
|
+
ls: (taskId: string, options?: {
|
|
1842
|
+
limit?: string;
|
|
1843
|
+
offset?: string;
|
|
1844
|
+
}) => Promise<TasksDepsLsReturn>;
|
|
1291
1845
|
/** Remove one gating dependency from a task */
|
|
1292
1846
|
rm: (taskId: string, dependencyTaskId: string) => Promise<TasksDepsRmReturn>;
|
|
1293
1847
|
};
|
|
1294
1848
|
/** Dispatch a task now, or arm a launch plan if dependencies still gate start */
|
|
1295
1849
|
dispatch: (taskId: string, options?: {
|
|
1850
|
+
actorSession?: string;
|
|
1296
1851
|
agent?: string;
|
|
1297
1852
|
checkpoint?: string;
|
|
1298
1853
|
effort?: string;
|
|
@@ -1314,16 +1869,24 @@ export declare class RaviClient {
|
|
|
1314
1869
|
list: (options?: {
|
|
1315
1870
|
agent?: string;
|
|
1316
1871
|
all?: boolean;
|
|
1872
|
+
allTime?: boolean;
|
|
1317
1873
|
archived?: boolean;
|
|
1874
|
+
cursor?: string;
|
|
1318
1875
|
last?: string;
|
|
1876
|
+
limit?: string;
|
|
1319
1877
|
mine?: boolean;
|
|
1878
|
+
order?: string;
|
|
1320
1879
|
parent?: string;
|
|
1321
1880
|
profile?: string;
|
|
1322
1881
|
root?: string;
|
|
1323
1882
|
roots?: boolean;
|
|
1324
1883
|
session?: string;
|
|
1884
|
+
since?: string;
|
|
1885
|
+
sort?: string;
|
|
1325
1886
|
status?: string;
|
|
1887
|
+
tag?: string;
|
|
1326
1888
|
text?: string;
|
|
1889
|
+
until?: string;
|
|
1327
1890
|
}) => Promise<TasksListReturn>;
|
|
1328
1891
|
profiles: {
|
|
1329
1892
|
/** Create a profile scaffold in the workspace or user catalog */
|
|
@@ -1332,7 +1895,10 @@ export declare class RaviClient {
|
|
|
1332
1895
|
source?: string;
|
|
1333
1896
|
}) => Promise<TasksProfilesInitReturn>;
|
|
1334
1897
|
/** List resolved task profiles from all catalog sources */
|
|
1335
|
-
list: (
|
|
1898
|
+
list: (options?: {
|
|
1899
|
+
limit?: string;
|
|
1900
|
+
offset?: string;
|
|
1901
|
+
}) => Promise<TasksProfilesListReturn>;
|
|
1336
1902
|
/** Render a profile preview with the resolved template context */
|
|
1337
1903
|
preview: (profileId: string, options?: {
|
|
1338
1904
|
agent?: string;
|
|
@@ -1360,24 +1926,13 @@ export declare class RaviClient {
|
|
|
1360
1926
|
}) => Promise<TasksShowReturn>;
|
|
1361
1927
|
/** Restore an archived task to the default list */
|
|
1362
1928
|
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
1929
|
};
|
|
1378
1930
|
readonly tools: {
|
|
1379
1931
|
/** List all available CLI tools */
|
|
1380
|
-
list: (
|
|
1932
|
+
list: (options?: {
|
|
1933
|
+
limit?: string;
|
|
1934
|
+
offset?: string;
|
|
1935
|
+
}) => Promise<ToolsListReturn>;
|
|
1381
1936
|
/** Export tools as JSON manifest */
|
|
1382
1937
|
manifest: () => Promise<ToolsManifestReturn>;
|
|
1383
1938
|
/** Export tools as JSON Schema */
|
|
@@ -1409,7 +1964,11 @@ export declare class RaviClient {
|
|
|
1409
1964
|
/** Enable a trigger */
|
|
1410
1965
|
enable: (id: string) => Promise<TriggersEnableReturn>;
|
|
1411
1966
|
/** List all event triggers */
|
|
1412
|
-
list: (
|
|
1967
|
+
list: (options?: {
|
|
1968
|
+
limit?: string;
|
|
1969
|
+
offset?: string;
|
|
1970
|
+
tag?: string;
|
|
1971
|
+
}) => Promise<TriggersListReturn>;
|
|
1413
1972
|
/** Delete a trigger */
|
|
1414
1973
|
rm: (id: string) => Promise<TriggersRmReturn>;
|
|
1415
1974
|
/** Set trigger property */
|
|
@@ -1427,6 +1986,15 @@ export declare class RaviClient {
|
|
|
1427
1986
|
}) => Promise<VideoAnalyzeReturn>;
|
|
1428
1987
|
};
|
|
1429
1988
|
readonly whatsapp: {
|
|
1989
|
+
chats: {
|
|
1990
|
+
/** List chats with message activity in the last N days (or since a date) */
|
|
1991
|
+
list: (options?: {
|
|
1992
|
+
instance?: string;
|
|
1993
|
+
limit?: string;
|
|
1994
|
+
since?: string;
|
|
1995
|
+
type?: string;
|
|
1996
|
+
}) => Promise<WhatsappChatsListReturn>;
|
|
1997
|
+
};
|
|
1430
1998
|
dm: {
|
|
1431
1999
|
/** Send read receipt (blue ticks) for a specific message */
|
|
1432
2000
|
ack: (contact: string, messageId: string, options?: {
|
|
@@ -1480,6 +2048,8 @@ export declare class RaviClient {
|
|
|
1480
2048
|
/** List all groups the bot participates in */
|
|
1481
2049
|
list: (options?: {
|
|
1482
2050
|
account?: string;
|
|
2051
|
+
limit?: string;
|
|
2052
|
+
offset?: string;
|
|
1483
2053
|
}) => Promise<WhatsappGroupListReturn>;
|
|
1484
2054
|
/** Promote participants to admin */
|
|
1485
2055
|
promote: (groupId: string, participants: string, options?: {
|
|
@@ -1510,7 +2080,10 @@ export declare class RaviClient {
|
|
|
1510
2080
|
/** Cancel one workflow node run */
|
|
1511
2081
|
cancel: (runId: string, nodeKey: string) => Promise<WorkflowsRunsCancelReturn>;
|
|
1512
2082
|
/** List workflow runs */
|
|
1513
|
-
list: (
|
|
2083
|
+
list: (options?: {
|
|
2084
|
+
limit?: string;
|
|
2085
|
+
offset?: string;
|
|
2086
|
+
}) => Promise<WorkflowsRunsListReturn>;
|
|
1514
2087
|
/** Release a manual node transition or gate */
|
|
1515
2088
|
release: (runId: string, nodeKey: string) => Promise<WorkflowsRunsReleaseReturn>;
|
|
1516
2089
|
/** Show one workflow run with node state */
|
|
@@ -1540,7 +2113,10 @@ export declare class RaviClient {
|
|
|
1540
2113
|
file?: string;
|
|
1541
2114
|
}) => Promise<WorkflowsSpecsCreateReturn>;
|
|
1542
2115
|
/** List workflow specs */
|
|
1543
|
-
list: (
|
|
2116
|
+
list: (options?: {
|
|
2117
|
+
limit?: string;
|
|
2118
|
+
offset?: string;
|
|
2119
|
+
}) => Promise<WorkflowsSpecsListReturn>;
|
|
1544
2120
|
/** Show one workflow spec */
|
|
1545
2121
|
show: (specId: string) => Promise<WorkflowsSpecsShowReturn>;
|
|
1546
2122
|
};
|