@opencode-ai/protocol 0.0.0-next-14993 → 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 -67
- package/dist/groups/message.d.ts +66 -18
- package/dist/groups/session.d.ts +363 -117
- 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,11 +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 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
|
+
}>]>;
|
|
900
906
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
901
907
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
902
|
-
readonly
|
|
908
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
903
909
|
readonly start: Schema.Finite;
|
|
904
910
|
readonly end: Schema.Finite;
|
|
905
911
|
readonly text: Schema.String;
|
|
@@ -910,22 +916,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
910
916
|
}>>, never, never>;
|
|
911
917
|
}> & {
|
|
912
918
|
create: (input: SessionEvent.FileAttachment) => {
|
|
913
|
-
readonly
|
|
919
|
+
readonly data: string;
|
|
914
920
|
readonly mime: string;
|
|
921
|
+
readonly source: {
|
|
922
|
+
readonly type: "inline";
|
|
923
|
+
} | {
|
|
924
|
+
readonly type: "uri";
|
|
925
|
+
readonly uri: string;
|
|
926
|
+
};
|
|
915
927
|
readonly name?: string | undefined;
|
|
916
928
|
readonly description?: string | undefined;
|
|
917
|
-
readonly
|
|
929
|
+
readonly mention?: {
|
|
918
930
|
readonly start: number;
|
|
919
931
|
readonly end: number;
|
|
920
932
|
readonly text: string;
|
|
921
933
|
} | undefined;
|
|
922
934
|
};
|
|
923
935
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
924
|
-
readonly
|
|
936
|
+
readonly data: Schema.String;
|
|
925
937
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
926
944
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
927
945
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
928
|
-
readonly
|
|
946
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
929
947
|
readonly start: Schema.Finite;
|
|
930
948
|
readonly end: Schema.Finite;
|
|
931
949
|
readonly text: Schema.String;
|
|
@@ -936,11 +954,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
936
954
|
}>>, never, never>;
|
|
937
955
|
}> & {
|
|
938
956
|
create: (input: SessionEvent.FileAttachment) => {
|
|
939
|
-
readonly
|
|
957
|
+
readonly data: string;
|
|
940
958
|
readonly mime: string;
|
|
959
|
+
readonly source: {
|
|
960
|
+
readonly type: "inline";
|
|
961
|
+
} | {
|
|
962
|
+
readonly type: "uri";
|
|
963
|
+
readonly uri: string;
|
|
964
|
+
};
|
|
941
965
|
readonly name?: string | undefined;
|
|
942
966
|
readonly description?: string | undefined;
|
|
943
|
-
readonly
|
|
967
|
+
readonly mention?: {
|
|
944
968
|
readonly start: number;
|
|
945
969
|
readonly end: number;
|
|
946
970
|
readonly text: string;
|
|
@@ -949,7 +973,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
949
973
|
}>>, never, never>;
|
|
950
974
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
951
975
|
readonly name: Schema.String;
|
|
952
|
-
readonly
|
|
976
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
953
977
|
readonly start: Schema.Finite;
|
|
954
978
|
readonly end: Schema.Finite;
|
|
955
979
|
readonly text: Schema.String;
|
|
@@ -960,7 +984,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
960
984
|
}>>, never, never>;
|
|
961
985
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
962
986
|
readonly name: Schema.String;
|
|
963
|
-
readonly
|
|
987
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
964
988
|
readonly start: Schema.Finite;
|
|
965
989
|
readonly end: Schema.Finite;
|
|
966
990
|
readonly text: Schema.String;
|
|
@@ -974,11 +998,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
974
998
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
975
999
|
readonly text: string;
|
|
976
1000
|
readonly files?: readonly {
|
|
977
|
-
readonly
|
|
1001
|
+
readonly data: string;
|
|
978
1002
|
readonly mime: string;
|
|
1003
|
+
readonly source: {
|
|
1004
|
+
readonly type: "inline";
|
|
1005
|
+
} | {
|
|
1006
|
+
readonly type: "uri";
|
|
1007
|
+
readonly uri: string;
|
|
1008
|
+
};
|
|
979
1009
|
readonly name?: string | undefined;
|
|
980
1010
|
readonly description?: string | undefined;
|
|
981
|
-
readonly
|
|
1011
|
+
readonly mention?: {
|
|
982
1012
|
readonly start: number;
|
|
983
1013
|
readonly end: number;
|
|
984
1014
|
readonly text: string;
|
|
@@ -986,7 +1016,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
986
1016
|
}[] | undefined;
|
|
987
1017
|
readonly agents?: readonly {
|
|
988
1018
|
readonly name: string;
|
|
989
|
-
readonly
|
|
1019
|
+
readonly mention?: {
|
|
990
1020
|
readonly start: number;
|
|
991
1021
|
readonly end: number;
|
|
992
1022
|
readonly text: string;
|
|
@@ -996,11 +1026,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
996
1026
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
997
1027
|
readonly text: string;
|
|
998
1028
|
readonly files?: readonly {
|
|
999
|
-
readonly
|
|
1029
|
+
readonly data: string;
|
|
1000
1030
|
readonly mime: string;
|
|
1031
|
+
readonly source: {
|
|
1032
|
+
readonly type: "inline";
|
|
1033
|
+
} | {
|
|
1034
|
+
readonly type: "uri";
|
|
1035
|
+
readonly uri: string;
|
|
1036
|
+
};
|
|
1001
1037
|
readonly name?: string | undefined;
|
|
1002
1038
|
readonly description?: string | undefined;
|
|
1003
|
-
readonly
|
|
1039
|
+
readonly mention?: {
|
|
1004
1040
|
readonly start: number;
|
|
1005
1041
|
readonly end: number;
|
|
1006
1042
|
readonly text: string;
|
|
@@ -1008,7 +1044,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1008
1044
|
}[] | undefined;
|
|
1009
1045
|
readonly agents?: readonly {
|
|
1010
1046
|
readonly name: string;
|
|
1011
|
-
readonly
|
|
1047
|
+
readonly mention?: {
|
|
1012
1048
|
readonly start: number;
|
|
1013
1049
|
readonly end: number;
|
|
1014
1050
|
readonly text: string;
|
|
@@ -1020,7 +1056,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1020
1056
|
readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1021
1057
|
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1022
1058
|
}>;
|
|
1023
|
-
}>>, 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<{
|
|
1024
1060
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1025
1061
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1026
1062
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1054,7 +1090,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1054
1090
|
readonly uri: Schema.String;
|
|
1055
1091
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1056
1092
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1057
|
-
readonly
|
|
1093
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1058
1094
|
readonly start: Schema.Finite;
|
|
1059
1095
|
readonly end: Schema.Finite;
|
|
1060
1096
|
readonly text: Schema.String;
|
|
@@ -1068,7 +1104,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1068
1104
|
readonly uri: string;
|
|
1069
1105
|
readonly name?: string | undefined;
|
|
1070
1106
|
readonly description?: string | undefined;
|
|
1071
|
-
readonly
|
|
1107
|
+
readonly mention?: {
|
|
1072
1108
|
readonly start: number;
|
|
1073
1109
|
readonly end: number;
|
|
1074
1110
|
readonly text: string;
|
|
@@ -1078,7 +1114,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1078
1114
|
readonly uri: Schema.String;
|
|
1079
1115
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1080
1116
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1081
|
-
readonly
|
|
1117
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1082
1118
|
readonly start: Schema.Finite;
|
|
1083
1119
|
readonly end: Schema.Finite;
|
|
1084
1120
|
readonly text: Schema.String;
|
|
@@ -1092,7 +1128,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1092
1128
|
readonly uri: string;
|
|
1093
1129
|
readonly name?: string | undefined;
|
|
1094
1130
|
readonly description?: string | undefined;
|
|
1095
|
-
readonly
|
|
1131
|
+
readonly mention?: {
|
|
1096
1132
|
readonly start: number;
|
|
1097
1133
|
readonly end: number;
|
|
1098
1134
|
readonly text: string;
|
|
@@ -1101,7 +1137,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1101
1137
|
}>>, never, never>;
|
|
1102
1138
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1103
1139
|
readonly name: Schema.String;
|
|
1104
|
-
readonly
|
|
1140
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1105
1141
|
readonly start: Schema.Finite;
|
|
1106
1142
|
readonly end: Schema.Finite;
|
|
1107
1143
|
readonly text: Schema.String;
|
|
@@ -1112,7 +1148,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1112
1148
|
}>>, never, never>;
|
|
1113
1149
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1114
1150
|
readonly name: Schema.String;
|
|
1115
|
-
readonly
|
|
1151
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1116
1152
|
readonly start: Schema.Finite;
|
|
1117
1153
|
readonly end: Schema.Finite;
|
|
1118
1154
|
readonly text: Schema.String;
|
|
@@ -1138,11 +1174,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1138
1174
|
readonly prompt: Schema.Struct<{
|
|
1139
1175
|
readonly text: Schema.String;
|
|
1140
1176
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1141
|
-
readonly
|
|
1177
|
+
readonly data: Schema.String;
|
|
1142
1178
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
1143
1185
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1144
1186
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1145
|
-
readonly
|
|
1187
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1146
1188
|
readonly start: Schema.Finite;
|
|
1147
1189
|
readonly end: Schema.Finite;
|
|
1148
1190
|
readonly text: Schema.String;
|
|
@@ -1153,22 +1195,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1153
1195
|
}>>, never, never>;
|
|
1154
1196
|
}> & {
|
|
1155
1197
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1156
|
-
readonly
|
|
1198
|
+
readonly data: string;
|
|
1157
1199
|
readonly mime: string;
|
|
1200
|
+
readonly source: {
|
|
1201
|
+
readonly type: "inline";
|
|
1202
|
+
} | {
|
|
1203
|
+
readonly type: "uri";
|
|
1204
|
+
readonly uri: string;
|
|
1205
|
+
};
|
|
1158
1206
|
readonly name?: string | undefined;
|
|
1159
1207
|
readonly description?: string | undefined;
|
|
1160
|
-
readonly
|
|
1208
|
+
readonly mention?: {
|
|
1161
1209
|
readonly start: number;
|
|
1162
1210
|
readonly end: number;
|
|
1163
1211
|
readonly text: string;
|
|
1164
1212
|
} | undefined;
|
|
1165
1213
|
};
|
|
1166
1214
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1167
|
-
readonly
|
|
1215
|
+
readonly data: Schema.String;
|
|
1168
1216
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
1169
1223
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1170
1224
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1171
|
-
readonly
|
|
1225
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1172
1226
|
readonly start: Schema.Finite;
|
|
1173
1227
|
readonly end: Schema.Finite;
|
|
1174
1228
|
readonly text: Schema.String;
|
|
@@ -1179,11 +1233,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1179
1233
|
}>>, never, never>;
|
|
1180
1234
|
}> & {
|
|
1181
1235
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1182
|
-
readonly
|
|
1236
|
+
readonly data: string;
|
|
1183
1237
|
readonly mime: string;
|
|
1238
|
+
readonly source: {
|
|
1239
|
+
readonly type: "inline";
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly type: "uri";
|
|
1242
|
+
readonly uri: string;
|
|
1243
|
+
};
|
|
1184
1244
|
readonly name?: string | undefined;
|
|
1185
1245
|
readonly description?: string | undefined;
|
|
1186
|
-
readonly
|
|
1246
|
+
readonly mention?: {
|
|
1187
1247
|
readonly start: number;
|
|
1188
1248
|
readonly end: number;
|
|
1189
1249
|
readonly text: string;
|
|
@@ -1192,7 +1252,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1192
1252
|
}>>, never, never>;
|
|
1193
1253
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1194
1254
|
readonly name: Schema.String;
|
|
1195
|
-
readonly
|
|
1255
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1196
1256
|
readonly start: Schema.Finite;
|
|
1197
1257
|
readonly end: Schema.Finite;
|
|
1198
1258
|
readonly text: Schema.String;
|
|
@@ -1203,7 +1263,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1203
1263
|
}>>, never, never>;
|
|
1204
1264
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1205
1265
|
readonly name: Schema.String;
|
|
1206
|
-
readonly
|
|
1266
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1207
1267
|
readonly start: Schema.Finite;
|
|
1208
1268
|
readonly end: Schema.Finite;
|
|
1209
1269
|
readonly text: Schema.String;
|
|
@@ -1217,11 +1277,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1217
1277
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
1218
1278
|
readonly text: string;
|
|
1219
1279
|
readonly files?: readonly {
|
|
1220
|
-
readonly
|
|
1280
|
+
readonly data: string;
|
|
1221
1281
|
readonly mime: string;
|
|
1282
|
+
readonly source: {
|
|
1283
|
+
readonly type: "inline";
|
|
1284
|
+
} | {
|
|
1285
|
+
readonly type: "uri";
|
|
1286
|
+
readonly uri: string;
|
|
1287
|
+
};
|
|
1222
1288
|
readonly name?: string | undefined;
|
|
1223
1289
|
readonly description?: string | undefined;
|
|
1224
|
-
readonly
|
|
1290
|
+
readonly mention?: {
|
|
1225
1291
|
readonly start: number;
|
|
1226
1292
|
readonly end: number;
|
|
1227
1293
|
readonly text: string;
|
|
@@ -1229,7 +1295,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1229
1295
|
}[] | undefined;
|
|
1230
1296
|
readonly agents?: readonly {
|
|
1231
1297
|
readonly name: string;
|
|
1232
|
-
readonly
|
|
1298
|
+
readonly mention?: {
|
|
1233
1299
|
readonly start: number;
|
|
1234
1300
|
readonly end: number;
|
|
1235
1301
|
readonly text: string;
|
|
@@ -1239,11 +1305,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1239
1305
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
1240
1306
|
readonly text: string;
|
|
1241
1307
|
readonly files?: readonly {
|
|
1242
|
-
readonly
|
|
1308
|
+
readonly data: string;
|
|
1243
1309
|
readonly mime: string;
|
|
1310
|
+
readonly source: {
|
|
1311
|
+
readonly type: "inline";
|
|
1312
|
+
} | {
|
|
1313
|
+
readonly type: "uri";
|
|
1314
|
+
readonly uri: string;
|
|
1315
|
+
};
|
|
1244
1316
|
readonly name?: string | undefined;
|
|
1245
1317
|
readonly description?: string | undefined;
|
|
1246
|
-
readonly
|
|
1318
|
+
readonly mention?: {
|
|
1247
1319
|
readonly start: number;
|
|
1248
1320
|
readonly end: number;
|
|
1249
1321
|
readonly text: string;
|
|
@@ -1251,7 +1323,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1251
1323
|
}[] | undefined;
|
|
1252
1324
|
readonly agents?: readonly {
|
|
1253
1325
|
readonly name: string;
|
|
1254
|
-
readonly
|
|
1326
|
+
readonly mention?: {
|
|
1255
1327
|
readonly start: number;
|
|
1256
1328
|
readonly end: number;
|
|
1257
1329
|
readonly text: string;
|
|
@@ -1263,7 +1335,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1263
1335
|
readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1264
1336
|
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1265
1337
|
}>;
|
|
1266
|
-
}>>, 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<{
|
|
1267
1339
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1268
1340
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1269
1341
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1428,11 +1500,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1428
1500
|
}>, Schema.Struct<{
|
|
1429
1501
|
readonly text: Schema.String;
|
|
1430
1502
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1431
|
-
readonly
|
|
1503
|
+
readonly data: Schema.String;
|
|
1432
1504
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
1433
1511
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1434
1512
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1435
|
-
readonly
|
|
1513
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1436
1514
|
readonly start: Schema.Finite;
|
|
1437
1515
|
readonly end: Schema.Finite;
|
|
1438
1516
|
readonly text: Schema.String;
|
|
@@ -1443,22 +1521,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1443
1521
|
}>>, never, never>;
|
|
1444
1522
|
}> & {
|
|
1445
1523
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1446
|
-
readonly
|
|
1524
|
+
readonly data: string;
|
|
1447
1525
|
readonly mime: string;
|
|
1526
|
+
readonly source: {
|
|
1527
|
+
readonly type: "inline";
|
|
1528
|
+
} | {
|
|
1529
|
+
readonly type: "uri";
|
|
1530
|
+
readonly uri: string;
|
|
1531
|
+
};
|
|
1448
1532
|
readonly name?: string | undefined;
|
|
1449
1533
|
readonly description?: string | undefined;
|
|
1450
|
-
readonly
|
|
1534
|
+
readonly mention?: {
|
|
1451
1535
|
readonly start: number;
|
|
1452
1536
|
readonly end: number;
|
|
1453
1537
|
readonly text: string;
|
|
1454
1538
|
} | undefined;
|
|
1455
1539
|
};
|
|
1456
1540
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1457
|
-
readonly
|
|
1541
|
+
readonly data: Schema.String;
|
|
1458
1542
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
1459
1549
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1460
1550
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1461
|
-
readonly
|
|
1551
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1462
1552
|
readonly start: Schema.Finite;
|
|
1463
1553
|
readonly end: Schema.Finite;
|
|
1464
1554
|
readonly text: Schema.String;
|
|
@@ -1469,11 +1559,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1469
1559
|
}>>, never, never>;
|
|
1470
1560
|
}> & {
|
|
1471
1561
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1472
|
-
readonly
|
|
1562
|
+
readonly data: string;
|
|
1473
1563
|
readonly mime: string;
|
|
1564
|
+
readonly source: {
|
|
1565
|
+
readonly type: "inline";
|
|
1566
|
+
} | {
|
|
1567
|
+
readonly type: "uri";
|
|
1568
|
+
readonly uri: string;
|
|
1569
|
+
};
|
|
1474
1570
|
readonly name?: string | undefined;
|
|
1475
1571
|
readonly description?: string | undefined;
|
|
1476
|
-
readonly
|
|
1572
|
+
readonly mention?: {
|
|
1477
1573
|
readonly start: number;
|
|
1478
1574
|
readonly end: number;
|
|
1479
1575
|
readonly text: string;
|
|
@@ -1482,7 +1578,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1482
1578
|
}>>, never, never>;
|
|
1483
1579
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1484
1580
|
readonly name: Schema.String;
|
|
1485
|
-
readonly
|
|
1581
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1486
1582
|
readonly start: Schema.Finite;
|
|
1487
1583
|
readonly end: Schema.Finite;
|
|
1488
1584
|
readonly text: Schema.String;
|
|
@@ -1493,7 +1589,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1493
1589
|
}>>, never, never>;
|
|
1494
1590
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1495
1591
|
readonly name: Schema.String;
|
|
1496
|
-
readonly
|
|
1592
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1497
1593
|
readonly start: Schema.Finite;
|
|
1498
1594
|
readonly end: Schema.Finite;
|
|
1499
1595
|
readonly text: Schema.String;
|
|
@@ -1660,11 +1756,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1660
1756
|
readonly status: Schema.Literal<"completed">;
|
|
1661
1757
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1662
1758
|
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1663
|
-
readonly
|
|
1759
|
+
readonly data: Schema.String;
|
|
1664
1760
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
1665
1767
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1666
1768
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1667
|
-
readonly
|
|
1769
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1668
1770
|
readonly start: Schema.Finite;
|
|
1669
1771
|
readonly end: Schema.Finite;
|
|
1670
1772
|
readonly text: Schema.String;
|
|
@@ -1675,22 +1777,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1675
1777
|
}>>, never, never>;
|
|
1676
1778
|
}> & {
|
|
1677
1779
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1678
|
-
readonly
|
|
1780
|
+
readonly data: string;
|
|
1679
1781
|
readonly mime: string;
|
|
1782
|
+
readonly source: {
|
|
1783
|
+
readonly type: "inline";
|
|
1784
|
+
} | {
|
|
1785
|
+
readonly type: "uri";
|
|
1786
|
+
readonly uri: string;
|
|
1787
|
+
};
|
|
1680
1788
|
readonly name?: string | undefined;
|
|
1681
1789
|
readonly description?: string | undefined;
|
|
1682
|
-
readonly
|
|
1790
|
+
readonly mention?: {
|
|
1683
1791
|
readonly start: number;
|
|
1684
1792
|
readonly end: number;
|
|
1685
1793
|
readonly text: string;
|
|
1686
1794
|
} | undefined;
|
|
1687
1795
|
};
|
|
1688
1796
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1689
|
-
readonly
|
|
1797
|
+
readonly data: Schema.String;
|
|
1690
1798
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
1691
1805
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1692
1806
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1693
|
-
readonly
|
|
1807
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1694
1808
|
readonly start: Schema.Finite;
|
|
1695
1809
|
readonly end: Schema.Finite;
|
|
1696
1810
|
readonly text: Schema.String;
|
|
@@ -1701,11 +1815,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1701
1815
|
}>>, never, never>;
|
|
1702
1816
|
}> & {
|
|
1703
1817
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1704
|
-
readonly
|
|
1818
|
+
readonly data: string;
|
|
1705
1819
|
readonly mime: string;
|
|
1820
|
+
readonly source: {
|
|
1821
|
+
readonly type: "inline";
|
|
1822
|
+
} | {
|
|
1823
|
+
readonly type: "uri";
|
|
1824
|
+
readonly uri: string;
|
|
1825
|
+
};
|
|
1706
1826
|
readonly name?: string | undefined;
|
|
1707
1827
|
readonly description?: string | undefined;
|
|
1708
|
-
readonly
|
|
1828
|
+
readonly mention?: {
|
|
1709
1829
|
readonly start: number;
|
|
1710
1830
|
readonly end: number;
|
|
1711
1831
|
readonly text: string;
|
|
@@ -2269,11 +2389,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2269
2389
|
prompt: Schema.Struct<{
|
|
2270
2390
|
readonly text: Schema.String;
|
|
2271
2391
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2272
|
-
readonly
|
|
2392
|
+
readonly data: Schema.String;
|
|
2273
2393
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
2274
2400
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2275
2401
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2276
|
-
readonly
|
|
2402
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2277
2403
|
readonly start: Schema.Finite;
|
|
2278
2404
|
readonly end: Schema.Finite;
|
|
2279
2405
|
readonly text: Schema.String;
|
|
@@ -2284,22 +2410,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2284
2410
|
}>>, never, never>;
|
|
2285
2411
|
}> & {
|
|
2286
2412
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2287
|
-
readonly
|
|
2413
|
+
readonly data: string;
|
|
2288
2414
|
readonly mime: string;
|
|
2415
|
+
readonly source: {
|
|
2416
|
+
readonly type: "inline";
|
|
2417
|
+
} | {
|
|
2418
|
+
readonly type: "uri";
|
|
2419
|
+
readonly uri: string;
|
|
2420
|
+
};
|
|
2289
2421
|
readonly name?: string | undefined;
|
|
2290
2422
|
readonly description?: string | undefined;
|
|
2291
|
-
readonly
|
|
2423
|
+
readonly mention?: {
|
|
2292
2424
|
readonly start: number;
|
|
2293
2425
|
readonly end: number;
|
|
2294
2426
|
readonly text: string;
|
|
2295
2427
|
} | undefined;
|
|
2296
2428
|
};
|
|
2297
2429
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2298
|
-
readonly
|
|
2430
|
+
readonly data: Schema.String;
|
|
2299
2431
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
2300
2438
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2301
2439
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2302
|
-
readonly
|
|
2440
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2303
2441
|
readonly start: Schema.Finite;
|
|
2304
2442
|
readonly end: Schema.Finite;
|
|
2305
2443
|
readonly text: Schema.String;
|
|
@@ -2310,11 +2448,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2310
2448
|
}>>, never, never>;
|
|
2311
2449
|
}> & {
|
|
2312
2450
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2313
|
-
readonly
|
|
2451
|
+
readonly data: string;
|
|
2314
2452
|
readonly mime: string;
|
|
2453
|
+
readonly source: {
|
|
2454
|
+
readonly type: "inline";
|
|
2455
|
+
} | {
|
|
2456
|
+
readonly type: "uri";
|
|
2457
|
+
readonly uri: string;
|
|
2458
|
+
};
|
|
2315
2459
|
readonly name?: string | undefined;
|
|
2316
2460
|
readonly description?: string | undefined;
|
|
2317
|
-
readonly
|
|
2461
|
+
readonly mention?: {
|
|
2318
2462
|
readonly start: number;
|
|
2319
2463
|
readonly end: number;
|
|
2320
2464
|
readonly text: string;
|
|
@@ -2323,7 +2467,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2323
2467
|
}>>, never, never>;
|
|
2324
2468
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2325
2469
|
readonly name: Schema.String;
|
|
2326
|
-
readonly
|
|
2470
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2327
2471
|
readonly start: Schema.Finite;
|
|
2328
2472
|
readonly end: Schema.Finite;
|
|
2329
2473
|
readonly text: Schema.String;
|
|
@@ -2334,7 +2478,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2334
2478
|
}>>, never, never>;
|
|
2335
2479
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2336
2480
|
readonly name: Schema.String;
|
|
2337
|
-
readonly
|
|
2481
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2338
2482
|
readonly start: Schema.Finite;
|
|
2339
2483
|
readonly end: Schema.Finite;
|
|
2340
2484
|
readonly text: Schema.String;
|
|
@@ -2348,11 +2492,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2348
2492
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
2349
2493
|
readonly text: string;
|
|
2350
2494
|
readonly files?: readonly {
|
|
2351
|
-
readonly
|
|
2495
|
+
readonly data: string;
|
|
2352
2496
|
readonly mime: string;
|
|
2497
|
+
readonly source: {
|
|
2498
|
+
readonly type: "inline";
|
|
2499
|
+
} | {
|
|
2500
|
+
readonly type: "uri";
|
|
2501
|
+
readonly uri: string;
|
|
2502
|
+
};
|
|
2353
2503
|
readonly name?: string | undefined;
|
|
2354
2504
|
readonly description?: string | undefined;
|
|
2355
|
-
readonly
|
|
2505
|
+
readonly mention?: {
|
|
2356
2506
|
readonly start: number;
|
|
2357
2507
|
readonly end: number;
|
|
2358
2508
|
readonly text: string;
|
|
@@ -2360,7 +2510,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2360
2510
|
}[] | undefined;
|
|
2361
2511
|
readonly agents?: readonly {
|
|
2362
2512
|
readonly name: string;
|
|
2363
|
-
readonly
|
|
2513
|
+
readonly mention?: {
|
|
2364
2514
|
readonly start: number;
|
|
2365
2515
|
readonly end: number;
|
|
2366
2516
|
readonly text: string;
|
|
@@ -2370,11 +2520,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2370
2520
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
2371
2521
|
readonly text: string;
|
|
2372
2522
|
readonly files?: readonly {
|
|
2373
|
-
readonly
|
|
2523
|
+
readonly data: string;
|
|
2374
2524
|
readonly mime: string;
|
|
2525
|
+
readonly source: {
|
|
2526
|
+
readonly type: "inline";
|
|
2527
|
+
} | {
|
|
2528
|
+
readonly type: "uri";
|
|
2529
|
+
readonly uri: string;
|
|
2530
|
+
};
|
|
2375
2531
|
readonly name?: string | undefined;
|
|
2376
2532
|
readonly description?: string | undefined;
|
|
2377
|
-
readonly
|
|
2533
|
+
readonly mention?: {
|
|
2378
2534
|
readonly start: number;
|
|
2379
2535
|
readonly end: number;
|
|
2380
2536
|
readonly text: string;
|
|
@@ -2382,7 +2538,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2382
2538
|
}[] | undefined;
|
|
2383
2539
|
readonly agents?: readonly {
|
|
2384
2540
|
readonly name: string;
|
|
2385
|
-
readonly
|
|
2541
|
+
readonly mention?: {
|
|
2386
2542
|
readonly start: number;
|
|
2387
2543
|
readonly end: number;
|
|
2388
2544
|
readonly text: string;
|
|
@@ -2411,11 +2567,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2411
2567
|
prompt: Schema.Struct<{
|
|
2412
2568
|
readonly text: Schema.String;
|
|
2413
2569
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2414
|
-
readonly
|
|
2570
|
+
readonly data: Schema.String;
|
|
2415
2571
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
2416
2578
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2417
2579
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2418
|
-
readonly
|
|
2580
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2419
2581
|
readonly start: Schema.Finite;
|
|
2420
2582
|
readonly end: Schema.Finite;
|
|
2421
2583
|
readonly text: Schema.String;
|
|
@@ -2426,22 +2588,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2426
2588
|
}>>, never, never>;
|
|
2427
2589
|
}> & {
|
|
2428
2590
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2429
|
-
readonly
|
|
2591
|
+
readonly data: string;
|
|
2430
2592
|
readonly mime: string;
|
|
2593
|
+
readonly source: {
|
|
2594
|
+
readonly type: "inline";
|
|
2595
|
+
} | {
|
|
2596
|
+
readonly type: "uri";
|
|
2597
|
+
readonly uri: string;
|
|
2598
|
+
};
|
|
2431
2599
|
readonly name?: string | undefined;
|
|
2432
2600
|
readonly description?: string | undefined;
|
|
2433
|
-
readonly
|
|
2601
|
+
readonly mention?: {
|
|
2434
2602
|
readonly start: number;
|
|
2435
2603
|
readonly end: number;
|
|
2436
2604
|
readonly text: string;
|
|
2437
2605
|
} | undefined;
|
|
2438
2606
|
};
|
|
2439
2607
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2440
|
-
readonly
|
|
2608
|
+
readonly data: Schema.String;
|
|
2441
2609
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
2442
2616
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2443
2617
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2444
|
-
readonly
|
|
2618
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2445
2619
|
readonly start: Schema.Finite;
|
|
2446
2620
|
readonly end: Schema.Finite;
|
|
2447
2621
|
readonly text: Schema.String;
|
|
@@ -2452,11 +2626,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2452
2626
|
}>>, never, never>;
|
|
2453
2627
|
}> & {
|
|
2454
2628
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2455
|
-
readonly
|
|
2629
|
+
readonly data: string;
|
|
2456
2630
|
readonly mime: string;
|
|
2631
|
+
readonly source: {
|
|
2632
|
+
readonly type: "inline";
|
|
2633
|
+
} | {
|
|
2634
|
+
readonly type: "uri";
|
|
2635
|
+
readonly uri: string;
|
|
2636
|
+
};
|
|
2457
2637
|
readonly name?: string | undefined;
|
|
2458
2638
|
readonly description?: string | undefined;
|
|
2459
|
-
readonly
|
|
2639
|
+
readonly mention?: {
|
|
2460
2640
|
readonly start: number;
|
|
2461
2641
|
readonly end: number;
|
|
2462
2642
|
readonly text: string;
|
|
@@ -2465,7 +2645,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2465
2645
|
}>>, never, never>;
|
|
2466
2646
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2467
2647
|
readonly name: Schema.String;
|
|
2468
|
-
readonly
|
|
2648
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2469
2649
|
readonly start: Schema.Finite;
|
|
2470
2650
|
readonly end: Schema.Finite;
|
|
2471
2651
|
readonly text: Schema.String;
|
|
@@ -2476,7 +2656,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2476
2656
|
}>>, never, never>;
|
|
2477
2657
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2478
2658
|
readonly name: Schema.String;
|
|
2479
|
-
readonly
|
|
2659
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2480
2660
|
readonly start: Schema.Finite;
|
|
2481
2661
|
readonly end: Schema.Finite;
|
|
2482
2662
|
readonly text: Schema.String;
|
|
@@ -2490,11 +2670,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2490
2670
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
2491
2671
|
readonly text: string;
|
|
2492
2672
|
readonly files?: readonly {
|
|
2493
|
-
readonly
|
|
2673
|
+
readonly data: string;
|
|
2494
2674
|
readonly mime: string;
|
|
2675
|
+
readonly source: {
|
|
2676
|
+
readonly type: "inline";
|
|
2677
|
+
} | {
|
|
2678
|
+
readonly type: "uri";
|
|
2679
|
+
readonly uri: string;
|
|
2680
|
+
};
|
|
2495
2681
|
readonly name?: string | undefined;
|
|
2496
2682
|
readonly description?: string | undefined;
|
|
2497
|
-
readonly
|
|
2683
|
+
readonly mention?: {
|
|
2498
2684
|
readonly start: number;
|
|
2499
2685
|
readonly end: number;
|
|
2500
2686
|
readonly text: string;
|
|
@@ -2502,7 +2688,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2502
2688
|
}[] | undefined;
|
|
2503
2689
|
readonly agents?: readonly {
|
|
2504
2690
|
readonly name: string;
|
|
2505
|
-
readonly
|
|
2691
|
+
readonly mention?: {
|
|
2506
2692
|
readonly start: number;
|
|
2507
2693
|
readonly end: number;
|
|
2508
2694
|
readonly text: string;
|
|
@@ -2512,11 +2698,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2512
2698
|
fromUserMessage: (input: Pick<import("@opencode-ai/schema/prompt").Prompt, "text" | "files" | "agents">) => {
|
|
2513
2699
|
readonly text: string;
|
|
2514
2700
|
readonly files?: readonly {
|
|
2515
|
-
readonly
|
|
2701
|
+
readonly data: string;
|
|
2516
2702
|
readonly mime: string;
|
|
2703
|
+
readonly source: {
|
|
2704
|
+
readonly type: "inline";
|
|
2705
|
+
} | {
|
|
2706
|
+
readonly type: "uri";
|
|
2707
|
+
readonly uri: string;
|
|
2708
|
+
};
|
|
2517
2709
|
readonly name?: string | undefined;
|
|
2518
2710
|
readonly description?: string | undefined;
|
|
2519
|
-
readonly
|
|
2711
|
+
readonly mention?: {
|
|
2520
2712
|
readonly start: number;
|
|
2521
2713
|
readonly end: number;
|
|
2522
2714
|
readonly text: string;
|
|
@@ -2524,7 +2716,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2524
2716
|
}[] | undefined;
|
|
2525
2717
|
readonly agents?: readonly {
|
|
2526
2718
|
readonly name: string;
|
|
2527
|
-
readonly
|
|
2719
|
+
readonly mention?: {
|
|
2528
2720
|
readonly start: number;
|
|
2529
2721
|
readonly end: number;
|
|
2530
2722
|
readonly text: string;
|
|
@@ -4349,11 +4541,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4349
4541
|
readonly prompt: {
|
|
4350
4542
|
readonly text: string;
|
|
4351
4543
|
readonly files?: readonly {
|
|
4352
|
-
readonly
|
|
4544
|
+
readonly data: string;
|
|
4353
4545
|
readonly mime: string;
|
|
4546
|
+
readonly source: {
|
|
4547
|
+
readonly type: "inline";
|
|
4548
|
+
} | {
|
|
4549
|
+
readonly type: "uri";
|
|
4550
|
+
readonly uri: string;
|
|
4551
|
+
};
|
|
4354
4552
|
readonly name?: string | undefined;
|
|
4355
4553
|
readonly description?: string | undefined;
|
|
4356
|
-
readonly
|
|
4554
|
+
readonly mention?: {
|
|
4357
4555
|
readonly start: number;
|
|
4358
4556
|
readonly end: number;
|
|
4359
4557
|
readonly text: string;
|
|
@@ -4361,7 +4559,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4361
4559
|
}[] | undefined;
|
|
4362
4560
|
readonly agents?: readonly {
|
|
4363
4561
|
readonly name: string;
|
|
4364
|
-
readonly
|
|
4562
|
+
readonly mention?: {
|
|
4365
4563
|
readonly start: number;
|
|
4366
4564
|
readonly end: number;
|
|
4367
4565
|
readonly text: string;
|
|
@@ -5131,11 +5329,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5131
5329
|
}>, Schema.Struct<{
|
|
5132
5330
|
readonly text: Schema.String;
|
|
5133
5331
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5134
|
-
readonly
|
|
5332
|
+
readonly data: Schema.String;
|
|
5135
5333
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
5136
5340
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5137
5341
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5138
|
-
readonly
|
|
5342
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5139
5343
|
readonly start: Schema.Finite;
|
|
5140
5344
|
readonly end: Schema.Finite;
|
|
5141
5345
|
readonly text: Schema.String;
|
|
@@ -5146,22 +5350,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5146
5350
|
}>>, never, never>;
|
|
5147
5351
|
}> & {
|
|
5148
5352
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5149
|
-
readonly
|
|
5353
|
+
readonly data: string;
|
|
5150
5354
|
readonly mime: string;
|
|
5355
|
+
readonly source: {
|
|
5356
|
+
readonly type: "inline";
|
|
5357
|
+
} | {
|
|
5358
|
+
readonly type: "uri";
|
|
5359
|
+
readonly uri: string;
|
|
5360
|
+
};
|
|
5151
5361
|
readonly name?: string | undefined;
|
|
5152
5362
|
readonly description?: string | undefined;
|
|
5153
|
-
readonly
|
|
5363
|
+
readonly mention?: {
|
|
5154
5364
|
readonly start: number;
|
|
5155
5365
|
readonly end: number;
|
|
5156
5366
|
readonly text: string;
|
|
5157
5367
|
} | undefined;
|
|
5158
5368
|
};
|
|
5159
5369
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5160
|
-
readonly
|
|
5370
|
+
readonly data: Schema.String;
|
|
5161
5371
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
5162
5378
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5163
5379
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5164
|
-
readonly
|
|
5380
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5165
5381
|
readonly start: Schema.Finite;
|
|
5166
5382
|
readonly end: Schema.Finite;
|
|
5167
5383
|
readonly text: Schema.String;
|
|
@@ -5172,11 +5388,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5172
5388
|
}>>, never, never>;
|
|
5173
5389
|
}> & {
|
|
5174
5390
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5175
|
-
readonly
|
|
5391
|
+
readonly data: string;
|
|
5176
5392
|
readonly mime: string;
|
|
5393
|
+
readonly source: {
|
|
5394
|
+
readonly type: "inline";
|
|
5395
|
+
} | {
|
|
5396
|
+
readonly type: "uri";
|
|
5397
|
+
readonly uri: string;
|
|
5398
|
+
};
|
|
5177
5399
|
readonly name?: string | undefined;
|
|
5178
5400
|
readonly description?: string | undefined;
|
|
5179
|
-
readonly
|
|
5401
|
+
readonly mention?: {
|
|
5180
5402
|
readonly start: number;
|
|
5181
5403
|
readonly end: number;
|
|
5182
5404
|
readonly text: string;
|
|
@@ -5185,7 +5407,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5185
5407
|
}>>, never, never>;
|
|
5186
5408
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5187
5409
|
readonly name: Schema.String;
|
|
5188
|
-
readonly
|
|
5410
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5189
5411
|
readonly start: Schema.Finite;
|
|
5190
5412
|
readonly end: Schema.Finite;
|
|
5191
5413
|
readonly text: Schema.String;
|
|
@@ -5196,7 +5418,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5196
5418
|
}>>, never, never>;
|
|
5197
5419
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5198
5420
|
readonly name: Schema.String;
|
|
5199
|
-
readonly
|
|
5421
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5200
5422
|
readonly start: Schema.Finite;
|
|
5201
5423
|
readonly end: Schema.Finite;
|
|
5202
5424
|
readonly text: Schema.String;
|
|
@@ -5363,11 +5585,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5363
5585
|
readonly status: Schema.Literal<"completed">;
|
|
5364
5586
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
5365
5587
|
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5366
|
-
readonly
|
|
5588
|
+
readonly data: Schema.String;
|
|
5367
5589
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
5368
5596
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5369
5597
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5370
|
-
readonly
|
|
5598
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5371
5599
|
readonly start: Schema.Finite;
|
|
5372
5600
|
readonly end: Schema.Finite;
|
|
5373
5601
|
readonly text: Schema.String;
|
|
@@ -5378,22 +5606,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5378
5606
|
}>>, never, never>;
|
|
5379
5607
|
}> & {
|
|
5380
5608
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5381
|
-
readonly
|
|
5609
|
+
readonly data: string;
|
|
5382
5610
|
readonly mime: string;
|
|
5611
|
+
readonly source: {
|
|
5612
|
+
readonly type: "inline";
|
|
5613
|
+
} | {
|
|
5614
|
+
readonly type: "uri";
|
|
5615
|
+
readonly uri: string;
|
|
5616
|
+
};
|
|
5383
5617
|
readonly name?: string | undefined;
|
|
5384
5618
|
readonly description?: string | undefined;
|
|
5385
|
-
readonly
|
|
5619
|
+
readonly mention?: {
|
|
5386
5620
|
readonly start: number;
|
|
5387
5621
|
readonly end: number;
|
|
5388
5622
|
readonly text: string;
|
|
5389
5623
|
} | undefined;
|
|
5390
5624
|
};
|
|
5391
5625
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5392
|
-
readonly
|
|
5626
|
+
readonly data: Schema.String;
|
|
5393
5627
|
readonly mime: Schema.String;
|
|
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
|
+
}>]>;
|
|
5394
5634
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5395
5635
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5396
|
-
readonly
|
|
5636
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5397
5637
|
readonly start: Schema.Finite;
|
|
5398
5638
|
readonly end: Schema.Finite;
|
|
5399
5639
|
readonly text: Schema.String;
|
|
@@ -5404,11 +5644,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5404
5644
|
}>>, never, never>;
|
|
5405
5645
|
}> & {
|
|
5406
5646
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5407
|
-
readonly
|
|
5647
|
+
readonly data: string;
|
|
5408
5648
|
readonly mime: string;
|
|
5649
|
+
readonly source: {
|
|
5650
|
+
readonly type: "inline";
|
|
5651
|
+
} | {
|
|
5652
|
+
readonly type: "uri";
|
|
5653
|
+
readonly uri: string;
|
|
5654
|
+
};
|
|
5409
5655
|
readonly name?: string | undefined;
|
|
5410
5656
|
readonly description?: string | undefined;
|
|
5411
|
-
readonly
|
|
5657
|
+
readonly mention?: {
|
|
5412
5658
|
readonly start: number;
|
|
5413
5659
|
readonly end: number;
|
|
5414
5660
|
readonly text: string;
|