@rkat/sdk 0.7.9 → 0.7.11
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 +3 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/generated/types.d.ts +413 -1
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generated/types.js +2 -2
- package/dist/generated/types.js.map +1 -1
- package/dist/mob.d.ts +7 -1
- package/dist/mob.d.ts.map +1 -1
- package/dist/mob.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const CONTRACT_VERSION = "0.7.
|
|
1
|
+
export declare const CONTRACT_VERSION = "0.7.11";
|
|
2
|
+
export type Value = unknown;
|
|
2
3
|
export interface WireUsage {
|
|
3
4
|
input_tokens: number;
|
|
4
5
|
output_tokens: number;
|
|
@@ -266,6 +267,399 @@ export interface WorkItemsResult {
|
|
|
266
267
|
items: unknown[];
|
|
267
268
|
}
|
|
268
269
|
export type ConfigSetParams = Record<string, unknown>;
|
|
270
|
+
export interface SessionExternalEventEnvelopeGenericJson {
|
|
271
|
+
blocks?: WireContentBlock[];
|
|
272
|
+
event_type: string;
|
|
273
|
+
kind: "generic_json";
|
|
274
|
+
payload: unknown;
|
|
275
|
+
}
|
|
276
|
+
export interface SessionExternalEventEnvelopePeerResponseTerminal {
|
|
277
|
+
display_name?: PeerName;
|
|
278
|
+
kind: "peer_response_terminal";
|
|
279
|
+
peer_id: PeerId;
|
|
280
|
+
request_id: string;
|
|
281
|
+
result: unknown;
|
|
282
|
+
status: "completed" | "failed" | "cancelled";
|
|
283
|
+
}
|
|
284
|
+
export type SessionExternalEventEnvelope = SessionExternalEventEnvelopeGenericJson | SessionExternalEventEnvelopePeerResponseTerminal;
|
|
285
|
+
export interface WireDeviceCompleteResultPending {
|
|
286
|
+
state: "pending";
|
|
287
|
+
}
|
|
288
|
+
export interface WireDeviceCompleteResultSlowDown {
|
|
289
|
+
state: "slow_down";
|
|
290
|
+
}
|
|
291
|
+
export interface WireDeviceCompleteResultAccessDenied {
|
|
292
|
+
state: "access_denied";
|
|
293
|
+
}
|
|
294
|
+
export interface WireDeviceCompleteResultExpired {
|
|
295
|
+
state: "expired";
|
|
296
|
+
}
|
|
297
|
+
export interface WireDeviceCompleteResultReady {
|
|
298
|
+
auth_binding: WireAuthBindingRef;
|
|
299
|
+
binding_id: string;
|
|
300
|
+
expires_at?: string;
|
|
301
|
+
has_refresh_token: boolean;
|
|
302
|
+
profile_id: string;
|
|
303
|
+
provider: string;
|
|
304
|
+
realm_id: string;
|
|
305
|
+
scopes: string[];
|
|
306
|
+
state: "ready";
|
|
307
|
+
}
|
|
308
|
+
export type WireDeviceCompleteResult = WireDeviceCompleteResultPending | WireDeviceCompleteResultSlowDown | WireDeviceCompleteResultAccessDenied | WireDeviceCompleteResultExpired | WireDeviceCompleteResultReady;
|
|
309
|
+
export interface ApprovalDecideParams {
|
|
310
|
+
actor: string;
|
|
311
|
+
approval_id: string;
|
|
312
|
+
decision: "approve" | "deny";
|
|
313
|
+
provenance?: unknown;
|
|
314
|
+
reason?: string;
|
|
315
|
+
}
|
|
316
|
+
export interface ApprovalGetParams {
|
|
317
|
+
approval_id: string;
|
|
318
|
+
}
|
|
319
|
+
export interface ApprovalListParams {
|
|
320
|
+
filter?: Record<string, unknown>;
|
|
321
|
+
}
|
|
322
|
+
export interface ApprovalListResult {
|
|
323
|
+
approvals: Record<string, unknown>[];
|
|
324
|
+
}
|
|
325
|
+
export interface ApprovalRecord {
|
|
326
|
+
allowed_decisions: ("approve" | "deny")[];
|
|
327
|
+
approval_id: string;
|
|
328
|
+
created_at: string;
|
|
329
|
+
decision?: Record<string, unknown>;
|
|
330
|
+
expires_at?: string;
|
|
331
|
+
metadata: Record<string, unknown>;
|
|
332
|
+
owner: Record<string, unknown>;
|
|
333
|
+
proposed_action: Record<string, unknown>;
|
|
334
|
+
request_body?: unknown;
|
|
335
|
+
request_provenance?: unknown;
|
|
336
|
+
requester: string;
|
|
337
|
+
resource: Record<string, unknown>;
|
|
338
|
+
risk: "low" | "medium" | "high" | "critical";
|
|
339
|
+
status: "pending" | "approved" | "denied" | "expired" | "cancelled";
|
|
340
|
+
updated_at: string;
|
|
341
|
+
}
|
|
342
|
+
export interface ApprovalRequestParams {
|
|
343
|
+
allowed_decisions: ("approve" | "deny")[];
|
|
344
|
+
expires_at?: string;
|
|
345
|
+
metadata?: Record<string, unknown>;
|
|
346
|
+
owner: Record<string, unknown>;
|
|
347
|
+
proposed_action: Record<string, unknown>;
|
|
348
|
+
request_body?: unknown;
|
|
349
|
+
request_provenance?: unknown;
|
|
350
|
+
requester: string;
|
|
351
|
+
resource: Record<string, unknown>;
|
|
352
|
+
risk: "low" | "medium" | "high" | "critical";
|
|
353
|
+
}
|
|
354
|
+
export interface ArchiveSessionParams {
|
|
355
|
+
session_id: string;
|
|
356
|
+
}
|
|
357
|
+
export interface ArtifactDownloadParams {
|
|
358
|
+
artifact_id: string;
|
|
359
|
+
expected_media_type?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface ArtifactDownloadResult {
|
|
362
|
+
payload: Record<string, unknown>;
|
|
363
|
+
record: Record<string, unknown>;
|
|
364
|
+
}
|
|
365
|
+
export interface ArtifactIdParams {
|
|
366
|
+
artifact_id: string;
|
|
367
|
+
}
|
|
368
|
+
export interface ArtifactListParams {
|
|
369
|
+
label_equals?: Record<string, string>;
|
|
370
|
+
session_id?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface ArtifactListResult {
|
|
373
|
+
artifacts: Record<string, unknown>[];
|
|
374
|
+
}
|
|
375
|
+
export interface ArtifactRecord {
|
|
376
|
+
artifact_id: string;
|
|
377
|
+
artifact_type: "text" | "log" | "command_output" | "diff" | "patch" | "generated_file" | "test_report" | "screenshot" | "image" | "json" | "binary" | {
|
|
378
|
+
other: string;
|
|
379
|
+
};
|
|
380
|
+
content_handle: Record<string, unknown>;
|
|
381
|
+
created_at: string;
|
|
382
|
+
handle: Record<string, unknown>;
|
|
383
|
+
hash?: string;
|
|
384
|
+
media_type: string;
|
|
385
|
+
metadata?: Record<string, unknown>;
|
|
386
|
+
owner?: Record<string, unknown>;
|
|
387
|
+
producer?: string;
|
|
388
|
+
provenance?: Record<string, string>;
|
|
389
|
+
size_bytes: number;
|
|
390
|
+
title: string;
|
|
391
|
+
}
|
|
392
|
+
export interface BindingIdParams {
|
|
393
|
+
binding_id: string;
|
|
394
|
+
profile_id?: string;
|
|
395
|
+
realm_id: string;
|
|
396
|
+
}
|
|
397
|
+
export interface BlobGetParams {
|
|
398
|
+
blob_id: string;
|
|
399
|
+
}
|
|
400
|
+
export interface BlobPayload {
|
|
401
|
+
blob_id: BlobId;
|
|
402
|
+
data: string;
|
|
403
|
+
media_type: string;
|
|
404
|
+
}
|
|
405
|
+
export interface CreateProfileParams {
|
|
406
|
+
auth_method: string;
|
|
407
|
+
binding_id: string;
|
|
408
|
+
profile_id?: string;
|
|
409
|
+
realm_id: string;
|
|
410
|
+
secret: string;
|
|
411
|
+
}
|
|
412
|
+
export interface CreateScheduleRequest {
|
|
413
|
+
description?: string;
|
|
414
|
+
labels?: Record<string, string>;
|
|
415
|
+
misfire_policy?: Record<string, unknown>;
|
|
416
|
+
missing_target_policy?: "skip" | "mark_misfired";
|
|
417
|
+
name?: string;
|
|
418
|
+
overlap_policy?: "allow_concurrent" | "skip_if_running";
|
|
419
|
+
planning_horizon_days?: number;
|
|
420
|
+
planning_horizon_occurrences?: number;
|
|
421
|
+
target: Record<string, unknown>;
|
|
422
|
+
trigger: Record<string, unknown>;
|
|
423
|
+
}
|
|
424
|
+
export interface DeferredCreateResult {
|
|
425
|
+
session_id: string;
|
|
426
|
+
session_ref?: string;
|
|
427
|
+
}
|
|
428
|
+
export interface DeviceCompleteParams {
|
|
429
|
+
binding_id: string;
|
|
430
|
+
device_code: string;
|
|
431
|
+
profile_id?: string;
|
|
432
|
+
provider: string;
|
|
433
|
+
realm_id: string;
|
|
434
|
+
}
|
|
435
|
+
export interface DeviceStartParams {
|
|
436
|
+
binding_id: string;
|
|
437
|
+
profile_id?: string;
|
|
438
|
+
provider: string;
|
|
439
|
+
realm_id: string;
|
|
440
|
+
}
|
|
441
|
+
export interface EventsLatestCursorParams {
|
|
442
|
+
scope: Record<string, unknown>;
|
|
443
|
+
}
|
|
444
|
+
export interface EventsLatestCursorResult {
|
|
445
|
+
contract_version: Record<string, unknown>;
|
|
446
|
+
cursor: Record<string, unknown>;
|
|
447
|
+
}
|
|
448
|
+
export interface EventsListSinceParams {
|
|
449
|
+
cursor?: Record<string, unknown>;
|
|
450
|
+
limit?: number;
|
|
451
|
+
scope: Record<string, unknown>;
|
|
452
|
+
}
|
|
453
|
+
export interface EventsListSinceResult {
|
|
454
|
+
contract_version: Record<string, unknown>;
|
|
455
|
+
events?: Record<string, unknown>[];
|
|
456
|
+
from_cursor: Record<string, unknown>;
|
|
457
|
+
has_more: boolean;
|
|
458
|
+
latest_cursor: Record<string, unknown>;
|
|
459
|
+
scope: Record<string, unknown>;
|
|
460
|
+
}
|
|
461
|
+
export interface EventsSnapshotParams {
|
|
462
|
+
scope: Record<string, unknown>;
|
|
463
|
+
}
|
|
464
|
+
export interface EventsSnapshotResult {
|
|
465
|
+
contract_version: Record<string, unknown>;
|
|
466
|
+
cursor: Record<string, unknown>;
|
|
467
|
+
scope: Record<string, unknown>;
|
|
468
|
+
snapshot: Record<string, unknown>;
|
|
469
|
+
}
|
|
470
|
+
export interface ForkSessionAtParams {
|
|
471
|
+
message_index: number;
|
|
472
|
+
running_behavior?: "reject";
|
|
473
|
+
session_id: string;
|
|
474
|
+
}
|
|
475
|
+
export interface ForkSessionReplaceParams {
|
|
476
|
+
message_index: number;
|
|
477
|
+
replacement: Record<string, unknown>;
|
|
478
|
+
running_behavior?: "reject";
|
|
479
|
+
session_id: string;
|
|
480
|
+
}
|
|
481
|
+
export interface HelpRequest {
|
|
482
|
+
execution_mode?: "explain_only" | "plan_execution";
|
|
483
|
+
max_tokens?: number;
|
|
484
|
+
model?: string;
|
|
485
|
+
prompt?: string;
|
|
486
|
+
provider?: string;
|
|
487
|
+
question: string;
|
|
488
|
+
}
|
|
489
|
+
export interface HelpResponse {
|
|
490
|
+
extraction_error?: Record<string, unknown>;
|
|
491
|
+
schema_warnings?: Record<string, unknown>[];
|
|
492
|
+
session_id: string;
|
|
493
|
+
session_ref?: string;
|
|
494
|
+
skill_diagnostics?: Record<string, unknown>;
|
|
495
|
+
structured_output?: unknown;
|
|
496
|
+
terminal_cause_kind?: "unknown" | "hook_denied" | "hook_failure" | "llm_failure" | "tool_failure" | "structured_output_validation_failed" | "budget_exhausted" | "time_budget_exceeded" | "retry_exhausted" | "turn_limit_reached" | "runtime_apply_failure" | "fatal_failure";
|
|
497
|
+
text: string;
|
|
498
|
+
tool_calls: number;
|
|
499
|
+
turns: number;
|
|
500
|
+
usage: Record<string, unknown>;
|
|
501
|
+
}
|
|
502
|
+
export interface InjectSystemContextParams {
|
|
503
|
+
content: Record<string, unknown>;
|
|
504
|
+
idempotency_key?: string;
|
|
505
|
+
session_id: string;
|
|
506
|
+
source?: string;
|
|
507
|
+
}
|
|
508
|
+
export interface InjectSystemContextResult {
|
|
509
|
+
status: "applied" | "staged" | "duplicate";
|
|
510
|
+
}
|
|
511
|
+
export interface InterruptParams {
|
|
512
|
+
session_id: string;
|
|
513
|
+
}
|
|
514
|
+
export interface ListSessionsParams {
|
|
515
|
+
labels?: Record<string, string>;
|
|
516
|
+
limit?: number;
|
|
517
|
+
offset?: number;
|
|
518
|
+
}
|
|
519
|
+
export interface ListSessionsResult {
|
|
520
|
+
sessions: Record<string, unknown>[];
|
|
521
|
+
}
|
|
522
|
+
export interface LoginCompleteParams {
|
|
523
|
+
binding_id: string;
|
|
524
|
+
code: string;
|
|
525
|
+
profile_id?: string;
|
|
526
|
+
provider: string;
|
|
527
|
+
realm_id: string;
|
|
528
|
+
redirect_uri: string;
|
|
529
|
+
state: string;
|
|
530
|
+
}
|
|
531
|
+
export interface LoginStartParams {
|
|
532
|
+
binding_id: string;
|
|
533
|
+
profile_id?: string;
|
|
534
|
+
provider: string;
|
|
535
|
+
realm_id: string;
|
|
536
|
+
redirect_uri: string;
|
|
537
|
+
}
|
|
538
|
+
export interface ProvisionApiKeyParams {
|
|
539
|
+
access_token: string;
|
|
540
|
+
binding_id?: string;
|
|
541
|
+
profile_id?: string;
|
|
542
|
+
realm_id?: string;
|
|
543
|
+
}
|
|
544
|
+
export interface ReadSessionHistoryParams {
|
|
545
|
+
limit?: number;
|
|
546
|
+
offset?: number;
|
|
547
|
+
session_id: string;
|
|
548
|
+
}
|
|
549
|
+
export interface ReadSessionParams {
|
|
550
|
+
session_id: string;
|
|
551
|
+
}
|
|
552
|
+
export interface ReadSessionTranscriptRevisionParams {
|
|
553
|
+
limit?: number;
|
|
554
|
+
offset?: number;
|
|
555
|
+
revision: string;
|
|
556
|
+
session_id: string;
|
|
557
|
+
}
|
|
558
|
+
export interface RealmIdParams {
|
|
559
|
+
realm_id: string;
|
|
560
|
+
}
|
|
561
|
+
export interface RestoreSessionTranscriptRevisionParams {
|
|
562
|
+
actor?: string;
|
|
563
|
+
expected_parent_revision?: string;
|
|
564
|
+
reason: Record<string, unknown>;
|
|
565
|
+
revision: string;
|
|
566
|
+
running_behavior?: "reject";
|
|
567
|
+
session_id: string;
|
|
568
|
+
}
|
|
569
|
+
export interface RewriteSessionTranscriptParams {
|
|
570
|
+
actor?: string;
|
|
571
|
+
expected_parent_revision?: string;
|
|
572
|
+
reason: Record<string, unknown>;
|
|
573
|
+
replacement: Record<string, unknown>[];
|
|
574
|
+
running_behavior?: "reject";
|
|
575
|
+
selection: Record<string, unknown>;
|
|
576
|
+
session_id: string;
|
|
577
|
+
}
|
|
578
|
+
export interface RuntimeHostCapabilities {
|
|
579
|
+
contract_version: Record<string, unknown>;
|
|
580
|
+
features: Record<string, unknown>;
|
|
581
|
+
}
|
|
582
|
+
export interface RuntimeHostHealth {
|
|
583
|
+
checks?: Record<string, "ok" | "degraded" | "unhealthy">;
|
|
584
|
+
contract_version: Record<string, unknown>;
|
|
585
|
+
status: "ok" | "degraded" | "unhealthy";
|
|
586
|
+
}
|
|
587
|
+
export interface RuntimeHostInfo {
|
|
588
|
+
capabilities: Record<string, unknown>;
|
|
589
|
+
contract_version: Record<string, unknown>;
|
|
590
|
+
endpoints: Record<string, unknown>;
|
|
591
|
+
health: Record<string, unknown>;
|
|
592
|
+
host_id: string;
|
|
593
|
+
host_id_scope: "process" | "realm_instance";
|
|
594
|
+
placement_labels?: Record<string, string>;
|
|
595
|
+
policy_profile_summary?: string;
|
|
596
|
+
process_name: string;
|
|
597
|
+
process_version: string;
|
|
598
|
+
realm: Record<string, unknown>;
|
|
599
|
+
}
|
|
600
|
+
export interface Schedule {
|
|
601
|
+
config: Record<string, unknown>;
|
|
602
|
+
misfire_policy: Record<string, unknown>;
|
|
603
|
+
missing_target_policy: "skip" | "mark_misfired";
|
|
604
|
+
next_occurrence_ordinal: number;
|
|
605
|
+
overlap_policy: "allow_concurrent" | "skip_if_running";
|
|
606
|
+
phase: "active" | "paused" | "deleted";
|
|
607
|
+
planning_cursor_utc?: string;
|
|
608
|
+
revision: number;
|
|
609
|
+
schedule_id: string;
|
|
610
|
+
superseded_ack_ids: string[];
|
|
611
|
+
target: Record<string, unknown>;
|
|
612
|
+
trigger: Record<string, unknown>;
|
|
613
|
+
}
|
|
614
|
+
export interface ScheduleToolCallParams {
|
|
615
|
+
arguments?: unknown;
|
|
616
|
+
name: string;
|
|
617
|
+
}
|
|
618
|
+
export interface ScheduleToolsResult {
|
|
619
|
+
tools: unknown[];
|
|
620
|
+
}
|
|
621
|
+
export interface SessionForkResult {
|
|
622
|
+
message_count: number;
|
|
623
|
+
session_id: string;
|
|
624
|
+
session_ref?: string;
|
|
625
|
+
source_session_id: string;
|
|
626
|
+
}
|
|
627
|
+
export interface SessionPeerResponseTerminalParams {
|
|
628
|
+
display_name?: PeerName;
|
|
629
|
+
peer_id: PeerId;
|
|
630
|
+
request_id: string;
|
|
631
|
+
result: unknown;
|
|
632
|
+
session_id: string;
|
|
633
|
+
status: "completed" | "failed" | "cancelled";
|
|
634
|
+
}
|
|
635
|
+
export interface SessionTranscriptRewriteResult {
|
|
636
|
+
commit: Record<string, unknown>;
|
|
637
|
+
message_count: number;
|
|
638
|
+
parent_revision: string;
|
|
639
|
+
revision: string;
|
|
640
|
+
session_id: string;
|
|
641
|
+
}
|
|
642
|
+
export interface WireProvisionApiKeyResult {
|
|
643
|
+
auth_binding: WireAuthBindingRef;
|
|
644
|
+
auth_mode: string;
|
|
645
|
+
binding_id: string;
|
|
646
|
+
has_api_key: boolean;
|
|
647
|
+
profile_id: string;
|
|
648
|
+
provider: string;
|
|
649
|
+
realm_id: string;
|
|
650
|
+
scopes: string[];
|
|
651
|
+
}
|
|
652
|
+
export interface WireSessionTranscriptRevision {
|
|
653
|
+
has_more: boolean;
|
|
654
|
+
head_revision: string;
|
|
655
|
+
limit?: number;
|
|
656
|
+
message_count: number;
|
|
657
|
+
messages: Record<string, unknown>[];
|
|
658
|
+
offset: number;
|
|
659
|
+
revision: string;
|
|
660
|
+
session_id: string;
|
|
661
|
+
session_ref?: string;
|
|
662
|
+
}
|
|
269
663
|
export interface MobWireParams {
|
|
270
664
|
member: string;
|
|
271
665
|
mob_id: string;
|
|
@@ -600,6 +994,7 @@ export interface MobFlowCancelResult {
|
|
|
600
994
|
}
|
|
601
995
|
export interface MobSpawnHelperParams {
|
|
602
996
|
agent_identity?: string;
|
|
997
|
+
auth_binding?: WireAuthBindingRef;
|
|
603
998
|
backend?: WireMobBackendKind;
|
|
604
999
|
mob_id: string;
|
|
605
1000
|
prompt: string;
|
|
@@ -608,6 +1003,7 @@ export interface MobSpawnHelperParams {
|
|
|
608
1003
|
}
|
|
609
1004
|
export interface MobForkHelperParams {
|
|
610
1005
|
agent_identity?: string;
|
|
1006
|
+
auth_binding?: WireAuthBindingRef;
|
|
611
1007
|
backend?: WireMobBackendKind;
|
|
612
1008
|
fork_context?: unknown;
|
|
613
1009
|
mob_id: string;
|
|
@@ -2006,6 +2402,22 @@ export type LiveCloseStatus = "closed";
|
|
|
2006
2402
|
export interface LiveCloseResult {
|
|
2007
2403
|
status: "closed";
|
|
2008
2404
|
}
|
|
2405
|
+
export type LiveSendInputStatus = "sent";
|
|
2406
|
+
export interface LiveSendInputResult {
|
|
2407
|
+
status: "sent";
|
|
2408
|
+
}
|
|
2409
|
+
export type LiveCommitInputStatus = "committed";
|
|
2410
|
+
export interface LiveCommitInputResult {
|
|
2411
|
+
status: "committed";
|
|
2412
|
+
}
|
|
2413
|
+
export type LiveInterruptStatus = "interrupted";
|
|
2414
|
+
export interface LiveInterruptResult {
|
|
2415
|
+
status: "interrupted";
|
|
2416
|
+
}
|
|
2417
|
+
export type LiveTruncateStatus = "truncated";
|
|
2418
|
+
export interface LiveTruncateResult {
|
|
2419
|
+
status: "truncated";
|
|
2420
|
+
}
|
|
2009
2421
|
export interface LiveInputChunkWireAudio {
|
|
2010
2422
|
channels: number;
|
|
2011
2423
|
data: string;
|