@tai42/api-client 15.0.0 → 16.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/client.d.ts +448 -326
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/generated/served-schemas.d.ts +748 -0
- package/dist/generated/served-schemas.d.ts.map +1 -0
- package/dist/generated/served-schemas.js +60 -0
- package/dist/generated/served-schemas.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas.d.ts +1062 -1042
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +38 -326
- package/dist/schemas.js.map +1 -1
- package/dist/templated-text.d.ts +30 -0
- package/dist/templated-text.d.ts.map +1 -0
- package/dist/templated-text.js +30 -0
- package/dist/templated-text.js.map +1 -0
- package/package.json +6 -2
- package/src/client.ts +12 -6
- package/src/generated/served-schemas.ts +126 -0
- package/src/index.ts +1 -0
- package/src/schemas.ts +60 -367
- package/src/templated-text.ts +35 -0
package/dist/client.d.ts
CHANGED
|
@@ -387,23 +387,29 @@ export interface SetMcpSecretEnvBody {
|
|
|
387
387
|
/**
|
|
388
388
|
* The client-facing write body for a state declaration (`PUT /api/states/{name}`), the
|
|
389
389
|
* wire shape of `tai42_contract.states.StateDeclaration` minus the platform-computed
|
|
390
|
-
* `effective_schema`/`regimes` (those are read-only, refused on a write). `
|
|
391
|
-
*
|
|
390
|
+
* `effective_schema`/`regimes` (those are read-only, refused on a write). `schema` is the
|
|
391
|
+
* `TemplatedText | dict` union: an inline JSON-schema object, or a stored template reference
|
|
392
|
+
* (`id` + render `kwargs`) the platform renders to the schema. `retention_days` is `null` to
|
|
393
|
+
* keep records forever.
|
|
392
394
|
*/
|
|
393
395
|
export interface StateDeclarationBody {
|
|
394
396
|
readonly name: string;
|
|
395
397
|
readonly description?: string;
|
|
396
|
-
readonly schema: Record<string, unknown>;
|
|
398
|
+
readonly schema: s.TemplatedText | Record<string, unknown>;
|
|
397
399
|
readonly subject_kinds: readonly string[];
|
|
398
400
|
readonly default_subject_kind: string;
|
|
399
401
|
readonly retention_days?: number | null;
|
|
400
402
|
}
|
|
401
|
-
/**
|
|
403
|
+
/**
|
|
404
|
+
* A state-template document write body (`PUT /api/state-templates/{name}`, the platform half).
|
|
405
|
+
* `schema` is the `TemplatedText | dict` union — an inline fragment schema, or a stored
|
|
406
|
+
* template reference the platform renders to the fragment.
|
|
407
|
+
*/
|
|
402
408
|
export interface StateTemplateBody {
|
|
403
409
|
readonly name: string;
|
|
404
410
|
readonly description?: string;
|
|
405
411
|
readonly parameters?: Record<string, unknown>;
|
|
406
|
-
readonly schema: Record<string, unknown>;
|
|
412
|
+
readonly schema: s.TemplatedText | Record<string, unknown>;
|
|
407
413
|
readonly regimes?: Record<string, unknown>[];
|
|
408
414
|
readonly declarations?: Record<string, unknown> | null;
|
|
409
415
|
readonly trace?: Record<string, unknown>;
|
|
@@ -546,44 +552,48 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
546
552
|
body: {
|
|
547
553
|
base_tool: string;
|
|
548
554
|
description: string;
|
|
555
|
+
extensions: (string | Record<string, unknown>)[][];
|
|
549
556
|
fixed_kwargs: Record<string, unknown>;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
557
|
+
input_schema: Record<string, unknown> | {
|
|
558
|
+
content?: string | undefined;
|
|
559
|
+
id?: string | undefined;
|
|
560
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
561
|
+
} | null;
|
|
562
|
+
output_schema: Record<string, unknown> | {
|
|
563
|
+
content?: string | undefined;
|
|
564
|
+
id?: string | undefined;
|
|
565
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
566
|
+
} | null;
|
|
556
567
|
state_binding: {
|
|
557
568
|
states: {
|
|
558
|
-
state: string;
|
|
559
|
-
templates: string[];
|
|
560
|
-
subject_expr: {
|
|
561
|
-
content?: string | undefined;
|
|
562
|
-
id?: string | undefined;
|
|
563
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
564
|
-
};
|
|
565
|
-
scope_expr: {
|
|
566
|
-
content?: string | undefined;
|
|
567
|
-
id?: string | undefined;
|
|
568
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
569
|
-
} | null;
|
|
570
569
|
input_injections: {
|
|
571
|
-
|
|
570
|
+
into: string;
|
|
572
571
|
jq: {
|
|
573
572
|
content?: string | undefined;
|
|
574
573
|
id?: string | undefined;
|
|
575
574
|
kwargs?: Record<string, unknown> | undefined;
|
|
576
575
|
} | null;
|
|
577
|
-
|
|
576
|
+
template_jq: string | null;
|
|
578
577
|
}[];
|
|
578
|
+
scope_expr: {
|
|
579
|
+
content?: string | undefined;
|
|
580
|
+
id?: string | undefined;
|
|
581
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
582
|
+
} | null;
|
|
583
|
+
state: string;
|
|
584
|
+
subject_expr: {
|
|
585
|
+
content?: string | undefined;
|
|
586
|
+
id?: string | undefined;
|
|
587
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
588
|
+
};
|
|
589
|
+
templates: string[];
|
|
579
590
|
updates: {
|
|
580
|
-
|
|
581
|
-
jq: {
|
|
591
|
+
adapter: {
|
|
582
592
|
content?: string | undefined;
|
|
583
593
|
id?: string | undefined;
|
|
584
594
|
kwargs?: Record<string, unknown> | undefined;
|
|
585
595
|
} | null;
|
|
586
|
-
|
|
596
|
+
jq: {
|
|
587
597
|
content?: string | undefined;
|
|
588
598
|
id?: string | undefined;
|
|
589
599
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -593,6 +603,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
593
603
|
id?: string | undefined;
|
|
594
604
|
kwargs?: Record<string, unknown> | undefined;
|
|
595
605
|
} | null;
|
|
606
|
+
template_jq: string | null;
|
|
596
607
|
}[];
|
|
597
608
|
}[];
|
|
598
609
|
} | null;
|
|
@@ -606,44 +617,48 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
606
617
|
body: {
|
|
607
618
|
base_tool: string;
|
|
608
619
|
description: string;
|
|
620
|
+
extensions: (string | Record<string, unknown>)[][];
|
|
609
621
|
fixed_kwargs: Record<string, unknown>;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
622
|
+
input_schema: Record<string, unknown> | {
|
|
623
|
+
content?: string | undefined;
|
|
624
|
+
id?: string | undefined;
|
|
625
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
626
|
+
} | null;
|
|
627
|
+
output_schema: Record<string, unknown> | {
|
|
628
|
+
content?: string | undefined;
|
|
629
|
+
id?: string | undefined;
|
|
630
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
631
|
+
} | null;
|
|
616
632
|
state_binding: {
|
|
617
633
|
states: {
|
|
618
|
-
state: string;
|
|
619
|
-
templates: string[];
|
|
620
|
-
subject_expr: {
|
|
621
|
-
content?: string | undefined;
|
|
622
|
-
id?: string | undefined;
|
|
623
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
624
|
-
};
|
|
625
|
-
scope_expr: {
|
|
626
|
-
content?: string | undefined;
|
|
627
|
-
id?: string | undefined;
|
|
628
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
629
|
-
} | null;
|
|
630
634
|
input_injections: {
|
|
631
|
-
|
|
635
|
+
into: string;
|
|
632
636
|
jq: {
|
|
633
637
|
content?: string | undefined;
|
|
634
638
|
id?: string | undefined;
|
|
635
639
|
kwargs?: Record<string, unknown> | undefined;
|
|
636
640
|
} | null;
|
|
637
|
-
|
|
641
|
+
template_jq: string | null;
|
|
638
642
|
}[];
|
|
643
|
+
scope_expr: {
|
|
644
|
+
content?: string | undefined;
|
|
645
|
+
id?: string | undefined;
|
|
646
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
647
|
+
} | null;
|
|
648
|
+
state: string;
|
|
649
|
+
subject_expr: {
|
|
650
|
+
content?: string | undefined;
|
|
651
|
+
id?: string | undefined;
|
|
652
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
653
|
+
};
|
|
654
|
+
templates: string[];
|
|
639
655
|
updates: {
|
|
640
|
-
|
|
641
|
-
jq: {
|
|
656
|
+
adapter: {
|
|
642
657
|
content?: string | undefined;
|
|
643
658
|
id?: string | undefined;
|
|
644
659
|
kwargs?: Record<string, unknown> | undefined;
|
|
645
660
|
} | null;
|
|
646
|
-
|
|
661
|
+
jq: {
|
|
647
662
|
content?: string | undefined;
|
|
648
663
|
id?: string | undefined;
|
|
649
664
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -653,6 +668,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
653
668
|
id?: string | undefined;
|
|
654
669
|
kwargs?: Record<string, unknown> | undefined;
|
|
655
670
|
} | null;
|
|
671
|
+
template_jq: string | null;
|
|
656
672
|
}[];
|
|
657
673
|
}[];
|
|
658
674
|
} | null;
|
|
@@ -666,44 +682,48 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
666
682
|
body: {
|
|
667
683
|
base_tool: string;
|
|
668
684
|
description: string;
|
|
685
|
+
extensions: (string | Record<string, unknown>)[][];
|
|
669
686
|
fixed_kwargs: Record<string, unknown>;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
687
|
+
input_schema: Record<string, unknown> | {
|
|
688
|
+
content?: string | undefined;
|
|
689
|
+
id?: string | undefined;
|
|
690
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
691
|
+
} | null;
|
|
692
|
+
output_schema: Record<string, unknown> | {
|
|
693
|
+
content?: string | undefined;
|
|
694
|
+
id?: string | undefined;
|
|
695
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
696
|
+
} | null;
|
|
676
697
|
state_binding: {
|
|
677
698
|
states: {
|
|
678
|
-
state: string;
|
|
679
|
-
templates: string[];
|
|
680
|
-
subject_expr: {
|
|
681
|
-
content?: string | undefined;
|
|
682
|
-
id?: string | undefined;
|
|
683
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
684
|
-
};
|
|
685
|
-
scope_expr: {
|
|
686
|
-
content?: string | undefined;
|
|
687
|
-
id?: string | undefined;
|
|
688
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
689
|
-
} | null;
|
|
690
699
|
input_injections: {
|
|
691
|
-
|
|
700
|
+
into: string;
|
|
692
701
|
jq: {
|
|
693
702
|
content?: string | undefined;
|
|
694
703
|
id?: string | undefined;
|
|
695
704
|
kwargs?: Record<string, unknown> | undefined;
|
|
696
705
|
} | null;
|
|
697
|
-
|
|
706
|
+
template_jq: string | null;
|
|
698
707
|
}[];
|
|
708
|
+
scope_expr: {
|
|
709
|
+
content?: string | undefined;
|
|
710
|
+
id?: string | undefined;
|
|
711
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
712
|
+
} | null;
|
|
713
|
+
state: string;
|
|
714
|
+
subject_expr: {
|
|
715
|
+
content?: string | undefined;
|
|
716
|
+
id?: string | undefined;
|
|
717
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
718
|
+
};
|
|
719
|
+
templates: string[];
|
|
699
720
|
updates: {
|
|
700
|
-
|
|
701
|
-
jq: {
|
|
721
|
+
adapter: {
|
|
702
722
|
content?: string | undefined;
|
|
703
723
|
id?: string | undefined;
|
|
704
724
|
kwargs?: Record<string, unknown> | undefined;
|
|
705
725
|
} | null;
|
|
706
|
-
|
|
726
|
+
jq: {
|
|
707
727
|
content?: string | undefined;
|
|
708
728
|
id?: string | undefined;
|
|
709
729
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -713,6 +733,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
713
733
|
id?: string | undefined;
|
|
714
734
|
kwargs?: Record<string, unknown> | undefined;
|
|
715
735
|
} | null;
|
|
736
|
+
template_jq: string | null;
|
|
716
737
|
}[];
|
|
717
738
|
}[];
|
|
718
739
|
} | null;
|
|
@@ -748,47 +769,61 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
748
769
|
tags: string[];
|
|
749
770
|
}>;
|
|
750
771
|
readonly listStates: (signal?: AbortSignal) => Promise<{
|
|
751
|
-
name: string;
|
|
752
|
-
description: string;
|
|
753
|
-
schema: Record<string, unknown>;
|
|
754
|
-
subject_kinds: string[];
|
|
755
772
|
default_subject_kind: string;
|
|
773
|
+
description: string;
|
|
774
|
+
effective_schema: Record<string, unknown> | null;
|
|
775
|
+
name: string;
|
|
776
|
+
regimes: Record<string, unknown>[] | null;
|
|
756
777
|
retention_days: number | null;
|
|
778
|
+
subject_kinds: string[];
|
|
757
779
|
updated_at: string | null;
|
|
758
|
-
|
|
759
|
-
|
|
780
|
+
schema?: Record<string, unknown> | {
|
|
781
|
+
content?: string | undefined;
|
|
782
|
+
id?: string | undefined;
|
|
783
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
784
|
+
} | undefined;
|
|
760
785
|
}[]>;
|
|
761
786
|
readonly getState: (name: string, signal?: AbortSignal) => Promise<{
|
|
762
|
-
name: string;
|
|
763
|
-
description: string;
|
|
764
|
-
schema: Record<string, unknown>;
|
|
765
|
-
subject_kinds: string[];
|
|
766
787
|
default_subject_kind: string;
|
|
788
|
+
description: string;
|
|
789
|
+
effective_schema: Record<string, unknown> | null;
|
|
790
|
+
name: string;
|
|
791
|
+
regimes: Record<string, unknown>[] | null;
|
|
767
792
|
retention_days: number | null;
|
|
793
|
+
subject_kinds: string[];
|
|
794
|
+
updated_at: string | null;
|
|
768
795
|
attachments: {
|
|
769
796
|
template: string;
|
|
770
797
|
path: string[];
|
|
771
798
|
parameters: Record<string, unknown>;
|
|
772
799
|
declarations: Record<string, unknown>;
|
|
773
800
|
}[];
|
|
774
|
-
|
|
775
|
-
|
|
801
|
+
schema?: Record<string, unknown> | {
|
|
802
|
+
content?: string | undefined;
|
|
803
|
+
id?: string | undefined;
|
|
804
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
805
|
+
} | undefined;
|
|
776
806
|
}>;
|
|
777
807
|
readonly putState: (name: string, body: StateDeclarationBody) => Promise<{
|
|
778
|
-
name: string;
|
|
779
|
-
description: string;
|
|
780
|
-
schema: Record<string, unknown>;
|
|
781
|
-
subject_kinds: string[];
|
|
782
808
|
default_subject_kind: string;
|
|
809
|
+
description: string;
|
|
810
|
+
effective_schema: Record<string, unknown> | null;
|
|
811
|
+
name: string;
|
|
812
|
+
regimes: Record<string, unknown>[] | null;
|
|
783
813
|
retention_days: number | null;
|
|
814
|
+
subject_kinds: string[];
|
|
815
|
+
updated_at: string | null;
|
|
784
816
|
attachments: {
|
|
785
817
|
template: string;
|
|
786
818
|
path: string[];
|
|
787
819
|
parameters: Record<string, unknown>;
|
|
788
820
|
declarations: Record<string, unknown>;
|
|
789
821
|
}[];
|
|
790
|
-
|
|
791
|
-
|
|
822
|
+
schema?: Record<string, unknown> | {
|
|
823
|
+
content?: string | undefined;
|
|
824
|
+
id?: string | undefined;
|
|
825
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
826
|
+
} | undefined;
|
|
792
827
|
}>;
|
|
793
828
|
readonly deleteState: (name: string) => Promise<{
|
|
794
829
|
name: string;
|
|
@@ -991,144 +1026,156 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
991
1026
|
unavailable: string | null;
|
|
992
1027
|
}[]>;
|
|
993
1028
|
readonly listStateTemplates: (signal?: AbortSignal) => Promise<{
|
|
994
|
-
kind: "state-template";
|
|
995
|
-
name: string;
|
|
996
|
-
description: string;
|
|
997
|
-
parameters: Record<string, unknown>;
|
|
998
|
-
schema: Record<string, unknown>;
|
|
999
|
-
regimes: Record<string, unknown>[];
|
|
1000
1029
|
declarations: {
|
|
1001
|
-
schema: Record<string, unknown>;
|
|
1002
1030
|
check: {
|
|
1003
1031
|
content?: string | undefined;
|
|
1004
1032
|
id?: string | undefined;
|
|
1005
1033
|
kwargs?: Record<string, unknown> | undefined;
|
|
1006
1034
|
} | null;
|
|
1035
|
+
schema: Record<string, unknown>;
|
|
1007
1036
|
} | null;
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
writes: string[][];
|
|
1015
|
-
jq: {
|
|
1037
|
+
description: string;
|
|
1038
|
+
kind: "state-template";
|
|
1039
|
+
name: string;
|
|
1040
|
+
parameters: Record<string, unknown>;
|
|
1041
|
+
reconcile: {
|
|
1042
|
+
close: {
|
|
1016
1043
|
content?: string | undefined;
|
|
1017
1044
|
id?: string | undefined;
|
|
1018
1045
|
kwargs?: Record<string, unknown> | undefined;
|
|
1019
1046
|
};
|
|
1020
|
-
}> | null;
|
|
1021
|
-
reconcile: {
|
|
1022
1047
|
orphans: {
|
|
1023
1048
|
content?: string | undefined;
|
|
1024
1049
|
id?: string | undefined;
|
|
1025
1050
|
kwargs?: Record<string, unknown> | undefined;
|
|
1026
1051
|
};
|
|
1027
|
-
|
|
1052
|
+
resolutions: {
|
|
1028
1053
|
content?: string | undefined;
|
|
1029
1054
|
id?: string | undefined;
|
|
1030
1055
|
kwargs?: Record<string, unknown> | undefined;
|
|
1031
1056
|
};
|
|
1032
|
-
|
|
1057
|
+
} | null;
|
|
1058
|
+
regimes: Record<string, unknown>[];
|
|
1059
|
+
template_jq: Record<string, {
|
|
1060
|
+
description: string;
|
|
1061
|
+
jq: {
|
|
1033
1062
|
content?: string | undefined;
|
|
1034
1063
|
id?: string | undefined;
|
|
1035
1064
|
kwargs?: Record<string, unknown> | undefined;
|
|
1036
1065
|
};
|
|
1037
|
-
|
|
1066
|
+
params: string[];
|
|
1067
|
+
purpose: "input" | "update";
|
|
1068
|
+
reads: string[][];
|
|
1069
|
+
writes: string[][];
|
|
1070
|
+
}> | null;
|
|
1071
|
+
trace: Record<string, unknown>;
|
|
1038
1072
|
attached_to: number;
|
|
1039
1073
|
shipped_default: boolean;
|
|
1074
|
+
schema?: Record<string, unknown> | {
|
|
1075
|
+
content?: string | undefined;
|
|
1076
|
+
id?: string | undefined;
|
|
1077
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1078
|
+
} | undefined;
|
|
1040
1079
|
}[]>;
|
|
1041
1080
|
readonly getStateTemplate: (name: string, signal?: AbortSignal) => Promise<{
|
|
1042
|
-
kind: "state-template";
|
|
1043
|
-
name: string;
|
|
1044
|
-
description: string;
|
|
1045
|
-
parameters: Record<string, unknown>;
|
|
1046
|
-
schema: Record<string, unknown>;
|
|
1047
|
-
regimes: Record<string, unknown>[];
|
|
1048
1081
|
declarations: {
|
|
1049
|
-
schema: Record<string, unknown>;
|
|
1050
1082
|
check: {
|
|
1051
1083
|
content?: string | undefined;
|
|
1052
1084
|
id?: string | undefined;
|
|
1053
1085
|
kwargs?: Record<string, unknown> | undefined;
|
|
1054
1086
|
} | null;
|
|
1087
|
+
schema: Record<string, unknown>;
|
|
1055
1088
|
} | null;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
writes: string[][];
|
|
1063
|
-
jq: {
|
|
1089
|
+
description: string;
|
|
1090
|
+
kind: "state-template";
|
|
1091
|
+
name: string;
|
|
1092
|
+
parameters: Record<string, unknown>;
|
|
1093
|
+
reconcile: {
|
|
1094
|
+
close: {
|
|
1064
1095
|
content?: string | undefined;
|
|
1065
1096
|
id?: string | undefined;
|
|
1066
1097
|
kwargs?: Record<string, unknown> | undefined;
|
|
1067
1098
|
};
|
|
1068
|
-
}> | null;
|
|
1069
|
-
reconcile: {
|
|
1070
1099
|
orphans: {
|
|
1071
1100
|
content?: string | undefined;
|
|
1072
1101
|
id?: string | undefined;
|
|
1073
1102
|
kwargs?: Record<string, unknown> | undefined;
|
|
1074
1103
|
};
|
|
1075
|
-
|
|
1104
|
+
resolutions: {
|
|
1076
1105
|
content?: string | undefined;
|
|
1077
1106
|
id?: string | undefined;
|
|
1078
1107
|
kwargs?: Record<string, unknown> | undefined;
|
|
1079
1108
|
};
|
|
1080
|
-
|
|
1109
|
+
} | null;
|
|
1110
|
+
regimes: Record<string, unknown>[];
|
|
1111
|
+
template_jq: Record<string, {
|
|
1112
|
+
description: string;
|
|
1113
|
+
jq: {
|
|
1081
1114
|
content?: string | undefined;
|
|
1082
1115
|
id?: string | undefined;
|
|
1083
1116
|
kwargs?: Record<string, unknown> | undefined;
|
|
1084
1117
|
};
|
|
1085
|
-
|
|
1118
|
+
params: string[];
|
|
1119
|
+
purpose: "input" | "update";
|
|
1120
|
+
reads: string[][];
|
|
1121
|
+
writes: string[][];
|
|
1122
|
+
}> | null;
|
|
1123
|
+
trace: Record<string, unknown>;
|
|
1124
|
+
schema?: Record<string, unknown> | {
|
|
1125
|
+
content?: string | undefined;
|
|
1126
|
+
id?: string | undefined;
|
|
1127
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1128
|
+
} | undefined;
|
|
1086
1129
|
}>;
|
|
1087
1130
|
readonly putStateTemplate: (name: string, body: StateTemplateBody, replace?: boolean) => Promise<{
|
|
1088
|
-
kind: "state-template";
|
|
1089
|
-
name: string;
|
|
1090
|
-
description: string;
|
|
1091
|
-
parameters: Record<string, unknown>;
|
|
1092
|
-
schema: Record<string, unknown>;
|
|
1093
|
-
regimes: Record<string, unknown>[];
|
|
1094
1131
|
declarations: {
|
|
1095
|
-
schema: Record<string, unknown>;
|
|
1096
1132
|
check: {
|
|
1097
1133
|
content?: string | undefined;
|
|
1098
1134
|
id?: string | undefined;
|
|
1099
1135
|
kwargs?: Record<string, unknown> | undefined;
|
|
1100
1136
|
} | null;
|
|
1137
|
+
schema: Record<string, unknown>;
|
|
1101
1138
|
} | null;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
writes: string[][];
|
|
1109
|
-
jq: {
|
|
1139
|
+
description: string;
|
|
1140
|
+
kind: "state-template";
|
|
1141
|
+
name: string;
|
|
1142
|
+
parameters: Record<string, unknown>;
|
|
1143
|
+
reconcile: {
|
|
1144
|
+
close: {
|
|
1110
1145
|
content?: string | undefined;
|
|
1111
1146
|
id?: string | undefined;
|
|
1112
1147
|
kwargs?: Record<string, unknown> | undefined;
|
|
1113
1148
|
};
|
|
1114
|
-
}> | null;
|
|
1115
|
-
reconcile: {
|
|
1116
1149
|
orphans: {
|
|
1117
1150
|
content?: string | undefined;
|
|
1118
1151
|
id?: string | undefined;
|
|
1119
1152
|
kwargs?: Record<string, unknown> | undefined;
|
|
1120
1153
|
};
|
|
1121
|
-
|
|
1154
|
+
resolutions: {
|
|
1122
1155
|
content?: string | undefined;
|
|
1123
1156
|
id?: string | undefined;
|
|
1124
1157
|
kwargs?: Record<string, unknown> | undefined;
|
|
1125
1158
|
};
|
|
1126
|
-
|
|
1159
|
+
} | null;
|
|
1160
|
+
regimes: Record<string, unknown>[];
|
|
1161
|
+
template_jq: Record<string, {
|
|
1162
|
+
description: string;
|
|
1163
|
+
jq: {
|
|
1127
1164
|
content?: string | undefined;
|
|
1128
1165
|
id?: string | undefined;
|
|
1129
1166
|
kwargs?: Record<string, unknown> | undefined;
|
|
1130
1167
|
};
|
|
1131
|
-
|
|
1168
|
+
params: string[];
|
|
1169
|
+
purpose: "input" | "update";
|
|
1170
|
+
reads: string[][];
|
|
1171
|
+
writes: string[][];
|
|
1172
|
+
}> | null;
|
|
1173
|
+
trace: Record<string, unknown>;
|
|
1174
|
+
schema?: Record<string, unknown> | {
|
|
1175
|
+
content?: string | undefined;
|
|
1176
|
+
id?: string | undefined;
|
|
1177
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1178
|
+
} | undefined;
|
|
1132
1179
|
}>;
|
|
1133
1180
|
readonly deleteStateTemplate: (name: string) => Promise<{
|
|
1134
1181
|
name: string;
|
|
@@ -1809,7 +1856,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1809
1856
|
display_name: string;
|
|
1810
1857
|
description: string;
|
|
1811
1858
|
icon_url: string;
|
|
1812
|
-
kind: "
|
|
1859
|
+
kind: "none" | "oauth";
|
|
1813
1860
|
origin: "system" | "community";
|
|
1814
1861
|
category: string;
|
|
1815
1862
|
sub_services: {
|
|
@@ -1837,7 +1884,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1837
1884
|
connection_id: string;
|
|
1838
1885
|
provider_id: string;
|
|
1839
1886
|
alias: string;
|
|
1840
|
-
kind: "
|
|
1887
|
+
kind: "none" | "oauth";
|
|
1841
1888
|
account_identity: string | null;
|
|
1842
1889
|
enabled_sub_services: string[];
|
|
1843
1890
|
granted_scopes: string[];
|
|
@@ -1852,7 +1899,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
1852
1899
|
connection_id: string;
|
|
1853
1900
|
provider_id: string;
|
|
1854
1901
|
alias: string;
|
|
1855
|
-
kind: "
|
|
1902
|
+
kind: "none" | "oauth";
|
|
1856
1903
|
account_identity: string | null;
|
|
1857
1904
|
enabled_sub_services: string[];
|
|
1858
1905
|
granted_scopes: string[];
|
|
@@ -2066,63 +2113,30 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2066
2113
|
}>;
|
|
2067
2114
|
readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
|
|
2068
2115
|
items: {
|
|
2069
|
-
|
|
2070
|
-
door: "channel" | "api";
|
|
2071
|
-
target_kind: "tool" | "agent";
|
|
2072
|
-
target_name: string;
|
|
2073
|
-
payload_expr: string | null;
|
|
2074
|
-
reply_expr: string | null;
|
|
2075
|
-
initial_mode: "agent" | "manual";
|
|
2076
|
-
execution_key: string;
|
|
2077
|
-
channel: string | null;
|
|
2078
|
-
our_identity: string | null;
|
|
2116
|
+
callback_secret: string | null;
|
|
2079
2117
|
callback_url: string | null;
|
|
2080
|
-
|
|
2118
|
+
channel: string | null;
|
|
2119
|
+
door: "channel" | "api";
|
|
2081
2120
|
error_reply_text: string | null;
|
|
2121
|
+
execution_key: string;
|
|
2082
2122
|
execution_key_fingerprint: string;
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2096
|
-
} | null;
|
|
2097
|
-
input_injections: {
|
|
2098
|
-
template_jq: string | null;
|
|
2099
|
-
jq: {
|
|
2100
|
-
content?: string | undefined;
|
|
2101
|
-
id?: string | undefined;
|
|
2102
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2103
|
-
} | null;
|
|
2104
|
-
into: string;
|
|
2105
|
-
}[];
|
|
2106
|
-
updates: {
|
|
2107
|
-
template_jq: string | null;
|
|
2108
|
-
jq: {
|
|
2109
|
-
content?: string | undefined;
|
|
2110
|
-
id?: string | undefined;
|
|
2111
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2112
|
-
} | null;
|
|
2113
|
-
adapter: {
|
|
2114
|
-
content?: string | undefined;
|
|
2115
|
-
id?: string | undefined;
|
|
2116
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2117
|
-
} | null;
|
|
2118
|
-
op_id: {
|
|
2119
|
-
content?: string | undefined;
|
|
2120
|
-
id?: string | undefined;
|
|
2121
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2122
|
-
} | null;
|
|
2123
|
-
}[];
|
|
2124
|
-
}[];
|
|
2123
|
+
initial_mode: "agent" | "manual";
|
|
2124
|
+
locale: string | null;
|
|
2125
|
+
our_identity: string | null;
|
|
2126
|
+
payload_expr: {
|
|
2127
|
+
content?: string | undefined;
|
|
2128
|
+
id?: string | undefined;
|
|
2129
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2130
|
+
} | null;
|
|
2131
|
+
reply_expr: {
|
|
2132
|
+
content?: string | undefined;
|
|
2133
|
+
id?: string | undefined;
|
|
2134
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2125
2135
|
} | null;
|
|
2136
|
+
route_name: string;
|
|
2137
|
+
target_kind: "tool" | "agent";
|
|
2138
|
+
target_name: string;
|
|
2139
|
+
turns_per_hour_override: number | null;
|
|
2126
2140
|
}[];
|
|
2127
2141
|
total: number;
|
|
2128
2142
|
}>;
|
|
@@ -2130,63 +2144,30 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2130
2144
|
created: boolean;
|
|
2131
2145
|
route_name: string;
|
|
2132
2146
|
route: {
|
|
2133
|
-
|
|
2134
|
-
door: "channel" | "api";
|
|
2135
|
-
target_kind: "tool" | "agent";
|
|
2136
|
-
target_name: string;
|
|
2137
|
-
payload_expr: string | null;
|
|
2138
|
-
reply_expr: string | null;
|
|
2139
|
-
initial_mode: "agent" | "manual";
|
|
2140
|
-
execution_key: string;
|
|
2141
|
-
channel: string | null;
|
|
2142
|
-
our_identity: string | null;
|
|
2147
|
+
callback_secret: string | null;
|
|
2143
2148
|
callback_url: string | null;
|
|
2144
|
-
|
|
2149
|
+
channel: string | null;
|
|
2150
|
+
door: "channel" | "api";
|
|
2145
2151
|
error_reply_text: string | null;
|
|
2152
|
+
execution_key: string;
|
|
2146
2153
|
execution_key_fingerprint: string;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2155
|
-
};
|
|
2156
|
-
scope_expr: {
|
|
2157
|
-
content?: string | undefined;
|
|
2158
|
-
id?: string | undefined;
|
|
2159
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2160
|
-
} | null;
|
|
2161
|
-
input_injections: {
|
|
2162
|
-
template_jq: string | null;
|
|
2163
|
-
jq: {
|
|
2164
|
-
content?: string | undefined;
|
|
2165
|
-
id?: string | undefined;
|
|
2166
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2167
|
-
} | null;
|
|
2168
|
-
into: string;
|
|
2169
|
-
}[];
|
|
2170
|
-
updates: {
|
|
2171
|
-
template_jq: string | null;
|
|
2172
|
-
jq: {
|
|
2173
|
-
content?: string | undefined;
|
|
2174
|
-
id?: string | undefined;
|
|
2175
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2176
|
-
} | null;
|
|
2177
|
-
adapter: {
|
|
2178
|
-
content?: string | undefined;
|
|
2179
|
-
id?: string | undefined;
|
|
2180
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2181
|
-
} | null;
|
|
2182
|
-
op_id: {
|
|
2183
|
-
content?: string | undefined;
|
|
2184
|
-
id?: string | undefined;
|
|
2185
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2186
|
-
} | null;
|
|
2187
|
-
}[];
|
|
2188
|
-
}[];
|
|
2154
|
+
initial_mode: "agent" | "manual";
|
|
2155
|
+
locale: string | null;
|
|
2156
|
+
our_identity: string | null;
|
|
2157
|
+
payload_expr: {
|
|
2158
|
+
content?: string | undefined;
|
|
2159
|
+
id?: string | undefined;
|
|
2160
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2189
2161
|
} | null;
|
|
2162
|
+
reply_expr: {
|
|
2163
|
+
content?: string | undefined;
|
|
2164
|
+
id?: string | undefined;
|
|
2165
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2166
|
+
} | null;
|
|
2167
|
+
route_name: string;
|
|
2168
|
+
target_kind: "tool" | "agent";
|
|
2169
|
+
target_name: string;
|
|
2170
|
+
turns_per_hour_override: number | null;
|
|
2190
2171
|
};
|
|
2191
2172
|
callback_secret: string | null;
|
|
2192
2173
|
}>;
|
|
@@ -2281,28 +2262,157 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2281
2262
|
}>;
|
|
2282
2263
|
readonly listConversationConfigs: (signal?: AbortSignal) => Promise<{
|
|
2283
2264
|
items: {
|
|
2265
|
+
greeting_template: string | null;
|
|
2266
|
+
multichannel: boolean;
|
|
2267
|
+
state_binding: {
|
|
2268
|
+
states: {
|
|
2269
|
+
input_injections: {
|
|
2270
|
+
into: string;
|
|
2271
|
+
jq: {
|
|
2272
|
+
content?: string | undefined;
|
|
2273
|
+
id?: string | undefined;
|
|
2274
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2275
|
+
} | null;
|
|
2276
|
+
template_jq: string | null;
|
|
2277
|
+
}[];
|
|
2278
|
+
scope_expr: {
|
|
2279
|
+
content?: string | undefined;
|
|
2280
|
+
id?: string | undefined;
|
|
2281
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2282
|
+
} | null;
|
|
2283
|
+
state: string;
|
|
2284
|
+
subject_expr: {
|
|
2285
|
+
content?: string | undefined;
|
|
2286
|
+
id?: string | undefined;
|
|
2287
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2288
|
+
};
|
|
2289
|
+
templates: string[];
|
|
2290
|
+
updates: {
|
|
2291
|
+
adapter: {
|
|
2292
|
+
content?: string | undefined;
|
|
2293
|
+
id?: string | undefined;
|
|
2294
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2295
|
+
} | null;
|
|
2296
|
+
jq: {
|
|
2297
|
+
content?: string | undefined;
|
|
2298
|
+
id?: string | undefined;
|
|
2299
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2300
|
+
} | null;
|
|
2301
|
+
op_id: {
|
|
2302
|
+
content?: string | undefined;
|
|
2303
|
+
id?: string | undefined;
|
|
2304
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2305
|
+
} | null;
|
|
2306
|
+
template_jq: string | null;
|
|
2307
|
+
}[];
|
|
2308
|
+
}[];
|
|
2309
|
+
} | null;
|
|
2284
2310
|
target_kind: "tool" | "agent";
|
|
2285
2311
|
target_name: string;
|
|
2286
|
-
multichannel: boolean;
|
|
2287
|
-
greeting_template: string | null;
|
|
2288
2312
|
}[];
|
|
2289
2313
|
total: number;
|
|
2290
2314
|
}>;
|
|
2291
2315
|
readonly getConversationConfig: (targetKind: s.ConversationTargetKind, targetName: string, signal?: AbortSignal) => Promise<{
|
|
2316
|
+
greeting_template: string | null;
|
|
2317
|
+
multichannel: boolean;
|
|
2318
|
+
state_binding: {
|
|
2319
|
+
states: {
|
|
2320
|
+
input_injections: {
|
|
2321
|
+
into: string;
|
|
2322
|
+
jq: {
|
|
2323
|
+
content?: string | undefined;
|
|
2324
|
+
id?: string | undefined;
|
|
2325
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2326
|
+
} | null;
|
|
2327
|
+
template_jq: string | null;
|
|
2328
|
+
}[];
|
|
2329
|
+
scope_expr: {
|
|
2330
|
+
content?: string | undefined;
|
|
2331
|
+
id?: string | undefined;
|
|
2332
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2333
|
+
} | null;
|
|
2334
|
+
state: string;
|
|
2335
|
+
subject_expr: {
|
|
2336
|
+
content?: string | undefined;
|
|
2337
|
+
id?: string | undefined;
|
|
2338
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2339
|
+
};
|
|
2340
|
+
templates: string[];
|
|
2341
|
+
updates: {
|
|
2342
|
+
adapter: {
|
|
2343
|
+
content?: string | undefined;
|
|
2344
|
+
id?: string | undefined;
|
|
2345
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2346
|
+
} | null;
|
|
2347
|
+
jq: {
|
|
2348
|
+
content?: string | undefined;
|
|
2349
|
+
id?: string | undefined;
|
|
2350
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2351
|
+
} | null;
|
|
2352
|
+
op_id: {
|
|
2353
|
+
content?: string | undefined;
|
|
2354
|
+
id?: string | undefined;
|
|
2355
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2356
|
+
} | null;
|
|
2357
|
+
template_jq: string | null;
|
|
2358
|
+
}[];
|
|
2359
|
+
}[];
|
|
2360
|
+
} | null;
|
|
2292
2361
|
target_kind: "tool" | "agent";
|
|
2293
2362
|
target_name: string;
|
|
2294
|
-
multichannel: boolean;
|
|
2295
|
-
greeting_template: string | null;
|
|
2296
2363
|
}>;
|
|
2297
2364
|
readonly setConversationConfig: (config: s.TargetConversationConfig) => Promise<{
|
|
2298
2365
|
created: boolean;
|
|
2299
2366
|
target_kind: "tool" | "agent";
|
|
2300
2367
|
target_name: string;
|
|
2301
2368
|
config: {
|
|
2369
|
+
greeting_template: string | null;
|
|
2370
|
+
multichannel: boolean;
|
|
2371
|
+
state_binding: {
|
|
2372
|
+
states: {
|
|
2373
|
+
input_injections: {
|
|
2374
|
+
into: string;
|
|
2375
|
+
jq: {
|
|
2376
|
+
content?: string | undefined;
|
|
2377
|
+
id?: string | undefined;
|
|
2378
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2379
|
+
} | null;
|
|
2380
|
+
template_jq: string | null;
|
|
2381
|
+
}[];
|
|
2382
|
+
scope_expr: {
|
|
2383
|
+
content?: string | undefined;
|
|
2384
|
+
id?: string | undefined;
|
|
2385
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2386
|
+
} | null;
|
|
2387
|
+
state: string;
|
|
2388
|
+
subject_expr: {
|
|
2389
|
+
content?: string | undefined;
|
|
2390
|
+
id?: string | undefined;
|
|
2391
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2392
|
+
};
|
|
2393
|
+
templates: string[];
|
|
2394
|
+
updates: {
|
|
2395
|
+
adapter: {
|
|
2396
|
+
content?: string | undefined;
|
|
2397
|
+
id?: string | undefined;
|
|
2398
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2399
|
+
} | null;
|
|
2400
|
+
jq: {
|
|
2401
|
+
content?: string | undefined;
|
|
2402
|
+
id?: string | undefined;
|
|
2403
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2404
|
+
} | null;
|
|
2405
|
+
op_id: {
|
|
2406
|
+
content?: string | undefined;
|
|
2407
|
+
id?: string | undefined;
|
|
2408
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2409
|
+
} | null;
|
|
2410
|
+
template_jq: string | null;
|
|
2411
|
+
}[];
|
|
2412
|
+
}[];
|
|
2413
|
+
} | null;
|
|
2302
2414
|
target_kind: "tool" | "agent";
|
|
2303
2415
|
target_name: string;
|
|
2304
|
-
multichannel: boolean;
|
|
2305
|
-
greeting_template: string | null;
|
|
2306
2416
|
};
|
|
2307
2417
|
}>;
|
|
2308
2418
|
readonly deleteConversationConfig: (targetKind: s.ConversationTargetKind, targetName: string) => Promise<{
|
|
@@ -2374,9 +2484,16 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2374
2484
|
audience?: string | null | undefined;
|
|
2375
2485
|
media?: unknown[] | null | undefined;
|
|
2376
2486
|
template?: {
|
|
2377
|
-
|
|
2487
|
+
body_parameters: string[];
|
|
2488
|
+
buttons: unknown[];
|
|
2489
|
+
header_media: {
|
|
2490
|
+
caption: string | null;
|
|
2491
|
+
filename: string | null;
|
|
2492
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
2493
|
+
url: string;
|
|
2494
|
+
} | null;
|
|
2378
2495
|
language: string;
|
|
2379
|
-
|
|
2496
|
+
name: string;
|
|
2380
2497
|
} | null | undefined;
|
|
2381
2498
|
options?: string[] | null | undefined;
|
|
2382
2499
|
}[];
|
|
@@ -2405,58 +2522,49 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2405
2522
|
readonly streamAuthoredAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("./agents").ParsedAgentEvent, any, any>>;
|
|
2406
2523
|
readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
|
|
2407
2524
|
items: {
|
|
2408
|
-
name: string;
|
|
2409
|
-
topic: string;
|
|
2410
|
-
tool: string;
|
|
2411
|
-
execution_key: string;
|
|
2412
|
-
tool_kwargs: Record<string, unknown>;
|
|
2413
|
-
subject: {
|
|
2414
|
-
target_kind: "tool" | "agent";
|
|
2415
|
-
target_name: string;
|
|
2416
|
-
kind: string;
|
|
2417
|
-
key_expr: string;
|
|
2418
|
-
} | null;
|
|
2419
2525
|
condition: {
|
|
2420
2526
|
content?: string | undefined;
|
|
2421
2527
|
id?: string | undefined;
|
|
2422
2528
|
kwargs?: Record<string, unknown> | undefined;
|
|
2423
2529
|
} | null;
|
|
2530
|
+
execution_key: string;
|
|
2531
|
+
execution_key_fingerprint: string;
|
|
2424
2532
|
expr: {
|
|
2425
2533
|
content?: string | undefined;
|
|
2426
2534
|
id?: string | undefined;
|
|
2427
2535
|
kwargs?: Record<string, unknown> | undefined;
|
|
2428
2536
|
} | null;
|
|
2537
|
+
name: string;
|
|
2429
2538
|
state_binding: {
|
|
2430
2539
|
states: {
|
|
2431
|
-
state: string;
|
|
2432
|
-
templates: string[];
|
|
2433
|
-
subject_expr: {
|
|
2434
|
-
content?: string | undefined;
|
|
2435
|
-
id?: string | undefined;
|
|
2436
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2437
|
-
};
|
|
2438
|
-
scope_expr: {
|
|
2439
|
-
content?: string | undefined;
|
|
2440
|
-
id?: string | undefined;
|
|
2441
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2442
|
-
} | null;
|
|
2443
2540
|
input_injections: {
|
|
2444
|
-
|
|
2541
|
+
into: string;
|
|
2445
2542
|
jq: {
|
|
2446
2543
|
content?: string | undefined;
|
|
2447
2544
|
id?: string | undefined;
|
|
2448
2545
|
kwargs?: Record<string, unknown> | undefined;
|
|
2449
2546
|
} | null;
|
|
2450
|
-
|
|
2547
|
+
template_jq: string | null;
|
|
2451
2548
|
}[];
|
|
2549
|
+
scope_expr: {
|
|
2550
|
+
content?: string | undefined;
|
|
2551
|
+
id?: string | undefined;
|
|
2552
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2553
|
+
} | null;
|
|
2554
|
+
state: string;
|
|
2555
|
+
subject_expr: {
|
|
2556
|
+
content?: string | undefined;
|
|
2557
|
+
id?: string | undefined;
|
|
2558
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2559
|
+
};
|
|
2560
|
+
templates: string[];
|
|
2452
2561
|
updates: {
|
|
2453
|
-
|
|
2454
|
-
jq: {
|
|
2562
|
+
adapter: {
|
|
2455
2563
|
content?: string | undefined;
|
|
2456
2564
|
id?: string | undefined;
|
|
2457
2565
|
kwargs?: Record<string, unknown> | undefined;
|
|
2458
2566
|
} | null;
|
|
2459
|
-
|
|
2567
|
+
jq: {
|
|
2460
2568
|
content?: string | undefined;
|
|
2461
2569
|
id?: string | undefined;
|
|
2462
2570
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -2466,9 +2574,23 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2466
2574
|
id?: string | undefined;
|
|
2467
2575
|
kwargs?: Record<string, unknown> | undefined;
|
|
2468
2576
|
} | null;
|
|
2577
|
+
template_jq: string | null;
|
|
2469
2578
|
}[];
|
|
2470
2579
|
}[];
|
|
2471
2580
|
} | null;
|
|
2581
|
+
subject: {
|
|
2582
|
+
key_expr: {
|
|
2583
|
+
content?: string | undefined;
|
|
2584
|
+
id?: string | undefined;
|
|
2585
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2586
|
+
};
|
|
2587
|
+
kind: string;
|
|
2588
|
+
target_kind: "tool" | "agent";
|
|
2589
|
+
target_name: string;
|
|
2590
|
+
} | null;
|
|
2591
|
+
tool: string;
|
|
2592
|
+
tool_kwargs: Record<string, unknown>;
|
|
2593
|
+
topic: string;
|
|
2472
2594
|
}[];
|
|
2473
2595
|
total: number;
|
|
2474
2596
|
topic_verifiers: Record<string, {
|
|
@@ -2477,7 +2599,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2477
2599
|
}>;
|
|
2478
2600
|
trigger_auth: Record<string, "public" | "verifier" | "token" | "token+api_key" | "out-of-service">;
|
|
2479
2601
|
}>;
|
|
2480
|
-
readonly registerHook: (params: s.
|
|
2602
|
+
readonly registerHook: (params: s.HookRegister) => Promise<{
|
|
2481
2603
|
registered: boolean;
|
|
2482
2604
|
name: string;
|
|
2483
2605
|
}>;
|
|
@@ -2559,7 +2681,7 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2559
2681
|
mapped: string | null;
|
|
2560
2682
|
tags: string[];
|
|
2561
2683
|
summary: string;
|
|
2562
|
-
action: "
|
|
2684
|
+
action: "read" | "write" | "secret" | "fenced" | null;
|
|
2563
2685
|
}[]>;
|
|
2564
2686
|
readonly listPublicRoutes: (signal?: AbortSignal) => Promise<string[]>;
|
|
2565
2687
|
readonly pinRoutePublic: (body: PinRoutePublicBody) => Promise<{
|
|
@@ -2569,43 +2691,43 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2569
2691
|
url: string;
|
|
2570
2692
|
}>;
|
|
2571
2693
|
readonly listRoles: (signal?: AbortSignal) => Promise<{
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
scopes: string[];
|
|
2694
|
+
allow_all: boolean;
|
|
2695
|
+
base_tier: string | null;
|
|
2575
2696
|
condition: {
|
|
2576
2697
|
content?: string | undefined;
|
|
2577
2698
|
id?: string | undefined;
|
|
2578
2699
|
kwargs?: Record<string, unknown> | undefined;
|
|
2579
2700
|
} | null;
|
|
2580
|
-
|
|
2581
|
-
allow_all: boolean;
|
|
2701
|
+
description: string;
|
|
2582
2702
|
grants: Record<string, "none" | "read" | "write">;
|
|
2583
|
-
}[]>;
|
|
2584
|
-
readonly createRole: (body: RoleCreateBody) => Promise<{
|
|
2585
2703
|
name: string;
|
|
2586
|
-
description: string;
|
|
2587
2704
|
scopes: string[];
|
|
2705
|
+
}[]>;
|
|
2706
|
+
readonly createRole: (body: RoleCreateBody) => Promise<{
|
|
2707
|
+
allow_all: boolean;
|
|
2708
|
+
base_tier: string | null;
|
|
2588
2709
|
condition: {
|
|
2589
2710
|
content?: string | undefined;
|
|
2590
2711
|
id?: string | undefined;
|
|
2591
2712
|
kwargs?: Record<string, unknown> | undefined;
|
|
2592
2713
|
} | null;
|
|
2593
|
-
|
|
2594
|
-
allow_all: boolean;
|
|
2714
|
+
description: string;
|
|
2595
2715
|
grants: Record<string, "none" | "read" | "write">;
|
|
2596
|
-
}>;
|
|
2597
|
-
readonly updateRole: (name: string, body: RoleUpdateBody) => Promise<{
|
|
2598
2716
|
name: string;
|
|
2599
|
-
description: string;
|
|
2600
2717
|
scopes: string[];
|
|
2718
|
+
}>;
|
|
2719
|
+
readonly updateRole: (name: string, body: RoleUpdateBody) => Promise<{
|
|
2720
|
+
allow_all: boolean;
|
|
2721
|
+
base_tier: string | null;
|
|
2601
2722
|
condition: {
|
|
2602
2723
|
content?: string | undefined;
|
|
2603
2724
|
id?: string | undefined;
|
|
2604
2725
|
kwargs?: Record<string, unknown> | undefined;
|
|
2605
2726
|
} | null;
|
|
2606
|
-
|
|
2607
|
-
allow_all: boolean;
|
|
2727
|
+
description: string;
|
|
2608
2728
|
grants: Record<string, "none" | "read" | "write">;
|
|
2729
|
+
name: string;
|
|
2730
|
+
scopes: string[];
|
|
2609
2731
|
}>;
|
|
2610
2732
|
readonly deleteRole: (name: string) => Promise<{
|
|
2611
2733
|
name: string;
|
|
@@ -2615,17 +2737,17 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2615
2737
|
versions: {
|
|
2616
2738
|
version: number;
|
|
2617
2739
|
body: {
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
scopes: string[];
|
|
2740
|
+
allow_all: boolean;
|
|
2741
|
+
base_tier: string | null;
|
|
2621
2742
|
condition: {
|
|
2622
2743
|
content?: string | undefined;
|
|
2623
2744
|
id?: string | undefined;
|
|
2624
2745
|
kwargs?: Record<string, unknown> | undefined;
|
|
2625
2746
|
} | null;
|
|
2626
|
-
|
|
2627
|
-
allow_all: boolean;
|
|
2747
|
+
description: string;
|
|
2628
2748
|
grants: Record<string, "none" | "read" | "write">;
|
|
2749
|
+
name: string;
|
|
2750
|
+
scopes: string[];
|
|
2629
2751
|
};
|
|
2630
2752
|
tags: string[];
|
|
2631
2753
|
created_at: string;
|
|
@@ -2645,17 +2767,17 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2645
2767
|
}[];
|
|
2646
2768
|
}>;
|
|
2647
2769
|
readonly rollbackRole: (name: string, version: number) => Promise<{
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
scopes: string[];
|
|
2770
|
+
allow_all: boolean;
|
|
2771
|
+
base_tier: string | null;
|
|
2651
2772
|
condition: {
|
|
2652
2773
|
content?: string | undefined;
|
|
2653
2774
|
id?: string | undefined;
|
|
2654
2775
|
kwargs?: Record<string, unknown> | undefined;
|
|
2655
2776
|
} | null;
|
|
2656
|
-
|
|
2657
|
-
allow_all: boolean;
|
|
2777
|
+
description: string;
|
|
2658
2778
|
grants: Record<string, "none" | "read" | "write">;
|
|
2779
|
+
name: string;
|
|
2780
|
+
scopes: string[];
|
|
2659
2781
|
}>;
|
|
2660
2782
|
readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
|
|
2661
2783
|
user_id: string;
|
|
@@ -2759,13 +2881,13 @@ export declare function createApiClient(config: ApiConfig): {
|
|
|
2759
2881
|
readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
|
|
2760
2882
|
version: number;
|
|
2761
2883
|
body: {
|
|
2762
|
-
scopes: string[];
|
|
2763
|
-
policy_data: unknown;
|
|
2764
2884
|
condition: {
|
|
2765
2885
|
content?: string | undefined;
|
|
2766
2886
|
id?: string | undefined;
|
|
2767
2887
|
kwargs?: Record<string, unknown> | undefined;
|
|
2768
2888
|
} | null;
|
|
2889
|
+
policy_data: Record<string, unknown>;
|
|
2890
|
+
scopes: string[];
|
|
2769
2891
|
};
|
|
2770
2892
|
tags: string[];
|
|
2771
2893
|
created_at: string;
|