@vibes.diy/api-types 2.4.11 → 2.4.13
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/README.md +12 -12
- package/access-function.d.ts +1 -0
- package/app-documents.d.ts +2 -2
- package/app-documents.js +1 -1
- package/app-documents.js.map +1 -1
- package/chat.d.ts +354 -352
- package/chat.js +1 -0
- package/chat.js.map +1 -1
- package/common.d.ts +0 -30
- package/common.js +0 -30
- package/common.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/invite.d.ts +19 -8
- package/package.json +3 -3
- package/settings.d.ts +54 -24
- package/vibes-diy-api.d.ts +0 -2
- package/vibes-diy-api.js.map +1 -1
- package/fpcloud-token.d.ts +0 -145
- package/fpcloud-token.js +0 -43
- package/fpcloud-token.js.map +0 -1
package/chat.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const Model: import("arktype/internal/variants/object.ts").Object
|
|
|
14
14
|
description: string;
|
|
15
15
|
featured?: boolean | undefined;
|
|
16
16
|
preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
|
|
17
|
+
fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
|
|
17
18
|
supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
|
|
18
19
|
}, {}>;
|
|
19
20
|
export type Model = typeof Model.infer;
|
|
@@ -947,133 +948,6 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
|
|
|
947
948
|
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
948
949
|
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
949
950
|
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
950
|
-
streamId: string;
|
|
951
|
-
chatId: string;
|
|
952
|
-
seq: number;
|
|
953
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
954
|
-
type: "prompt.block-begin";
|
|
955
|
-
} | {
|
|
956
|
-
streamId: string;
|
|
957
|
-
chatId: string;
|
|
958
|
-
seq: number;
|
|
959
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
960
|
-
type: "prompt.block-end";
|
|
961
|
-
} | {
|
|
962
|
-
streamId: string;
|
|
963
|
-
chatId: string;
|
|
964
|
-
seq: number;
|
|
965
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
966
|
-
type: "prompt.req";
|
|
967
|
-
request: {
|
|
968
|
-
model?: string | undefined;
|
|
969
|
-
messages: {
|
|
970
|
-
role: "assistant" | "system" | "user";
|
|
971
|
-
content: ({
|
|
972
|
-
type: "text";
|
|
973
|
-
text: string;
|
|
974
|
-
} | {
|
|
975
|
-
type: "image_url";
|
|
976
|
-
image_url: {
|
|
977
|
-
url: string;
|
|
978
|
-
};
|
|
979
|
-
})[];
|
|
980
|
-
}[];
|
|
981
|
-
stream?: boolean | undefined;
|
|
982
|
-
temperature?: number | undefined;
|
|
983
|
-
max_tokens?: number | undefined;
|
|
984
|
-
top_p?: number | undefined;
|
|
985
|
-
logprobs?: boolean | undefined;
|
|
986
|
-
top_logsprobs?: number | undefined;
|
|
987
|
-
frequency_penalty?: number | undefined;
|
|
988
|
-
presence_penalty?: number | undefined;
|
|
989
|
-
stop?: string | string[] | undefined;
|
|
990
|
-
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
991
|
-
modalities?: string[] | undefined;
|
|
992
|
-
};
|
|
993
|
-
} | {
|
|
994
|
-
streamId: string;
|
|
995
|
-
chatId: string;
|
|
996
|
-
seq: number;
|
|
997
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
998
|
-
type: "prompt.error";
|
|
999
|
-
error: string;
|
|
1000
|
-
} | {
|
|
1001
|
-
streamId: string;
|
|
1002
|
-
chatId: string;
|
|
1003
|
-
seq: number;
|
|
1004
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1005
|
-
type: "prompt.fs";
|
|
1006
|
-
fileSystem: ({
|
|
1007
|
-
filename: string;
|
|
1008
|
-
entryPoint?: boolean | undefined;
|
|
1009
|
-
mimetype?: string | undefined;
|
|
1010
|
-
type: "code-block";
|
|
1011
|
-
lang: string;
|
|
1012
|
-
content: string;
|
|
1013
|
-
} | {
|
|
1014
|
-
filename: string;
|
|
1015
|
-
entryPoint?: boolean | undefined;
|
|
1016
|
-
mimetype?: string | undefined;
|
|
1017
|
-
type: "code-ref";
|
|
1018
|
-
refId: string;
|
|
1019
|
-
} | {
|
|
1020
|
-
filename: string;
|
|
1021
|
-
entryPoint?: boolean | undefined;
|
|
1022
|
-
mimetype?: string | undefined;
|
|
1023
|
-
type: "str-asset-block";
|
|
1024
|
-
content: string;
|
|
1025
|
-
} | {
|
|
1026
|
-
filename: string;
|
|
1027
|
-
entryPoint?: boolean | undefined;
|
|
1028
|
-
mimetype?: string | undefined;
|
|
1029
|
-
type: "str-asset-ref";
|
|
1030
|
-
refId: string;
|
|
1031
|
-
} | {
|
|
1032
|
-
filename: string;
|
|
1033
|
-
entryPoint?: boolean | undefined;
|
|
1034
|
-
mimetype?: string | undefined;
|
|
1035
|
-
type: "uint8-asset-block";
|
|
1036
|
-
content: Uint8Array<ArrayBuffer>;
|
|
1037
|
-
} | {
|
|
1038
|
-
filename: string;
|
|
1039
|
-
entryPoint?: boolean | undefined;
|
|
1040
|
-
mimetype?: string | undefined;
|
|
1041
|
-
type: "uint8-asset-ref";
|
|
1042
|
-
refId: string;
|
|
1043
|
-
})[];
|
|
1044
|
-
} | {
|
|
1045
|
-
streamId: string;
|
|
1046
|
-
chatId: string;
|
|
1047
|
-
seq: number;
|
|
1048
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1049
|
-
type: "prompt.dry-run-payload";
|
|
1050
|
-
request: {
|
|
1051
|
-
model?: string | undefined;
|
|
1052
|
-
messages: {
|
|
1053
|
-
role: "assistant" | "system" | "user";
|
|
1054
|
-
content: ({
|
|
1055
|
-
type: "text";
|
|
1056
|
-
text: string;
|
|
1057
|
-
} | {
|
|
1058
|
-
type: "image_url";
|
|
1059
|
-
image_url: {
|
|
1060
|
-
url: string;
|
|
1061
|
-
};
|
|
1062
|
-
})[];
|
|
1063
|
-
}[];
|
|
1064
|
-
stream?: boolean | undefined;
|
|
1065
|
-
temperature?: number | undefined;
|
|
1066
|
-
max_tokens?: number | undefined;
|
|
1067
|
-
top_p?: number | undefined;
|
|
1068
|
-
logprobs?: boolean | undefined;
|
|
1069
|
-
top_logsprobs?: number | undefined;
|
|
1070
|
-
frequency_penalty?: number | undefined;
|
|
1071
|
-
presence_penalty?: number | undefined;
|
|
1072
|
-
stop?: string | string[] | undefined;
|
|
1073
|
-
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1074
|
-
modalities?: string[] | undefined;
|
|
1075
|
-
};
|
|
1076
|
-
} | {
|
|
1077
951
|
blockId: string;
|
|
1078
952
|
streamId: string;
|
|
1079
953
|
seq: number;
|
|
@@ -1139,34 +1013,18 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1139
1013
|
seq: number;
|
|
1140
1014
|
blockNr: number;
|
|
1141
1015
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1142
|
-
type: "block.
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
image: {
|
|
1155
|
-
lines: number;
|
|
1156
|
-
bytes: number;
|
|
1157
|
-
cnt?: number | undefined;
|
|
1158
|
-
};
|
|
1159
|
-
total: {
|
|
1160
|
-
lines: number;
|
|
1161
|
-
bytes: number;
|
|
1162
|
-
cnt?: number | undefined;
|
|
1163
|
-
};
|
|
1164
|
-
};
|
|
1165
|
-
usage: {
|
|
1166
|
-
prompt_tokens: number;
|
|
1167
|
-
completion_tokens: number;
|
|
1168
|
-
total_tokens: number;
|
|
1169
|
-
};
|
|
1016
|
+
type: "block.toplevel.begin";
|
|
1017
|
+
sectionId: string;
|
|
1018
|
+
} | {
|
|
1019
|
+
blockId: string;
|
|
1020
|
+
streamId: string;
|
|
1021
|
+
seq: number;
|
|
1022
|
+
blockNr: number;
|
|
1023
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1024
|
+
lineNr: number;
|
|
1025
|
+
line: string;
|
|
1026
|
+
type: "block.toplevel.line";
|
|
1027
|
+
sectionId: string;
|
|
1170
1028
|
} | {
|
|
1171
1029
|
blockId: string;
|
|
1172
1030
|
streamId: string;
|
|
@@ -1178,13 +1036,8 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1178
1036
|
bytes: number;
|
|
1179
1037
|
cnt?: number | undefined;
|
|
1180
1038
|
};
|
|
1181
|
-
type: "block.
|
|
1039
|
+
type: "block.toplevel.end";
|
|
1182
1040
|
sectionId: string;
|
|
1183
|
-
url?: string | undefined;
|
|
1184
|
-
uploadId?: string | undefined;
|
|
1185
|
-
cid?: string | undefined;
|
|
1186
|
-
mimeType?: string | undefined;
|
|
1187
|
-
size?: number | undefined;
|
|
1188
1041
|
} | {
|
|
1189
1042
|
blockId: string;
|
|
1190
1043
|
streamId: string;
|
|
@@ -1242,167 +1095,188 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1242
1095
|
seq: number;
|
|
1243
1096
|
blockNr: number;
|
|
1244
1097
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1245
|
-
|
|
1098
|
+
stats: {
|
|
1099
|
+
lines: number;
|
|
1100
|
+
bytes: number;
|
|
1101
|
+
cnt?: number | undefined;
|
|
1102
|
+
};
|
|
1103
|
+
type: "block.image";
|
|
1246
1104
|
sectionId: string;
|
|
1105
|
+
url?: string | undefined;
|
|
1106
|
+
uploadId?: string | undefined;
|
|
1107
|
+
cid?: string | undefined;
|
|
1108
|
+
mimeType?: string | undefined;
|
|
1109
|
+
size?: number | undefined;
|
|
1247
1110
|
} | {
|
|
1248
1111
|
blockId: string;
|
|
1249
1112
|
streamId: string;
|
|
1250
1113
|
seq: number;
|
|
1251
1114
|
blockNr: number;
|
|
1252
1115
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1116
|
+
type: "block.stats";
|
|
1117
|
+
stats: {
|
|
1118
|
+
toplevel: {
|
|
1119
|
+
lines: number;
|
|
1120
|
+
bytes: number;
|
|
1121
|
+
cnt?: number | undefined;
|
|
1122
|
+
};
|
|
1123
|
+
code: {
|
|
1124
|
+
lines: number;
|
|
1125
|
+
bytes: number;
|
|
1126
|
+
cnt?: number | undefined;
|
|
1127
|
+
};
|
|
1128
|
+
image: {
|
|
1129
|
+
lines: number;
|
|
1130
|
+
bytes: number;
|
|
1131
|
+
cnt?: number | undefined;
|
|
1132
|
+
};
|
|
1133
|
+
total: {
|
|
1134
|
+
lines: number;
|
|
1135
|
+
bytes: number;
|
|
1136
|
+
cnt?: number | undefined;
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
usage: {
|
|
1140
|
+
prompt_tokens: number;
|
|
1141
|
+
completion_tokens: number;
|
|
1142
|
+
total_tokens: number;
|
|
1143
|
+
};
|
|
1257
1144
|
} | {
|
|
1258
|
-
blockId: string;
|
|
1259
1145
|
streamId: string;
|
|
1146
|
+
chatId: string;
|
|
1260
1147
|
seq: number;
|
|
1261
|
-
blockNr: number;
|
|
1262
1148
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
cnt?: number | undefined;
|
|
1267
|
-
};
|
|
1268
|
-
type: "block.toplevel.end";
|
|
1269
|
-
sectionId: string;
|
|
1270
|
-
}, {}>;
|
|
1271
|
-
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
1272
|
-
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1273
|
-
type: "vibes.diy.section-event";
|
|
1149
|
+
type: "prompt.block-begin";
|
|
1150
|
+
} | {
|
|
1151
|
+
streamId: string;
|
|
1274
1152
|
chatId: string;
|
|
1275
|
-
|
|
1276
|
-
blockSeq: number;
|
|
1153
|
+
seq: number;
|
|
1277
1154
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1155
|
+
type: "prompt.block-end";
|
|
1156
|
+
} | {
|
|
1157
|
+
streamId: string;
|
|
1158
|
+
chatId: string;
|
|
1159
|
+
seq: number;
|
|
1160
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1161
|
+
type: "prompt.req";
|
|
1162
|
+
request: {
|
|
1163
|
+
model?: string | undefined;
|
|
1164
|
+
messages: {
|
|
1165
|
+
role: "assistant" | "system" | "user";
|
|
1166
|
+
content: ({
|
|
1167
|
+
type: "text";
|
|
1168
|
+
text: string;
|
|
1169
|
+
} | {
|
|
1170
|
+
type: "image_url";
|
|
1171
|
+
image_url: {
|
|
1172
|
+
url: string;
|
|
1173
|
+
};
|
|
1174
|
+
})[];
|
|
1175
|
+
}[];
|
|
1176
|
+
stream?: boolean | undefined;
|
|
1177
|
+
temperature?: number | undefined;
|
|
1178
|
+
max_tokens?: number | undefined;
|
|
1179
|
+
top_p?: number | undefined;
|
|
1180
|
+
logprobs?: boolean | undefined;
|
|
1181
|
+
top_logsprobs?: number | undefined;
|
|
1182
|
+
frequency_penalty?: number | undefined;
|
|
1183
|
+
presence_penalty?: number | undefined;
|
|
1184
|
+
stop?: string | string[] | undefined;
|
|
1185
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1186
|
+
modalities?: string[] | undefined;
|
|
1187
|
+
};
|
|
1188
|
+
} | {
|
|
1189
|
+
streamId: string;
|
|
1190
|
+
chatId: string;
|
|
1191
|
+
seq: number;
|
|
1192
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1193
|
+
type: "prompt.error";
|
|
1194
|
+
error: string;
|
|
1195
|
+
} | {
|
|
1196
|
+
streamId: string;
|
|
1197
|
+
chatId: string;
|
|
1198
|
+
seq: number;
|
|
1199
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1200
|
+
type: "prompt.fs";
|
|
1201
|
+
fileSystem: ({
|
|
1202
|
+
filename: string;
|
|
1203
|
+
entryPoint?: boolean | undefined;
|
|
1204
|
+
mimetype?: string | undefined;
|
|
1205
|
+
type: "code-block";
|
|
1206
|
+
lang: string;
|
|
1207
|
+
content: string;
|
|
1322
1208
|
} | {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
error: string;
|
|
1209
|
+
filename: string;
|
|
1210
|
+
entryPoint?: boolean | undefined;
|
|
1211
|
+
mimetype?: string | undefined;
|
|
1212
|
+
type: "code-ref";
|
|
1213
|
+
refId: string;
|
|
1329
1214
|
} | {
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
fileSystem: ({
|
|
1336
|
-
filename: string;
|
|
1337
|
-
entryPoint?: boolean | undefined;
|
|
1338
|
-
mimetype?: string | undefined;
|
|
1339
|
-
type: "code-block";
|
|
1340
|
-
lang: string;
|
|
1341
|
-
content: string;
|
|
1342
|
-
} | {
|
|
1343
|
-
filename: string;
|
|
1344
|
-
entryPoint?: boolean | undefined;
|
|
1345
|
-
mimetype?: string | undefined;
|
|
1346
|
-
type: "code-ref";
|
|
1347
|
-
refId: string;
|
|
1348
|
-
} | {
|
|
1349
|
-
filename: string;
|
|
1350
|
-
entryPoint?: boolean | undefined;
|
|
1351
|
-
mimetype?: string | undefined;
|
|
1352
|
-
type: "str-asset-block";
|
|
1353
|
-
content: string;
|
|
1354
|
-
} | {
|
|
1355
|
-
filename: string;
|
|
1356
|
-
entryPoint?: boolean | undefined;
|
|
1357
|
-
mimetype?: string | undefined;
|
|
1358
|
-
type: "str-asset-ref";
|
|
1359
|
-
refId: string;
|
|
1360
|
-
} | {
|
|
1361
|
-
filename: string;
|
|
1362
|
-
entryPoint?: boolean | undefined;
|
|
1363
|
-
mimetype?: string | undefined;
|
|
1364
|
-
type: "uint8-asset-block";
|
|
1365
|
-
content: Uint8Array<ArrayBuffer>;
|
|
1366
|
-
} | {
|
|
1367
|
-
filename: string;
|
|
1368
|
-
entryPoint?: boolean | undefined;
|
|
1369
|
-
mimetype?: string | undefined;
|
|
1370
|
-
type: "uint8-asset-ref";
|
|
1371
|
-
refId: string;
|
|
1372
|
-
})[];
|
|
1215
|
+
filename: string;
|
|
1216
|
+
entryPoint?: boolean | undefined;
|
|
1217
|
+
mimetype?: string | undefined;
|
|
1218
|
+
type: "str-asset-block";
|
|
1219
|
+
content: string;
|
|
1373
1220
|
} | {
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
text: string;
|
|
1386
|
-
} | {
|
|
1387
|
-
type: "image_url";
|
|
1388
|
-
image_url: {
|
|
1389
|
-
url: string;
|
|
1390
|
-
};
|
|
1391
|
-
})[];
|
|
1392
|
-
}[];
|
|
1393
|
-
stream?: boolean | undefined;
|
|
1394
|
-
temperature?: number | undefined;
|
|
1395
|
-
max_tokens?: number | undefined;
|
|
1396
|
-
top_p?: number | undefined;
|
|
1397
|
-
logprobs?: boolean | undefined;
|
|
1398
|
-
top_logsprobs?: number | undefined;
|
|
1399
|
-
frequency_penalty?: number | undefined;
|
|
1400
|
-
presence_penalty?: number | undefined;
|
|
1401
|
-
stop?: string | string[] | undefined;
|
|
1402
|
-
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1403
|
-
modalities?: string[] | undefined;
|
|
1404
|
-
};
|
|
1221
|
+
filename: string;
|
|
1222
|
+
entryPoint?: boolean | undefined;
|
|
1223
|
+
mimetype?: string | undefined;
|
|
1224
|
+
type: "str-asset-ref";
|
|
1225
|
+
refId: string;
|
|
1226
|
+
} | {
|
|
1227
|
+
filename: string;
|
|
1228
|
+
entryPoint?: boolean | undefined;
|
|
1229
|
+
mimetype?: string | undefined;
|
|
1230
|
+
type: "uint8-asset-block";
|
|
1231
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1405
1232
|
} | {
|
|
1233
|
+
filename: string;
|
|
1234
|
+
entryPoint?: boolean | undefined;
|
|
1235
|
+
mimetype?: string | undefined;
|
|
1236
|
+
type: "uint8-asset-ref";
|
|
1237
|
+
refId: string;
|
|
1238
|
+
})[];
|
|
1239
|
+
} | {
|
|
1240
|
+
streamId: string;
|
|
1241
|
+
chatId: string;
|
|
1242
|
+
seq: number;
|
|
1243
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1244
|
+
type: "prompt.dry-run-payload";
|
|
1245
|
+
request: {
|
|
1246
|
+
model?: string | undefined;
|
|
1247
|
+
messages: {
|
|
1248
|
+
role: "assistant" | "system" | "user";
|
|
1249
|
+
content: ({
|
|
1250
|
+
type: "text";
|
|
1251
|
+
text: string;
|
|
1252
|
+
} | {
|
|
1253
|
+
type: "image_url";
|
|
1254
|
+
image_url: {
|
|
1255
|
+
url: string;
|
|
1256
|
+
};
|
|
1257
|
+
})[];
|
|
1258
|
+
}[];
|
|
1259
|
+
stream?: boolean | undefined;
|
|
1260
|
+
temperature?: number | undefined;
|
|
1261
|
+
max_tokens?: number | undefined;
|
|
1262
|
+
top_p?: number | undefined;
|
|
1263
|
+
logprobs?: boolean | undefined;
|
|
1264
|
+
top_logsprobs?: number | undefined;
|
|
1265
|
+
frequency_penalty?: number | undefined;
|
|
1266
|
+
presence_penalty?: number | undefined;
|
|
1267
|
+
stop?: string | string[] | undefined;
|
|
1268
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1269
|
+
modalities?: string[] | undefined;
|
|
1270
|
+
};
|
|
1271
|
+
}, {}>;
|
|
1272
|
+
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
1273
|
+
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1274
|
+
type: "vibes.diy.section-event";
|
|
1275
|
+
chatId: string;
|
|
1276
|
+
promptId: string;
|
|
1277
|
+
blockSeq: number;
|
|
1278
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1279
|
+
blocks: ({
|
|
1406
1280
|
blockId: string;
|
|
1407
1281
|
streamId: string;
|
|
1408
1282
|
seq: number;
|
|
@@ -1468,34 +1342,18 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1468
1342
|
seq: number;
|
|
1469
1343
|
blockNr: number;
|
|
1470
1344
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1471
|
-
type: "block.
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
image: {
|
|
1484
|
-
lines: number;
|
|
1485
|
-
bytes: number;
|
|
1486
|
-
cnt?: number | undefined;
|
|
1487
|
-
};
|
|
1488
|
-
total: {
|
|
1489
|
-
lines: number;
|
|
1490
|
-
bytes: number;
|
|
1491
|
-
cnt?: number | undefined;
|
|
1492
|
-
};
|
|
1493
|
-
};
|
|
1494
|
-
usage: {
|
|
1495
|
-
prompt_tokens: number;
|
|
1496
|
-
completion_tokens: number;
|
|
1497
|
-
total_tokens: number;
|
|
1498
|
-
};
|
|
1345
|
+
type: "block.toplevel.begin";
|
|
1346
|
+
sectionId: string;
|
|
1347
|
+
} | {
|
|
1348
|
+
blockId: string;
|
|
1349
|
+
streamId: string;
|
|
1350
|
+
seq: number;
|
|
1351
|
+
blockNr: number;
|
|
1352
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1353
|
+
lineNr: number;
|
|
1354
|
+
line: string;
|
|
1355
|
+
type: "block.toplevel.line";
|
|
1356
|
+
sectionId: string;
|
|
1499
1357
|
} | {
|
|
1500
1358
|
blockId: string;
|
|
1501
1359
|
streamId: string;
|
|
@@ -1507,13 +1365,8 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1507
1365
|
bytes: number;
|
|
1508
1366
|
cnt?: number | undefined;
|
|
1509
1367
|
};
|
|
1510
|
-
type: "block.
|
|
1368
|
+
type: "block.toplevel.end";
|
|
1511
1369
|
sectionId: string;
|
|
1512
|
-
url?: string | undefined;
|
|
1513
|
-
uploadId?: string | undefined;
|
|
1514
|
-
cid?: string | undefined;
|
|
1515
|
-
mimeType?: string | undefined;
|
|
1516
|
-
size?: number | undefined;
|
|
1517
1370
|
} | {
|
|
1518
1371
|
blockId: string;
|
|
1519
1372
|
streamId: string;
|
|
@@ -1571,31 +1424,179 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1571
1424
|
seq: number;
|
|
1572
1425
|
blockNr: number;
|
|
1573
1426
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1574
|
-
|
|
1427
|
+
stats: {
|
|
1428
|
+
lines: number;
|
|
1429
|
+
bytes: number;
|
|
1430
|
+
cnt?: number | undefined;
|
|
1431
|
+
};
|
|
1432
|
+
type: "block.image";
|
|
1575
1433
|
sectionId: string;
|
|
1434
|
+
url?: string | undefined;
|
|
1435
|
+
uploadId?: string | undefined;
|
|
1436
|
+
cid?: string | undefined;
|
|
1437
|
+
mimeType?: string | undefined;
|
|
1438
|
+
size?: number | undefined;
|
|
1576
1439
|
} | {
|
|
1577
1440
|
blockId: string;
|
|
1578
1441
|
streamId: string;
|
|
1579
1442
|
seq: number;
|
|
1580
1443
|
blockNr: number;
|
|
1581
1444
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1445
|
+
type: "block.stats";
|
|
1446
|
+
stats: {
|
|
1447
|
+
toplevel: {
|
|
1448
|
+
lines: number;
|
|
1449
|
+
bytes: number;
|
|
1450
|
+
cnt?: number | undefined;
|
|
1451
|
+
};
|
|
1452
|
+
code: {
|
|
1453
|
+
lines: number;
|
|
1454
|
+
bytes: number;
|
|
1455
|
+
cnt?: number | undefined;
|
|
1456
|
+
};
|
|
1457
|
+
image: {
|
|
1458
|
+
lines: number;
|
|
1459
|
+
bytes: number;
|
|
1460
|
+
cnt?: number | undefined;
|
|
1461
|
+
};
|
|
1462
|
+
total: {
|
|
1463
|
+
lines: number;
|
|
1464
|
+
bytes: number;
|
|
1465
|
+
cnt?: number | undefined;
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
usage: {
|
|
1469
|
+
prompt_tokens: number;
|
|
1470
|
+
completion_tokens: number;
|
|
1471
|
+
total_tokens: number;
|
|
1472
|
+
};
|
|
1586
1473
|
} | {
|
|
1587
|
-
blockId: string;
|
|
1588
1474
|
streamId: string;
|
|
1475
|
+
chatId: string;
|
|
1589
1476
|
seq: number;
|
|
1590
|
-
blockNr: number;
|
|
1591
1477
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1478
|
+
type: "prompt.block-begin";
|
|
1479
|
+
} | {
|
|
1480
|
+
streamId: string;
|
|
1481
|
+
chatId: string;
|
|
1482
|
+
seq: number;
|
|
1483
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1484
|
+
type: "prompt.block-end";
|
|
1485
|
+
} | {
|
|
1486
|
+
streamId: string;
|
|
1487
|
+
chatId: string;
|
|
1488
|
+
seq: number;
|
|
1489
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1490
|
+
type: "prompt.req";
|
|
1491
|
+
request: {
|
|
1492
|
+
model?: string | undefined;
|
|
1493
|
+
messages: {
|
|
1494
|
+
role: "assistant" | "system" | "user";
|
|
1495
|
+
content: ({
|
|
1496
|
+
type: "text";
|
|
1497
|
+
text: string;
|
|
1498
|
+
} | {
|
|
1499
|
+
type: "image_url";
|
|
1500
|
+
image_url: {
|
|
1501
|
+
url: string;
|
|
1502
|
+
};
|
|
1503
|
+
})[];
|
|
1504
|
+
}[];
|
|
1505
|
+
stream?: boolean | undefined;
|
|
1506
|
+
temperature?: number | undefined;
|
|
1507
|
+
max_tokens?: number | undefined;
|
|
1508
|
+
top_p?: number | undefined;
|
|
1509
|
+
logprobs?: boolean | undefined;
|
|
1510
|
+
top_logsprobs?: number | undefined;
|
|
1511
|
+
frequency_penalty?: number | undefined;
|
|
1512
|
+
presence_penalty?: number | undefined;
|
|
1513
|
+
stop?: string | string[] | undefined;
|
|
1514
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1515
|
+
modalities?: string[] | undefined;
|
|
1516
|
+
};
|
|
1517
|
+
} | {
|
|
1518
|
+
streamId: string;
|
|
1519
|
+
chatId: string;
|
|
1520
|
+
seq: number;
|
|
1521
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1522
|
+
type: "prompt.error";
|
|
1523
|
+
error: string;
|
|
1524
|
+
} | {
|
|
1525
|
+
streamId: string;
|
|
1526
|
+
chatId: string;
|
|
1527
|
+
seq: number;
|
|
1528
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1529
|
+
type: "prompt.fs";
|
|
1530
|
+
fileSystem: ({
|
|
1531
|
+
filename: string;
|
|
1532
|
+
entryPoint?: boolean | undefined;
|
|
1533
|
+
mimetype?: string | undefined;
|
|
1534
|
+
type: "code-block";
|
|
1535
|
+
lang: string;
|
|
1536
|
+
content: string;
|
|
1537
|
+
} | {
|
|
1538
|
+
filename: string;
|
|
1539
|
+
entryPoint?: boolean | undefined;
|
|
1540
|
+
mimetype?: string | undefined;
|
|
1541
|
+
type: "code-ref";
|
|
1542
|
+
refId: string;
|
|
1543
|
+
} | {
|
|
1544
|
+
filename: string;
|
|
1545
|
+
entryPoint?: boolean | undefined;
|
|
1546
|
+
mimetype?: string | undefined;
|
|
1547
|
+
type: "str-asset-block";
|
|
1548
|
+
content: string;
|
|
1549
|
+
} | {
|
|
1550
|
+
filename: string;
|
|
1551
|
+
entryPoint?: boolean | undefined;
|
|
1552
|
+
mimetype?: string | undefined;
|
|
1553
|
+
type: "str-asset-ref";
|
|
1554
|
+
refId: string;
|
|
1555
|
+
} | {
|
|
1556
|
+
filename: string;
|
|
1557
|
+
entryPoint?: boolean | undefined;
|
|
1558
|
+
mimetype?: string | undefined;
|
|
1559
|
+
type: "uint8-asset-block";
|
|
1560
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1561
|
+
} | {
|
|
1562
|
+
filename: string;
|
|
1563
|
+
entryPoint?: boolean | undefined;
|
|
1564
|
+
mimetype?: string | undefined;
|
|
1565
|
+
type: "uint8-asset-ref";
|
|
1566
|
+
refId: string;
|
|
1567
|
+
})[];
|
|
1568
|
+
} | {
|
|
1569
|
+
streamId: string;
|
|
1570
|
+
chatId: string;
|
|
1571
|
+
seq: number;
|
|
1572
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1573
|
+
type: "prompt.dry-run-payload";
|
|
1574
|
+
request: {
|
|
1575
|
+
model?: string | undefined;
|
|
1576
|
+
messages: {
|
|
1577
|
+
role: "assistant" | "system" | "user";
|
|
1578
|
+
content: ({
|
|
1579
|
+
type: "text";
|
|
1580
|
+
text: string;
|
|
1581
|
+
} | {
|
|
1582
|
+
type: "image_url";
|
|
1583
|
+
image_url: {
|
|
1584
|
+
url: string;
|
|
1585
|
+
};
|
|
1586
|
+
})[];
|
|
1587
|
+
}[];
|
|
1588
|
+
stream?: boolean | undefined;
|
|
1589
|
+
temperature?: number | undefined;
|
|
1590
|
+
max_tokens?: number | undefined;
|
|
1591
|
+
top_p?: number | undefined;
|
|
1592
|
+
logprobs?: boolean | undefined;
|
|
1593
|
+
top_logsprobs?: number | undefined;
|
|
1594
|
+
frequency_penalty?: number | undefined;
|
|
1595
|
+
presence_penalty?: number | undefined;
|
|
1596
|
+
stop?: string | string[] | undefined;
|
|
1597
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1598
|
+
modalities?: string[] | undefined;
|
|
1596
1599
|
};
|
|
1597
|
-
type: "block.toplevel.end";
|
|
1598
|
-
sectionId: string;
|
|
1599
1600
|
})[];
|
|
1600
1601
|
}, {}>;
|
|
1601
1602
|
export type SectionEvent = typeof sectionEvent.infer;
|
|
@@ -1632,6 +1633,7 @@ export declare const resListModels: import("arktype/internal/variants/object.ts"
|
|
|
1632
1633
|
description: string;
|
|
1633
1634
|
featured?: boolean | undefined;
|
|
1634
1635
|
preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
|
|
1636
|
+
fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
|
|
1635
1637
|
supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
|
|
1636
1638
|
}[];
|
|
1637
1639
|
}, {}>;
|