@xpert-ai/contracts 3.20.0 → 3.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +65 -18
- package/index.esm.js +61 -19
- package/package.json +2 -2
- package/src/agent-plugin.d.ts +10 -3
- package/src/ai/assistant-task-context.model.d.ts +26 -0
- package/src/ai/chat-group-entity.model.d.ts +93 -0
- package/src/ai/chat-group.model.d.ts +338 -0
- package/src/ai/chat-message.model.d.ts +6 -0
- package/src/ai/chat.model.d.ts +16 -0
- package/src/ai/clawxpert-recovery.model.d.ts +10 -0
- package/src/ai/conversation-entry.model.d.ts +18 -0
- package/src/ai/copilot-model.model.d.ts +13 -0
- package/src/ai/index.d.ts +5 -0
- package/src/ai/project-task-runtime.model.d.ts +383 -3
- package/src/ai/realtime-voice.model.d.ts +2 -2
- package/src/ai/sandbox-terminal.model.d.ts +1 -0
- package/src/ai/xpert-template.model.d.ts +2 -13
- package/src/api-key.model.d.ts +37 -2
- package/src/default-agent-plugins.d.ts +19 -0
- package/src/index.d.ts +3 -1
- package/src/plugin-application.d.ts +257 -0
- package/src/plugin-management.d.ts +112 -0
- package/src/plugin.d.ts +3 -319
- package/src/runtime-control.d.ts +19 -0
- package/src/secret-token.model.d.ts +8 -1
- package/src/setup-plugins.d.ts +75 -0
- package/src/storage-file.model.d.ts +5 -0
|
@@ -620,12 +620,21 @@ export declare const projectTaskDispatchReceiptSchema: z.ZodObject<{
|
|
|
620
620
|
taskExecutionId?: string;
|
|
621
621
|
}>;
|
|
622
622
|
export type ProjectTaskDispatchReceipt = z.output<typeof projectTaskDispatchReceiptSchema>;
|
|
623
|
-
|
|
624
|
-
export declare const projectTaskDispatchInputSchema: z.ZodObject<{
|
|
623
|
+
export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
625
624
|
requestId: z.ZodString;
|
|
626
625
|
taskId: z.ZodString;
|
|
627
626
|
expectedRevision: z.ZodNumber;
|
|
628
|
-
bindingId: z.ZodString
|
|
627
|
+
bindingId: z.ZodOptional<z.ZodString>;
|
|
628
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
629
|
+
type: z.ZodLiteral<"group_member">;
|
|
630
|
+
participantId: z.ZodString;
|
|
631
|
+
}, "strict", z.ZodTypeAny, {
|
|
632
|
+
type?: "group_member";
|
|
633
|
+
participantId?: string;
|
|
634
|
+
}, {
|
|
635
|
+
type?: "group_member";
|
|
636
|
+
participantId?: string;
|
|
637
|
+
}>>;
|
|
629
638
|
purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
630
639
|
type: z.ZodLiteral<"implementation">;
|
|
631
640
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -739,6 +748,10 @@ export declare const projectTaskDispatchInputSchema: z.ZodObject<{
|
|
|
739
748
|
instructions: z.ZodDefault<z.ZodString>;
|
|
740
749
|
}, "strict", z.ZodTypeAny, {
|
|
741
750
|
requestId?: string;
|
|
751
|
+
target?: {
|
|
752
|
+
type?: "group_member";
|
|
753
|
+
participantId?: string;
|
|
754
|
+
};
|
|
742
755
|
instructions?: string;
|
|
743
756
|
taskId?: string;
|
|
744
757
|
purpose?: {
|
|
@@ -775,6 +788,373 @@ export declare const projectTaskDispatchInputSchema: z.ZodObject<{
|
|
|
775
788
|
};
|
|
776
789
|
}, {
|
|
777
790
|
requestId?: string;
|
|
791
|
+
target?: {
|
|
792
|
+
type?: "group_member";
|
|
793
|
+
participantId?: string;
|
|
794
|
+
};
|
|
795
|
+
instructions?: string;
|
|
796
|
+
taskId?: string;
|
|
797
|
+
purpose?: {
|
|
798
|
+
type?: "implementation";
|
|
799
|
+
} | {
|
|
800
|
+
type?: "review";
|
|
801
|
+
implementationExecutionId?: string;
|
|
802
|
+
implementationInvocationId?: string;
|
|
803
|
+
specificationDigest?: string;
|
|
804
|
+
evidence?: ({
|
|
805
|
+
type?: "artifact";
|
|
806
|
+
versionId?: string;
|
|
807
|
+
artifactId?: string;
|
|
808
|
+
} | {
|
|
809
|
+
type?: "invocation_result";
|
|
810
|
+
revision?: number;
|
|
811
|
+
invocationId?: string;
|
|
812
|
+
} | {
|
|
813
|
+
type?: "workspace_snapshot";
|
|
814
|
+
digest?: string;
|
|
815
|
+
snapshotId?: string;
|
|
816
|
+
})[];
|
|
817
|
+
};
|
|
818
|
+
expectedRevision?: number;
|
|
819
|
+
bindingId?: string;
|
|
820
|
+
delivery?: {
|
|
821
|
+
mode?: "none";
|
|
822
|
+
} | {
|
|
823
|
+
mode?: "files";
|
|
824
|
+
paths?: string[];
|
|
825
|
+
} | {
|
|
826
|
+
mode?: "archive";
|
|
827
|
+
paths?: string[];
|
|
828
|
+
};
|
|
829
|
+
}>, {
|
|
830
|
+
requestId?: string;
|
|
831
|
+
target?: {
|
|
832
|
+
type?: "group_member";
|
|
833
|
+
participantId?: string;
|
|
834
|
+
};
|
|
835
|
+
instructions?: string;
|
|
836
|
+
taskId?: string;
|
|
837
|
+
purpose?: {
|
|
838
|
+
type?: "implementation";
|
|
839
|
+
} | {
|
|
840
|
+
type?: "review";
|
|
841
|
+
implementationExecutionId?: string;
|
|
842
|
+
implementationInvocationId?: string;
|
|
843
|
+
specificationDigest?: string;
|
|
844
|
+
evidence?: ({
|
|
845
|
+
type?: "artifact";
|
|
846
|
+
versionId?: string;
|
|
847
|
+
artifactId?: string;
|
|
848
|
+
} | {
|
|
849
|
+
type?: "invocation_result";
|
|
850
|
+
revision?: number;
|
|
851
|
+
invocationId?: string;
|
|
852
|
+
} | {
|
|
853
|
+
type?: "workspace_snapshot";
|
|
854
|
+
digest?: string;
|
|
855
|
+
snapshotId?: string;
|
|
856
|
+
})[];
|
|
857
|
+
};
|
|
858
|
+
expectedRevision?: number;
|
|
859
|
+
bindingId?: string;
|
|
860
|
+
delivery?: {
|
|
861
|
+
mode?: "none";
|
|
862
|
+
} | {
|
|
863
|
+
mode?: "files";
|
|
864
|
+
paths?: string[];
|
|
865
|
+
} | {
|
|
866
|
+
mode?: "archive";
|
|
867
|
+
paths?: string[];
|
|
868
|
+
};
|
|
869
|
+
}, {
|
|
870
|
+
requestId?: string;
|
|
871
|
+
target?: {
|
|
872
|
+
type?: "group_member";
|
|
873
|
+
participantId?: string;
|
|
874
|
+
};
|
|
875
|
+
instructions?: string;
|
|
876
|
+
taskId?: string;
|
|
877
|
+
purpose?: {
|
|
878
|
+
type?: "implementation";
|
|
879
|
+
} | {
|
|
880
|
+
type?: "review";
|
|
881
|
+
implementationExecutionId?: string;
|
|
882
|
+
implementationInvocationId?: string;
|
|
883
|
+
specificationDigest?: string;
|
|
884
|
+
evidence?: ({
|
|
885
|
+
type?: "artifact";
|
|
886
|
+
versionId?: string;
|
|
887
|
+
artifactId?: string;
|
|
888
|
+
} | {
|
|
889
|
+
type?: "invocation_result";
|
|
890
|
+
revision?: number;
|
|
891
|
+
invocationId?: string;
|
|
892
|
+
} | {
|
|
893
|
+
type?: "workspace_snapshot";
|
|
894
|
+
digest?: string;
|
|
895
|
+
snapshotId?: string;
|
|
896
|
+
})[];
|
|
897
|
+
};
|
|
898
|
+
expectedRevision?: number;
|
|
899
|
+
bindingId?: string;
|
|
900
|
+
delivery?: {
|
|
901
|
+
mode?: "none";
|
|
902
|
+
} | {
|
|
903
|
+
mode?: "files";
|
|
904
|
+
paths?: string[];
|
|
905
|
+
} | {
|
|
906
|
+
mode?: "archive";
|
|
907
|
+
paths?: string[];
|
|
908
|
+
};
|
|
909
|
+
}>;
|
|
910
|
+
export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObject<Omit<{
|
|
911
|
+
requestId: z.ZodString;
|
|
912
|
+
taskId: z.ZodString;
|
|
913
|
+
expectedRevision: z.ZodNumber;
|
|
914
|
+
bindingId: z.ZodOptional<z.ZodString>;
|
|
915
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
916
|
+
type: z.ZodLiteral<"group_member">;
|
|
917
|
+
participantId: z.ZodString;
|
|
918
|
+
}, "strict", z.ZodTypeAny, {
|
|
919
|
+
type?: "group_member";
|
|
920
|
+
participantId?: string;
|
|
921
|
+
}, {
|
|
922
|
+
type?: "group_member";
|
|
923
|
+
participantId?: string;
|
|
924
|
+
}>>;
|
|
925
|
+
purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
926
|
+
type: z.ZodLiteral<"implementation">;
|
|
927
|
+
}, "strict", z.ZodTypeAny, {
|
|
928
|
+
type?: "implementation";
|
|
929
|
+
}, {
|
|
930
|
+
type?: "implementation";
|
|
931
|
+
}>, z.ZodObject<{
|
|
932
|
+
type: z.ZodLiteral<"review">;
|
|
933
|
+
implementationExecutionId: z.ZodString;
|
|
934
|
+
implementationInvocationId: z.ZodString;
|
|
935
|
+
specificationDigest: z.ZodString;
|
|
936
|
+
evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
937
|
+
type: z.ZodLiteral<"artifact">;
|
|
938
|
+
artifactId: z.ZodString;
|
|
939
|
+
versionId: z.ZodString;
|
|
940
|
+
}, "strict", z.ZodTypeAny, {
|
|
941
|
+
type?: "artifact";
|
|
942
|
+
versionId?: string;
|
|
943
|
+
artifactId?: string;
|
|
944
|
+
}, {
|
|
945
|
+
type?: "artifact";
|
|
946
|
+
versionId?: string;
|
|
947
|
+
artifactId?: string;
|
|
948
|
+
}>, z.ZodObject<{
|
|
949
|
+
type: z.ZodLiteral<"invocation_result">;
|
|
950
|
+
invocationId: z.ZodString;
|
|
951
|
+
revision: z.ZodNumber;
|
|
952
|
+
}, "strict", z.ZodTypeAny, {
|
|
953
|
+
type?: "invocation_result";
|
|
954
|
+
revision?: number;
|
|
955
|
+
invocationId?: string;
|
|
956
|
+
}, {
|
|
957
|
+
type?: "invocation_result";
|
|
958
|
+
revision?: number;
|
|
959
|
+
invocationId?: string;
|
|
960
|
+
}>, z.ZodObject<{
|
|
961
|
+
type: z.ZodLiteral<"workspace_snapshot">;
|
|
962
|
+
snapshotId: z.ZodString;
|
|
963
|
+
digest: z.ZodString;
|
|
964
|
+
}, "strict", z.ZodTypeAny, {
|
|
965
|
+
type?: "workspace_snapshot";
|
|
966
|
+
digest?: string;
|
|
967
|
+
snapshotId?: string;
|
|
968
|
+
}, {
|
|
969
|
+
type?: "workspace_snapshot";
|
|
970
|
+
digest?: string;
|
|
971
|
+
snapshotId?: string;
|
|
972
|
+
}>]>, "many">;
|
|
973
|
+
}, "strict", z.ZodTypeAny, {
|
|
974
|
+
type?: "review";
|
|
975
|
+
implementationExecutionId?: string;
|
|
976
|
+
implementationInvocationId?: string;
|
|
977
|
+
specificationDigest?: string;
|
|
978
|
+
evidence?: ({
|
|
979
|
+
type?: "artifact";
|
|
980
|
+
versionId?: string;
|
|
981
|
+
artifactId?: string;
|
|
982
|
+
} | {
|
|
983
|
+
type?: "invocation_result";
|
|
984
|
+
revision?: number;
|
|
985
|
+
invocationId?: string;
|
|
986
|
+
} | {
|
|
987
|
+
type?: "workspace_snapshot";
|
|
988
|
+
digest?: string;
|
|
989
|
+
snapshotId?: string;
|
|
990
|
+
})[];
|
|
991
|
+
}, {
|
|
992
|
+
type?: "review";
|
|
993
|
+
implementationExecutionId?: string;
|
|
994
|
+
implementationInvocationId?: string;
|
|
995
|
+
specificationDigest?: string;
|
|
996
|
+
evidence?: ({
|
|
997
|
+
type?: "artifact";
|
|
998
|
+
versionId?: string;
|
|
999
|
+
artifactId?: string;
|
|
1000
|
+
} | {
|
|
1001
|
+
type?: "invocation_result";
|
|
1002
|
+
revision?: number;
|
|
1003
|
+
invocationId?: string;
|
|
1004
|
+
} | {
|
|
1005
|
+
type?: "workspace_snapshot";
|
|
1006
|
+
digest?: string;
|
|
1007
|
+
snapshotId?: string;
|
|
1008
|
+
})[];
|
|
1009
|
+
}>]>>;
|
|
1010
|
+
delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1011
|
+
mode: z.ZodLiteral<"none">;
|
|
1012
|
+
}, "strict", z.ZodTypeAny, {
|
|
1013
|
+
mode?: "none";
|
|
1014
|
+
}, {
|
|
1015
|
+
mode?: "none";
|
|
1016
|
+
}>, z.ZodObject<{
|
|
1017
|
+
mode: z.ZodLiteral<"files">;
|
|
1018
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
1019
|
+
}, "strict", z.ZodTypeAny, {
|
|
1020
|
+
mode?: "files";
|
|
1021
|
+
paths?: string[];
|
|
1022
|
+
}, {
|
|
1023
|
+
mode?: "files";
|
|
1024
|
+
paths?: string[];
|
|
1025
|
+
}>, z.ZodObject<{
|
|
1026
|
+
mode: z.ZodLiteral<"archive">;
|
|
1027
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
1028
|
+
}, "strict", z.ZodTypeAny, {
|
|
1029
|
+
mode?: "archive";
|
|
1030
|
+
paths?: string[];
|
|
1031
|
+
}, {
|
|
1032
|
+
mode?: "archive";
|
|
1033
|
+
paths?: string[];
|
|
1034
|
+
}>]>>;
|
|
1035
|
+
instructions: z.ZodDefault<z.ZodString>;
|
|
1036
|
+
}, "requestId">, "strict", z.ZodTypeAny, {
|
|
1037
|
+
target?: {
|
|
1038
|
+
type?: "group_member";
|
|
1039
|
+
participantId?: string;
|
|
1040
|
+
};
|
|
1041
|
+
instructions?: string;
|
|
1042
|
+
taskId?: string;
|
|
1043
|
+
purpose?: {
|
|
1044
|
+
type?: "implementation";
|
|
1045
|
+
} | {
|
|
1046
|
+
type?: "review";
|
|
1047
|
+
implementationExecutionId?: string;
|
|
1048
|
+
implementationInvocationId?: string;
|
|
1049
|
+
specificationDigest?: string;
|
|
1050
|
+
evidence?: ({
|
|
1051
|
+
type?: "artifact";
|
|
1052
|
+
versionId?: string;
|
|
1053
|
+
artifactId?: string;
|
|
1054
|
+
} | {
|
|
1055
|
+
type?: "invocation_result";
|
|
1056
|
+
revision?: number;
|
|
1057
|
+
invocationId?: string;
|
|
1058
|
+
} | {
|
|
1059
|
+
type?: "workspace_snapshot";
|
|
1060
|
+
digest?: string;
|
|
1061
|
+
snapshotId?: string;
|
|
1062
|
+
})[];
|
|
1063
|
+
};
|
|
1064
|
+
expectedRevision?: number;
|
|
1065
|
+
bindingId?: string;
|
|
1066
|
+
delivery?: {
|
|
1067
|
+
mode?: "none";
|
|
1068
|
+
} | {
|
|
1069
|
+
mode?: "files";
|
|
1070
|
+
paths?: string[];
|
|
1071
|
+
} | {
|
|
1072
|
+
mode?: "archive";
|
|
1073
|
+
paths?: string[];
|
|
1074
|
+
};
|
|
1075
|
+
}, {
|
|
1076
|
+
target?: {
|
|
1077
|
+
type?: "group_member";
|
|
1078
|
+
participantId?: string;
|
|
1079
|
+
};
|
|
1080
|
+
instructions?: string;
|
|
1081
|
+
taskId?: string;
|
|
1082
|
+
purpose?: {
|
|
1083
|
+
type?: "implementation";
|
|
1084
|
+
} | {
|
|
1085
|
+
type?: "review";
|
|
1086
|
+
implementationExecutionId?: string;
|
|
1087
|
+
implementationInvocationId?: string;
|
|
1088
|
+
specificationDigest?: string;
|
|
1089
|
+
evidence?: ({
|
|
1090
|
+
type?: "artifact";
|
|
1091
|
+
versionId?: string;
|
|
1092
|
+
artifactId?: string;
|
|
1093
|
+
} | {
|
|
1094
|
+
type?: "invocation_result";
|
|
1095
|
+
revision?: number;
|
|
1096
|
+
invocationId?: string;
|
|
1097
|
+
} | {
|
|
1098
|
+
type?: "workspace_snapshot";
|
|
1099
|
+
digest?: string;
|
|
1100
|
+
snapshotId?: string;
|
|
1101
|
+
})[];
|
|
1102
|
+
};
|
|
1103
|
+
expectedRevision?: number;
|
|
1104
|
+
bindingId?: string;
|
|
1105
|
+
delivery?: {
|
|
1106
|
+
mode?: "none";
|
|
1107
|
+
} | {
|
|
1108
|
+
mode?: "files";
|
|
1109
|
+
paths?: string[];
|
|
1110
|
+
} | {
|
|
1111
|
+
mode?: "archive";
|
|
1112
|
+
paths?: string[];
|
|
1113
|
+
};
|
|
1114
|
+
}>, {
|
|
1115
|
+
target?: {
|
|
1116
|
+
type?: "group_member";
|
|
1117
|
+
participantId?: string;
|
|
1118
|
+
};
|
|
1119
|
+
instructions?: string;
|
|
1120
|
+
taskId?: string;
|
|
1121
|
+
purpose?: {
|
|
1122
|
+
type?: "implementation";
|
|
1123
|
+
} | {
|
|
1124
|
+
type?: "review";
|
|
1125
|
+
implementationExecutionId?: string;
|
|
1126
|
+
implementationInvocationId?: string;
|
|
1127
|
+
specificationDigest?: string;
|
|
1128
|
+
evidence?: ({
|
|
1129
|
+
type?: "artifact";
|
|
1130
|
+
versionId?: string;
|
|
1131
|
+
artifactId?: string;
|
|
1132
|
+
} | {
|
|
1133
|
+
type?: "invocation_result";
|
|
1134
|
+
revision?: number;
|
|
1135
|
+
invocationId?: string;
|
|
1136
|
+
} | {
|
|
1137
|
+
type?: "workspace_snapshot";
|
|
1138
|
+
digest?: string;
|
|
1139
|
+
snapshotId?: string;
|
|
1140
|
+
})[];
|
|
1141
|
+
};
|
|
1142
|
+
expectedRevision?: number;
|
|
1143
|
+
bindingId?: string;
|
|
1144
|
+
delivery?: {
|
|
1145
|
+
mode?: "none";
|
|
1146
|
+
} | {
|
|
1147
|
+
mode?: "files";
|
|
1148
|
+
paths?: string[];
|
|
1149
|
+
} | {
|
|
1150
|
+
mode?: "archive";
|
|
1151
|
+
paths?: string[];
|
|
1152
|
+
};
|
|
1153
|
+
}, {
|
|
1154
|
+
target?: {
|
|
1155
|
+
type?: "group_member";
|
|
1156
|
+
participantId?: string;
|
|
1157
|
+
};
|
|
778
1158
|
instructions?: string;
|
|
779
1159
|
taskId?: string;
|
|
780
1160
|
purpose?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TCopilotModel } from './copilot-model.model';
|
|
1
|
+
import type { ModelSelectionMetadata, TCopilotModel } from './copilot-model.model';
|
|
2
2
|
import type { VoiceTaskStatus } from './realtime-voice.transport';
|
|
3
3
|
/** Realtime is a separate model capability, not the Assistant's reasoning model. */
|
|
4
4
|
export interface RealtimeVoiceFeature {
|
|
@@ -18,7 +18,7 @@ export interface RealtimeModelMetadata {
|
|
|
18
18
|
defaultVoice: string;
|
|
19
19
|
notification: 'text' | 'next-turn';
|
|
20
20
|
}
|
|
21
|
-
export interface RealtimeModelOption extends RealtimeModelMetadata {
|
|
21
|
+
export interface RealtimeModelOption extends RealtimeModelMetadata, ModelSelectionMetadata {
|
|
22
22
|
id: string;
|
|
23
23
|
label: string;
|
|
24
24
|
copilotModel: TCopilotModel;
|
|
@@ -22,6 +22,7 @@ export declare enum SandboxTerminalClosedReason {
|
|
|
22
22
|
}
|
|
23
23
|
export declare enum SandboxTerminalErrorCode {
|
|
24
24
|
CloseFailed = "close_failed",
|
|
25
|
+
ComputerDesktopRequired = "computer_desktop_required",
|
|
25
26
|
ConversationNotFound = "conversation_not_found",
|
|
26
27
|
ConversationRequired = "conversation_required",
|
|
27
28
|
InputFailed = "input_failed",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBasePerTenantEntityModel } from '../base-entity.model';
|
|
2
2
|
import { IconDefinition, TAvatar } from '../types';
|
|
3
|
-
import { TCopilotModel } from './copilot-model.model';
|
|
3
|
+
import { ModelSelectionMetadata, TCopilotModel } from './copilot-model.model';
|
|
4
4
|
import { ModelFeature } from './ai-model.model';
|
|
5
5
|
import { MCPServerType, TMCPServer } from './xpert-tool-mcp.model';
|
|
6
6
|
import { XpertTypeEnum } from './xpert.model';
|
|
@@ -125,23 +125,12 @@ export interface AssistantCapabilityDeclaration {
|
|
|
125
125
|
required?: boolean;
|
|
126
126
|
}
|
|
127
127
|
/** Public model metadata for capability setup; never includes provider credentials or model configuration. */
|
|
128
|
-
export interface XpertTemplateModelOption {
|
|
128
|
+
export interface XpertTemplateModelOption extends ModelSelectionMetadata {
|
|
129
129
|
/** Opaque selection key; clients must submit it unchanged rather than reconstructing it. */
|
|
130
130
|
id: string;
|
|
131
131
|
label: string;
|
|
132
132
|
/** Model reference for installation; setup responses only project copilotId, model and modelType. */
|
|
133
133
|
copilotModel: TCopilotModel;
|
|
134
|
-
/** Display grouping by provider, not a credential scope. Optional for older setup endpoints. */
|
|
135
|
-
provider?: {
|
|
136
|
-
id: string;
|
|
137
|
-
label: string;
|
|
138
|
-
};
|
|
139
|
-
/** Display name that distinguishes multiple configured connections for the same provider. */
|
|
140
|
-
connectionName?: string;
|
|
141
|
-
/** Declared model features for badges/recommendations; installation still validates compatibility. */
|
|
142
|
-
features?: ModelFeature[];
|
|
143
|
-
/** Context capacity in tokens, not usage; omitted when the provider does not declare it. */
|
|
144
|
-
contextWindow?: number;
|
|
145
134
|
}
|
|
146
135
|
export interface XpertTemplateSetup {
|
|
147
136
|
/** ID of a compatible organization default in `models`; absent if none qualifies. */
|
package/src/api-key.model.d.ts
CHANGED
|
@@ -8,15 +8,19 @@ export interface IApiKey extends IBasePerTenantAndOrganizationEntityModel {
|
|
|
8
8
|
token: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
/**
|
|
11
|
-
* Stable binding kind for resolving the technical principal behind this key.
|
|
11
|
+
* Stable persisted binding kind for resolving the technical principal behind this key.
|
|
12
|
+
* @deprecated Reading IApiPrincipal.apiKey.type for resource authorization is deprecated;
|
|
13
|
+
* use IApiPrincipal.resourceScope.kind. This persisted identity discriminator remains supported.
|
|
12
14
|
*/
|
|
13
15
|
type?: ApiKeyBindingType;
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
17
|
+
* Persistence/technical-identity binding only. Examples:
|
|
16
18
|
* - assistant => xpertId
|
|
17
19
|
* - workspace => workspaceId
|
|
18
20
|
* - integration => integrationId
|
|
19
21
|
* - client => clientCode
|
|
22
|
+
* @deprecated Business authorization via IApiPrincipal.apiKey.entityId is deprecated;
|
|
23
|
+
* consume the authentication-normalized IApiPrincipal.resourceScope instead.
|
|
20
24
|
*/
|
|
21
25
|
entityId?: string;
|
|
22
26
|
validUntil?: Date;
|
|
@@ -48,8 +52,35 @@ export declare enum ApiKeyBindingType {
|
|
|
48
52
|
KNOWLEDGEBASE = "knowledgebase"
|
|
49
53
|
}
|
|
50
54
|
export type ApiPrincipalType = 'api_key' | 'client_secret';
|
|
55
|
+
/**
|
|
56
|
+
* Credential-bound resource audience restored by authentication. This is not a
|
|
57
|
+
* permission grant: tenant/organization, membership and operation checks still apply.
|
|
58
|
+
* Only explicit persisted bindings may produce a scope; request parameters cannot widen it.
|
|
59
|
+
*/
|
|
60
|
+
export type ApiPrincipalResourceScope =
|
|
61
|
+
/** One digital expert; thread/file operations must additionally match that expert. */
|
|
62
|
+
{
|
|
63
|
+
kind: 'assistant';
|
|
64
|
+
xpertId: string;
|
|
65
|
+
}
|
|
66
|
+
/** One workspace; membership and operation policy determine which resources are accessible. */
|
|
67
|
+
| {
|
|
68
|
+
kind: 'workspace';
|
|
69
|
+
workspaceId: string;
|
|
70
|
+
}
|
|
71
|
+
/** One shared conversation; never grants direct access to members' Assistant runtime threads. */
|
|
72
|
+
| {
|
|
73
|
+
kind: 'conversation';
|
|
74
|
+
conversationId: string;
|
|
75
|
+
};
|
|
51
76
|
export interface IApiPrincipal extends IUser {
|
|
52
77
|
principalType: ApiPrincipalType;
|
|
78
|
+
/**
|
|
79
|
+
* Backing credential metadata. Real API keys retain their persistence binding.
|
|
80
|
+
* @deprecated Reading apiKey.type/entityId for resource authorization, or using
|
|
81
|
+
* a synthetic API key as an audience, is deprecated. Use resourceScope instead.
|
|
82
|
+
* Synthetic Assistant keys remain temporarily for existing metadata consumers.
|
|
83
|
+
*/
|
|
53
84
|
apiKey?: IApiKey;
|
|
54
85
|
/**
|
|
55
86
|
* Binding target kind for short-lived client_secret principals.
|
|
@@ -63,6 +94,10 @@ export interface IApiPrincipal extends IUser {
|
|
|
63
94
|
*/
|
|
64
95
|
clientSecretBindingType?: SecretTokenBindingType | null;
|
|
65
96
|
clientSecretId?: string | null;
|
|
97
|
+
/** Canonical resource audience. Undefined means no normalized resource binding, not unrestricted permission. */
|
|
98
|
+
resourceScope?: ApiPrincipalResourceScope;
|
|
99
|
+
/** Absolute expiry for long-lived streams to recheck after the initial authentication. */
|
|
100
|
+
clientSecretExpiresAt?: Date;
|
|
66
101
|
/** Exact enterprise H5 channel carried by an enterprise client secret. */
|
|
67
102
|
enterpriseH5Scope?: TEnterpriseH5TokenScope | null;
|
|
68
103
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Official resource packages imported into the selected organization, without publishing workspace bindings. */
|
|
2
|
+
export declare const DEFAULT_AGENT_PLUGINS_SOURCE: {
|
|
3
|
+
readonly url: "https://github.com/xpert-ai/xpert-plugins.git";
|
|
4
|
+
readonly ref: "main";
|
|
5
|
+
readonly subdirectory: "agent-plugins";
|
|
6
|
+
readonly browseUrl: "https://github.com/xpert-ai/xpert-plugins/tree/main/agent-plugins";
|
|
7
|
+
};
|
|
8
|
+
export interface DefaultAgentPluginImportItem {
|
|
9
|
+
id: string;
|
|
10
|
+
status: 'imported' | 'existing' | 'failed';
|
|
11
|
+
packageId?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
diagnosticCount?: number;
|
|
14
|
+
error?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DefaultAgentPluginsImportResult {
|
|
17
|
+
commit: string;
|
|
18
|
+
items: DefaultAgentPluginImportItem[];
|
|
19
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -63,7 +63,9 @@ export * from './plain-object.model';
|
|
|
63
63
|
export * from './plugin';
|
|
64
64
|
export * from './view-extension';
|
|
65
65
|
export * from './runtime-control';
|
|
66
|
-
export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult } from './agent-plugin';
|
|
66
|
+
export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult, InstalledAgentPlugin } from './agent-plugin';
|
|
67
67
|
export * from './desktop-shell.model';
|
|
68
68
|
export * from './ai/agent-output-delivery.model';
|
|
69
69
|
export * from './ai/execution-activity.model';
|
|
70
|
+
export * from './setup-plugins';
|
|
71
|
+
export * from './default-agent-plugins';
|