@opencode-ai/protocol 0.0.0-next-14994 → 0.0.0-next-14997
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/groups/event.d.ts +217 -92
- package/dist/groups/message.d.ts +66 -26
- package/dist/groups/session.d.ts +363 -158
- package/dist/groups/session.js +8 -2
- package/package.json +2 -2
package/dist/groups/session.d.ts
CHANGED
|
@@ -810,7 +810,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
810
810
|
readonly uri: Schema.String;
|
|
811
811
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
812
812
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
813
|
-
readonly
|
|
813
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
814
814
|
readonly start: Schema.Finite;
|
|
815
815
|
readonly end: Schema.Finite;
|
|
816
816
|
readonly text: Schema.String;
|
|
@@ -824,7 +824,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
824
824
|
readonly uri: string;
|
|
825
825
|
readonly name?: string | undefined;
|
|
826
826
|
readonly description?: string | undefined;
|
|
827
|
-
readonly
|
|
827
|
+
readonly mention?: {
|
|
828
828
|
readonly start: number;
|
|
829
829
|
readonly end: number;
|
|
830
830
|
readonly text: string;
|
|
@@ -834,7 +834,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
834
834
|
readonly uri: Schema.String;
|
|
835
835
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
836
836
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
837
|
-
readonly
|
|
837
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
838
838
|
readonly start: Schema.Finite;
|
|
839
839
|
readonly end: Schema.Finite;
|
|
840
840
|
readonly text: Schema.String;
|
|
@@ -848,7 +848,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
848
848
|
readonly uri: string;
|
|
849
849
|
readonly name?: string | undefined;
|
|
850
850
|
readonly description?: string | undefined;
|
|
851
|
-
readonly
|
|
851
|
+
readonly mention?: {
|
|
852
852
|
readonly start: number;
|
|
853
853
|
readonly end: number;
|
|
854
854
|
readonly text: string;
|
|
@@ -857,7 +857,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
857
857
|
}>>, never, never>;
|
|
858
858
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
859
859
|
readonly name: Schema.String;
|
|
860
|
-
readonly
|
|
860
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
861
861
|
readonly start: Schema.Finite;
|
|
862
862
|
readonly end: Schema.Finite;
|
|
863
863
|
readonly text: Schema.String;
|
|
@@ -868,7 +868,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
868
868
|
}>>, never, never>;
|
|
869
869
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
870
870
|
readonly name: Schema.String;
|
|
871
|
-
readonly
|
|
871
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
872
872
|
readonly start: Schema.Finite;
|
|
873
873
|
readonly end: Schema.Finite;
|
|
874
874
|
readonly text: Schema.String;
|
|
@@ -895,12 +895,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
895
895
|
readonly prompt: Schema.Struct<{
|
|
896
896
|
readonly text: Schema.String;
|
|
897
897
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
898
|
-
readonly
|
|
898
|
+
readonly data: Schema.String;
|
|
899
899
|
readonly mime: Schema.String;
|
|
900
|
-
readonly
|
|
900
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
901
|
+
readonly type: Schema.Literal<"inline">;
|
|
902
|
+
}>, Schema.Struct<{
|
|
903
|
+
readonly type: Schema.Literal<"uri">;
|
|
904
|
+
readonly uri: Schema.String;
|
|
905
|
+
}>]>;
|
|
901
906
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
902
907
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
903
|
-
readonly
|
|
908
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
904
909
|
readonly start: Schema.Finite;
|
|
905
910
|
readonly end: Schema.Finite;
|
|
906
911
|
readonly text: Schema.String;
|
|
@@ -911,24 +916,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
911
916
|
}>>, never, never>;
|
|
912
917
|
}> & {
|
|
913
918
|
create: (input: SessionEvent.FileAttachment) => {
|
|
914
|
-
readonly
|
|
919
|
+
readonly data: string;
|
|
915
920
|
readonly mime: string;
|
|
916
|
-
readonly
|
|
921
|
+
readonly source: {
|
|
922
|
+
readonly type: "inline";
|
|
923
|
+
} | {
|
|
924
|
+
readonly type: "uri";
|
|
925
|
+
readonly uri: string;
|
|
926
|
+
};
|
|
917
927
|
readonly name?: string | undefined;
|
|
918
928
|
readonly description?: string | undefined;
|
|
919
|
-
readonly
|
|
929
|
+
readonly mention?: {
|
|
920
930
|
readonly start: number;
|
|
921
931
|
readonly end: number;
|
|
922
932
|
readonly text: string;
|
|
923
933
|
} | undefined;
|
|
924
934
|
};
|
|
925
935
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
926
|
-
readonly
|
|
936
|
+
readonly data: Schema.String;
|
|
927
937
|
readonly mime: Schema.String;
|
|
928
|
-
readonly
|
|
938
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
939
|
+
readonly type: Schema.Literal<"inline">;
|
|
940
|
+
}>, Schema.Struct<{
|
|
941
|
+
readonly type: Schema.Literal<"uri">;
|
|
942
|
+
readonly uri: Schema.String;
|
|
943
|
+
}>]>;
|
|
929
944
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
930
945
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
931
|
-
readonly
|
|
946
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
932
947
|
readonly start: Schema.Finite;
|
|
933
948
|
readonly end: Schema.Finite;
|
|
934
949
|
readonly text: Schema.String;
|
|
@@ -939,12 +954,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
939
954
|
}>>, never, never>;
|
|
940
955
|
}> & {
|
|
941
956
|
create: (input: SessionEvent.FileAttachment) => {
|
|
942
|
-
readonly
|
|
957
|
+
readonly data: string;
|
|
943
958
|
readonly mime: string;
|
|
944
|
-
readonly
|
|
959
|
+
readonly source: {
|
|
960
|
+
readonly type: "inline";
|
|
961
|
+
} | {
|
|
962
|
+
readonly type: "uri";
|
|
963
|
+
readonly uri: string;
|
|
964
|
+
};
|
|
945
965
|
readonly name?: string | undefined;
|
|
946
966
|
readonly description?: string | undefined;
|
|
947
|
-
readonly
|
|
967
|
+
readonly mention?: {
|
|
948
968
|
readonly start: number;
|
|
949
969
|
readonly end: number;
|
|
950
970
|
readonly text: string;
|
|
@@ -953,7 +973,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
953
973
|
}>>, never, never>;
|
|
954
974
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
955
975
|
readonly name: Schema.String;
|
|
956
|
-
readonly
|
|
976
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
957
977
|
readonly start: Schema.Finite;
|
|
958
978
|
readonly end: Schema.Finite;
|
|
959
979
|
readonly text: Schema.String;
|
|
@@ -964,7 +984,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
964
984
|
}>>, never, never>;
|
|
965
985
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
966
986
|
readonly name: Schema.String;
|
|
967
|
-
readonly
|
|
987
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
968
988
|
readonly start: Schema.Finite;
|
|
969
989
|
readonly end: Schema.Finite;
|
|
970
990
|
readonly text: Schema.String;
|
|
@@ -978,12 +998,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
978
998
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
979
999
|
readonly text: string;
|
|
980
1000
|
readonly files?: readonly {
|
|
981
|
-
readonly
|
|
1001
|
+
readonly data: string;
|
|
982
1002
|
readonly mime: string;
|
|
983
|
-
readonly
|
|
1003
|
+
readonly source: {
|
|
1004
|
+
readonly type: "inline";
|
|
1005
|
+
} | {
|
|
1006
|
+
readonly type: "uri";
|
|
1007
|
+
readonly uri: string;
|
|
1008
|
+
};
|
|
984
1009
|
readonly name?: string | undefined;
|
|
985
1010
|
readonly description?: string | undefined;
|
|
986
|
-
readonly
|
|
1011
|
+
readonly mention?: {
|
|
987
1012
|
readonly start: number;
|
|
988
1013
|
readonly end: number;
|
|
989
1014
|
readonly text: string;
|
|
@@ -991,7 +1016,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
991
1016
|
}[] | undefined;
|
|
992
1017
|
readonly agents?: readonly {
|
|
993
1018
|
readonly name: string;
|
|
994
|
-
readonly
|
|
1019
|
+
readonly mention?: {
|
|
995
1020
|
readonly start: number;
|
|
996
1021
|
readonly end: number;
|
|
997
1022
|
readonly text: string;
|
|
@@ -1001,12 +1026,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1001
1026
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
1002
1027
|
readonly text: string;
|
|
1003
1028
|
readonly files?: readonly {
|
|
1004
|
-
readonly
|
|
1029
|
+
readonly data: string;
|
|
1005
1030
|
readonly mime: string;
|
|
1006
|
-
readonly
|
|
1031
|
+
readonly source: {
|
|
1032
|
+
readonly type: "inline";
|
|
1033
|
+
} | {
|
|
1034
|
+
readonly type: "uri";
|
|
1035
|
+
readonly uri: string;
|
|
1036
|
+
};
|
|
1007
1037
|
readonly name?: string | undefined;
|
|
1008
1038
|
readonly description?: string | undefined;
|
|
1009
|
-
readonly
|
|
1039
|
+
readonly mention?: {
|
|
1010
1040
|
readonly start: number;
|
|
1011
1041
|
readonly end: number;
|
|
1012
1042
|
readonly text: string;
|
|
@@ -1014,7 +1044,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1014
1044
|
}[] | undefined;
|
|
1015
1045
|
readonly agents?: readonly {
|
|
1016
1046
|
readonly name: string;
|
|
1017
|
-
readonly
|
|
1047
|
+
readonly mention?: {
|
|
1018
1048
|
readonly start: number;
|
|
1019
1049
|
readonly end: number;
|
|
1020
1050
|
readonly text: string;
|
|
@@ -1026,7 +1056,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1026
1056
|
readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1027
1057
|
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1028
1058
|
}>;
|
|
1029
|
-
}>>, HttpApiEndpoint.Json<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.command", "POST", "/api/session/:sessionID/command", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
1059
|
+
}>>, HttpApiEndpoint.Json<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.command", "POST", "/api/session/:sessionID/command", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
1030
1060
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1031
1061
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1032
1062
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1060,7 +1090,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1060
1090
|
readonly uri: Schema.String;
|
|
1061
1091
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1062
1092
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1063
|
-
readonly
|
|
1093
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1064
1094
|
readonly start: Schema.Finite;
|
|
1065
1095
|
readonly end: Schema.Finite;
|
|
1066
1096
|
readonly text: Schema.String;
|
|
@@ -1074,7 +1104,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1074
1104
|
readonly uri: string;
|
|
1075
1105
|
readonly name?: string | undefined;
|
|
1076
1106
|
readonly description?: string | undefined;
|
|
1077
|
-
readonly
|
|
1107
|
+
readonly mention?: {
|
|
1078
1108
|
readonly start: number;
|
|
1079
1109
|
readonly end: number;
|
|
1080
1110
|
readonly text: string;
|
|
@@ -1084,7 +1114,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1084
1114
|
readonly uri: Schema.String;
|
|
1085
1115
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1086
1116
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1087
|
-
readonly
|
|
1117
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1088
1118
|
readonly start: Schema.Finite;
|
|
1089
1119
|
readonly end: Schema.Finite;
|
|
1090
1120
|
readonly text: Schema.String;
|
|
@@ -1098,7 +1128,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1098
1128
|
readonly uri: string;
|
|
1099
1129
|
readonly name?: string | undefined;
|
|
1100
1130
|
readonly description?: string | undefined;
|
|
1101
|
-
readonly
|
|
1131
|
+
readonly mention?: {
|
|
1102
1132
|
readonly start: number;
|
|
1103
1133
|
readonly end: number;
|
|
1104
1134
|
readonly text: string;
|
|
@@ -1107,7 +1137,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1107
1137
|
}>>, never, never>;
|
|
1108
1138
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1109
1139
|
readonly name: Schema.String;
|
|
1110
|
-
readonly
|
|
1140
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1111
1141
|
readonly start: Schema.Finite;
|
|
1112
1142
|
readonly end: Schema.Finite;
|
|
1113
1143
|
readonly text: Schema.String;
|
|
@@ -1118,7 +1148,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1118
1148
|
}>>, never, never>;
|
|
1119
1149
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1120
1150
|
readonly name: Schema.String;
|
|
1121
|
-
readonly
|
|
1151
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1122
1152
|
readonly start: Schema.Finite;
|
|
1123
1153
|
readonly end: Schema.Finite;
|
|
1124
1154
|
readonly text: Schema.String;
|
|
@@ -1144,12 +1174,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1144
1174
|
readonly prompt: Schema.Struct<{
|
|
1145
1175
|
readonly text: Schema.String;
|
|
1146
1176
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1147
|
-
readonly
|
|
1177
|
+
readonly data: Schema.String;
|
|
1148
1178
|
readonly mime: Schema.String;
|
|
1149
|
-
readonly
|
|
1179
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1180
|
+
readonly type: Schema.Literal<"inline">;
|
|
1181
|
+
}>, Schema.Struct<{
|
|
1182
|
+
readonly type: Schema.Literal<"uri">;
|
|
1183
|
+
readonly uri: Schema.String;
|
|
1184
|
+
}>]>;
|
|
1150
1185
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1151
1186
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1152
|
-
readonly
|
|
1187
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1153
1188
|
readonly start: Schema.Finite;
|
|
1154
1189
|
readonly end: Schema.Finite;
|
|
1155
1190
|
readonly text: Schema.String;
|
|
@@ -1160,24 +1195,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1160
1195
|
}>>, never, never>;
|
|
1161
1196
|
}> & {
|
|
1162
1197
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1163
|
-
readonly
|
|
1198
|
+
readonly data: string;
|
|
1164
1199
|
readonly mime: string;
|
|
1165
|
-
readonly
|
|
1200
|
+
readonly source: {
|
|
1201
|
+
readonly type: "inline";
|
|
1202
|
+
} | {
|
|
1203
|
+
readonly type: "uri";
|
|
1204
|
+
readonly uri: string;
|
|
1205
|
+
};
|
|
1166
1206
|
readonly name?: string | undefined;
|
|
1167
1207
|
readonly description?: string | undefined;
|
|
1168
|
-
readonly
|
|
1208
|
+
readonly mention?: {
|
|
1169
1209
|
readonly start: number;
|
|
1170
1210
|
readonly end: number;
|
|
1171
1211
|
readonly text: string;
|
|
1172
1212
|
} | undefined;
|
|
1173
1213
|
};
|
|
1174
1214
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1175
|
-
readonly
|
|
1215
|
+
readonly data: Schema.String;
|
|
1176
1216
|
readonly mime: Schema.String;
|
|
1177
|
-
readonly
|
|
1217
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1218
|
+
readonly type: Schema.Literal<"inline">;
|
|
1219
|
+
}>, Schema.Struct<{
|
|
1220
|
+
readonly type: Schema.Literal<"uri">;
|
|
1221
|
+
readonly uri: Schema.String;
|
|
1222
|
+
}>]>;
|
|
1178
1223
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1179
1224
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1180
|
-
readonly
|
|
1225
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1181
1226
|
readonly start: Schema.Finite;
|
|
1182
1227
|
readonly end: Schema.Finite;
|
|
1183
1228
|
readonly text: Schema.String;
|
|
@@ -1188,12 +1233,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1188
1233
|
}>>, never, never>;
|
|
1189
1234
|
}> & {
|
|
1190
1235
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1191
|
-
readonly
|
|
1236
|
+
readonly data: string;
|
|
1192
1237
|
readonly mime: string;
|
|
1193
|
-
readonly
|
|
1238
|
+
readonly source: {
|
|
1239
|
+
readonly type: "inline";
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly type: "uri";
|
|
1242
|
+
readonly uri: string;
|
|
1243
|
+
};
|
|
1194
1244
|
readonly name?: string | undefined;
|
|
1195
1245
|
readonly description?: string | undefined;
|
|
1196
|
-
readonly
|
|
1246
|
+
readonly mention?: {
|
|
1197
1247
|
readonly start: number;
|
|
1198
1248
|
readonly end: number;
|
|
1199
1249
|
readonly text: string;
|
|
@@ -1202,7 +1252,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1202
1252
|
}>>, never, never>;
|
|
1203
1253
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1204
1254
|
readonly name: Schema.String;
|
|
1205
|
-
readonly
|
|
1255
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1206
1256
|
readonly start: Schema.Finite;
|
|
1207
1257
|
readonly end: Schema.Finite;
|
|
1208
1258
|
readonly text: Schema.String;
|
|
@@ -1213,7 +1263,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1213
1263
|
}>>, never, never>;
|
|
1214
1264
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1215
1265
|
readonly name: Schema.String;
|
|
1216
|
-
readonly
|
|
1266
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1217
1267
|
readonly start: Schema.Finite;
|
|
1218
1268
|
readonly end: Schema.Finite;
|
|
1219
1269
|
readonly text: Schema.String;
|
|
@@ -1227,12 +1277,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1227
1277
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
1228
1278
|
readonly text: string;
|
|
1229
1279
|
readonly files?: readonly {
|
|
1230
|
-
readonly
|
|
1280
|
+
readonly data: string;
|
|
1231
1281
|
readonly mime: string;
|
|
1232
|
-
readonly
|
|
1282
|
+
readonly source: {
|
|
1283
|
+
readonly type: "inline";
|
|
1284
|
+
} | {
|
|
1285
|
+
readonly type: "uri";
|
|
1286
|
+
readonly uri: string;
|
|
1287
|
+
};
|
|
1233
1288
|
readonly name?: string | undefined;
|
|
1234
1289
|
readonly description?: string | undefined;
|
|
1235
|
-
readonly
|
|
1290
|
+
readonly mention?: {
|
|
1236
1291
|
readonly start: number;
|
|
1237
1292
|
readonly end: number;
|
|
1238
1293
|
readonly text: string;
|
|
@@ -1240,7 +1295,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1240
1295
|
}[] | undefined;
|
|
1241
1296
|
readonly agents?: readonly {
|
|
1242
1297
|
readonly name: string;
|
|
1243
|
-
readonly
|
|
1298
|
+
readonly mention?: {
|
|
1244
1299
|
readonly start: number;
|
|
1245
1300
|
readonly end: number;
|
|
1246
1301
|
readonly text: string;
|
|
@@ -1250,12 +1305,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1250
1305
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
1251
1306
|
readonly text: string;
|
|
1252
1307
|
readonly files?: readonly {
|
|
1253
|
-
readonly
|
|
1308
|
+
readonly data: string;
|
|
1254
1309
|
readonly mime: string;
|
|
1255
|
-
readonly
|
|
1310
|
+
readonly source: {
|
|
1311
|
+
readonly type: "inline";
|
|
1312
|
+
} | {
|
|
1313
|
+
readonly type: "uri";
|
|
1314
|
+
readonly uri: string;
|
|
1315
|
+
};
|
|
1256
1316
|
readonly name?: string | undefined;
|
|
1257
1317
|
readonly description?: string | undefined;
|
|
1258
|
-
readonly
|
|
1318
|
+
readonly mention?: {
|
|
1259
1319
|
readonly start: number;
|
|
1260
1320
|
readonly end: number;
|
|
1261
1321
|
readonly text: string;
|
|
@@ -1263,7 +1323,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1263
1323
|
}[] | undefined;
|
|
1264
1324
|
readonly agents?: readonly {
|
|
1265
1325
|
readonly name: string;
|
|
1266
|
-
readonly
|
|
1326
|
+
readonly mention?: {
|
|
1267
1327
|
readonly start: number;
|
|
1268
1328
|
readonly end: number;
|
|
1269
1329
|
readonly text: string;
|
|
@@ -1275,7 +1335,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1275
1335
|
readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1276
1336
|
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1277
1337
|
}>;
|
|
1278
|
-
}>>, HttpApiEndpoint.Json<typeof ConflictError | typeof SessionNotFoundError | typeof CommandNotFoundError | typeof CommandEvaluationError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.skill", "POST", "/api/session/:sessionID/skill", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
1338
|
+
}>>, HttpApiEndpoint.Json<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError | typeof CommandNotFoundError | typeof CommandEvaluationError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.skill", "POST", "/api/session/:sessionID/skill", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
1279
1339
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1280
1340
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1281
1341
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1440,12 +1500,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1440
1500
|
}>, Schema.Struct<{
|
|
1441
1501
|
readonly text: Schema.String;
|
|
1442
1502
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1443
|
-
readonly
|
|
1503
|
+
readonly data: Schema.String;
|
|
1444
1504
|
readonly mime: Schema.String;
|
|
1445
|
-
readonly
|
|
1505
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1506
|
+
readonly type: Schema.Literal<"inline">;
|
|
1507
|
+
}>, Schema.Struct<{
|
|
1508
|
+
readonly type: Schema.Literal<"uri">;
|
|
1509
|
+
readonly uri: Schema.String;
|
|
1510
|
+
}>]>;
|
|
1446
1511
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1447
1512
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1448
|
-
readonly
|
|
1513
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1449
1514
|
readonly start: Schema.Finite;
|
|
1450
1515
|
readonly end: Schema.Finite;
|
|
1451
1516
|
readonly text: Schema.String;
|
|
@@ -1456,24 +1521,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1456
1521
|
}>>, never, never>;
|
|
1457
1522
|
}> & {
|
|
1458
1523
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1459
|
-
readonly
|
|
1524
|
+
readonly data: string;
|
|
1460
1525
|
readonly mime: string;
|
|
1461
|
-
readonly
|
|
1526
|
+
readonly source: {
|
|
1527
|
+
readonly type: "inline";
|
|
1528
|
+
} | {
|
|
1529
|
+
readonly type: "uri";
|
|
1530
|
+
readonly uri: string;
|
|
1531
|
+
};
|
|
1462
1532
|
readonly name?: string | undefined;
|
|
1463
1533
|
readonly description?: string | undefined;
|
|
1464
|
-
readonly
|
|
1534
|
+
readonly mention?: {
|
|
1465
1535
|
readonly start: number;
|
|
1466
1536
|
readonly end: number;
|
|
1467
1537
|
readonly text: string;
|
|
1468
1538
|
} | undefined;
|
|
1469
1539
|
};
|
|
1470
1540
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1471
|
-
readonly
|
|
1541
|
+
readonly data: Schema.String;
|
|
1472
1542
|
readonly mime: Schema.String;
|
|
1473
|
-
readonly
|
|
1543
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1544
|
+
readonly type: Schema.Literal<"inline">;
|
|
1545
|
+
}>, Schema.Struct<{
|
|
1546
|
+
readonly type: Schema.Literal<"uri">;
|
|
1547
|
+
readonly uri: Schema.String;
|
|
1548
|
+
}>]>;
|
|
1474
1549
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1475
1550
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1476
|
-
readonly
|
|
1551
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1477
1552
|
readonly start: Schema.Finite;
|
|
1478
1553
|
readonly end: Schema.Finite;
|
|
1479
1554
|
readonly text: Schema.String;
|
|
@@ -1484,12 +1559,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1484
1559
|
}>>, never, never>;
|
|
1485
1560
|
}> & {
|
|
1486
1561
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1487
|
-
readonly
|
|
1562
|
+
readonly data: string;
|
|
1488
1563
|
readonly mime: string;
|
|
1489
|
-
readonly
|
|
1564
|
+
readonly source: {
|
|
1565
|
+
readonly type: "inline";
|
|
1566
|
+
} | {
|
|
1567
|
+
readonly type: "uri";
|
|
1568
|
+
readonly uri: string;
|
|
1569
|
+
};
|
|
1490
1570
|
readonly name?: string | undefined;
|
|
1491
1571
|
readonly description?: string | undefined;
|
|
1492
|
-
readonly
|
|
1572
|
+
readonly mention?: {
|
|
1493
1573
|
readonly start: number;
|
|
1494
1574
|
readonly end: number;
|
|
1495
1575
|
readonly text: string;
|
|
@@ -1498,7 +1578,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1498
1578
|
}>>, never, never>;
|
|
1499
1579
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1500
1580
|
readonly name: Schema.String;
|
|
1501
|
-
readonly
|
|
1581
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1502
1582
|
readonly start: Schema.Finite;
|
|
1503
1583
|
readonly end: Schema.Finite;
|
|
1504
1584
|
readonly text: Schema.String;
|
|
@@ -1509,7 +1589,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1509
1589
|
}>>, never, never>;
|
|
1510
1590
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1511
1591
|
readonly name: Schema.String;
|
|
1512
|
-
readonly
|
|
1592
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1513
1593
|
readonly start: Schema.Finite;
|
|
1514
1594
|
readonly end: Schema.Finite;
|
|
1515
1595
|
readonly text: Schema.String;
|
|
@@ -1676,12 +1756,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1676
1756
|
readonly status: Schema.Literal<"completed">;
|
|
1677
1757
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1678
1758
|
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1679
|
-
readonly
|
|
1759
|
+
readonly data: Schema.String;
|
|
1680
1760
|
readonly mime: Schema.String;
|
|
1681
|
-
readonly
|
|
1761
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1762
|
+
readonly type: Schema.Literal<"inline">;
|
|
1763
|
+
}>, Schema.Struct<{
|
|
1764
|
+
readonly type: Schema.Literal<"uri">;
|
|
1765
|
+
readonly uri: Schema.String;
|
|
1766
|
+
}>]>;
|
|
1682
1767
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1683
1768
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1684
|
-
readonly
|
|
1769
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1685
1770
|
readonly start: Schema.Finite;
|
|
1686
1771
|
readonly end: Schema.Finite;
|
|
1687
1772
|
readonly text: Schema.String;
|
|
@@ -1692,24 +1777,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1692
1777
|
}>>, never, never>;
|
|
1693
1778
|
}> & {
|
|
1694
1779
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1695
|
-
readonly
|
|
1780
|
+
readonly data: string;
|
|
1696
1781
|
readonly mime: string;
|
|
1697
|
-
readonly
|
|
1782
|
+
readonly source: {
|
|
1783
|
+
readonly type: "inline";
|
|
1784
|
+
} | {
|
|
1785
|
+
readonly type: "uri";
|
|
1786
|
+
readonly uri: string;
|
|
1787
|
+
};
|
|
1698
1788
|
readonly name?: string | undefined;
|
|
1699
1789
|
readonly description?: string | undefined;
|
|
1700
|
-
readonly
|
|
1790
|
+
readonly mention?: {
|
|
1701
1791
|
readonly start: number;
|
|
1702
1792
|
readonly end: number;
|
|
1703
1793
|
readonly text: string;
|
|
1704
1794
|
} | undefined;
|
|
1705
1795
|
};
|
|
1706
1796
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1707
|
-
readonly
|
|
1797
|
+
readonly data: Schema.String;
|
|
1708
1798
|
readonly mime: Schema.String;
|
|
1709
|
-
readonly
|
|
1799
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1800
|
+
readonly type: Schema.Literal<"inline">;
|
|
1801
|
+
}>, Schema.Struct<{
|
|
1802
|
+
readonly type: Schema.Literal<"uri">;
|
|
1803
|
+
readonly uri: Schema.String;
|
|
1804
|
+
}>]>;
|
|
1710
1805
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1711
1806
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1712
|
-
readonly
|
|
1807
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1713
1808
|
readonly start: Schema.Finite;
|
|
1714
1809
|
readonly end: Schema.Finite;
|
|
1715
1810
|
readonly text: Schema.String;
|
|
@@ -1720,12 +1815,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1720
1815
|
}>>, never, never>;
|
|
1721
1816
|
}> & {
|
|
1722
1817
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1723
|
-
readonly
|
|
1818
|
+
readonly data: string;
|
|
1724
1819
|
readonly mime: string;
|
|
1725
|
-
readonly
|
|
1820
|
+
readonly source: {
|
|
1821
|
+
readonly type: "inline";
|
|
1822
|
+
} | {
|
|
1823
|
+
readonly type: "uri";
|
|
1824
|
+
readonly uri: string;
|
|
1825
|
+
};
|
|
1726
1826
|
readonly name?: string | undefined;
|
|
1727
1827
|
readonly description?: string | undefined;
|
|
1728
|
-
readonly
|
|
1828
|
+
readonly mention?: {
|
|
1729
1829
|
readonly start: number;
|
|
1730
1830
|
readonly end: number;
|
|
1731
1831
|
readonly text: string;
|
|
@@ -2289,12 +2389,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2289
2389
|
prompt: Schema.Struct<{
|
|
2290
2390
|
readonly text: Schema.String;
|
|
2291
2391
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2292
|
-
readonly
|
|
2392
|
+
readonly data: Schema.String;
|
|
2293
2393
|
readonly mime: Schema.String;
|
|
2294
|
-
readonly
|
|
2394
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2395
|
+
readonly type: Schema.Literal<"inline">;
|
|
2396
|
+
}>, Schema.Struct<{
|
|
2397
|
+
readonly type: Schema.Literal<"uri">;
|
|
2398
|
+
readonly uri: Schema.String;
|
|
2399
|
+
}>]>;
|
|
2295
2400
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2296
2401
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2297
|
-
readonly
|
|
2402
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2298
2403
|
readonly start: Schema.Finite;
|
|
2299
2404
|
readonly end: Schema.Finite;
|
|
2300
2405
|
readonly text: Schema.String;
|
|
@@ -2305,24 +2410,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2305
2410
|
}>>, never, never>;
|
|
2306
2411
|
}> & {
|
|
2307
2412
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2308
|
-
readonly
|
|
2413
|
+
readonly data: string;
|
|
2309
2414
|
readonly mime: string;
|
|
2310
|
-
readonly
|
|
2415
|
+
readonly source: {
|
|
2416
|
+
readonly type: "inline";
|
|
2417
|
+
} | {
|
|
2418
|
+
readonly type: "uri";
|
|
2419
|
+
readonly uri: string;
|
|
2420
|
+
};
|
|
2311
2421
|
readonly name?: string | undefined;
|
|
2312
2422
|
readonly description?: string | undefined;
|
|
2313
|
-
readonly
|
|
2423
|
+
readonly mention?: {
|
|
2314
2424
|
readonly start: number;
|
|
2315
2425
|
readonly end: number;
|
|
2316
2426
|
readonly text: string;
|
|
2317
2427
|
} | undefined;
|
|
2318
2428
|
};
|
|
2319
2429
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2320
|
-
readonly
|
|
2430
|
+
readonly data: Schema.String;
|
|
2321
2431
|
readonly mime: Schema.String;
|
|
2322
|
-
readonly
|
|
2432
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2433
|
+
readonly type: Schema.Literal<"inline">;
|
|
2434
|
+
}>, Schema.Struct<{
|
|
2435
|
+
readonly type: Schema.Literal<"uri">;
|
|
2436
|
+
readonly uri: Schema.String;
|
|
2437
|
+
}>]>;
|
|
2323
2438
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2324
2439
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2325
|
-
readonly
|
|
2440
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2326
2441
|
readonly start: Schema.Finite;
|
|
2327
2442
|
readonly end: Schema.Finite;
|
|
2328
2443
|
readonly text: Schema.String;
|
|
@@ -2333,12 +2448,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2333
2448
|
}>>, never, never>;
|
|
2334
2449
|
}> & {
|
|
2335
2450
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2336
|
-
readonly
|
|
2451
|
+
readonly data: string;
|
|
2337
2452
|
readonly mime: string;
|
|
2338
|
-
readonly
|
|
2453
|
+
readonly source: {
|
|
2454
|
+
readonly type: "inline";
|
|
2455
|
+
} | {
|
|
2456
|
+
readonly type: "uri";
|
|
2457
|
+
readonly uri: string;
|
|
2458
|
+
};
|
|
2339
2459
|
readonly name?: string | undefined;
|
|
2340
2460
|
readonly description?: string | undefined;
|
|
2341
|
-
readonly
|
|
2461
|
+
readonly mention?: {
|
|
2342
2462
|
readonly start: number;
|
|
2343
2463
|
readonly end: number;
|
|
2344
2464
|
readonly text: string;
|
|
@@ -2347,7 +2467,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2347
2467
|
}>>, never, never>;
|
|
2348
2468
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2349
2469
|
readonly name: Schema.String;
|
|
2350
|
-
readonly
|
|
2470
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2351
2471
|
readonly start: Schema.Finite;
|
|
2352
2472
|
readonly end: Schema.Finite;
|
|
2353
2473
|
readonly text: Schema.String;
|
|
@@ -2358,7 +2478,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2358
2478
|
}>>, never, never>;
|
|
2359
2479
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2360
2480
|
readonly name: Schema.String;
|
|
2361
|
-
readonly
|
|
2481
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2362
2482
|
readonly start: Schema.Finite;
|
|
2363
2483
|
readonly end: Schema.Finite;
|
|
2364
2484
|
readonly text: Schema.String;
|
|
@@ -2372,12 +2492,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2372
2492
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
2373
2493
|
readonly text: string;
|
|
2374
2494
|
readonly files?: readonly {
|
|
2375
|
-
readonly
|
|
2495
|
+
readonly data: string;
|
|
2376
2496
|
readonly mime: string;
|
|
2377
|
-
readonly
|
|
2497
|
+
readonly source: {
|
|
2498
|
+
readonly type: "inline";
|
|
2499
|
+
} | {
|
|
2500
|
+
readonly type: "uri";
|
|
2501
|
+
readonly uri: string;
|
|
2502
|
+
};
|
|
2378
2503
|
readonly name?: string | undefined;
|
|
2379
2504
|
readonly description?: string | undefined;
|
|
2380
|
-
readonly
|
|
2505
|
+
readonly mention?: {
|
|
2381
2506
|
readonly start: number;
|
|
2382
2507
|
readonly end: number;
|
|
2383
2508
|
readonly text: string;
|
|
@@ -2385,7 +2510,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2385
2510
|
}[] | undefined;
|
|
2386
2511
|
readonly agents?: readonly {
|
|
2387
2512
|
readonly name: string;
|
|
2388
|
-
readonly
|
|
2513
|
+
readonly mention?: {
|
|
2389
2514
|
readonly start: number;
|
|
2390
2515
|
readonly end: number;
|
|
2391
2516
|
readonly text: string;
|
|
@@ -2395,12 +2520,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2395
2520
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
2396
2521
|
readonly text: string;
|
|
2397
2522
|
readonly files?: readonly {
|
|
2398
|
-
readonly
|
|
2523
|
+
readonly data: string;
|
|
2399
2524
|
readonly mime: string;
|
|
2400
|
-
readonly
|
|
2525
|
+
readonly source: {
|
|
2526
|
+
readonly type: "inline";
|
|
2527
|
+
} | {
|
|
2528
|
+
readonly type: "uri";
|
|
2529
|
+
readonly uri: string;
|
|
2530
|
+
};
|
|
2401
2531
|
readonly name?: string | undefined;
|
|
2402
2532
|
readonly description?: string | undefined;
|
|
2403
|
-
readonly
|
|
2533
|
+
readonly mention?: {
|
|
2404
2534
|
readonly start: number;
|
|
2405
2535
|
readonly end: number;
|
|
2406
2536
|
readonly text: string;
|
|
@@ -2408,7 +2538,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2408
2538
|
}[] | undefined;
|
|
2409
2539
|
readonly agents?: readonly {
|
|
2410
2540
|
readonly name: string;
|
|
2411
|
-
readonly
|
|
2541
|
+
readonly mention?: {
|
|
2412
2542
|
readonly start: number;
|
|
2413
2543
|
readonly end: number;
|
|
2414
2544
|
readonly text: string;
|
|
@@ -2437,12 +2567,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2437
2567
|
prompt: Schema.Struct<{
|
|
2438
2568
|
readonly text: Schema.String;
|
|
2439
2569
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2440
|
-
readonly
|
|
2570
|
+
readonly data: Schema.String;
|
|
2441
2571
|
readonly mime: Schema.String;
|
|
2442
|
-
readonly
|
|
2572
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2573
|
+
readonly type: Schema.Literal<"inline">;
|
|
2574
|
+
}>, Schema.Struct<{
|
|
2575
|
+
readonly type: Schema.Literal<"uri">;
|
|
2576
|
+
readonly uri: Schema.String;
|
|
2577
|
+
}>]>;
|
|
2443
2578
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2444
2579
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2445
|
-
readonly
|
|
2580
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2446
2581
|
readonly start: Schema.Finite;
|
|
2447
2582
|
readonly end: Schema.Finite;
|
|
2448
2583
|
readonly text: Schema.String;
|
|
@@ -2453,24 +2588,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2453
2588
|
}>>, never, never>;
|
|
2454
2589
|
}> & {
|
|
2455
2590
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2456
|
-
readonly
|
|
2591
|
+
readonly data: string;
|
|
2457
2592
|
readonly mime: string;
|
|
2458
|
-
readonly
|
|
2593
|
+
readonly source: {
|
|
2594
|
+
readonly type: "inline";
|
|
2595
|
+
} | {
|
|
2596
|
+
readonly type: "uri";
|
|
2597
|
+
readonly uri: string;
|
|
2598
|
+
};
|
|
2459
2599
|
readonly name?: string | undefined;
|
|
2460
2600
|
readonly description?: string | undefined;
|
|
2461
|
-
readonly
|
|
2601
|
+
readonly mention?: {
|
|
2462
2602
|
readonly start: number;
|
|
2463
2603
|
readonly end: number;
|
|
2464
2604
|
readonly text: string;
|
|
2465
2605
|
} | undefined;
|
|
2466
2606
|
};
|
|
2467
2607
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2468
|
-
readonly
|
|
2608
|
+
readonly data: Schema.String;
|
|
2469
2609
|
readonly mime: Schema.String;
|
|
2470
|
-
readonly
|
|
2610
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2611
|
+
readonly type: Schema.Literal<"inline">;
|
|
2612
|
+
}>, Schema.Struct<{
|
|
2613
|
+
readonly type: Schema.Literal<"uri">;
|
|
2614
|
+
readonly uri: Schema.String;
|
|
2615
|
+
}>]>;
|
|
2471
2616
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2472
2617
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2473
|
-
readonly
|
|
2618
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2474
2619
|
readonly start: Schema.Finite;
|
|
2475
2620
|
readonly end: Schema.Finite;
|
|
2476
2621
|
readonly text: Schema.String;
|
|
@@ -2481,12 +2626,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2481
2626
|
}>>, never, never>;
|
|
2482
2627
|
}> & {
|
|
2483
2628
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2484
|
-
readonly
|
|
2629
|
+
readonly data: string;
|
|
2485
2630
|
readonly mime: string;
|
|
2486
|
-
readonly
|
|
2631
|
+
readonly source: {
|
|
2632
|
+
readonly type: "inline";
|
|
2633
|
+
} | {
|
|
2634
|
+
readonly type: "uri";
|
|
2635
|
+
readonly uri: string;
|
|
2636
|
+
};
|
|
2487
2637
|
readonly name?: string | undefined;
|
|
2488
2638
|
readonly description?: string | undefined;
|
|
2489
|
-
readonly
|
|
2639
|
+
readonly mention?: {
|
|
2490
2640
|
readonly start: number;
|
|
2491
2641
|
readonly end: number;
|
|
2492
2642
|
readonly text: string;
|
|
@@ -2495,7 +2645,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2495
2645
|
}>>, never, never>;
|
|
2496
2646
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2497
2647
|
readonly name: Schema.String;
|
|
2498
|
-
readonly
|
|
2648
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2499
2649
|
readonly start: Schema.Finite;
|
|
2500
2650
|
readonly end: Schema.Finite;
|
|
2501
2651
|
readonly text: Schema.String;
|
|
@@ -2506,7 +2656,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2506
2656
|
}>>, never, never>;
|
|
2507
2657
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2508
2658
|
readonly name: Schema.String;
|
|
2509
|
-
readonly
|
|
2659
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2510
2660
|
readonly start: Schema.Finite;
|
|
2511
2661
|
readonly end: Schema.Finite;
|
|
2512
2662
|
readonly text: Schema.String;
|
|
@@ -2520,12 +2670,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2520
2670
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
2521
2671
|
readonly text: string;
|
|
2522
2672
|
readonly files?: readonly {
|
|
2523
|
-
readonly
|
|
2673
|
+
readonly data: string;
|
|
2524
2674
|
readonly mime: string;
|
|
2525
|
-
readonly
|
|
2675
|
+
readonly source: {
|
|
2676
|
+
readonly type: "inline";
|
|
2677
|
+
} | {
|
|
2678
|
+
readonly type: "uri";
|
|
2679
|
+
readonly uri: string;
|
|
2680
|
+
};
|
|
2526
2681
|
readonly name?: string | undefined;
|
|
2527
2682
|
readonly description?: string | undefined;
|
|
2528
|
-
readonly
|
|
2683
|
+
readonly mention?: {
|
|
2529
2684
|
readonly start: number;
|
|
2530
2685
|
readonly end: number;
|
|
2531
2686
|
readonly text: string;
|
|
@@ -2533,7 +2688,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2533
2688
|
}[] | undefined;
|
|
2534
2689
|
readonly agents?: readonly {
|
|
2535
2690
|
readonly name: string;
|
|
2536
|
-
readonly
|
|
2691
|
+
readonly mention?: {
|
|
2537
2692
|
readonly start: number;
|
|
2538
2693
|
readonly end: number;
|
|
2539
2694
|
readonly text: string;
|
|
@@ -2543,12 +2698,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2543
2698
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
2544
2699
|
readonly text: string;
|
|
2545
2700
|
readonly files?: readonly {
|
|
2546
|
-
readonly
|
|
2701
|
+
readonly data: string;
|
|
2547
2702
|
readonly mime: string;
|
|
2548
|
-
readonly
|
|
2703
|
+
readonly source: {
|
|
2704
|
+
readonly type: "inline";
|
|
2705
|
+
} | {
|
|
2706
|
+
readonly type: "uri";
|
|
2707
|
+
readonly uri: string;
|
|
2708
|
+
};
|
|
2549
2709
|
readonly name?: string | undefined;
|
|
2550
2710
|
readonly description?: string | undefined;
|
|
2551
|
-
readonly
|
|
2711
|
+
readonly mention?: {
|
|
2552
2712
|
readonly start: number;
|
|
2553
2713
|
readonly end: number;
|
|
2554
2714
|
readonly text: string;
|
|
@@ -2556,7 +2716,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2556
2716
|
}[] | undefined;
|
|
2557
2717
|
readonly agents?: readonly {
|
|
2558
2718
|
readonly name: string;
|
|
2559
|
-
readonly
|
|
2719
|
+
readonly mention?: {
|
|
2560
2720
|
readonly start: number;
|
|
2561
2721
|
readonly end: number;
|
|
2562
2722
|
readonly text: string;
|
|
@@ -4381,12 +4541,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4381
4541
|
readonly prompt: {
|
|
4382
4542
|
readonly text: string;
|
|
4383
4543
|
readonly files?: readonly {
|
|
4384
|
-
readonly
|
|
4544
|
+
readonly data: string;
|
|
4385
4545
|
readonly mime: string;
|
|
4386
|
-
readonly
|
|
4546
|
+
readonly source: {
|
|
4547
|
+
readonly type: "inline";
|
|
4548
|
+
} | {
|
|
4549
|
+
readonly type: "uri";
|
|
4550
|
+
readonly uri: string;
|
|
4551
|
+
};
|
|
4387
4552
|
readonly name?: string | undefined;
|
|
4388
4553
|
readonly description?: string | undefined;
|
|
4389
|
-
readonly
|
|
4554
|
+
readonly mention?: {
|
|
4390
4555
|
readonly start: number;
|
|
4391
4556
|
readonly end: number;
|
|
4392
4557
|
readonly text: string;
|
|
@@ -4394,7 +4559,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4394
4559
|
}[] | undefined;
|
|
4395
4560
|
readonly agents?: readonly {
|
|
4396
4561
|
readonly name: string;
|
|
4397
|
-
readonly
|
|
4562
|
+
readonly mention?: {
|
|
4398
4563
|
readonly start: number;
|
|
4399
4564
|
readonly end: number;
|
|
4400
4565
|
readonly text: string;
|
|
@@ -5164,12 +5329,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5164
5329
|
}>, Schema.Struct<{
|
|
5165
5330
|
readonly text: Schema.String;
|
|
5166
5331
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5167
|
-
readonly
|
|
5332
|
+
readonly data: Schema.String;
|
|
5168
5333
|
readonly mime: Schema.String;
|
|
5169
|
-
readonly
|
|
5334
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
5335
|
+
readonly type: Schema.Literal<"inline">;
|
|
5336
|
+
}>, Schema.Struct<{
|
|
5337
|
+
readonly type: Schema.Literal<"uri">;
|
|
5338
|
+
readonly uri: Schema.String;
|
|
5339
|
+
}>]>;
|
|
5170
5340
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5171
5341
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5172
|
-
readonly
|
|
5342
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5173
5343
|
readonly start: Schema.Finite;
|
|
5174
5344
|
readonly end: Schema.Finite;
|
|
5175
5345
|
readonly text: Schema.String;
|
|
@@ -5180,24 +5350,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5180
5350
|
}>>, never, never>;
|
|
5181
5351
|
}> & {
|
|
5182
5352
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5183
|
-
readonly
|
|
5353
|
+
readonly data: string;
|
|
5184
5354
|
readonly mime: string;
|
|
5185
|
-
readonly
|
|
5355
|
+
readonly source: {
|
|
5356
|
+
readonly type: "inline";
|
|
5357
|
+
} | {
|
|
5358
|
+
readonly type: "uri";
|
|
5359
|
+
readonly uri: string;
|
|
5360
|
+
};
|
|
5186
5361
|
readonly name?: string | undefined;
|
|
5187
5362
|
readonly description?: string | undefined;
|
|
5188
|
-
readonly
|
|
5363
|
+
readonly mention?: {
|
|
5189
5364
|
readonly start: number;
|
|
5190
5365
|
readonly end: number;
|
|
5191
5366
|
readonly text: string;
|
|
5192
5367
|
} | undefined;
|
|
5193
5368
|
};
|
|
5194
5369
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5195
|
-
readonly
|
|
5370
|
+
readonly data: Schema.String;
|
|
5196
5371
|
readonly mime: Schema.String;
|
|
5197
|
-
readonly
|
|
5372
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
5373
|
+
readonly type: Schema.Literal<"inline">;
|
|
5374
|
+
}>, Schema.Struct<{
|
|
5375
|
+
readonly type: Schema.Literal<"uri">;
|
|
5376
|
+
readonly uri: Schema.String;
|
|
5377
|
+
}>]>;
|
|
5198
5378
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5199
5379
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5200
|
-
readonly
|
|
5380
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5201
5381
|
readonly start: Schema.Finite;
|
|
5202
5382
|
readonly end: Schema.Finite;
|
|
5203
5383
|
readonly text: Schema.String;
|
|
@@ -5208,12 +5388,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5208
5388
|
}>>, never, never>;
|
|
5209
5389
|
}> & {
|
|
5210
5390
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5211
|
-
readonly
|
|
5391
|
+
readonly data: string;
|
|
5212
5392
|
readonly mime: string;
|
|
5213
|
-
readonly
|
|
5393
|
+
readonly source: {
|
|
5394
|
+
readonly type: "inline";
|
|
5395
|
+
} | {
|
|
5396
|
+
readonly type: "uri";
|
|
5397
|
+
readonly uri: string;
|
|
5398
|
+
};
|
|
5214
5399
|
readonly name?: string | undefined;
|
|
5215
5400
|
readonly description?: string | undefined;
|
|
5216
|
-
readonly
|
|
5401
|
+
readonly mention?: {
|
|
5217
5402
|
readonly start: number;
|
|
5218
5403
|
readonly end: number;
|
|
5219
5404
|
readonly text: string;
|
|
@@ -5222,7 +5407,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5222
5407
|
}>>, never, never>;
|
|
5223
5408
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5224
5409
|
readonly name: Schema.String;
|
|
5225
|
-
readonly
|
|
5410
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5226
5411
|
readonly start: Schema.Finite;
|
|
5227
5412
|
readonly end: Schema.Finite;
|
|
5228
5413
|
readonly text: Schema.String;
|
|
@@ -5233,7 +5418,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5233
5418
|
}>>, never, never>;
|
|
5234
5419
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5235
5420
|
readonly name: Schema.String;
|
|
5236
|
-
readonly
|
|
5421
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5237
5422
|
readonly start: Schema.Finite;
|
|
5238
5423
|
readonly end: Schema.Finite;
|
|
5239
5424
|
readonly text: Schema.String;
|
|
@@ -5400,12 +5585,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5400
5585
|
readonly status: Schema.Literal<"completed">;
|
|
5401
5586
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
5402
5587
|
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5403
|
-
readonly
|
|
5588
|
+
readonly data: Schema.String;
|
|
5404
5589
|
readonly mime: Schema.String;
|
|
5405
|
-
readonly
|
|
5590
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
5591
|
+
readonly type: Schema.Literal<"inline">;
|
|
5592
|
+
}>, Schema.Struct<{
|
|
5593
|
+
readonly type: Schema.Literal<"uri">;
|
|
5594
|
+
readonly uri: Schema.String;
|
|
5595
|
+
}>]>;
|
|
5406
5596
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5407
5597
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5408
|
-
readonly
|
|
5598
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5409
5599
|
readonly start: Schema.Finite;
|
|
5410
5600
|
readonly end: Schema.Finite;
|
|
5411
5601
|
readonly text: Schema.String;
|
|
@@ -5416,24 +5606,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5416
5606
|
}>>, never, never>;
|
|
5417
5607
|
}> & {
|
|
5418
5608
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5419
|
-
readonly
|
|
5609
|
+
readonly data: string;
|
|
5420
5610
|
readonly mime: string;
|
|
5421
|
-
readonly
|
|
5611
|
+
readonly source: {
|
|
5612
|
+
readonly type: "inline";
|
|
5613
|
+
} | {
|
|
5614
|
+
readonly type: "uri";
|
|
5615
|
+
readonly uri: string;
|
|
5616
|
+
};
|
|
5422
5617
|
readonly name?: string | undefined;
|
|
5423
5618
|
readonly description?: string | undefined;
|
|
5424
|
-
readonly
|
|
5619
|
+
readonly mention?: {
|
|
5425
5620
|
readonly start: number;
|
|
5426
5621
|
readonly end: number;
|
|
5427
5622
|
readonly text: string;
|
|
5428
5623
|
} | undefined;
|
|
5429
5624
|
};
|
|
5430
5625
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5431
|
-
readonly
|
|
5626
|
+
readonly data: Schema.String;
|
|
5432
5627
|
readonly mime: Schema.String;
|
|
5433
|
-
readonly
|
|
5628
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
5629
|
+
readonly type: Schema.Literal<"inline">;
|
|
5630
|
+
}>, Schema.Struct<{
|
|
5631
|
+
readonly type: Schema.Literal<"uri">;
|
|
5632
|
+
readonly uri: Schema.String;
|
|
5633
|
+
}>]>;
|
|
5434
5634
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5435
5635
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5436
|
-
readonly
|
|
5636
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5437
5637
|
readonly start: Schema.Finite;
|
|
5438
5638
|
readonly end: Schema.Finite;
|
|
5439
5639
|
readonly text: Schema.String;
|
|
@@ -5444,12 +5644,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5444
5644
|
}>>, never, never>;
|
|
5445
5645
|
}> & {
|
|
5446
5646
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5447
|
-
readonly
|
|
5647
|
+
readonly data: string;
|
|
5448
5648
|
readonly mime: string;
|
|
5449
|
-
readonly
|
|
5649
|
+
readonly source: {
|
|
5650
|
+
readonly type: "inline";
|
|
5651
|
+
} | {
|
|
5652
|
+
readonly type: "uri";
|
|
5653
|
+
readonly uri: string;
|
|
5654
|
+
};
|
|
5450
5655
|
readonly name?: string | undefined;
|
|
5451
5656
|
readonly description?: string | undefined;
|
|
5452
|
-
readonly
|
|
5657
|
+
readonly mention?: {
|
|
5453
5658
|
readonly start: number;
|
|
5454
5659
|
readonly end: number;
|
|
5455
5660
|
readonly text: string;
|