@ravi-os/sdk 0.260716.1 → 0.260724.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/dist/client.d.ts +5 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/schemas.d.ts +2240 -259
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2705 -50
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +498 -13
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -170,22 +170,120 @@ export type AgentsListInput = {
|
|
|
170
170
|
};
|
|
171
171
|
/** Return shape for `agents.list`. */
|
|
172
172
|
export type AgentsListReturn = {
|
|
173
|
-
agents: Array<
|
|
173
|
+
agents: Array<{
|
|
174
|
+
allowedSessions?: string[];
|
|
175
|
+
contactScope?: string;
|
|
176
|
+
cwd: string;
|
|
177
|
+
debounceMs?: number;
|
|
178
|
+
defaults?: (Record<string, unknown>) | null;
|
|
179
|
+
dmScope?: "main" | "per-peer" | "per-channel-peer" | "per-account-channel-peer";
|
|
180
|
+
effectiveModel: string | null;
|
|
181
|
+
effectiveProvider: string;
|
|
182
|
+
effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
|
|
183
|
+
groupDebounceMs?: number;
|
|
184
|
+
heartbeat?: {
|
|
185
|
+
accountId?: string;
|
|
186
|
+
activeEnd?: string;
|
|
187
|
+
activeStart?: string;
|
|
188
|
+
enabled: boolean;
|
|
189
|
+
intervalMs: number;
|
|
190
|
+
lastRunAt?: number;
|
|
191
|
+
model?: string;
|
|
192
|
+
};
|
|
193
|
+
id: string;
|
|
194
|
+
isDefault: boolean;
|
|
195
|
+
matrixAccount?: string;
|
|
196
|
+
memoryModel?: string;
|
|
197
|
+
mode?: "active" | "sentinel";
|
|
198
|
+
model?: string;
|
|
199
|
+
modelPresetId: string | null;
|
|
200
|
+
modelPresetVersion: number | null;
|
|
201
|
+
modelSource: ("agent_preset" | "agent_default" | "global_default") | null;
|
|
202
|
+
name?: string;
|
|
203
|
+
provider?: string;
|
|
204
|
+
remote?: string;
|
|
205
|
+
remoteUser?: string;
|
|
206
|
+
settingSources?: Array<"user" | "project">;
|
|
207
|
+
specMode?: boolean;
|
|
208
|
+
systemPromptAppend?: string;
|
|
209
|
+
tags: Array<{
|
|
210
|
+
assetId: string;
|
|
211
|
+
assetType: "agent" | "automation" | "app" | "session" | "task" | "project" | "profile" | "contact" | "chat" | "route" | "instance" | "artifact" | "insight" | "workflow_spec" | "workflow_run" | "workflow_node" | "cron_job" | "trigger" | "hook" | "task_automation" | "observer_rule" | "observer_binding" | "observer_profile" | "command" | "skill" | "skill_gate_rule" | "context" | "call_profile" | "call_request" | "call_voice_agent" | "call_tool" | "outbound_queue" | "outbound_entry" | "spec" | "devin_session";
|
|
212
|
+
createdAt: number;
|
|
213
|
+
createdBy?: string;
|
|
214
|
+
id: string;
|
|
215
|
+
metadata?: Record<string, unknown>;
|
|
216
|
+
source: string;
|
|
217
|
+
tagId: string;
|
|
218
|
+
tagSlug: string;
|
|
219
|
+
updatedAt: number;
|
|
220
|
+
updatedBy?: string;
|
|
221
|
+
}>;
|
|
222
|
+
}>;
|
|
174
223
|
defaultAgent: string;
|
|
175
|
-
filters:
|
|
176
|
-
|
|
224
|
+
filters: {
|
|
225
|
+
tag: string | null;
|
|
226
|
+
};
|
|
227
|
+
items: Array<{
|
|
228
|
+
allowedSessions?: string[];
|
|
229
|
+
contactScope?: string;
|
|
230
|
+
cwd: string;
|
|
231
|
+
debounceMs?: number;
|
|
232
|
+
defaults?: (Record<string, unknown>) | null;
|
|
233
|
+
dmScope?: "main" | "per-peer" | "per-channel-peer" | "per-account-channel-peer";
|
|
234
|
+
effectiveModel: string | null;
|
|
235
|
+
effectiveProvider: string;
|
|
236
|
+
effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
|
|
237
|
+
groupDebounceMs?: number;
|
|
238
|
+
heartbeat?: {
|
|
239
|
+
accountId?: string;
|
|
240
|
+
activeEnd?: string;
|
|
241
|
+
activeStart?: string;
|
|
242
|
+
enabled: boolean;
|
|
243
|
+
intervalMs: number;
|
|
244
|
+
lastRunAt?: number;
|
|
245
|
+
model?: string;
|
|
246
|
+
};
|
|
247
|
+
id: string;
|
|
248
|
+
isDefault: boolean;
|
|
249
|
+
matrixAccount?: string;
|
|
250
|
+
memoryModel?: string;
|
|
251
|
+
mode?: "active" | "sentinel";
|
|
252
|
+
model?: string;
|
|
253
|
+
modelPresetId: string | null;
|
|
254
|
+
modelPresetVersion: number | null;
|
|
255
|
+
modelSource: ("agent_preset" | "agent_default" | "global_default") | null;
|
|
256
|
+
name?: string;
|
|
257
|
+
provider?: string;
|
|
258
|
+
remote?: string;
|
|
259
|
+
remoteUser?: string;
|
|
260
|
+
settingSources?: Array<"user" | "project">;
|
|
261
|
+
specMode?: boolean;
|
|
262
|
+
systemPromptAppend?: string;
|
|
263
|
+
tags: Array<{
|
|
264
|
+
assetId: string;
|
|
265
|
+
assetType: "agent" | "automation" | "app" | "session" | "task" | "project" | "profile" | "contact" | "chat" | "route" | "instance" | "artifact" | "insight" | "workflow_spec" | "workflow_run" | "workflow_node" | "cron_job" | "trigger" | "hook" | "task_automation" | "observer_rule" | "observer_binding" | "observer_profile" | "command" | "skill" | "skill_gate_rule" | "context" | "call_profile" | "call_request" | "call_voice_agent" | "call_tool" | "outbound_queue" | "outbound_entry" | "spec" | "devin_session";
|
|
266
|
+
createdAt: number;
|
|
267
|
+
createdBy?: string;
|
|
268
|
+
id: string;
|
|
269
|
+
metadata?: Record<string, unknown>;
|
|
270
|
+
source: string;
|
|
271
|
+
tagId: string;
|
|
272
|
+
tagSlug: string;
|
|
273
|
+
updatedAt: number;
|
|
274
|
+
updatedBy?: string;
|
|
275
|
+
}>;
|
|
276
|
+
}>;
|
|
177
277
|
pagination: {
|
|
178
|
-
hasMore
|
|
278
|
+
hasMore?: boolean;
|
|
179
279
|
limit: number;
|
|
180
|
-
nextCommand
|
|
181
|
-
nextOffset
|
|
280
|
+
nextCommand?: string | null;
|
|
281
|
+
nextOffset?: number | null;
|
|
182
282
|
offset: number;
|
|
183
283
|
returned: number;
|
|
184
284
|
total: number;
|
|
185
|
-
[k: string]: unknown;
|
|
186
285
|
};
|
|
187
286
|
total: number;
|
|
188
|
-
[k: string]: unknown;
|
|
189
287
|
};
|
|
190
288
|
/** Input shape for `agents.permissions`. */
|
|
191
289
|
export type AgentsPermissionsInput = {
|
|
@@ -288,9 +386,66 @@ export type AgentsShowInput = {
|
|
|
288
386
|
};
|
|
289
387
|
/** Return shape for `agents.show`. */
|
|
290
388
|
export type AgentsShowReturn = {
|
|
291
|
-
agent:
|
|
389
|
+
agent: {
|
|
390
|
+
allowedSessions?: string[];
|
|
391
|
+
contactScope?: string;
|
|
392
|
+
cwd: string;
|
|
393
|
+
debounceMs?: number;
|
|
394
|
+
defaults?: (Record<string, unknown>) | null;
|
|
395
|
+
dmScope?: "main" | "per-peer" | "per-channel-peer" | "per-account-channel-peer";
|
|
396
|
+
effectiveModel: string | null;
|
|
397
|
+
effectiveProvider: string;
|
|
398
|
+
effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
|
|
399
|
+
groupDebounceMs?: number;
|
|
400
|
+
heartbeat?: {
|
|
401
|
+
accountId?: string;
|
|
402
|
+
activeEnd?: string;
|
|
403
|
+
activeStart?: string;
|
|
404
|
+
enabled: boolean;
|
|
405
|
+
intervalMs: number;
|
|
406
|
+
lastRunAt?: number;
|
|
407
|
+
model?: string;
|
|
408
|
+
};
|
|
409
|
+
id: string;
|
|
410
|
+
isDefault: boolean;
|
|
411
|
+
matrixAccount?: string;
|
|
412
|
+
memoryModel?: string;
|
|
413
|
+
mode?: "active" | "sentinel";
|
|
414
|
+
model?: string;
|
|
415
|
+
modelPresetId: string | null;
|
|
416
|
+
modelPresetVersion: number | null;
|
|
417
|
+
modelSource: ("agent_preset" | "agent_default" | "global_default") | null;
|
|
418
|
+
name?: string;
|
|
419
|
+
provider?: string;
|
|
420
|
+
remote?: string;
|
|
421
|
+
remoteUser?: string;
|
|
422
|
+
settingSources?: Array<"user" | "project">;
|
|
423
|
+
specMode?: boolean;
|
|
424
|
+
systemPromptAppend?: string;
|
|
425
|
+
tags: Array<{
|
|
426
|
+
assetId: string;
|
|
427
|
+
assetType: "agent" | "automation" | "app" | "session" | "task" | "project" | "profile" | "contact" | "chat" | "route" | "instance" | "artifact" | "insight" | "workflow_spec" | "workflow_run" | "workflow_node" | "cron_job" | "trigger" | "hook" | "task_automation" | "observer_rule" | "observer_binding" | "observer_profile" | "command" | "skill" | "skill_gate_rule" | "context" | "call_profile" | "call_request" | "call_voice_agent" | "call_tool" | "outbound_queue" | "outbound_entry" | "spec" | "devin_session";
|
|
428
|
+
createdAt: number;
|
|
429
|
+
createdBy?: string;
|
|
430
|
+
id: string;
|
|
431
|
+
metadata?: Record<string, unknown>;
|
|
432
|
+
source: string;
|
|
433
|
+
tagId: string;
|
|
434
|
+
tagSlug: string;
|
|
435
|
+
updatedAt: number;
|
|
436
|
+
updatedBy?: string;
|
|
437
|
+
}>;
|
|
438
|
+
};
|
|
292
439
|
permissionsCommand: string;
|
|
293
|
-
|
|
440
|
+
runtimePermissions: ({
|
|
441
|
+
capabilities?: Array<string | ({
|
|
442
|
+
objectId?: string;
|
|
443
|
+
objectType?: string;
|
|
444
|
+
permission?: string;
|
|
445
|
+
source?: string;
|
|
446
|
+
})>;
|
|
447
|
+
profile?: "bootstrap" | "full-access";
|
|
448
|
+
}) | null;
|
|
294
449
|
};
|
|
295
450
|
/** Input shape for `agents.spec-mode`. */
|
|
296
451
|
export type AgentsSpecModeInput = {
|
|
@@ -2194,6 +2349,12 @@ export type ChannelsRestartReturn = {
|
|
|
2194
2349
|
running: boolean;
|
|
2195
2350
|
status: string;
|
|
2196
2351
|
};
|
|
2352
|
+
health?: {
|
|
2353
|
+
checkedAt: number;
|
|
2354
|
+
reachable: boolean;
|
|
2355
|
+
reason?: string;
|
|
2356
|
+
status: "ready" | "starting" | "degraded" | "unreachable" | "stopped";
|
|
2357
|
+
};
|
|
2197
2358
|
pm2Available: boolean;
|
|
2198
2359
|
processName: string;
|
|
2199
2360
|
processes: Array<{
|
|
@@ -2207,6 +2368,45 @@ export type ChannelsRestartReturn = {
|
|
|
2207
2368
|
running: boolean;
|
|
2208
2369
|
status: string;
|
|
2209
2370
|
}>;
|
|
2371
|
+
runner?: ({
|
|
2372
|
+
adapters: Array<{
|
|
2373
|
+
channelId: string;
|
|
2374
|
+
connectedAt?: number;
|
|
2375
|
+
id: string;
|
|
2376
|
+
lastPongAt?: number;
|
|
2377
|
+
reason?: string;
|
|
2378
|
+
reconnectCount?: number;
|
|
2379
|
+
status: "disabled" | "starting" | "connected" | "degraded" | "reconnecting" | "disconnected" | "failed";
|
|
2380
|
+
}>;
|
|
2381
|
+
observedAt: number;
|
|
2382
|
+
outbound: {
|
|
2383
|
+
consumer: string;
|
|
2384
|
+
consuming: boolean;
|
|
2385
|
+
enabled: boolean;
|
|
2386
|
+
infrastructureReady: boolean;
|
|
2387
|
+
lastError?: {
|
|
2388
|
+
at: number;
|
|
2389
|
+
message: string;
|
|
2390
|
+
phase: "consume_loop";
|
|
2391
|
+
};
|
|
2392
|
+
lastMessageAt?: number;
|
|
2393
|
+
publishOutbox?: {
|
|
2394
|
+
lastError?: {
|
|
2395
|
+
at: number;
|
|
2396
|
+
message: string;
|
|
2397
|
+
};
|
|
2398
|
+
lastPublishedAt?: number;
|
|
2399
|
+
nextAttemptAt?: number;
|
|
2400
|
+
oldestPendingAt?: number;
|
|
2401
|
+
pendingCount: number;
|
|
2402
|
+
};
|
|
2403
|
+
stream: string;
|
|
2404
|
+
};
|
|
2405
|
+
pid: number;
|
|
2406
|
+
running: boolean;
|
|
2407
|
+
schemaVersion: 1;
|
|
2408
|
+
startedAt: number | null;
|
|
2409
|
+
}) | null;
|
|
2210
2410
|
};
|
|
2211
2411
|
target?: {
|
|
2212
2412
|
bundlePath: string;
|
|
@@ -2276,6 +2476,12 @@ export type ChannelsStartReturn = {
|
|
|
2276
2476
|
running: boolean;
|
|
2277
2477
|
status: string;
|
|
2278
2478
|
};
|
|
2479
|
+
health?: {
|
|
2480
|
+
checkedAt: number;
|
|
2481
|
+
reachable: boolean;
|
|
2482
|
+
reason?: string;
|
|
2483
|
+
status: "ready" | "starting" | "degraded" | "unreachable" | "stopped";
|
|
2484
|
+
};
|
|
2279
2485
|
pm2Available: boolean;
|
|
2280
2486
|
processName: string;
|
|
2281
2487
|
processes: Array<{
|
|
@@ -2289,6 +2495,45 @@ export type ChannelsStartReturn = {
|
|
|
2289
2495
|
running: boolean;
|
|
2290
2496
|
status: string;
|
|
2291
2497
|
}>;
|
|
2498
|
+
runner?: ({
|
|
2499
|
+
adapters: Array<{
|
|
2500
|
+
channelId: string;
|
|
2501
|
+
connectedAt?: number;
|
|
2502
|
+
id: string;
|
|
2503
|
+
lastPongAt?: number;
|
|
2504
|
+
reason?: string;
|
|
2505
|
+
reconnectCount?: number;
|
|
2506
|
+
status: "disabled" | "starting" | "connected" | "degraded" | "reconnecting" | "disconnected" | "failed";
|
|
2507
|
+
}>;
|
|
2508
|
+
observedAt: number;
|
|
2509
|
+
outbound: {
|
|
2510
|
+
consumer: string;
|
|
2511
|
+
consuming: boolean;
|
|
2512
|
+
enabled: boolean;
|
|
2513
|
+
infrastructureReady: boolean;
|
|
2514
|
+
lastError?: {
|
|
2515
|
+
at: number;
|
|
2516
|
+
message: string;
|
|
2517
|
+
phase: "consume_loop";
|
|
2518
|
+
};
|
|
2519
|
+
lastMessageAt?: number;
|
|
2520
|
+
publishOutbox?: {
|
|
2521
|
+
lastError?: {
|
|
2522
|
+
at: number;
|
|
2523
|
+
message: string;
|
|
2524
|
+
};
|
|
2525
|
+
lastPublishedAt?: number;
|
|
2526
|
+
nextAttemptAt?: number;
|
|
2527
|
+
oldestPendingAt?: number;
|
|
2528
|
+
pendingCount: number;
|
|
2529
|
+
};
|
|
2530
|
+
stream: string;
|
|
2531
|
+
};
|
|
2532
|
+
pid: number;
|
|
2533
|
+
running: boolean;
|
|
2534
|
+
schemaVersion: 1;
|
|
2535
|
+
startedAt: number | null;
|
|
2536
|
+
}) | null;
|
|
2292
2537
|
};
|
|
2293
2538
|
target?: {
|
|
2294
2539
|
bundlePath: string;
|
|
@@ -2311,6 +2556,12 @@ export type ChannelsStatusReturn = {
|
|
|
2311
2556
|
running: boolean;
|
|
2312
2557
|
status: string;
|
|
2313
2558
|
};
|
|
2559
|
+
health?: {
|
|
2560
|
+
checkedAt: number;
|
|
2561
|
+
reachable: boolean;
|
|
2562
|
+
reason?: string;
|
|
2563
|
+
status: "ready" | "starting" | "degraded" | "unreachable" | "stopped";
|
|
2564
|
+
};
|
|
2314
2565
|
pm2Available: boolean;
|
|
2315
2566
|
processName: string;
|
|
2316
2567
|
processes: Array<{
|
|
@@ -2324,6 +2575,45 @@ export type ChannelsStatusReturn = {
|
|
|
2324
2575
|
running: boolean;
|
|
2325
2576
|
status: string;
|
|
2326
2577
|
}>;
|
|
2578
|
+
runner?: ({
|
|
2579
|
+
adapters: Array<{
|
|
2580
|
+
channelId: string;
|
|
2581
|
+
connectedAt?: number;
|
|
2582
|
+
id: string;
|
|
2583
|
+
lastPongAt?: number;
|
|
2584
|
+
reason?: string;
|
|
2585
|
+
reconnectCount?: number;
|
|
2586
|
+
status: "disabled" | "starting" | "connected" | "degraded" | "reconnecting" | "disconnected" | "failed";
|
|
2587
|
+
}>;
|
|
2588
|
+
observedAt: number;
|
|
2589
|
+
outbound: {
|
|
2590
|
+
consumer: string;
|
|
2591
|
+
consuming: boolean;
|
|
2592
|
+
enabled: boolean;
|
|
2593
|
+
infrastructureReady: boolean;
|
|
2594
|
+
lastError?: {
|
|
2595
|
+
at: number;
|
|
2596
|
+
message: string;
|
|
2597
|
+
phase: "consume_loop";
|
|
2598
|
+
};
|
|
2599
|
+
lastMessageAt?: number;
|
|
2600
|
+
publishOutbox?: {
|
|
2601
|
+
lastError?: {
|
|
2602
|
+
at: number;
|
|
2603
|
+
message: string;
|
|
2604
|
+
};
|
|
2605
|
+
lastPublishedAt?: number;
|
|
2606
|
+
nextAttemptAt?: number;
|
|
2607
|
+
oldestPendingAt?: number;
|
|
2608
|
+
pendingCount: number;
|
|
2609
|
+
};
|
|
2610
|
+
stream: string;
|
|
2611
|
+
};
|
|
2612
|
+
pid: number;
|
|
2613
|
+
running: boolean;
|
|
2614
|
+
schemaVersion: 1;
|
|
2615
|
+
startedAt: number | null;
|
|
2616
|
+
}) | null;
|
|
2327
2617
|
};
|
|
2328
2618
|
/** Input shape for `channels.stop`. */
|
|
2329
2619
|
export type ChannelsStopInput = Record<string, never>;
|
|
@@ -2349,6 +2639,12 @@ export type ChannelsStopReturn = {
|
|
|
2349
2639
|
running: boolean;
|
|
2350
2640
|
status: string;
|
|
2351
2641
|
};
|
|
2642
|
+
health?: {
|
|
2643
|
+
checkedAt: number;
|
|
2644
|
+
reachable: boolean;
|
|
2645
|
+
reason?: string;
|
|
2646
|
+
status: "ready" | "starting" | "degraded" | "unreachable" | "stopped";
|
|
2647
|
+
};
|
|
2352
2648
|
pm2Available: boolean;
|
|
2353
2649
|
processName: string;
|
|
2354
2650
|
processes: Array<{
|
|
@@ -2362,6 +2658,45 @@ export type ChannelsStopReturn = {
|
|
|
2362
2658
|
running: boolean;
|
|
2363
2659
|
status: string;
|
|
2364
2660
|
}>;
|
|
2661
|
+
runner?: ({
|
|
2662
|
+
adapters: Array<{
|
|
2663
|
+
channelId: string;
|
|
2664
|
+
connectedAt?: number;
|
|
2665
|
+
id: string;
|
|
2666
|
+
lastPongAt?: number;
|
|
2667
|
+
reason?: string;
|
|
2668
|
+
reconnectCount?: number;
|
|
2669
|
+
status: "disabled" | "starting" | "connected" | "degraded" | "reconnecting" | "disconnected" | "failed";
|
|
2670
|
+
}>;
|
|
2671
|
+
observedAt: number;
|
|
2672
|
+
outbound: {
|
|
2673
|
+
consumer: string;
|
|
2674
|
+
consuming: boolean;
|
|
2675
|
+
enabled: boolean;
|
|
2676
|
+
infrastructureReady: boolean;
|
|
2677
|
+
lastError?: {
|
|
2678
|
+
at: number;
|
|
2679
|
+
message: string;
|
|
2680
|
+
phase: "consume_loop";
|
|
2681
|
+
};
|
|
2682
|
+
lastMessageAt?: number;
|
|
2683
|
+
publishOutbox?: {
|
|
2684
|
+
lastError?: {
|
|
2685
|
+
at: number;
|
|
2686
|
+
message: string;
|
|
2687
|
+
};
|
|
2688
|
+
lastPublishedAt?: number;
|
|
2689
|
+
nextAttemptAt?: number;
|
|
2690
|
+
oldestPendingAt?: number;
|
|
2691
|
+
pendingCount: number;
|
|
2692
|
+
};
|
|
2693
|
+
stream: string;
|
|
2694
|
+
};
|
|
2695
|
+
pid: number;
|
|
2696
|
+
running: boolean;
|
|
2697
|
+
schemaVersion: 1;
|
|
2698
|
+
startedAt: number | null;
|
|
2699
|
+
}) | null;
|
|
2365
2700
|
};
|
|
2366
2701
|
target?: {
|
|
2367
2702
|
bundlePath: string;
|
|
@@ -2390,7 +2725,102 @@ export type ChatsListInput = {
|
|
|
2390
2725
|
type?: string;
|
|
2391
2726
|
};
|
|
2392
2727
|
/** Return shape for `chats.list`. */
|
|
2393
|
-
export type ChatsListReturn =
|
|
2728
|
+
export type ChatsListReturn = {
|
|
2729
|
+
chats: Array<{
|
|
2730
|
+
chat: {
|
|
2731
|
+
avatarUrl?: string;
|
|
2732
|
+
channel: string;
|
|
2733
|
+
chatType: "dm" | "group" | "room" | "thread" | "channel" | "unknown";
|
|
2734
|
+
createdAt: number;
|
|
2735
|
+
firstSeenAt: number;
|
|
2736
|
+
id: string;
|
|
2737
|
+
instanceId: string;
|
|
2738
|
+
lastSeenAt: number;
|
|
2739
|
+
metadata?: Record<string, unknown>;
|
|
2740
|
+
normalizedChatId?: string;
|
|
2741
|
+
platformChatId?: string;
|
|
2742
|
+
rawProvenance?: Record<string, unknown>;
|
|
2743
|
+
title?: string;
|
|
2744
|
+
updatedAt: number;
|
|
2745
|
+
};
|
|
2746
|
+
lastMessage: ({
|
|
2747
|
+
actorType: string;
|
|
2748
|
+
agentId?: string;
|
|
2749
|
+
channel?: string;
|
|
2750
|
+
chatId: string;
|
|
2751
|
+
contactId?: string;
|
|
2752
|
+
content?: Record<string, unknown>;
|
|
2753
|
+
createdAt: number;
|
|
2754
|
+
id: string;
|
|
2755
|
+
ingestedAt: number;
|
|
2756
|
+
instanceId?: string;
|
|
2757
|
+
messageType?: string;
|
|
2758
|
+
normalizedSenderId?: string;
|
|
2759
|
+
platformIdentityId?: string;
|
|
2760
|
+
providerMessageId?: string;
|
|
2761
|
+
providerTimestamp?: number;
|
|
2762
|
+
rawChatId?: string;
|
|
2763
|
+
rawProvenance?: Record<string, unknown>;
|
|
2764
|
+
rawSenderId?: string;
|
|
2765
|
+
sortKey: string;
|
|
2766
|
+
updatedAt: number;
|
|
2767
|
+
}) | null;
|
|
2768
|
+
messageCount: number;
|
|
2769
|
+
participantCount: number;
|
|
2770
|
+
}>;
|
|
2771
|
+
items: Array<{
|
|
2772
|
+
chat: {
|
|
2773
|
+
avatarUrl?: string;
|
|
2774
|
+
channel: string;
|
|
2775
|
+
chatType: "dm" | "group" | "room" | "thread" | "channel" | "unknown";
|
|
2776
|
+
createdAt: number;
|
|
2777
|
+
firstSeenAt: number;
|
|
2778
|
+
id: string;
|
|
2779
|
+
instanceId: string;
|
|
2780
|
+
lastSeenAt: number;
|
|
2781
|
+
metadata?: Record<string, unknown>;
|
|
2782
|
+
normalizedChatId?: string;
|
|
2783
|
+
platformChatId?: string;
|
|
2784
|
+
rawProvenance?: Record<string, unknown>;
|
|
2785
|
+
title?: string;
|
|
2786
|
+
updatedAt: number;
|
|
2787
|
+
};
|
|
2788
|
+
lastMessage: ({
|
|
2789
|
+
actorType: string;
|
|
2790
|
+
agentId?: string;
|
|
2791
|
+
channel?: string;
|
|
2792
|
+
chatId: string;
|
|
2793
|
+
contactId?: string;
|
|
2794
|
+
content?: Record<string, unknown>;
|
|
2795
|
+
createdAt: number;
|
|
2796
|
+
id: string;
|
|
2797
|
+
ingestedAt: number;
|
|
2798
|
+
instanceId?: string;
|
|
2799
|
+
messageType?: string;
|
|
2800
|
+
normalizedSenderId?: string;
|
|
2801
|
+
platformIdentityId?: string;
|
|
2802
|
+
providerMessageId?: string;
|
|
2803
|
+
providerTimestamp?: number;
|
|
2804
|
+
rawChatId?: string;
|
|
2805
|
+
rawProvenance?: Record<string, unknown>;
|
|
2806
|
+
rawSenderId?: string;
|
|
2807
|
+
sortKey: string;
|
|
2808
|
+
updatedAt: number;
|
|
2809
|
+
}) | null;
|
|
2810
|
+
messageCount: number;
|
|
2811
|
+
participantCount: number;
|
|
2812
|
+
}>;
|
|
2813
|
+
pagination: {
|
|
2814
|
+
hasMore?: boolean;
|
|
2815
|
+
limit: number;
|
|
2816
|
+
nextCommand?: string | null;
|
|
2817
|
+
nextOffset?: number | null;
|
|
2818
|
+
offset: number;
|
|
2819
|
+
returned: number;
|
|
2820
|
+
total: number;
|
|
2821
|
+
};
|
|
2822
|
+
total: number;
|
|
2823
|
+
};
|
|
2394
2824
|
/** Input shape for `chats.lists.add`. */
|
|
2395
2825
|
export type ChatsListsAddInput = {
|
|
2396
2826
|
channel?: string;
|
|
@@ -2633,7 +3063,56 @@ export type ChatsReadInput = {
|
|
|
2633
3063
|
type?: string;
|
|
2634
3064
|
};
|
|
2635
3065
|
/** Return shape for `chats.read`. */
|
|
2636
|
-
export type ChatsReadReturn =
|
|
3066
|
+
export type ChatsReadReturn = {
|
|
3067
|
+
chat: {
|
|
3068
|
+
avatarUrl?: string;
|
|
3069
|
+
channel: string;
|
|
3070
|
+
chatType: "dm" | "group" | "room" | "thread" | "channel" | "unknown";
|
|
3071
|
+
createdAt: number;
|
|
3072
|
+
firstSeenAt: number;
|
|
3073
|
+
id: string;
|
|
3074
|
+
instanceId: string;
|
|
3075
|
+
lastSeenAt: number;
|
|
3076
|
+
metadata?: Record<string, unknown>;
|
|
3077
|
+
normalizedChatId?: string;
|
|
3078
|
+
platformChatId?: string;
|
|
3079
|
+
rawProvenance?: Record<string, unknown>;
|
|
3080
|
+
title?: string;
|
|
3081
|
+
updatedAt: number;
|
|
3082
|
+
};
|
|
3083
|
+
messages: Array<{
|
|
3084
|
+
actorType: string;
|
|
3085
|
+
agentId?: string;
|
|
3086
|
+
channel?: string;
|
|
3087
|
+
chatId: string;
|
|
3088
|
+
contactId?: string;
|
|
3089
|
+
content?: Record<string, unknown>;
|
|
3090
|
+
createdAt: number;
|
|
3091
|
+
id: string;
|
|
3092
|
+
ingestedAt: number;
|
|
3093
|
+
instanceId?: string;
|
|
3094
|
+
messageType?: string;
|
|
3095
|
+
normalizedSenderId?: string;
|
|
3096
|
+
platformIdentityId?: string;
|
|
3097
|
+
providerMessageId?: string;
|
|
3098
|
+
providerTimestamp?: number;
|
|
3099
|
+
rawChatId?: string;
|
|
3100
|
+
rawProvenance?: Record<string, unknown>;
|
|
3101
|
+
rawSenderId?: string;
|
|
3102
|
+
sortKey: string;
|
|
3103
|
+
updatedAt: number;
|
|
3104
|
+
}>;
|
|
3105
|
+
pagination: {
|
|
3106
|
+
hasMore?: boolean;
|
|
3107
|
+
limit: number;
|
|
3108
|
+
nextCommand?: string | null;
|
|
3109
|
+
nextOffset?: number | null;
|
|
3110
|
+
offset: number;
|
|
3111
|
+
returned: number;
|
|
3112
|
+
total: number;
|
|
3113
|
+
};
|
|
3114
|
+
total: number;
|
|
3115
|
+
};
|
|
2637
3116
|
/** Input shape for `cloud.projects.create`. */
|
|
2638
3117
|
export type CloudProjectsCreateInput = {
|
|
2639
3118
|
console?: string;
|
|
@@ -4828,6 +5307,7 @@ export type CronAddInput = {
|
|
|
4828
5307
|
envFile?: string;
|
|
4829
5308
|
every?: string;
|
|
4830
5309
|
exec?: string;
|
|
5310
|
+
idempotencyKey?: string;
|
|
4831
5311
|
isolated?: boolean;
|
|
4832
5312
|
message?: string;
|
|
4833
5313
|
name: string;
|
|
@@ -7619,14 +8099,18 @@ export type ObserversProfilesValidateReturn = {
|
|
|
7619
8099
|
};
|
|
7620
8100
|
/** Input shape for `observers.refresh`. */
|
|
7621
8101
|
export type ObserversRefreshInput = {
|
|
8102
|
+
reconcile?: string;
|
|
7622
8103
|
session: string;
|
|
7623
8104
|
};
|
|
7624
8105
|
/** Return shape for `observers.refresh`. */
|
|
7625
8106
|
export type ObserversRefreshReturn = {
|
|
7626
8107
|
bindings: Array<Record<string, unknown>>;
|
|
7627
8108
|
created: Array<Record<string, unknown>>;
|
|
8109
|
+
disabled: Array<Record<string, unknown>>;
|
|
8110
|
+
mode: "attach-missing" | "detach-disabled" | "refresh-profile" | "full-reconcile";
|
|
8111
|
+
refreshedProfiles: Array<Record<string, unknown>>;
|
|
7628
8112
|
skipped: Array<Record<string, unknown>>;
|
|
7629
|
-
source: Record<string, unknown
|
|
8113
|
+
source: (Record<string, unknown>) | null;
|
|
7630
8114
|
total: number;
|
|
7631
8115
|
[k: string]: unknown;
|
|
7632
8116
|
};
|
|
@@ -7709,6 +8193,7 @@ export type ObserversRulesSetInput = {
|
|
|
7709
8193
|
provider?: string;
|
|
7710
8194
|
role?: string;
|
|
7711
8195
|
scope?: string;
|
|
8196
|
+
selector?: string;
|
|
7712
8197
|
sourceAgent?: string;
|
|
7713
8198
|
sourceProfile?: string;
|
|
7714
8199
|
sourceProject?: string;
|