@tai42/api-client 8.1.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents.d.ts +17 -153
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +5 -5
- package/dist/agents.js.map +1 -1
- package/dist/client.d.ts +358 -370
- package/dist/client.d.ts.map +1 -1
- package/dist/http.d.ts +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js.map +1 -1
- package/dist/schemas.d.ts +1329 -6904
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +5 -5
- package/dist/schemas.js.map +1 -1
- package/dist/tool-runs.d.ts +28 -52
- package/dist/tool-runs.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agents.ts +5 -5
- package/src/http.ts +2 -2
- package/src/schemas.ts +6 -6
package/dist/client.d.ts
CHANGED
|
@@ -360,32 +360,32 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
360
360
|
readonly baseUrl: string;
|
|
361
361
|
readonly listTools: (signal?: AbortSignal) => Promise<string[]>;
|
|
362
362
|
readonly getToolSchema: (name: string, signal?: AbortSignal) => Promise<{
|
|
363
|
-
description: string | null;
|
|
364
363
|
input: Record<string, unknown>;
|
|
365
364
|
output: Record<string, unknown> | null;
|
|
365
|
+
description: string | null;
|
|
366
366
|
}>;
|
|
367
367
|
readonly getAllToolSchemas: (signal?: AbortSignal) => Promise<Record<string, {
|
|
368
|
-
description: string | null;
|
|
369
368
|
input: Record<string, unknown>;
|
|
370
369
|
output: Record<string, unknown> | null;
|
|
370
|
+
description: string | null;
|
|
371
371
|
}>>;
|
|
372
372
|
readonly runTool: (args: RunToolArgs, signal?: AbortSignal) => Promise<unknown>;
|
|
373
373
|
readonly submitToolRun: (args: SubmitToolRunArgs, signal?: AbortSignal) => Promise<{
|
|
374
374
|
run_id: string;
|
|
375
375
|
}>;
|
|
376
376
|
readonly getToolRun: (runId: string, signal?: AbortSignal) => Promise<{
|
|
377
|
+
run_id: string;
|
|
377
378
|
tool_name: string;
|
|
378
379
|
status: "running" | "succeeded" | "failed" | "lost";
|
|
379
|
-
run_id: string;
|
|
380
380
|
started_at: string;
|
|
381
|
-
error?: string | undefined;
|
|
382
|
-
result?: unknown;
|
|
383
381
|
finished_at?: string | undefined;
|
|
382
|
+
result?: unknown;
|
|
383
|
+
error?: string | undefined;
|
|
384
384
|
}>;
|
|
385
385
|
readonly listToolRuns: (toolName: string, signal?: AbortSignal) => Promise<{
|
|
386
|
+
run_id: string;
|
|
386
387
|
tool_name: string;
|
|
387
388
|
status: "running" | "succeeded" | "failed" | "lost";
|
|
388
|
-
run_id: string;
|
|
389
389
|
started_at: string;
|
|
390
390
|
finished_at?: string | undefined;
|
|
391
391
|
}[]>;
|
|
@@ -397,8 +397,8 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
397
397
|
}[]>;
|
|
398
398
|
readonly listPresets: (signal?: AbortSignal) => Promise<{
|
|
399
399
|
name: string;
|
|
400
|
-
description: string;
|
|
401
400
|
base_tool: string;
|
|
401
|
+
description: string;
|
|
402
402
|
active_version: number;
|
|
403
403
|
extensions: (string | {
|
|
404
404
|
name: string;
|
|
@@ -412,8 +412,8 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
412
412
|
}[]>;
|
|
413
413
|
readonly createPreset: (body: CreatePresetBody) => Promise<{
|
|
414
414
|
name: string;
|
|
415
|
-
description: string;
|
|
416
415
|
base_tool: string;
|
|
416
|
+
description: string;
|
|
417
417
|
active_version: number;
|
|
418
418
|
extensions: (string | {
|
|
419
419
|
name: string;
|
|
@@ -427,8 +427,8 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
427
427
|
}>;
|
|
428
428
|
readonly getPreset: (name: string, signal?: AbortSignal) => Promise<{
|
|
429
429
|
name: string;
|
|
430
|
-
description: string;
|
|
431
430
|
base_tool: string;
|
|
431
|
+
description: string;
|
|
432
432
|
active_version: number;
|
|
433
433
|
extensions: (string | {
|
|
434
434
|
name: string;
|
|
@@ -442,50 +442,50 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
442
442
|
fixed_kwargs: Record<string, unknown>;
|
|
443
443
|
}>;
|
|
444
444
|
readonly listPresetVersions: (name: string, signal?: AbortSignal) => Promise<{
|
|
445
|
-
tags: string[];
|
|
446
445
|
version: number;
|
|
447
446
|
body: {
|
|
448
|
-
description: string;
|
|
449
447
|
base_tool: string;
|
|
448
|
+
description: string;
|
|
449
|
+
fixed_kwargs: Record<string, unknown>;
|
|
450
450
|
extensions: (string | {
|
|
451
451
|
name: string;
|
|
452
452
|
config: Record<string, unknown>;
|
|
453
453
|
})[][];
|
|
454
454
|
output_schema: Record<string, unknown> | null;
|
|
455
|
-
fixed_kwargs: Record<string, unknown>;
|
|
456
455
|
};
|
|
456
|
+
tags: string[];
|
|
457
457
|
created_at: string;
|
|
458
458
|
is_current: boolean;
|
|
459
459
|
}[]>;
|
|
460
460
|
readonly getPresetVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
|
|
461
|
-
tags: string[];
|
|
462
461
|
version: number;
|
|
463
462
|
body: {
|
|
464
|
-
description: string;
|
|
465
463
|
base_tool: string;
|
|
464
|
+
description: string;
|
|
465
|
+
fixed_kwargs: Record<string, unknown>;
|
|
466
466
|
extensions: (string | {
|
|
467
467
|
name: string;
|
|
468
468
|
config: Record<string, unknown>;
|
|
469
469
|
})[][];
|
|
470
470
|
output_schema: Record<string, unknown> | null;
|
|
471
|
-
fixed_kwargs: Record<string, unknown>;
|
|
472
471
|
};
|
|
472
|
+
tags: string[];
|
|
473
473
|
created_at: string;
|
|
474
474
|
is_current: boolean;
|
|
475
475
|
}>;
|
|
476
476
|
readonly savePresetVersion: (name: string, body: SavePresetVersionBody) => Promise<{
|
|
477
|
-
tags: string[];
|
|
478
477
|
version: number;
|
|
479
478
|
body: {
|
|
480
|
-
description: string;
|
|
481
479
|
base_tool: string;
|
|
480
|
+
description: string;
|
|
481
|
+
fixed_kwargs: Record<string, unknown>;
|
|
482
482
|
extensions: (string | {
|
|
483
483
|
name: string;
|
|
484
484
|
config: Record<string, unknown>;
|
|
485
485
|
})[][];
|
|
486
486
|
output_schema: Record<string, unknown> | null;
|
|
487
|
-
fixed_kwargs: Record<string, unknown>;
|
|
488
487
|
};
|
|
488
|
+
tags: string[];
|
|
489
489
|
created_at: string;
|
|
490
490
|
is_current: boolean;
|
|
491
491
|
}>;
|
|
@@ -499,67 +499,67 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
499
499
|
}>;
|
|
500
500
|
readonly renamePreset: (name: string, newName: string) => Promise<{
|
|
501
501
|
name: string;
|
|
502
|
-
active_version: number;
|
|
503
502
|
renamed_from: string;
|
|
503
|
+
active_version: number;
|
|
504
504
|
}>;
|
|
505
505
|
readonly getPresetReferees: (name: string, signal?: AbortSignal) => Promise<{
|
|
506
506
|
name: string;
|
|
507
507
|
referees: string[];
|
|
508
508
|
}>;
|
|
509
509
|
readonly validatePreset: (body: ValidatePresetBody) => Promise<{
|
|
510
|
-
error: string | null;
|
|
511
510
|
valid: boolean;
|
|
511
|
+
error: string | null;
|
|
512
512
|
}>;
|
|
513
513
|
readonly setPresetVersionTags: (name: string, version: number, tags: readonly string[]) => Promise<{
|
|
514
514
|
name: string;
|
|
515
|
-
tags: string[];
|
|
516
515
|
version: number;
|
|
516
|
+
tags: string[];
|
|
517
517
|
}>;
|
|
518
518
|
readonly listToolMeta: (signal?: AbortSignal) => Promise<{
|
|
519
519
|
folders: {
|
|
520
|
-
name: string;
|
|
521
520
|
id: string;
|
|
521
|
+
name: string;
|
|
522
522
|
parent_id: string | null;
|
|
523
523
|
}[];
|
|
524
524
|
meta: {
|
|
525
525
|
tool_name: string;
|
|
526
|
+
display_name: string | null;
|
|
527
|
+
folder_id: string | null;
|
|
526
528
|
tags: string[];
|
|
527
529
|
badges: string[];
|
|
528
530
|
hidden: boolean | null;
|
|
529
|
-
display_name: string | null;
|
|
530
|
-
folder_id: string | null;
|
|
531
531
|
}[];
|
|
532
532
|
}>;
|
|
533
533
|
readonly upsertToolMeta: (toolName: string, patch: ToolMetaPatch) => Promise<{
|
|
534
534
|
tool_name: string;
|
|
535
|
+
display_name: string | null;
|
|
536
|
+
folder_id: string | null;
|
|
535
537
|
tags: string[];
|
|
536
538
|
badges: string[];
|
|
537
539
|
hidden: boolean | null;
|
|
538
|
-
display_name: string | null;
|
|
539
|
-
folder_id: string | null;
|
|
540
540
|
}>;
|
|
541
541
|
readonly deleteToolMeta: (toolName: string) => Promise<{
|
|
542
542
|
tool_name: string;
|
|
543
543
|
deleted: true;
|
|
544
544
|
}>;
|
|
545
545
|
readonly createFolder: (name: string, parentId?: string | null) => Promise<{
|
|
546
|
-
name: string;
|
|
547
546
|
id: string;
|
|
547
|
+
name: string;
|
|
548
548
|
parent_id: string | null;
|
|
549
549
|
}>;
|
|
550
550
|
readonly renameFolder: (folderId: string, name: string) => Promise<{
|
|
551
|
-
name: string;
|
|
552
551
|
id: string;
|
|
552
|
+
name: string;
|
|
553
553
|
parent_id: string | null;
|
|
554
554
|
}>;
|
|
555
555
|
readonly moveFolder: (folderId: string, parentId: string | null) => Promise<{
|
|
556
|
-
name: string;
|
|
557
556
|
id: string;
|
|
557
|
+
name: string;
|
|
558
558
|
parent_id: string | null;
|
|
559
559
|
}>;
|
|
560
560
|
readonly deleteFolder: (folderId: string) => Promise<{
|
|
561
|
-
deleted: true;
|
|
562
561
|
folder_id: string;
|
|
562
|
+
deleted: true;
|
|
563
563
|
}>;
|
|
564
564
|
readonly getStorageInfo: (signal?: AbortSignal) => Promise<{
|
|
565
565
|
present: boolean;
|
|
@@ -579,17 +579,17 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
579
579
|
stored: true;
|
|
580
580
|
}>;
|
|
581
581
|
readonly deleteStorageResource: (id: string) => Promise<{
|
|
582
|
-
deleted: true;
|
|
583
582
|
id: string;
|
|
583
|
+
deleted: true;
|
|
584
584
|
}>;
|
|
585
585
|
readonly deleteStorageDir: (path: string) => Promise<{
|
|
586
|
-
deleted: true;
|
|
587
586
|
dir: string;
|
|
587
|
+
deleted: true;
|
|
588
588
|
}>;
|
|
589
589
|
readonly getBackendInfo: (signal?: AbortSignal) => Promise<{
|
|
590
590
|
present: boolean;
|
|
591
|
-
module: string | null;
|
|
592
591
|
backend: string | null;
|
|
592
|
+
module: string | null;
|
|
593
593
|
}>;
|
|
594
594
|
readonly listFleetWorkers: (signal?: AbortSignal) => Promise<{
|
|
595
595
|
workers: {
|
|
@@ -602,24 +602,24 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
602
602
|
state: "ready" | "resyncing" | "recycling";
|
|
603
603
|
stale: boolean;
|
|
604
604
|
last_op: {
|
|
605
|
-
at: string;
|
|
606
605
|
op: string;
|
|
607
606
|
outcome: string;
|
|
607
|
+
at: string;
|
|
608
608
|
} | null;
|
|
609
609
|
}[];
|
|
610
610
|
}>;
|
|
611
611
|
readonly reloadFleetConfig: (targets: string[] | null) => Promise<{
|
|
612
|
-
error: string | null;
|
|
613
612
|
op: string;
|
|
614
613
|
reachable: boolean;
|
|
615
614
|
local_only: boolean;
|
|
616
615
|
results: {
|
|
617
|
-
error: string | null;
|
|
618
616
|
name: string;
|
|
619
617
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
618
|
+
payload: unknown;
|
|
619
|
+
error: string | null;
|
|
620
620
|
detail: string | null;
|
|
621
|
-
payload?: unknown;
|
|
622
621
|
}[];
|
|
622
|
+
error: string | null;
|
|
623
623
|
}>;
|
|
624
624
|
readonly listExtensions: (signal?: AbortSignal) => Promise<{
|
|
625
625
|
name: string;
|
|
@@ -642,30 +642,30 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
642
642
|
mode: "local-only";
|
|
643
643
|
note: string;
|
|
644
644
|
} | {
|
|
645
|
-
error: string | null;
|
|
646
645
|
op: string;
|
|
647
646
|
reachable: boolean;
|
|
648
647
|
local_only: boolean;
|
|
649
648
|
results: {
|
|
650
|
-
error: string | null;
|
|
651
649
|
name: string;
|
|
652
650
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
651
|
+
payload: unknown;
|
|
652
|
+
error: string | null;
|
|
653
653
|
detail: string | null;
|
|
654
|
-
payload?: unknown;
|
|
655
654
|
}[];
|
|
655
|
+
error: string | null;
|
|
656
656
|
mode: "fleet";
|
|
657
657
|
} | {
|
|
658
|
-
error: string | null;
|
|
659
658
|
op: string;
|
|
660
659
|
reachable: boolean;
|
|
661
660
|
local_only: boolean;
|
|
662
661
|
results: {
|
|
663
|
-
error: string | null;
|
|
664
662
|
name: string;
|
|
665
663
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
664
|
+
payload: unknown;
|
|
665
|
+
error: string | null;
|
|
666
666
|
detail: string | null;
|
|
667
|
-
payload?: unknown;
|
|
668
667
|
}[];
|
|
668
|
+
error: string | null;
|
|
669
669
|
mode: "unreachable";
|
|
670
670
|
};
|
|
671
671
|
}>;
|
|
@@ -693,21 +693,14 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
693
693
|
cleared: true;
|
|
694
694
|
}>;
|
|
695
695
|
readonly getManifest: (signal?: AbortSignal) => Promise<{
|
|
696
|
-
mcp:
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
provider_id: import("zod").ZodString;
|
|
700
|
-
sub_service: import("zod").ZodString;
|
|
701
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
696
|
+
mcp: {
|
|
697
|
+
[x: string]: unknown;
|
|
698
|
+
managed?: {
|
|
702
699
|
connection_id: string;
|
|
703
700
|
provider_id: string;
|
|
704
701
|
sub_service: string;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
provider_id: string;
|
|
708
|
-
sub_service: string;
|
|
709
|
-
}>>>;
|
|
710
|
-
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
702
|
+
} | null | undefined;
|
|
703
|
+
}[];
|
|
711
704
|
user_tools: string[];
|
|
712
705
|
}>;
|
|
713
706
|
readonly setMcpConfig: (mcp: unknown[]) => Promise<{
|
|
@@ -717,61 +710,61 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
717
710
|
mode: "local-only";
|
|
718
711
|
note: string;
|
|
719
712
|
} | {
|
|
720
|
-
error: string | null;
|
|
721
713
|
op: string;
|
|
722
714
|
reachable: boolean;
|
|
723
715
|
local_only: boolean;
|
|
724
716
|
results: {
|
|
725
|
-
error: string | null;
|
|
726
717
|
name: string;
|
|
727
718
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
719
|
+
payload: unknown;
|
|
720
|
+
error: string | null;
|
|
728
721
|
detail: string | null;
|
|
729
|
-
payload?: unknown;
|
|
730
722
|
}[];
|
|
723
|
+
error: string | null;
|
|
731
724
|
mode: "fleet";
|
|
732
725
|
} | {
|
|
733
|
-
error: string | null;
|
|
734
726
|
op: string;
|
|
735
727
|
reachable: boolean;
|
|
736
728
|
local_only: boolean;
|
|
737
729
|
results: {
|
|
738
|
-
error: string | null;
|
|
739
730
|
name: string;
|
|
740
731
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
732
|
+
payload: unknown;
|
|
733
|
+
error: string | null;
|
|
741
734
|
detail: string | null;
|
|
742
|
-
payload?: unknown;
|
|
743
735
|
}[];
|
|
736
|
+
error: string | null;
|
|
744
737
|
mode: "unreachable";
|
|
745
738
|
};
|
|
746
739
|
}>;
|
|
747
740
|
readonly getMcpStatus: (signal?: AbortSignal) => Promise<{
|
|
741
|
+
bound: Record<string, string[]>;
|
|
748
742
|
failed: {
|
|
749
|
-
status: string;
|
|
750
743
|
title: string;
|
|
744
|
+
status: string;
|
|
751
745
|
}[];
|
|
752
|
-
bound: Record<string, string[]>;
|
|
753
746
|
}>;
|
|
754
747
|
readonly reloadMcp: (title: string) => Promise<{
|
|
755
|
-
error: string | null;
|
|
756
748
|
op: string;
|
|
757
749
|
reachable: boolean;
|
|
758
750
|
local_only: boolean;
|
|
759
751
|
results: {
|
|
760
|
-
error: string | null;
|
|
761
752
|
name: string;
|
|
762
753
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
754
|
+
payload: unknown;
|
|
755
|
+
error: string | null;
|
|
763
756
|
detail: string | null;
|
|
764
|
-
payload?: unknown;
|
|
765
757
|
}[];
|
|
758
|
+
error: string | null;
|
|
766
759
|
}>;
|
|
767
760
|
readonly listSubMcp: (signal?: AbortSignal) => Promise<Record<string, {
|
|
768
761
|
tools: string[];
|
|
769
762
|
transport: string;
|
|
770
763
|
}>>;
|
|
771
764
|
readonly createSubMcp: (slug: string, tools: string[], transport?: string) => Promise<{
|
|
765
|
+
slug: string;
|
|
772
766
|
tools: string[];
|
|
773
767
|
transport: string;
|
|
774
|
-
slug: string;
|
|
775
768
|
}>;
|
|
776
769
|
readonly deleteSubMcp: (slug: string) => Promise<{
|
|
777
770
|
slug: string;
|
|
@@ -788,30 +781,30 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
788
781
|
mode: "local-only";
|
|
789
782
|
note: string;
|
|
790
783
|
} | {
|
|
791
|
-
error: string | null;
|
|
792
784
|
op: string;
|
|
793
785
|
reachable: boolean;
|
|
794
786
|
local_only: boolean;
|
|
795
787
|
results: {
|
|
796
|
-
error: string | null;
|
|
797
788
|
name: string;
|
|
798
789
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
790
|
+
payload: unknown;
|
|
791
|
+
error: string | null;
|
|
799
792
|
detail: string | null;
|
|
800
|
-
payload?: unknown;
|
|
801
793
|
}[];
|
|
794
|
+
error: string | null;
|
|
802
795
|
mode: "fleet";
|
|
803
796
|
} | {
|
|
804
|
-
error: string | null;
|
|
805
797
|
op: string;
|
|
806
798
|
reachable: boolean;
|
|
807
799
|
local_only: boolean;
|
|
808
800
|
results: {
|
|
809
|
-
error: string | null;
|
|
810
801
|
name: string;
|
|
811
802
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
803
|
+
payload: unknown;
|
|
804
|
+
error: string | null;
|
|
812
805
|
detail: string | null;
|
|
813
|
-
payload?: unknown;
|
|
814
806
|
}[];
|
|
807
|
+
error: string | null;
|
|
815
808
|
mode: "unreachable";
|
|
816
809
|
};
|
|
817
810
|
}>;
|
|
@@ -836,8 +829,8 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
836
829
|
ok: true;
|
|
837
830
|
}>;
|
|
838
831
|
readonly diffSettingsProfile: (name: string) => Promise<{
|
|
839
|
-
removed: string[];
|
|
840
832
|
added: string[];
|
|
833
|
+
removed: string[];
|
|
841
834
|
changed: {
|
|
842
835
|
key: string;
|
|
843
836
|
old: string;
|
|
@@ -847,73 +840,73 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
847
840
|
refused_keys: string[];
|
|
848
841
|
}>;
|
|
849
842
|
readonly applySettingsProfile: (name: string) => Promise<{
|
|
843
|
+
hot: string[];
|
|
844
|
+
recycle: {
|
|
845
|
+
name: string;
|
|
846
|
+
kind: string;
|
|
847
|
+
status: string;
|
|
848
|
+
generation_before: number;
|
|
849
|
+
}[];
|
|
850
|
+
fresh: {
|
|
851
|
+
name: string;
|
|
852
|
+
kind: string;
|
|
853
|
+
generation: number;
|
|
854
|
+
}[];
|
|
855
|
+
refused: {
|
|
856
|
+
key: string;
|
|
857
|
+
reason: string;
|
|
858
|
+
}[];
|
|
850
859
|
fanout: {
|
|
851
860
|
mode: "local-only";
|
|
852
861
|
note: string;
|
|
853
862
|
} | {
|
|
854
|
-
error: string | null;
|
|
855
863
|
op: string;
|
|
856
864
|
reachable: boolean;
|
|
857
865
|
local_only: boolean;
|
|
858
866
|
results: {
|
|
859
|
-
error: string | null;
|
|
860
867
|
name: string;
|
|
861
868
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
869
|
+
payload: unknown;
|
|
870
|
+
error: string | null;
|
|
862
871
|
detail: string | null;
|
|
863
|
-
payload?: unknown;
|
|
864
872
|
}[];
|
|
873
|
+
error: string | null;
|
|
865
874
|
mode: "fleet";
|
|
866
875
|
} | {
|
|
867
|
-
error: string | null;
|
|
868
876
|
op: string;
|
|
869
877
|
reachable: boolean;
|
|
870
878
|
local_only: boolean;
|
|
871
879
|
results: {
|
|
872
|
-
error: string | null;
|
|
873
880
|
name: string;
|
|
874
881
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
882
|
+
payload: unknown;
|
|
883
|
+
error: string | null;
|
|
875
884
|
detail: string | null;
|
|
876
|
-
payload?: unknown;
|
|
877
885
|
}[];
|
|
886
|
+
error: string | null;
|
|
878
887
|
mode: "unreachable";
|
|
879
888
|
};
|
|
880
|
-
hot: string[];
|
|
881
|
-
recycle: {
|
|
882
|
-
name: string;
|
|
883
|
-
status: string;
|
|
884
|
-
kind: string;
|
|
885
|
-
generation_before: number;
|
|
886
|
-
}[];
|
|
887
|
-
fresh: {
|
|
888
|
-
name: string;
|
|
889
|
-
kind: string;
|
|
890
|
-
generation: number;
|
|
891
|
-
}[];
|
|
892
|
-
refused: {
|
|
893
|
-
key: string;
|
|
894
|
-
reason: string;
|
|
895
|
-
}[];
|
|
896
889
|
}>;
|
|
897
890
|
readonly listSettingsProfileVersions: (name: string, signal?: AbortSignal) => Promise<{
|
|
898
|
-
tags: string[];
|
|
899
891
|
version: number;
|
|
892
|
+
tags: string[];
|
|
900
893
|
created_at: string;
|
|
901
894
|
is_current: boolean;
|
|
902
895
|
}[]>;
|
|
903
896
|
readonly getSettingsProfileVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
|
|
904
|
-
tags: string[];
|
|
905
897
|
version: number;
|
|
898
|
+
tags: string[];
|
|
899
|
+
created_at: string;
|
|
900
|
+
is_current: boolean;
|
|
906
901
|
body: {
|
|
907
902
|
description: string;
|
|
908
903
|
env: Record<string, string>;
|
|
909
904
|
secret_keys: string[];
|
|
910
905
|
};
|
|
911
|
-
created_at: string;
|
|
912
|
-
is_current: boolean;
|
|
913
906
|
}>;
|
|
914
907
|
readonly rollbackSettingsProfile: (name: string, version: number) => Promise<{
|
|
915
|
-
version: number;
|
|
916
908
|
ok: true;
|
|
909
|
+
version: number;
|
|
917
910
|
}>;
|
|
918
911
|
readonly setMcpSecretEnv: (body: SetMcpSecretEnvBody) => Promise<{
|
|
919
912
|
status: string;
|
|
@@ -922,77 +915,70 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
922
915
|
mode: "local-only";
|
|
923
916
|
note: string;
|
|
924
917
|
} | {
|
|
925
|
-
error: string | null;
|
|
926
918
|
op: string;
|
|
927
919
|
reachable: boolean;
|
|
928
920
|
local_only: boolean;
|
|
929
921
|
results: {
|
|
930
|
-
error: string | null;
|
|
931
922
|
name: string;
|
|
932
923
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
924
|
+
payload: unknown;
|
|
925
|
+
error: string | null;
|
|
933
926
|
detail: string | null;
|
|
934
|
-
payload?: unknown;
|
|
935
927
|
}[];
|
|
928
|
+
error: string | null;
|
|
936
929
|
mode: "fleet";
|
|
937
930
|
} | {
|
|
938
|
-
error: string | null;
|
|
939
931
|
op: string;
|
|
940
932
|
reachable: boolean;
|
|
941
933
|
local_only: boolean;
|
|
942
934
|
results: {
|
|
943
|
-
error: string | null;
|
|
944
935
|
name: string;
|
|
945
936
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
937
|
+
payload: unknown;
|
|
938
|
+
error: string | null;
|
|
946
939
|
detail: string | null;
|
|
947
|
-
payload?: unknown;
|
|
948
940
|
}[];
|
|
941
|
+
error: string | null;
|
|
949
942
|
mode: "unreachable";
|
|
950
943
|
};
|
|
951
944
|
}>;
|
|
952
945
|
readonly getManifestPreserved: (signal?: AbortSignal) => Promise<{
|
|
953
|
-
mcp:
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
provider_id: import("zod").ZodString;
|
|
957
|
-
sub_service: import("zod").ZodString;
|
|
958
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
959
|
-
connection_id: string;
|
|
960
|
-
provider_id: string;
|
|
961
|
-
sub_service: string;
|
|
962
|
-
}, {
|
|
946
|
+
mcp: {
|
|
947
|
+
[x: string]: unknown;
|
|
948
|
+
managed?: {
|
|
963
949
|
connection_id: string;
|
|
964
950
|
provider_id: string;
|
|
965
951
|
sub_service: string;
|
|
966
|
-
}
|
|
967
|
-
}
|
|
952
|
+
} | null | undefined;
|
|
953
|
+
}[];
|
|
968
954
|
user_tools: string[];
|
|
969
955
|
}>;
|
|
970
956
|
readonly getMcpEnvRefs: (signal?: AbortSignal) => Promise<{
|
|
971
|
-
set: boolean;
|
|
972
957
|
var: string;
|
|
973
958
|
pointer: string;
|
|
974
959
|
has_default: boolean;
|
|
960
|
+
set: boolean;
|
|
975
961
|
}[]>;
|
|
976
962
|
readonly listProviders: (signal?: AbortSignal) => Promise<{
|
|
977
963
|
providers: {
|
|
978
|
-
description: string;
|
|
979
|
-
kind: "oauth" | "none";
|
|
980
964
|
id: string;
|
|
981
965
|
display_name: string;
|
|
966
|
+
description: string;
|
|
982
967
|
icon_url: string;
|
|
968
|
+
kind: "oauth" | "none";
|
|
983
969
|
origin: "system" | "community";
|
|
984
970
|
category: string;
|
|
985
971
|
sub_services: {
|
|
986
|
-
description: string;
|
|
987
972
|
id: string;
|
|
988
973
|
display_name: string;
|
|
974
|
+
description: string;
|
|
989
975
|
scopes: string[];
|
|
990
976
|
}[];
|
|
991
977
|
config_fields: {
|
|
992
978
|
key: string;
|
|
993
|
-
required: boolean;
|
|
994
979
|
label: string;
|
|
995
980
|
target: "env" | "header";
|
|
981
|
+
required: boolean;
|
|
996
982
|
secret: boolean;
|
|
997
983
|
}[];
|
|
998
984
|
}[];
|
|
@@ -1004,104 +990,104 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1004
990
|
}>;
|
|
1005
991
|
readonly listConnections: (signal?: AbortSignal) => Promise<{
|
|
1006
992
|
items: {
|
|
1007
|
-
kind: "oauth" | "none";
|
|
1008
|
-
created_at: string;
|
|
1009
993
|
connection_id: string;
|
|
1010
994
|
provider_id: string;
|
|
1011
995
|
alias: string;
|
|
996
|
+
kind: "oauth" | "none";
|
|
1012
997
|
account_identity: string | null;
|
|
1013
998
|
enabled_sub_services: string[];
|
|
1014
999
|
granted_scopes: string[];
|
|
1015
1000
|
unreachable_sub_services: string[];
|
|
1016
1001
|
auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
|
|
1002
|
+
created_at: string;
|
|
1017
1003
|
}[];
|
|
1018
1004
|
total: number;
|
|
1019
1005
|
unhealthy?: number | undefined;
|
|
1020
1006
|
}>;
|
|
1021
1007
|
readonly getConnection: (id: string, signal?: AbortSignal) => Promise<{
|
|
1022
|
-
kind: "oauth" | "none";
|
|
1023
|
-
created_at: string;
|
|
1024
1008
|
connection_id: string;
|
|
1025
1009
|
provider_id: string;
|
|
1026
1010
|
alias: string;
|
|
1011
|
+
kind: "oauth" | "none";
|
|
1027
1012
|
account_identity: string | null;
|
|
1028
1013
|
enabled_sub_services: string[];
|
|
1029
1014
|
granted_scopes: string[];
|
|
1030
1015
|
unreachable_sub_services: string[];
|
|
1031
1016
|
auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
|
|
1017
|
+
created_at: string;
|
|
1032
1018
|
}>;
|
|
1033
1019
|
readonly startConnect: (args: StartConnectArgs) => Promise<{
|
|
1034
1020
|
flow_id: string;
|
|
1035
1021
|
authorize_url: string;
|
|
1036
1022
|
} | {
|
|
1037
1023
|
connection_id: string;
|
|
1024
|
+
added_manifest_entries: string[];
|
|
1038
1025
|
fanout: {
|
|
1039
1026
|
mode: "local-only";
|
|
1040
1027
|
note: string;
|
|
1041
1028
|
} | {
|
|
1042
|
-
error: string | null;
|
|
1043
1029
|
op: string;
|
|
1044
1030
|
reachable: boolean;
|
|
1045
1031
|
local_only: boolean;
|
|
1046
1032
|
results: {
|
|
1047
|
-
error: string | null;
|
|
1048
1033
|
name: string;
|
|
1049
1034
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1035
|
+
payload: unknown;
|
|
1036
|
+
error: string | null;
|
|
1050
1037
|
detail: string | null;
|
|
1051
|
-
payload?: unknown;
|
|
1052
1038
|
}[];
|
|
1039
|
+
error: string | null;
|
|
1053
1040
|
mode: "fleet";
|
|
1054
1041
|
} | {
|
|
1055
|
-
error: string | null;
|
|
1056
1042
|
op: string;
|
|
1057
1043
|
reachable: boolean;
|
|
1058
1044
|
local_only: boolean;
|
|
1059
1045
|
results: {
|
|
1060
|
-
error: string | null;
|
|
1061
1046
|
name: string;
|
|
1062
1047
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1048
|
+
payload: unknown;
|
|
1049
|
+
error: string | null;
|
|
1063
1050
|
detail: string | null;
|
|
1064
|
-
payload?: unknown;
|
|
1065
1051
|
}[];
|
|
1052
|
+
error: string | null;
|
|
1066
1053
|
mode: "unreachable";
|
|
1067
1054
|
} | null;
|
|
1068
|
-
added_manifest_entries: string[];
|
|
1069
1055
|
}>;
|
|
1070
1056
|
readonly disconnect: (id: string) => Promise<{
|
|
1071
1057
|
connection_id: string;
|
|
1058
|
+
upstream_revoke_outcome: "success" | "failed" | "skipped";
|
|
1059
|
+
upstream_revoke_status: number | null;
|
|
1060
|
+
removed_manifest_entries: string[];
|
|
1072
1061
|
fanout: {
|
|
1073
1062
|
mode: "local-only";
|
|
1074
1063
|
note: string;
|
|
1075
1064
|
} | {
|
|
1076
|
-
error: string | null;
|
|
1077
1065
|
op: string;
|
|
1078
1066
|
reachable: boolean;
|
|
1079
1067
|
local_only: boolean;
|
|
1080
1068
|
results: {
|
|
1081
|
-
error: string | null;
|
|
1082
1069
|
name: string;
|
|
1083
1070
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1071
|
+
payload: unknown;
|
|
1072
|
+
error: string | null;
|
|
1084
1073
|
detail: string | null;
|
|
1085
|
-
payload?: unknown;
|
|
1086
1074
|
}[];
|
|
1075
|
+
error: string | null;
|
|
1087
1076
|
mode: "fleet";
|
|
1088
1077
|
} | {
|
|
1089
|
-
error: string | null;
|
|
1090
1078
|
op: string;
|
|
1091
1079
|
reachable: boolean;
|
|
1092
1080
|
local_only: boolean;
|
|
1093
1081
|
results: {
|
|
1094
|
-
error: string | null;
|
|
1095
1082
|
name: string;
|
|
1096
1083
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1084
|
+
payload: unknown;
|
|
1085
|
+
error: string | null;
|
|
1097
1086
|
detail: string | null;
|
|
1098
|
-
payload?: unknown;
|
|
1099
1087
|
}[];
|
|
1088
|
+
error: string | null;
|
|
1100
1089
|
mode: "unreachable";
|
|
1101
1090
|
} | null;
|
|
1102
|
-
upstream_revoke_outcome: "failed" | "success" | "skipped";
|
|
1103
|
-
upstream_revoke_status: number | null;
|
|
1104
|
-
removed_manifest_entries: string[];
|
|
1105
1091
|
}>;
|
|
1106
1092
|
readonly reconnect: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
|
|
1107
1093
|
flow_id: string;
|
|
@@ -1109,83 +1095,83 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1109
1095
|
}>;
|
|
1110
1096
|
readonly patchSubServices: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
|
|
1111
1097
|
connection_id: string;
|
|
1098
|
+
enabled_sub_services: string[];
|
|
1099
|
+
consent_required: boolean;
|
|
1100
|
+
flow_id: string | null;
|
|
1101
|
+
authorize_url: string | null;
|
|
1102
|
+
added_manifest_entries: string[];
|
|
1103
|
+
removed_manifest_entries: string[];
|
|
1112
1104
|
fanout: {
|
|
1113
1105
|
mode: "local-only";
|
|
1114
1106
|
note: string;
|
|
1115
1107
|
} | {
|
|
1116
|
-
error: string | null;
|
|
1117
1108
|
op: string;
|
|
1118
1109
|
reachable: boolean;
|
|
1119
1110
|
local_only: boolean;
|
|
1120
1111
|
results: {
|
|
1121
|
-
error: string | null;
|
|
1122
1112
|
name: string;
|
|
1123
1113
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1114
|
+
payload: unknown;
|
|
1115
|
+
error: string | null;
|
|
1124
1116
|
detail: string | null;
|
|
1125
|
-
payload?: unknown;
|
|
1126
1117
|
}[];
|
|
1118
|
+
error: string | null;
|
|
1127
1119
|
mode: "fleet";
|
|
1128
1120
|
} | {
|
|
1129
|
-
error: string | null;
|
|
1130
1121
|
op: string;
|
|
1131
1122
|
reachable: boolean;
|
|
1132
1123
|
local_only: boolean;
|
|
1133
1124
|
results: {
|
|
1134
|
-
error: string | null;
|
|
1135
1125
|
name: string;
|
|
1136
1126
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1127
|
+
payload: unknown;
|
|
1128
|
+
error: string | null;
|
|
1137
1129
|
detail: string | null;
|
|
1138
|
-
payload?: unknown;
|
|
1139
1130
|
}[];
|
|
1131
|
+
error: string | null;
|
|
1140
1132
|
mode: "unreachable";
|
|
1141
1133
|
} | null;
|
|
1142
|
-
enabled_sub_services: string[];
|
|
1143
|
-
flow_id: string | null;
|
|
1144
|
-
authorize_url: string | null;
|
|
1145
|
-
added_manifest_entries: string[];
|
|
1146
|
-
removed_manifest_entries: string[];
|
|
1147
|
-
consent_required: boolean;
|
|
1148
1134
|
}>;
|
|
1149
1135
|
readonly completeOAuth: (state: string, code: string, error?: string) => Promise<{
|
|
1150
1136
|
kind: "success";
|
|
1151
1137
|
connection_id: string;
|
|
1138
|
+
return_url: string;
|
|
1152
1139
|
fanout: {
|
|
1153
1140
|
mode: "local-only";
|
|
1154
1141
|
note: string;
|
|
1155
1142
|
} | {
|
|
1156
|
-
error: string | null;
|
|
1157
1143
|
op: string;
|
|
1158
1144
|
reachable: boolean;
|
|
1159
1145
|
local_only: boolean;
|
|
1160
1146
|
results: {
|
|
1161
|
-
error: string | null;
|
|
1162
1147
|
name: string;
|
|
1163
1148
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1149
|
+
payload: unknown;
|
|
1150
|
+
error: string | null;
|
|
1164
1151
|
detail: string | null;
|
|
1165
|
-
payload?: unknown;
|
|
1166
1152
|
}[];
|
|
1153
|
+
error: string | null;
|
|
1167
1154
|
mode: "fleet";
|
|
1168
1155
|
} | {
|
|
1169
|
-
error: string | null;
|
|
1170
1156
|
op: string;
|
|
1171
1157
|
reachable: boolean;
|
|
1172
1158
|
local_only: boolean;
|
|
1173
1159
|
results: {
|
|
1174
|
-
error: string | null;
|
|
1175
1160
|
name: string;
|
|
1176
1161
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1162
|
+
payload: unknown;
|
|
1163
|
+
error: string | null;
|
|
1177
1164
|
detail: string | null;
|
|
1178
|
-
payload?: unknown;
|
|
1179
1165
|
}[];
|
|
1166
|
+
error: string | null;
|
|
1180
1167
|
mode: "unreachable";
|
|
1181
1168
|
} | null;
|
|
1182
|
-
return_url: string;
|
|
1183
1169
|
} | {
|
|
1184
|
-
reason: string;
|
|
1185
1170
|
kind: "failed";
|
|
1171
|
+
reason: string;
|
|
1186
1172
|
} | {
|
|
1187
|
-
message: string;
|
|
1188
1173
|
kind: "cancelled";
|
|
1174
|
+
message: string;
|
|
1189
1175
|
}>;
|
|
1190
1176
|
readonly listStudioPlugins: (signal?: AbortSignal) => Promise<{
|
|
1191
1177
|
name: string;
|
|
@@ -1201,38 +1187,37 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1201
1187
|
};
|
|
1202
1188
|
}[]>;
|
|
1203
1189
|
readonly listInteractions: (page: number, pageSize: number, signal?: AbortSignal) => Promise<{
|
|
1190
|
+
total: number;
|
|
1191
|
+
page: number;
|
|
1192
|
+
page_size: number;
|
|
1193
|
+
next_page: number | null;
|
|
1194
|
+
truncated: boolean;
|
|
1204
1195
|
items: {
|
|
1205
|
-
created_at: string;
|
|
1206
1196
|
interaction_id: string;
|
|
1207
1197
|
group_id: string;
|
|
1208
1198
|
question: string;
|
|
1209
|
-
answer_format: "text" | "
|
|
1199
|
+
answer_format: "text" | "external" | "confirm" | "select" | "form";
|
|
1210
1200
|
format_payload: Record<string, unknown>;
|
|
1201
|
+
created_at: string;
|
|
1211
1202
|
timeout_at: string;
|
|
1212
1203
|
sensitive: boolean;
|
|
1213
|
-
origin?: string | undefined;
|
|
1214
1204
|
server_verified?: boolean | undefined;
|
|
1215
1205
|
channel?: string | undefined;
|
|
1216
1206
|
recipient?: string | undefined;
|
|
1207
|
+
origin?: string | undefined;
|
|
1217
1208
|
audience?: string | undefined;
|
|
1218
1209
|
media?: unknown[] | undefined;
|
|
1219
1210
|
}[];
|
|
1220
|
-
total: number;
|
|
1221
|
-
page: number;
|
|
1222
|
-
page_size: number;
|
|
1223
|
-
next_page: number | null;
|
|
1224
|
-
truncated: boolean;
|
|
1225
1211
|
}>;
|
|
1226
1212
|
readonly answerInteraction: (interactionId: string, answer: unknown) => Promise<{
|
|
1227
|
-
status: string;
|
|
1228
1213
|
interaction_id: string;
|
|
1214
|
+
status: string;
|
|
1229
1215
|
}>;
|
|
1230
1216
|
readonly listChannels: (signal?: AbortSignal) => Promise<{
|
|
1231
1217
|
channels: string[];
|
|
1232
1218
|
}>;
|
|
1233
1219
|
readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
|
|
1234
1220
|
items: {
|
|
1235
|
-
channel: string | null;
|
|
1236
1221
|
route_name: string;
|
|
1237
1222
|
door: "channel" | "api";
|
|
1238
1223
|
target_kind: "tool" | "agent";
|
|
@@ -1240,6 +1225,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1240
1225
|
payload_expr: string | null;
|
|
1241
1226
|
reply_expr: string | null;
|
|
1242
1227
|
execution_key: string;
|
|
1228
|
+
channel: string | null;
|
|
1243
1229
|
our_identity: string | null;
|
|
1244
1230
|
callback_url: string | null;
|
|
1245
1231
|
execution_key_fingerprint: string;
|
|
@@ -1247,6 +1233,11 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1247
1233
|
total: number;
|
|
1248
1234
|
}>;
|
|
1249
1235
|
readonly listConversationThreads: (routeName: string, page: number, pageSize: number, filters?: ConversationThreadFilters, signal?: AbortSignal) => Promise<{
|
|
1236
|
+
total: number;
|
|
1237
|
+
page: number;
|
|
1238
|
+
page_size: number;
|
|
1239
|
+
next_page: number | null;
|
|
1240
|
+
truncated: boolean;
|
|
1250
1241
|
items: {
|
|
1251
1242
|
thread_id: string;
|
|
1252
1243
|
client_address: string;
|
|
@@ -1254,74 +1245,69 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1254
1245
|
message_count: number;
|
|
1255
1246
|
last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
1256
1247
|
}[];
|
|
1248
|
+
}>;
|
|
1249
|
+
readonly readConversationTranscript: (query: ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
|
|
1250
|
+
order: "asc" | "desc";
|
|
1257
1251
|
total: number;
|
|
1258
1252
|
page: number;
|
|
1259
1253
|
page_size: number;
|
|
1260
1254
|
next_page: number | null;
|
|
1261
1255
|
truncated: boolean;
|
|
1262
|
-
}>;
|
|
1263
|
-
readonly readConversationTranscript: (query: ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
|
|
1264
1256
|
items: {
|
|
1265
|
-
|
|
1266
|
-
origin: "client" | "operator";
|
|
1257
|
+
message_id: string;
|
|
1267
1258
|
route_name: string;
|
|
1268
1259
|
door: "channel" | "api";
|
|
1269
1260
|
thread_id: string;
|
|
1270
1261
|
client_address: string;
|
|
1271
|
-
message_id: string;
|
|
1272
1262
|
caller_principal: string | null;
|
|
1273
1263
|
inbound_text: string;
|
|
1274
1264
|
answer_status: "error" | "silent" | "answered" | null;
|
|
1275
1265
|
answer: string | null;
|
|
1266
|
+
origin: "client" | "operator";
|
|
1276
1267
|
delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
1268
|
+
created_at: number;
|
|
1277
1269
|
updated_at: number;
|
|
1278
|
-
error?: string | null | undefined;
|
|
1279
1270
|
channel?: string | null | undefined;
|
|
1280
1271
|
our_identity?: string | null | undefined;
|
|
1281
|
-
callback_url?: string | null | undefined;
|
|
1282
1272
|
provider_message_id?: string | null | undefined;
|
|
1273
|
+
callback_url?: string | null | undefined;
|
|
1274
|
+
error?: string | null | undefined;
|
|
1283
1275
|
outbound_message_ids?: string[] | undefined;
|
|
1284
1276
|
attempts?: number | undefined;
|
|
1285
1277
|
}[];
|
|
1278
|
+
}>;
|
|
1279
|
+
readonly searchConversationMessages: (query: ConversationMessageSearchQuery, signal?: AbortSignal) => Promise<{
|
|
1286
1280
|
total: number;
|
|
1287
1281
|
page: number;
|
|
1288
1282
|
page_size: number;
|
|
1289
1283
|
next_page: number | null;
|
|
1290
1284
|
truncated: boolean;
|
|
1291
|
-
order: "asc" | "desc";
|
|
1292
|
-
}>;
|
|
1293
|
-
readonly searchConversationMessages: (query: ConversationMessageSearchQuery, signal?: AbortSignal) => Promise<{
|
|
1294
1285
|
items: {
|
|
1295
|
-
|
|
1296
|
-
origin: "client" | "operator";
|
|
1286
|
+
message_id: string;
|
|
1297
1287
|
route_name: string;
|
|
1298
1288
|
door: "channel" | "api";
|
|
1299
1289
|
thread_id: string;
|
|
1300
1290
|
client_address: string;
|
|
1301
|
-
message_id: string;
|
|
1302
1291
|
caller_principal: string | null;
|
|
1303
1292
|
inbound_text: string;
|
|
1304
1293
|
answer_status: "error" | "silent" | "answered" | null;
|
|
1305
1294
|
answer: string | null;
|
|
1295
|
+
origin: "client" | "operator";
|
|
1306
1296
|
delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
|
|
1297
|
+
created_at: number;
|
|
1307
1298
|
updated_at: number;
|
|
1308
|
-
error?: string | null | undefined;
|
|
1309
1299
|
channel?: string | null | undefined;
|
|
1310
1300
|
our_identity?: string | null | undefined;
|
|
1311
|
-
callback_url?: string | null | undefined;
|
|
1312
1301
|
provider_message_id?: string | null | undefined;
|
|
1302
|
+
callback_url?: string | null | undefined;
|
|
1303
|
+
error?: string | null | undefined;
|
|
1313
1304
|
outbound_message_ids?: string[] | undefined;
|
|
1314
1305
|
attempts?: number | undefined;
|
|
1315
1306
|
}[];
|
|
1316
|
-
total: number;
|
|
1317
|
-
page: number;
|
|
1318
|
-
page_size: number;
|
|
1319
|
-
next_page: number | null;
|
|
1320
|
-
truncated: boolean;
|
|
1321
1307
|
}>;
|
|
1322
1308
|
readonly sendConversationThreadMessage: (routeName: string, body: ConversationThreadMessageBody) => Promise<{
|
|
1323
|
-
thread_id: string;
|
|
1324
1309
|
message_id: string;
|
|
1310
|
+
thread_id: string;
|
|
1325
1311
|
}>;
|
|
1326
1312
|
readonly getConversationThreadMode: (routeName: string, threadId: string, signal?: AbortSignal) => Promise<{
|
|
1327
1313
|
mode: "agent" | "manual";
|
|
@@ -1334,9 +1320,9 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1334
1320
|
readonly getWebEntryGate: (identity: string, signal?: AbortSignal) => Promise<{
|
|
1335
1321
|
enabled: boolean;
|
|
1336
1322
|
codes: {
|
|
1337
|
-
created_at: string;
|
|
1338
|
-
label: string | null;
|
|
1339
1323
|
code_id: string;
|
|
1324
|
+
label: string | null;
|
|
1325
|
+
created_at: string;
|
|
1340
1326
|
expires_at: string | null;
|
|
1341
1327
|
}[];
|
|
1342
1328
|
}>;
|
|
@@ -1353,18 +1339,18 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1353
1339
|
}>;
|
|
1354
1340
|
readonly listNotifications: (signal?: AbortSignal) => Promise<{
|
|
1355
1341
|
notifications: {
|
|
1356
|
-
message: string;
|
|
1357
|
-
created_at: string;
|
|
1358
1342
|
id: string;
|
|
1343
|
+
message: string;
|
|
1359
1344
|
recipient: string | null;
|
|
1360
|
-
|
|
1345
|
+
created_at: string;
|
|
1346
|
+
audience?: string | null | undefined;
|
|
1347
|
+
media?: unknown[] | null | undefined;
|
|
1361
1348
|
template?: {
|
|
1362
1349
|
name: string;
|
|
1363
1350
|
language: string;
|
|
1364
1351
|
parameters: string[];
|
|
1365
1352
|
} | null | undefined;
|
|
1366
|
-
|
|
1367
|
-
media?: unknown[] | null | undefined;
|
|
1353
|
+
options?: string[] | null | undefined;
|
|
1368
1354
|
}[];
|
|
1369
1355
|
}>;
|
|
1370
1356
|
readonly listAgents: (signal?: AbortSignal) => Promise<{
|
|
@@ -1392,9 +1378,9 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1392
1378
|
readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
|
|
1393
1379
|
items: {
|
|
1394
1380
|
name: string;
|
|
1381
|
+
topic: string;
|
|
1395
1382
|
tool: string;
|
|
1396
1383
|
execution_key: string;
|
|
1397
|
-
topic: string;
|
|
1398
1384
|
tool_kwargs: Record<string, unknown>;
|
|
1399
1385
|
condition: string | null;
|
|
1400
1386
|
condition_id: string | null;
|
|
@@ -1405,23 +1391,23 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1405
1391
|
}[];
|
|
1406
1392
|
total: number;
|
|
1407
1393
|
topic_verifiers: Record<string, {
|
|
1408
|
-
config: Record<string, unknown>;
|
|
1409
1394
|
verifier: string;
|
|
1395
|
+
config: Record<string, unknown>;
|
|
1410
1396
|
}>;
|
|
1411
1397
|
trigger_auth: Record<string, "public" | "verifier" | "token" | "token+api_key" | "out-of-service">;
|
|
1412
1398
|
}>;
|
|
1413
1399
|
readonly registerHook: (params: s.HookParams) => Promise<{
|
|
1414
|
-
name: string;
|
|
1415
1400
|
registered: boolean;
|
|
1401
|
+
name: string;
|
|
1416
1402
|
}>;
|
|
1417
1403
|
readonly unregisterHook: (name: string) => Promise<{
|
|
1418
|
-
name: string;
|
|
1419
1404
|
removed: boolean;
|
|
1405
|
+
name: string;
|
|
1420
1406
|
}>;
|
|
1421
1407
|
readonly listHookVerifiers: (signal?: AbortSignal) => Promise<string[]>;
|
|
1422
1408
|
readonly setTopicVerifier: (topic: string, body: TopicVerifierBody) => Promise<{
|
|
1423
|
-
verifier: string;
|
|
1424
1409
|
topic: string;
|
|
1410
|
+
verifier: string;
|
|
1425
1411
|
}>;
|
|
1426
1412
|
readonly deleteTopicVerifier: (topic: string) => Promise<{
|
|
1427
1413
|
removed: boolean;
|
|
@@ -1429,28 +1415,28 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1429
1415
|
}>;
|
|
1430
1416
|
readonly createTriggerLink: (body: TriggerLinkCreateBody) => Promise<{
|
|
1431
1417
|
name: string;
|
|
1432
|
-
|
|
1418
|
+
trigger_path: string;
|
|
1433
1419
|
token: string;
|
|
1434
1420
|
topic: string;
|
|
1435
|
-
|
|
1421
|
+
expires_at: string | null;
|
|
1436
1422
|
}>;
|
|
1437
1423
|
readonly listTriggerLinks: (signal?: AbortSignal) => Promise<{
|
|
1438
1424
|
items: {
|
|
1439
1425
|
name: string;
|
|
1440
|
-
created_at: string;
|
|
1441
|
-
execution_key: string;
|
|
1442
|
-
expires_at: string | null;
|
|
1443
1426
|
topic: string;
|
|
1444
|
-
|
|
1427
|
+
execution_key: string;
|
|
1445
1428
|
trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
|
|
1429
|
+
tool_kwargs: Record<string, unknown> | null;
|
|
1446
1430
|
created_by: string | null;
|
|
1431
|
+
created_at: string;
|
|
1432
|
+
expires_at: string | null;
|
|
1447
1433
|
token_hash_prefix: string;
|
|
1448
1434
|
}[];
|
|
1449
1435
|
total: number;
|
|
1450
1436
|
}>;
|
|
1451
1437
|
readonly deleteTriggerLink: (name: string) => Promise<{
|
|
1452
|
-
name: string;
|
|
1453
1438
|
removed: boolean;
|
|
1439
|
+
name: string;
|
|
1454
1440
|
}>;
|
|
1455
1441
|
readonly getMcpConfigSchema: (signal?: AbortSignal) => Promise<Record<string, unknown>>;
|
|
1456
1442
|
readonly getSettingsSchema: (signal?: AbortSignal) => Promise<{
|
|
@@ -1460,22 +1446,22 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1460
1446
|
qualname: string;
|
|
1461
1447
|
fields: {
|
|
1462
1448
|
name: string;
|
|
1463
|
-
|
|
1449
|
+
env_var: string;
|
|
1464
1450
|
type: string;
|
|
1451
|
+
default: unknown;
|
|
1465
1452
|
required: boolean;
|
|
1466
1453
|
secret: boolean;
|
|
1467
|
-
|
|
1454
|
+
description: string | null;
|
|
1468
1455
|
nested_group: string | null;
|
|
1469
1456
|
default_namespace_var: string | null;
|
|
1470
|
-
value
|
|
1471
|
-
default?: unknown;
|
|
1457
|
+
value: unknown;
|
|
1472
1458
|
}[];
|
|
1473
1459
|
}[];
|
|
1474
1460
|
}>;
|
|
1475
1461
|
readonly listScopes: (signal?: AbortSignal) => Promise<Record<string, string>>;
|
|
1476
1462
|
readonly addUrlToScope: (body: AddUrlToScopeBody) => Promise<{
|
|
1477
|
-
url: string;
|
|
1478
1463
|
scope_id: string;
|
|
1464
|
+
url: string;
|
|
1479
1465
|
}>;
|
|
1480
1466
|
readonly removeUrlFromScope: (body: {
|
|
1481
1467
|
url: string;
|
|
@@ -1488,9 +1474,9 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1488
1474
|
}>;
|
|
1489
1475
|
readonly listAuthRoutes: (signal?: AbortSignal) => Promise<{
|
|
1490
1476
|
path: string;
|
|
1491
|
-
tags: string[];
|
|
1492
1477
|
methods: string[];
|
|
1493
1478
|
mapped: string | null;
|
|
1479
|
+
tags: string[];
|
|
1494
1480
|
summary: string;
|
|
1495
1481
|
action: "secret" | "read" | "write" | "fenced" | null;
|
|
1496
1482
|
}[]>;
|
|
@@ -1507,10 +1493,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1507
1493
|
scopes: string[];
|
|
1508
1494
|
condition: string | null;
|
|
1509
1495
|
condition_id: string | null;
|
|
1496
|
+
condition_kwargs: unknown;
|
|
1510
1497
|
base_tier: string | null;
|
|
1511
1498
|
allow_all: boolean;
|
|
1512
1499
|
grants: Record<string, "none" | "read" | "write">;
|
|
1513
|
-
condition_kwargs?: unknown;
|
|
1514
1500
|
}[]>;
|
|
1515
1501
|
readonly createRole: (body: RoleCreateBody) => Promise<{
|
|
1516
1502
|
name: string;
|
|
@@ -1518,10 +1504,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1518
1504
|
scopes: string[];
|
|
1519
1505
|
condition: string | null;
|
|
1520
1506
|
condition_id: string | null;
|
|
1507
|
+
condition_kwargs: unknown;
|
|
1521
1508
|
base_tier: string | null;
|
|
1522
1509
|
allow_all: boolean;
|
|
1523
1510
|
grants: Record<string, "none" | "read" | "write">;
|
|
1524
|
-
condition_kwargs?: unknown;
|
|
1525
1511
|
}>;
|
|
1526
1512
|
readonly updateRole: (name: string, body: RoleUpdateBody) => Promise<{
|
|
1527
1513
|
name: string;
|
|
@@ -1529,10 +1515,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1529
1515
|
scopes: string[];
|
|
1530
1516
|
condition: string | null;
|
|
1531
1517
|
condition_id: string | null;
|
|
1518
|
+
condition_kwargs: unknown;
|
|
1532
1519
|
base_tier: string | null;
|
|
1533
1520
|
allow_all: boolean;
|
|
1534
1521
|
grants: Record<string, "none" | "read" | "write">;
|
|
1535
|
-
condition_kwargs?: unknown;
|
|
1536
1522
|
}>;
|
|
1537
1523
|
readonly deleteRole: (name: string) => Promise<{
|
|
1538
1524
|
name: string;
|
|
@@ -1540,7 +1526,6 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1540
1526
|
}>;
|
|
1541
1527
|
readonly listRoleVersions: (name: string, signal?: AbortSignal) => Promise<{
|
|
1542
1528
|
versions: {
|
|
1543
|
-
tags: string[];
|
|
1544
1529
|
version: number;
|
|
1545
1530
|
body: {
|
|
1546
1531
|
name: string;
|
|
@@ -1548,23 +1533,24 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1548
1533
|
scopes: string[];
|
|
1549
1534
|
condition: string | null;
|
|
1550
1535
|
condition_id: string | null;
|
|
1536
|
+
condition_kwargs: unknown;
|
|
1551
1537
|
base_tier: string | null;
|
|
1552
1538
|
allow_all: boolean;
|
|
1553
1539
|
grants: Record<string, "none" | "read" | "write">;
|
|
1554
|
-
condition_kwargs?: unknown;
|
|
1555
1540
|
};
|
|
1541
|
+
tags: string[];
|
|
1556
1542
|
created_at: string;
|
|
1557
1543
|
is_current: boolean;
|
|
1558
1544
|
}[];
|
|
1559
1545
|
audit: {
|
|
1560
|
-
tags: string[];
|
|
1561
1546
|
version: number;
|
|
1562
1547
|
body: {
|
|
1563
1548
|
action: string;
|
|
1564
1549
|
actor: string | null;
|
|
1565
|
-
before
|
|
1566
|
-
after
|
|
1550
|
+
before: unknown;
|
|
1551
|
+
after: unknown;
|
|
1567
1552
|
};
|
|
1553
|
+
tags: string[];
|
|
1568
1554
|
created_at: string;
|
|
1569
1555
|
is_current: boolean;
|
|
1570
1556
|
}[];
|
|
@@ -1575,19 +1561,19 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1575
1561
|
scopes: string[];
|
|
1576
1562
|
condition: string | null;
|
|
1577
1563
|
condition_id: string | null;
|
|
1564
|
+
condition_kwargs: unknown;
|
|
1578
1565
|
base_tier: string | null;
|
|
1579
1566
|
allow_all: boolean;
|
|
1580
1567
|
grants: Record<string, "none" | "read" | "write">;
|
|
1581
|
-
condition_kwargs?: unknown;
|
|
1582
1568
|
}>;
|
|
1583
1569
|
readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
|
|
1570
|
+
user_id: string;
|
|
1584
1571
|
description: string;
|
|
1585
1572
|
scopes: string[];
|
|
1586
|
-
|
|
1573
|
+
policy_data: unknown;
|
|
1587
1574
|
condition?: string | null | undefined;
|
|
1588
1575
|
condition_id?: string | null | undefined;
|
|
1589
1576
|
condition_kwargs?: unknown;
|
|
1590
|
-
policy_data?: unknown;
|
|
1591
1577
|
}[]>;
|
|
1592
1578
|
readonly createApiKey: (body: ApiKeyBody) => Promise<string>;
|
|
1593
1579
|
readonly editApiKey: (userId: string, body: Omit<ApiKeyBody, "user_id">) => Promise<{
|
|
@@ -1595,33 +1581,33 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1595
1581
|
updated: boolean;
|
|
1596
1582
|
}>;
|
|
1597
1583
|
readonly revokeApiKey: (userId: string) => Promise<{
|
|
1598
|
-
revoked: boolean;
|
|
1599
1584
|
user_id: string;
|
|
1585
|
+
revoked: boolean;
|
|
1600
1586
|
}>;
|
|
1601
1587
|
readonly createClaimLink: (body: ClaimLinkBody) => Promise<{
|
|
1602
|
-
expires_at: string;
|
|
1603
|
-
token: string;
|
|
1604
1588
|
claim_path: string;
|
|
1589
|
+
token: string;
|
|
1590
|
+
expires_at: string;
|
|
1605
1591
|
}>;
|
|
1606
1592
|
readonly getMe: (signal?: AbortSignal) => Promise<{
|
|
1607
|
-
tools: string[];
|
|
1608
|
-
scopes: string[];
|
|
1609
1593
|
user_id: string;
|
|
1610
1594
|
owner_user_id: string | null;
|
|
1611
1595
|
admin: boolean;
|
|
1596
|
+
scopes: string[];
|
|
1612
1597
|
routes: {
|
|
1613
1598
|
path: string;
|
|
1614
1599
|
methods: string[];
|
|
1615
1600
|
}[];
|
|
1616
1601
|
route_patterns: {
|
|
1617
|
-
scope_id: string;
|
|
1618
1602
|
pattern: string;
|
|
1603
|
+
scope_id: string;
|
|
1619
1604
|
}[];
|
|
1620
1605
|
sub_mcp: {
|
|
1621
1606
|
tools: string[];
|
|
1622
1607
|
transport: string;
|
|
1623
1608
|
slug: string;
|
|
1624
1609
|
}[];
|
|
1610
|
+
tools: string[];
|
|
1625
1611
|
agents: string[];
|
|
1626
1612
|
mintable: boolean;
|
|
1627
1613
|
}>;
|
|
@@ -1632,13 +1618,13 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1632
1618
|
shape: "form";
|
|
1633
1619
|
id: string;
|
|
1634
1620
|
title: string;
|
|
1621
|
+
purpose: "login" | "bootstrap" | "invite";
|
|
1635
1622
|
fields: {
|
|
1636
1623
|
name: string;
|
|
1637
1624
|
label: string;
|
|
1638
1625
|
secret: boolean;
|
|
1639
1626
|
autocomplete?: string | undefined;
|
|
1640
1627
|
}[];
|
|
1641
|
-
purpose: "login" | "bootstrap" | "invite";
|
|
1642
1628
|
submit_path: string;
|
|
1643
1629
|
} | {
|
|
1644
1630
|
shape: "button";
|
|
@@ -1664,35 +1650,35 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1664
1650
|
user_id: string;
|
|
1665
1651
|
}>;
|
|
1666
1652
|
readonly getAuthCapabilities: (signal?: AbortSignal) => Promise<{
|
|
1653
|
+
mintable: boolean;
|
|
1667
1654
|
providers: {
|
|
1668
1655
|
name: string;
|
|
1669
1656
|
mintable: boolean;
|
|
1670
1657
|
}[];
|
|
1671
|
-
mintable: boolean;
|
|
1672
1658
|
}>;
|
|
1673
1659
|
readonly logout: () => Promise<{
|
|
1674
1660
|
revoked: boolean;
|
|
1675
1661
|
}>;
|
|
1676
1662
|
readonly validateCondition: (body: ValidateConditionBody) => Promise<{
|
|
1677
|
-
result: boolean | null;
|
|
1678
1663
|
ok: boolean;
|
|
1664
|
+
result: boolean | null;
|
|
1679
1665
|
}>;
|
|
1680
1666
|
readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
|
|
1681
|
-
tags: string[];
|
|
1682
1667
|
version: number;
|
|
1683
1668
|
body: {
|
|
1684
1669
|
scopes: string[];
|
|
1670
|
+
policy_data: unknown;
|
|
1685
1671
|
condition: string | null;
|
|
1686
1672
|
condition_id: string | null;
|
|
1687
|
-
condition_kwargs
|
|
1688
|
-
policy_data?: unknown;
|
|
1673
|
+
condition_kwargs: unknown;
|
|
1689
1674
|
};
|
|
1675
|
+
tags: string[];
|
|
1690
1676
|
created_at: string;
|
|
1691
1677
|
is_current: boolean;
|
|
1692
1678
|
}[]>;
|
|
1693
1679
|
readonly rollbackPolicy: (userId: string, version: number) => Promise<{
|
|
1694
|
-
active_version: number;
|
|
1695
1680
|
user_id: string;
|
|
1681
|
+
active_version: number;
|
|
1696
1682
|
}>;
|
|
1697
1683
|
readonly listBackupSections: (signal?: AbortSignal) => Promise<{
|
|
1698
1684
|
name: string;
|
|
@@ -1705,60 +1691,62 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1705
1691
|
}) => Promise<{
|
|
1706
1692
|
ok: boolean;
|
|
1707
1693
|
sections: Record<string, {
|
|
1708
|
-
|
|
1694
|
+
created: number;
|
|
1709
1695
|
updated: number;
|
|
1696
|
+
skipped: number;
|
|
1710
1697
|
errors: string[];
|
|
1711
|
-
|
|
1698
|
+
new_api_keys?: {
|
|
1699
|
+
user_id: string;
|
|
1700
|
+
description: string;
|
|
1701
|
+
api_key: string;
|
|
1702
|
+
}[] | undefined;
|
|
1712
1703
|
fanout?: {
|
|
1713
1704
|
mode: "local-only";
|
|
1714
1705
|
note: string;
|
|
1715
1706
|
} | {
|
|
1716
|
-
error: string | null;
|
|
1717
1707
|
op: string;
|
|
1718
1708
|
reachable: boolean;
|
|
1719
1709
|
local_only: boolean;
|
|
1720
1710
|
results: {
|
|
1721
|
-
error: string | null;
|
|
1722
1711
|
name: string;
|
|
1723
1712
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1713
|
+
payload: unknown;
|
|
1714
|
+
error: string | null;
|
|
1724
1715
|
detail: string | null;
|
|
1725
|
-
payload?: unknown;
|
|
1726
1716
|
}[];
|
|
1717
|
+
error: string | null;
|
|
1727
1718
|
mode: "fleet";
|
|
1728
1719
|
} | {
|
|
1729
|
-
error: string | null;
|
|
1730
1720
|
op: string;
|
|
1731
1721
|
reachable: boolean;
|
|
1732
1722
|
local_only: boolean;
|
|
1733
1723
|
results: {
|
|
1734
|
-
error: string | null;
|
|
1735
1724
|
name: string;
|
|
1736
1725
|
outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
|
|
1726
|
+
payload: unknown;
|
|
1727
|
+
error: string | null;
|
|
1737
1728
|
detail: string | null;
|
|
1738
|
-
payload?: unknown;
|
|
1739
1729
|
}[];
|
|
1730
|
+
error: string | null;
|
|
1740
1731
|
mode: "unreachable";
|
|
1741
1732
|
} | undefined;
|
|
1742
|
-
new_api_keys?: {
|
|
1743
|
-
description: string;
|
|
1744
|
-
user_id: string;
|
|
1745
|
-
api_key: string;
|
|
1746
|
-
}[] | undefined;
|
|
1747
1733
|
}>;
|
|
1748
1734
|
}>;
|
|
1749
|
-
readonly listSchedules: (signal?: AbortSignal) => Promise<
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1735
|
+
readonly listSchedules: (signal?: AbortSignal) => Promise<{
|
|
1736
|
+
[x: string]: unknown;
|
|
1737
|
+
name: string;
|
|
1738
|
+
enabled?: boolean | undefined;
|
|
1739
|
+
schedule?: unknown;
|
|
1740
|
+
target?: unknown;
|
|
1741
|
+
args?: unknown[] | undefined;
|
|
1742
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1743
|
+
}[]>;
|
|
1744
|
+
readonly getServerDateTime: (signal?: AbortSignal) => Promise<{
|
|
1745
|
+
[x: string]: unknown;
|
|
1746
|
+
utc: unknown;
|
|
1747
|
+
local?: unknown;
|
|
1748
|
+
system?: unknown;
|
|
1749
|
+
}>;
|
|
1762
1750
|
readonly addSchedule: (body: {
|
|
1763
1751
|
tool_name: string;
|
|
1764
1752
|
tool_kwargs: Record<string, unknown>;
|
|
@@ -1776,134 +1764,131 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1776
1764
|
timeToFirstTokenMs: number | null;
|
|
1777
1765
|
};
|
|
1778
1766
|
timeSeries: {
|
|
1779
|
-
totalTokens: number;
|
|
1780
1767
|
bucket: string | null;
|
|
1781
1768
|
runs: number;
|
|
1782
1769
|
cost: number;
|
|
1783
1770
|
avgLatencyMs: number;
|
|
1771
|
+
totalTokens: number;
|
|
1784
1772
|
}[];
|
|
1785
1773
|
byModel: {
|
|
1786
1774
|
model: string;
|
|
1787
|
-
|
|
1775
|
+
calls: number;
|
|
1788
1776
|
cost: number;
|
|
1777
|
+
totalTokens: number;
|
|
1789
1778
|
avgLatencyMs: number;
|
|
1790
|
-
calls: number;
|
|
1791
1779
|
}[];
|
|
1792
1780
|
granularity: "hour" | "day" | "week";
|
|
1793
1781
|
}>;
|
|
1794
1782
|
readonly listRuns: (params?: RunsQuery, signal?: AbortSignal) => Promise<{
|
|
1795
1783
|
items: {
|
|
1796
|
-
status: "error" | "success";
|
|
1797
|
-
tags: string[];
|
|
1798
1784
|
id: string;
|
|
1799
|
-
totalTokens: number | null;
|
|
1800
|
-
cost: number | null;
|
|
1801
1785
|
traceId: string;
|
|
1802
1786
|
createdAt: string | null;
|
|
1787
|
+
tags: string[];
|
|
1788
|
+
status: "error" | "success";
|
|
1789
|
+
cost: number | null;
|
|
1803
1790
|
latencyMs: number | null;
|
|
1804
|
-
|
|
1805
|
-
|
|
1791
|
+
totalTokens: number | null;
|
|
1792
|
+
inputPreview: unknown;
|
|
1793
|
+
outputPreview: unknown;
|
|
1806
1794
|
}[];
|
|
1807
1795
|
page: number;
|
|
1808
1796
|
nextPage: number | null;
|
|
1809
1797
|
}>;
|
|
1810
1798
|
readonly getRunTrace: (traceId: string, signal?: AbortSignal) => Promise<{
|
|
1811
|
-
tags: string[];
|
|
1812
|
-
totalCost: number | null;
|
|
1813
1799
|
traceId: string;
|
|
1814
1800
|
timestamp: string | null;
|
|
1801
|
+
tags: string[];
|
|
1802
|
+
totalCost: number | null;
|
|
1803
|
+
input: unknown;
|
|
1804
|
+
output: unknown;
|
|
1805
|
+
metadata: unknown;
|
|
1815
1806
|
spans: {
|
|
1816
|
-
name: string | null;
|
|
1817
|
-
type: string | null;
|
|
1818
|
-
model: string | null;
|
|
1819
1807
|
id: string;
|
|
1820
|
-
traceId: string | null;
|
|
1821
1808
|
parentId: string | null;
|
|
1809
|
+
traceId: string | null;
|
|
1810
|
+
name: string | null;
|
|
1811
|
+
type: string | null;
|
|
1822
1812
|
level: string | null;
|
|
1823
1813
|
statusMessage: string | null;
|
|
1824
1814
|
start: string | null;
|
|
1825
1815
|
end: string | null;
|
|
1816
|
+
model: string | null;
|
|
1817
|
+
usage: unknown;
|
|
1818
|
+
metadata: unknown;
|
|
1819
|
+
input: unknown;
|
|
1820
|
+
output: unknown;
|
|
1826
1821
|
nodeId: string | null;
|
|
1827
|
-
input?: unknown;
|
|
1828
|
-
output?: unknown;
|
|
1829
|
-
usage?: unknown;
|
|
1830
|
-
metadata?: unknown;
|
|
1831
1822
|
}[];
|
|
1832
|
-
input?: unknown;
|
|
1833
|
-
output?: unknown;
|
|
1834
|
-
metadata?: unknown;
|
|
1835
1823
|
}>;
|
|
1836
1824
|
readonly exportTrace: (traceId: string, signal?: AbortSignal) => Promise<Blob>;
|
|
1837
1825
|
readonly exportRuns: (params: RunsQuery & {
|
|
1838
1826
|
format: "csv" | "json";
|
|
1839
1827
|
}, signal?: AbortSignal) => Promise<Blob>;
|
|
1840
1828
|
readonly searchMarketplace: (query?: MarketplaceSearchQuery, signal?: AbortSignal) => Promise<{
|
|
1841
|
-
total: number;
|
|
1842
|
-
page: number;
|
|
1843
|
-
page_size: number;
|
|
1844
1829
|
listings: {
|
|
1830
|
+
ref: string;
|
|
1831
|
+
namespace: string;
|
|
1845
1832
|
name: string;
|
|
1846
|
-
description: string;
|
|
1847
|
-
tags: string[];
|
|
1848
1833
|
display_name: string | null;
|
|
1849
1834
|
icon_url: string | null;
|
|
1850
|
-
categories: string[];
|
|
1851
|
-
updated_at: string;
|
|
1852
|
-
groups: {
|
|
1853
|
-
name: string;
|
|
1854
|
-
count: number;
|
|
1855
|
-
}[];
|
|
1856
1835
|
package: string | null;
|
|
1857
|
-
|
|
1858
|
-
|
|
1836
|
+
description: string;
|
|
1837
|
+
categories: string[];
|
|
1838
|
+
tags: string[];
|
|
1859
1839
|
trust_tier: string;
|
|
1860
1840
|
pricing: string;
|
|
1861
1841
|
latest_version: string | null;
|
|
1862
1842
|
downloads: number;
|
|
1843
|
+
updated_at: string;
|
|
1863
1844
|
kinds: {
|
|
1864
1845
|
kind: string;
|
|
1865
1846
|
count: number;
|
|
1866
1847
|
names: string[];
|
|
1867
1848
|
}[];
|
|
1849
|
+
groups: {
|
|
1850
|
+
name: string;
|
|
1851
|
+
count: number;
|
|
1852
|
+
}[];
|
|
1868
1853
|
premium?: boolean | null | undefined;
|
|
1869
1854
|
}[];
|
|
1855
|
+
total: number;
|
|
1856
|
+
page: number;
|
|
1857
|
+
page_size: number;
|
|
1870
1858
|
}>;
|
|
1871
1859
|
readonly getMarketplacePlugin: (namespace: string, name: string, signal?: AbortSignal) => Promise<{
|
|
1860
|
+
namespace: string;
|
|
1872
1861
|
name: string;
|
|
1873
|
-
description: string;
|
|
1874
|
-
tags: string[];
|
|
1875
1862
|
display_name: string | null;
|
|
1876
1863
|
icon_url: string | null;
|
|
1877
|
-
categories: string[];
|
|
1878
|
-
versions: {
|
|
1879
|
-
status: string;
|
|
1880
|
-
version: string;
|
|
1881
|
-
contract_range: string | null;
|
|
1882
|
-
published_at: string | null;
|
|
1883
|
-
}[];
|
|
1884
1864
|
package: string | null;
|
|
1885
|
-
|
|
1886
|
-
trust_tier: string;
|
|
1887
|
-
pricing: string;
|
|
1888
|
-
downloads: number;
|
|
1865
|
+
description: string;
|
|
1889
1866
|
readme_md: string | null;
|
|
1890
1867
|
license: string | null;
|
|
1891
1868
|
homepage_url: string | null;
|
|
1892
1869
|
repository_url: string | null;
|
|
1870
|
+
categories: string[];
|
|
1871
|
+
tags: string[];
|
|
1872
|
+
trust_tier: string;
|
|
1873
|
+
pricing: string;
|
|
1874
|
+
downloads: number;
|
|
1893
1875
|
latest: {
|
|
1876
|
+
version: string;
|
|
1877
|
+
contract_range: string | null;
|
|
1894
1878
|
status: string;
|
|
1879
|
+
published_at: string | null;
|
|
1895
1880
|
items: {
|
|
1881
|
+
kind: string;
|
|
1896
1882
|
name: string;
|
|
1897
1883
|
description: string;
|
|
1898
1884
|
tags: string[];
|
|
1899
|
-
kind: string;
|
|
1900
1885
|
group: string | null;
|
|
1901
1886
|
routes?: {
|
|
1902
1887
|
base: string;
|
|
1903
1888
|
paths: {
|
|
1904
1889
|
path: string;
|
|
1905
|
-
public: boolean;
|
|
1906
1890
|
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1891
|
+
public: boolean;
|
|
1907
1892
|
}[];
|
|
1908
1893
|
} | null | undefined;
|
|
1909
1894
|
required_env?: {
|
|
@@ -1911,28 +1896,27 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1911
1896
|
secret: boolean;
|
|
1912
1897
|
}[] | undefined;
|
|
1913
1898
|
}[];
|
|
1899
|
+
} | null;
|
|
1900
|
+
versions: {
|
|
1914
1901
|
version: string;
|
|
1915
1902
|
contract_range: string | null;
|
|
1903
|
+
status: string;
|
|
1916
1904
|
published_at: string | null;
|
|
1917
|
-
}
|
|
1905
|
+
}[];
|
|
1918
1906
|
source?: "pypi" | "github" | "spec" | null | undefined;
|
|
1919
|
-
premium?: boolean | null | undefined;
|
|
1920
1907
|
docs_url?: string | null | undefined;
|
|
1908
|
+
premium?: boolean | null | undefined;
|
|
1921
1909
|
}>;
|
|
1922
1910
|
readonly listMarketplaceCategories: (signal?: AbortSignal) => Promise<string[]>;
|
|
1923
1911
|
readonly listMarketplaceKinds: (signal?: AbortSignal) => Promise<string[]>;
|
|
1924
1912
|
readonly listInstalledMarketplacePlugins: (signal?: AbortSignal) => Promise<{
|
|
1925
1913
|
installed: {
|
|
1926
|
-
|
|
1927
|
-
name: string;
|
|
1928
|
-
kind: string;
|
|
1929
|
-
}[];
|
|
1914
|
+
ref: string;
|
|
1930
1915
|
version: string;
|
|
1931
1916
|
source: string;
|
|
1932
|
-
ref: string;
|
|
1933
|
-
latest: string | null;
|
|
1934
1917
|
delivery: "package" | "descriptor";
|
|
1935
1918
|
installed_at: string;
|
|
1919
|
+
latest: string | null;
|
|
1936
1920
|
update_available: boolean;
|
|
1937
1921
|
incompatible_newer: string | null;
|
|
1938
1922
|
missing_upstream: boolean;
|
|
@@ -1940,6 +1924,10 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1940
1924
|
status: "unknown" | "compatible" | "incompatible";
|
|
1941
1925
|
reason: string | null;
|
|
1942
1926
|
};
|
|
1927
|
+
items: {
|
|
1928
|
+
name: string;
|
|
1929
|
+
kind: string;
|
|
1930
|
+
}[];
|
|
1943
1931
|
route_mounts: Record<string, string>;
|
|
1944
1932
|
}[];
|
|
1945
1933
|
quarantined: {
|
|
@@ -1948,105 +1936,105 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1948
1936
|
}[];
|
|
1949
1937
|
}>;
|
|
1950
1938
|
readonly previewMarketplaceInstall: (body: MarketplaceInstallPreviewBody, signal?: AbortSignal) => Promise<{
|
|
1939
|
+
ref: string;
|
|
1940
|
+
version: string;
|
|
1951
1941
|
items: {
|
|
1942
|
+
item: string;
|
|
1952
1943
|
kind: string;
|
|
1944
|
+
base: string;
|
|
1945
|
+
default_base: string;
|
|
1953
1946
|
routes: {
|
|
1954
1947
|
path: string;
|
|
1955
|
-
public: boolean;
|
|
1956
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1957
1948
|
full_path: string;
|
|
1949
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1950
|
+
public: boolean;
|
|
1958
1951
|
}[];
|
|
1959
|
-
base: string;
|
|
1960
|
-
item: string;
|
|
1961
|
-
default_base: string;
|
|
1962
|
-
}[];
|
|
1963
|
-
version: string;
|
|
1964
|
-
required_env: {
|
|
1965
|
-
name: string;
|
|
1966
|
-
secret: boolean;
|
|
1967
1952
|
}[];
|
|
1968
|
-
ref: string;
|
|
1969
|
-
delivery: "package" | "descriptor";
|
|
1970
1953
|
collisions: {
|
|
1971
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1972
1954
|
item: string;
|
|
1973
1955
|
full_path: string;
|
|
1956
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1974
1957
|
conflict_owner: string;
|
|
1975
1958
|
conflict_path: string;
|
|
1976
1959
|
}[];
|
|
1977
1960
|
public_routes: {
|
|
1978
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1979
1961
|
item: string;
|
|
1980
1962
|
full_path: string;
|
|
1963
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1981
1964
|
}[];
|
|
1982
1965
|
new_public_routes: {
|
|
1983
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1984
1966
|
item: string;
|
|
1985
1967
|
full_path: string;
|
|
1968
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1986
1969
|
}[];
|
|
1987
1970
|
requires_public_acceptance: boolean;
|
|
1971
|
+
required_env: {
|
|
1972
|
+
name: string;
|
|
1973
|
+
secret: boolean;
|
|
1974
|
+
}[];
|
|
1988
1975
|
missing_env: string[];
|
|
1976
|
+
delivery: "package" | "descriptor";
|
|
1989
1977
|
}>;
|
|
1990
1978
|
readonly installMarketplacePlugin: (body: MarketplaceInstallBody) => Promise<{
|
|
1991
|
-
version: string;
|
|
1992
|
-
routes: {
|
|
1993
|
-
public: boolean;
|
|
1994
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1995
|
-
item: string;
|
|
1996
|
-
full_path: string;
|
|
1997
|
-
}[];
|
|
1998
1979
|
ref: string;
|
|
1980
|
+
version: string;
|
|
1981
|
+
notes: string[];
|
|
1999
1982
|
advisories: {
|
|
2000
|
-
created_at: string;
|
|
2001
1983
|
id: number;
|
|
2002
|
-
summary: string;
|
|
2003
1984
|
listing: string;
|
|
2004
1985
|
affected_versions: string;
|
|
2005
1986
|
severity: string;
|
|
1987
|
+
summary: string;
|
|
1988
|
+
created_at: string;
|
|
2006
1989
|
withdrawn_at: string | null;
|
|
2007
1990
|
}[];
|
|
2008
|
-
|
|
1991
|
+
routes: {
|
|
1992
|
+
item: string;
|
|
1993
|
+
full_path: string;
|
|
1994
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
1995
|
+
public: boolean;
|
|
1996
|
+
}[];
|
|
2009
1997
|
}>;
|
|
2010
1998
|
readonly uninstallMarketplacePlugin: (body: MarketplaceUninstallBody) => Promise<{
|
|
2011
1999
|
ref: string;
|
|
2012
|
-
notes: string[];
|
|
2013
2000
|
uninstalled: true;
|
|
2001
|
+
notes: string[];
|
|
2014
2002
|
}>;
|
|
2015
2003
|
readonly updateMarketplacePlugin: (body: MarketplaceInstallBody) => Promise<{
|
|
2016
|
-
version: string;
|
|
2017
|
-
routes: {
|
|
2018
|
-
public: boolean;
|
|
2019
|
-
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
2020
|
-
item: string;
|
|
2021
|
-
full_path: string;
|
|
2022
|
-
}[];
|
|
2023
2004
|
ref: string;
|
|
2005
|
+
version: string;
|
|
2006
|
+
notes: string[];
|
|
2024
2007
|
advisories: {
|
|
2025
|
-
created_at: string;
|
|
2026
2008
|
id: number;
|
|
2027
|
-
summary: string;
|
|
2028
2009
|
listing: string;
|
|
2029
2010
|
affected_versions: string;
|
|
2030
2011
|
severity: string;
|
|
2012
|
+
summary: string;
|
|
2013
|
+
created_at: string;
|
|
2031
2014
|
withdrawn_at: string | null;
|
|
2032
2015
|
}[];
|
|
2033
|
-
|
|
2016
|
+
routes: {
|
|
2017
|
+
item: string;
|
|
2018
|
+
full_path: string;
|
|
2019
|
+
methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
|
|
2020
|
+
public: boolean;
|
|
2021
|
+
}[];
|
|
2034
2022
|
}>;
|
|
2035
2023
|
readonly upgradeAllMarketplacePlugins: () => Promise<{
|
|
2036
2024
|
results: {
|
|
2025
|
+
ref: string;
|
|
2037
2026
|
outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
|
|
2038
2027
|
detail: string;
|
|
2039
|
-
ref: string;
|
|
2040
2028
|
}[];
|
|
2041
2029
|
}>;
|
|
2042
2030
|
readonly getMarketplaceAdvisories: (signal?: AbortSignal) => Promise<{
|
|
2043
2031
|
advisories: {
|
|
2044
|
-
created_at: string;
|
|
2045
2032
|
id: number;
|
|
2046
|
-
summary: string;
|
|
2047
2033
|
listing: string;
|
|
2048
2034
|
affected_versions: string;
|
|
2049
2035
|
severity: string;
|
|
2036
|
+
summary: string;
|
|
2037
|
+
created_at: string;
|
|
2050
2038
|
withdrawn_at: string | null;
|
|
2051
2039
|
}[];
|
|
2052
2040
|
fetched_at: string;
|
|
@@ -2054,9 +2042,9 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2054
2042
|
readonly getHealth: (signal?: AbortSignal) => Promise<string>;
|
|
2055
2043
|
readonly getSystemKinds: (signal?: AbortSignal) => Promise<{
|
|
2056
2044
|
kind: string;
|
|
2057
|
-
state: "
|
|
2058
|
-
detail: string;
|
|
2045
|
+
state: "default" | "active" | "off";
|
|
2059
2046
|
plugin: string | null;
|
|
2047
|
+
detail: string;
|
|
2060
2048
|
}[]>;
|
|
2061
2049
|
/**
|
|
2062
2050
|
* Open the authed interactions SSE stream. The stream is TAIL-ONLY: its cursor
|