@vibes.diy/api-types 14.3.195 → 14.3.196
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/chat.d.ts +469 -459
- package/chat.js +2 -0
- package/chat.js.map +1 -1
- package/invite.d.ts +7 -7
- package/package.json +4 -4
- package/settings.d.ts +218 -218
- package/vibes-diy-api.d.ts +2 -1
- package/vibes-diy-api.js.map +1 -1
package/chat.d.ts
CHANGED
|
@@ -108,6 +108,16 @@ export declare const resOpenChat: import("arktype/internal/variants/object.ts").
|
|
|
108
108
|
flourishes: string[];
|
|
109
109
|
} | undefined;
|
|
110
110
|
stylePin?: string | undefined;
|
|
111
|
+
moved?: {
|
|
112
|
+
from: {
|
|
113
|
+
ownerHandle: string;
|
|
114
|
+
appSlug: string;
|
|
115
|
+
};
|
|
116
|
+
to: {
|
|
117
|
+
ownerHandle: string;
|
|
118
|
+
appSlug: string;
|
|
119
|
+
};
|
|
120
|
+
} | undefined;
|
|
111
121
|
}, {}>;
|
|
112
122
|
export type ResOpenChat = typeof resOpenChat.infer;
|
|
113
123
|
export declare const evtChatAppClaimed: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -2406,37 +2416,18 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2406
2416
|
seq: number;
|
|
2407
2417
|
blockNr: number;
|
|
2408
2418
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2409
|
-
type: "block.
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
image: {
|
|
2422
|
-
lines: number;
|
|
2423
|
-
bytes: number;
|
|
2424
|
-
cnt?: number | undefined;
|
|
2425
|
-
};
|
|
2426
|
-
total: {
|
|
2427
|
-
lines: number;
|
|
2428
|
-
bytes: number;
|
|
2429
|
-
cnt?: number | undefined;
|
|
2430
|
-
};
|
|
2431
|
-
};
|
|
2432
|
-
usage: {
|
|
2433
|
-
prompt_tokens: number;
|
|
2434
|
-
completion_tokens: number;
|
|
2435
|
-
total_tokens: number;
|
|
2436
|
-
model?: string | undefined;
|
|
2437
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
2438
|
-
reasoningEffort?: string | undefined;
|
|
2439
|
-
};
|
|
2419
|
+
type: "block.toplevel.begin";
|
|
2420
|
+
sectionId: string;
|
|
2421
|
+
} | {
|
|
2422
|
+
blockId: string;
|
|
2423
|
+
streamId: string;
|
|
2424
|
+
seq: number;
|
|
2425
|
+
blockNr: number;
|
|
2426
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2427
|
+
lineNr: number;
|
|
2428
|
+
line: string;
|
|
2429
|
+
type: "block.toplevel.line";
|
|
2430
|
+
sectionId: string;
|
|
2440
2431
|
} | {
|
|
2441
2432
|
blockId: string;
|
|
2442
2433
|
streamId: string;
|
|
@@ -2448,14 +2439,8 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2448
2439
|
bytes: number;
|
|
2449
2440
|
cnt?: number | undefined;
|
|
2450
2441
|
};
|
|
2451
|
-
type: "block.
|
|
2442
|
+
type: "block.toplevel.end";
|
|
2452
2443
|
sectionId: string;
|
|
2453
|
-
url?: string | undefined;
|
|
2454
|
-
uploadId?: string | undefined;
|
|
2455
|
-
cid?: string | undefined;
|
|
2456
|
-
mimeType?: string | undefined;
|
|
2457
|
-
size?: number | undefined;
|
|
2458
|
-
docWritten?: boolean | undefined;
|
|
2459
2444
|
} | {
|
|
2460
2445
|
blockId: string;
|
|
2461
2446
|
streamId: string;
|
|
@@ -2508,24 +2493,6 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2508
2493
|
kind: string;
|
|
2509
2494
|
truncatedAtLine: number;
|
|
2510
2495
|
errorCount: number;
|
|
2511
|
-
} | {
|
|
2512
|
-
blockId: string;
|
|
2513
|
-
streamId: string;
|
|
2514
|
-
seq: number;
|
|
2515
|
-
blockNr: number;
|
|
2516
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2517
|
-
type: "block.toplevel.begin";
|
|
2518
|
-
sectionId: string;
|
|
2519
|
-
} | {
|
|
2520
|
-
blockId: string;
|
|
2521
|
-
streamId: string;
|
|
2522
|
-
seq: number;
|
|
2523
|
-
blockNr: number;
|
|
2524
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2525
|
-
lineNr: number;
|
|
2526
|
-
line: string;
|
|
2527
|
-
type: "block.toplevel.line";
|
|
2528
|
-
sectionId: string;
|
|
2529
2496
|
} | {
|
|
2530
2497
|
blockId: string;
|
|
2531
2498
|
streamId: string;
|
|
@@ -2537,46 +2504,51 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2537
2504
|
bytes: number;
|
|
2538
2505
|
cnt?: number | undefined;
|
|
2539
2506
|
};
|
|
2540
|
-
type: "block.
|
|
2507
|
+
type: "block.image";
|
|
2541
2508
|
sectionId: string;
|
|
2509
|
+
url?: string | undefined;
|
|
2510
|
+
uploadId?: string | undefined;
|
|
2511
|
+
cid?: string | undefined;
|
|
2512
|
+
mimeType?: string | undefined;
|
|
2513
|
+
size?: number | undefined;
|
|
2514
|
+
docWritten?: boolean | undefined;
|
|
2542
2515
|
} | {
|
|
2543
|
-
|
|
2544
|
-
version: 1;
|
|
2516
|
+
blockId: string;
|
|
2545
2517
|
streamId: string;
|
|
2546
|
-
chatId: string;
|
|
2547
2518
|
seq: number;
|
|
2519
|
+
blockNr: number;
|
|
2548
2520
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
}
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2521
|
+
type: "block.stats";
|
|
2522
|
+
stats: {
|
|
2523
|
+
toplevel: {
|
|
2524
|
+
lines: number;
|
|
2525
|
+
bytes: number;
|
|
2526
|
+
cnt?: number | undefined;
|
|
2527
|
+
};
|
|
2528
|
+
code: {
|
|
2529
|
+
lines: number;
|
|
2530
|
+
bytes: number;
|
|
2531
|
+
cnt?: number | undefined;
|
|
2532
|
+
};
|
|
2533
|
+
image: {
|
|
2534
|
+
lines: number;
|
|
2535
|
+
bytes: number;
|
|
2536
|
+
cnt?: number | undefined;
|
|
2537
|
+
};
|
|
2538
|
+
total: {
|
|
2539
|
+
lines: number;
|
|
2540
|
+
bytes: number;
|
|
2541
|
+
cnt?: number | undefined;
|
|
2542
|
+
};
|
|
2543
|
+
};
|
|
2544
|
+
usage: {
|
|
2545
|
+
prompt_tokens: number;
|
|
2546
|
+
completion_tokens: number;
|
|
2547
|
+
total_tokens: number;
|
|
2548
|
+
model?: string | undefined;
|
|
2549
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
2550
|
+
reasoningEffort?: string | undefined;
|
|
2551
|
+
};
|
|
2580
2552
|
} | {
|
|
2581
2553
|
streamId: string;
|
|
2582
2554
|
chatId: string;
|
|
@@ -3026,6 +2998,44 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
3026
2998
|
nature: "collaborative" | "open" | "sensitive";
|
|
3027
2999
|
outcome: "not-applied" | "persisted" | "refused";
|
|
3028
3000
|
error?: string | undefined;
|
|
3001
|
+
} | {
|
|
3002
|
+
type: "prompt.research";
|
|
3003
|
+
version: 1;
|
|
3004
|
+
streamId: string;
|
|
3005
|
+
chatId: string;
|
|
3006
|
+
seq: number;
|
|
3007
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3008
|
+
researchId: string;
|
|
3009
|
+
status: "complete" | "failed" | "partial";
|
|
3010
|
+
brief: string;
|
|
3011
|
+
sources: {
|
|
3012
|
+
url: string;
|
|
3013
|
+
finalUrl: string | null;
|
|
3014
|
+
contentType: string | null;
|
|
3015
|
+
httpStatus: number | null;
|
|
3016
|
+
backendFetchable: boolean;
|
|
3017
|
+
fetched: boolean;
|
|
3018
|
+
errorCode?: string | undefined;
|
|
3019
|
+
}[];
|
|
3020
|
+
api: {
|
|
3021
|
+
method: string;
|
|
3022
|
+
path: string;
|
|
3023
|
+
description: string;
|
|
3024
|
+
fields: string[];
|
|
3025
|
+
}[];
|
|
3026
|
+
excerpts: {
|
|
3027
|
+
sourceUrl: string;
|
|
3028
|
+
text: string;
|
|
3029
|
+
locator?: string | undefined;
|
|
3030
|
+
}[];
|
|
3031
|
+
seedRows: {
|
|
3032
|
+
sourceUrl: string;
|
|
3033
|
+
dbName: string;
|
|
3034
|
+
key: string;
|
|
3035
|
+
item: unknown;
|
|
3036
|
+
}[];
|
|
3037
|
+
completedAt: string;
|
|
3038
|
+
errorCode?: string | undefined;
|
|
3029
3039
|
}, {}>;
|
|
3030
3040
|
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
3031
3041
|
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -3122,37 +3132,18 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3122
3132
|
seq: number;
|
|
3123
3133
|
blockNr: number;
|
|
3124
3134
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3125
|
-
type: "block.
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
image: {
|
|
3138
|
-
lines: number;
|
|
3139
|
-
bytes: number;
|
|
3140
|
-
cnt?: number | undefined;
|
|
3141
|
-
};
|
|
3142
|
-
total: {
|
|
3143
|
-
lines: number;
|
|
3144
|
-
bytes: number;
|
|
3145
|
-
cnt?: number | undefined;
|
|
3146
|
-
};
|
|
3147
|
-
};
|
|
3148
|
-
usage: {
|
|
3149
|
-
prompt_tokens: number;
|
|
3150
|
-
completion_tokens: number;
|
|
3151
|
-
total_tokens: number;
|
|
3152
|
-
model?: string | undefined;
|
|
3153
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
3154
|
-
reasoningEffort?: string | undefined;
|
|
3155
|
-
};
|
|
3135
|
+
type: "block.toplevel.begin";
|
|
3136
|
+
sectionId: string;
|
|
3137
|
+
} | {
|
|
3138
|
+
blockId: string;
|
|
3139
|
+
streamId: string;
|
|
3140
|
+
seq: number;
|
|
3141
|
+
blockNr: number;
|
|
3142
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3143
|
+
lineNr: number;
|
|
3144
|
+
line: string;
|
|
3145
|
+
type: "block.toplevel.line";
|
|
3146
|
+
sectionId: string;
|
|
3156
3147
|
} | {
|
|
3157
3148
|
blockId: string;
|
|
3158
3149
|
streamId: string;
|
|
@@ -3164,14 +3155,8 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3164
3155
|
bytes: number;
|
|
3165
3156
|
cnt?: number | undefined;
|
|
3166
3157
|
};
|
|
3167
|
-
type: "block.
|
|
3158
|
+
type: "block.toplevel.end";
|
|
3168
3159
|
sectionId: string;
|
|
3169
|
-
url?: string | undefined;
|
|
3170
|
-
uploadId?: string | undefined;
|
|
3171
|
-
cid?: string | undefined;
|
|
3172
|
-
mimeType?: string | undefined;
|
|
3173
|
-
size?: number | undefined;
|
|
3174
|
-
docWritten?: boolean | undefined;
|
|
3175
3160
|
} | {
|
|
3176
3161
|
blockId: string;
|
|
3177
3162
|
streamId: string;
|
|
@@ -3230,69 +3215,56 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3230
3215
|
seq: number;
|
|
3231
3216
|
blockNr: number;
|
|
3232
3217
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
blockNr: number;
|
|
3240
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3241
|
-
lineNr: number;
|
|
3242
|
-
line: string;
|
|
3243
|
-
type: "block.toplevel.line";
|
|
3218
|
+
stats: {
|
|
3219
|
+
lines: number;
|
|
3220
|
+
bytes: number;
|
|
3221
|
+
cnt?: number | undefined;
|
|
3222
|
+
};
|
|
3223
|
+
type: "block.image";
|
|
3244
3224
|
sectionId: string;
|
|
3225
|
+
url?: string | undefined;
|
|
3226
|
+
uploadId?: string | undefined;
|
|
3227
|
+
cid?: string | undefined;
|
|
3228
|
+
mimeType?: string | undefined;
|
|
3229
|
+
size?: number | undefined;
|
|
3230
|
+
docWritten?: boolean | undefined;
|
|
3245
3231
|
} | {
|
|
3246
3232
|
blockId: string;
|
|
3247
3233
|
streamId: string;
|
|
3248
3234
|
seq: number;
|
|
3249
3235
|
blockNr: number;
|
|
3250
3236
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3237
|
+
type: "block.stats";
|
|
3251
3238
|
stats: {
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3239
|
+
toplevel: {
|
|
3240
|
+
lines: number;
|
|
3241
|
+
bytes: number;
|
|
3242
|
+
cnt?: number | undefined;
|
|
3243
|
+
};
|
|
3244
|
+
code: {
|
|
3245
|
+
lines: number;
|
|
3246
|
+
bytes: number;
|
|
3247
|
+
cnt?: number | undefined;
|
|
3248
|
+
};
|
|
3249
|
+
image: {
|
|
3250
|
+
lines: number;
|
|
3251
|
+
bytes: number;
|
|
3252
|
+
cnt?: number | undefined;
|
|
3253
|
+
};
|
|
3254
|
+
total: {
|
|
3255
|
+
lines: number;
|
|
3256
|
+
bytes: number;
|
|
3257
|
+
cnt?: number | undefined;
|
|
3258
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
usage: {
|
|
3261
|
+
prompt_tokens: number;
|
|
3262
|
+
completion_tokens: number;
|
|
3263
|
+
total_tokens: number;
|
|
3264
|
+
model?: string | undefined;
|
|
3265
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
3266
|
+
reasoningEffort?: string | undefined;
|
|
3255
3267
|
};
|
|
3256
|
-
type: "block.toplevel.end";
|
|
3257
|
-
sectionId: string;
|
|
3258
|
-
} | {
|
|
3259
|
-
type: "prompt.research";
|
|
3260
|
-
version: 1;
|
|
3261
|
-
streamId: string;
|
|
3262
|
-
chatId: string;
|
|
3263
|
-
seq: number;
|
|
3264
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3265
|
-
researchId: string;
|
|
3266
|
-
status: "complete" | "failed" | "partial";
|
|
3267
|
-
brief: string;
|
|
3268
|
-
sources: {
|
|
3269
|
-
url: string;
|
|
3270
|
-
finalUrl: string | null;
|
|
3271
|
-
contentType: string | null;
|
|
3272
|
-
httpStatus: number | null;
|
|
3273
|
-
backendFetchable: boolean;
|
|
3274
|
-
fetched: boolean;
|
|
3275
|
-
errorCode?: string | undefined;
|
|
3276
|
-
}[];
|
|
3277
|
-
api: {
|
|
3278
|
-
method: string;
|
|
3279
|
-
path: string;
|
|
3280
|
-
description: string;
|
|
3281
|
-
fields: string[];
|
|
3282
|
-
}[];
|
|
3283
|
-
excerpts: {
|
|
3284
|
-
sourceUrl: string;
|
|
3285
|
-
text: string;
|
|
3286
|
-
locator?: string | undefined;
|
|
3287
|
-
}[];
|
|
3288
|
-
seedRows: {
|
|
3289
|
-
sourceUrl: string;
|
|
3290
|
-
dbName: string;
|
|
3291
|
-
key: string;
|
|
3292
|
-
item: unknown;
|
|
3293
|
-
}[];
|
|
3294
|
-
completedAt: string;
|
|
3295
|
-
errorCode?: string | undefined;
|
|
3296
3268
|
} | {
|
|
3297
3269
|
streamId: string;
|
|
3298
3270
|
chatId: string;
|
|
@@ -3742,6 +3714,44 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3742
3714
|
nature: "collaborative" | "open" | "sensitive";
|
|
3743
3715
|
outcome: "not-applied" | "persisted" | "refused";
|
|
3744
3716
|
error?: string | undefined;
|
|
3717
|
+
} | {
|
|
3718
|
+
type: "prompt.research";
|
|
3719
|
+
version: 1;
|
|
3720
|
+
streamId: string;
|
|
3721
|
+
chatId: string;
|
|
3722
|
+
seq: number;
|
|
3723
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3724
|
+
researchId: string;
|
|
3725
|
+
status: "complete" | "failed" | "partial";
|
|
3726
|
+
brief: string;
|
|
3727
|
+
sources: {
|
|
3728
|
+
url: string;
|
|
3729
|
+
finalUrl: string | null;
|
|
3730
|
+
contentType: string | null;
|
|
3731
|
+
httpStatus: number | null;
|
|
3732
|
+
backendFetchable: boolean;
|
|
3733
|
+
fetched: boolean;
|
|
3734
|
+
errorCode?: string | undefined;
|
|
3735
|
+
}[];
|
|
3736
|
+
api: {
|
|
3737
|
+
method: string;
|
|
3738
|
+
path: string;
|
|
3739
|
+
description: string;
|
|
3740
|
+
fields: string[];
|
|
3741
|
+
}[];
|
|
3742
|
+
excerpts: {
|
|
3743
|
+
sourceUrl: string;
|
|
3744
|
+
text: string;
|
|
3745
|
+
locator?: string | undefined;
|
|
3746
|
+
}[];
|
|
3747
|
+
seedRows: {
|
|
3748
|
+
sourceUrl: string;
|
|
3749
|
+
dbName: string;
|
|
3750
|
+
key: string;
|
|
3751
|
+
item: unknown;
|
|
3752
|
+
}[];
|
|
3753
|
+
completedAt: string;
|
|
3754
|
+
errorCode?: string | undefined;
|
|
3745
3755
|
})[];
|
|
3746
3756
|
initiator?: "platform" | "seed" | undefined;
|
|
3747
3757
|
}, {}>;
|
|
@@ -3859,37 +3869,18 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3859
3869
|
seq: number;
|
|
3860
3870
|
blockNr: number;
|
|
3861
3871
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3862
|
-
type: "block.
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
image: {
|
|
3875
|
-
lines: number;
|
|
3876
|
-
bytes: number;
|
|
3877
|
-
cnt?: number | undefined;
|
|
3878
|
-
};
|
|
3879
|
-
total: {
|
|
3880
|
-
lines: number;
|
|
3881
|
-
bytes: number;
|
|
3882
|
-
cnt?: number | undefined;
|
|
3883
|
-
};
|
|
3884
|
-
};
|
|
3885
|
-
usage: {
|
|
3886
|
-
prompt_tokens: number;
|
|
3887
|
-
completion_tokens: number;
|
|
3888
|
-
total_tokens: number;
|
|
3889
|
-
model?: string | undefined;
|
|
3890
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
3891
|
-
reasoningEffort?: string | undefined;
|
|
3892
|
-
};
|
|
3872
|
+
type: "block.toplevel.begin";
|
|
3873
|
+
sectionId: string;
|
|
3874
|
+
} | {
|
|
3875
|
+
blockId: string;
|
|
3876
|
+
streamId: string;
|
|
3877
|
+
seq: number;
|
|
3878
|
+
blockNr: number;
|
|
3879
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3880
|
+
lineNr: number;
|
|
3881
|
+
line: string;
|
|
3882
|
+
type: "block.toplevel.line";
|
|
3883
|
+
sectionId: string;
|
|
3893
3884
|
} | {
|
|
3894
3885
|
blockId: string;
|
|
3895
3886
|
streamId: string;
|
|
@@ -3901,14 +3892,8 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3901
3892
|
bytes: number;
|
|
3902
3893
|
cnt?: number | undefined;
|
|
3903
3894
|
};
|
|
3904
|
-
type: "block.
|
|
3895
|
+
type: "block.toplevel.end";
|
|
3905
3896
|
sectionId: string;
|
|
3906
|
-
url?: string | undefined;
|
|
3907
|
-
uploadId?: string | undefined;
|
|
3908
|
-
cid?: string | undefined;
|
|
3909
|
-
mimeType?: string | undefined;
|
|
3910
|
-
size?: number | undefined;
|
|
3911
|
-
docWritten?: boolean | undefined;
|
|
3912
3897
|
} | {
|
|
3913
3898
|
blockId: string;
|
|
3914
3899
|
streamId: string;
|
|
@@ -3961,24 +3946,6 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3961
3946
|
kind: string;
|
|
3962
3947
|
truncatedAtLine: number;
|
|
3963
3948
|
errorCount: number;
|
|
3964
|
-
} | {
|
|
3965
|
-
blockId: string;
|
|
3966
|
-
streamId: string;
|
|
3967
|
-
seq: number;
|
|
3968
|
-
blockNr: number;
|
|
3969
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3970
|
-
type: "block.toplevel.begin";
|
|
3971
|
-
sectionId: string;
|
|
3972
|
-
} | {
|
|
3973
|
-
blockId: string;
|
|
3974
|
-
streamId: string;
|
|
3975
|
-
seq: number;
|
|
3976
|
-
blockNr: number;
|
|
3977
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3978
|
-
lineNr: number;
|
|
3979
|
-
line: string;
|
|
3980
|
-
type: "block.toplevel.line";
|
|
3981
|
-
sectionId: string;
|
|
3982
3949
|
} | {
|
|
3983
3950
|
blockId: string;
|
|
3984
3951
|
streamId: string;
|
|
@@ -3990,46 +3957,51 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3990
3957
|
bytes: number;
|
|
3991
3958
|
cnt?: number | undefined;
|
|
3992
3959
|
};
|
|
3993
|
-
type: "block.
|
|
3960
|
+
type: "block.image";
|
|
3994
3961
|
sectionId: string;
|
|
3962
|
+
url?: string | undefined;
|
|
3963
|
+
uploadId?: string | undefined;
|
|
3964
|
+
cid?: string | undefined;
|
|
3965
|
+
mimeType?: string | undefined;
|
|
3966
|
+
size?: number | undefined;
|
|
3967
|
+
docWritten?: boolean | undefined;
|
|
3995
3968
|
} | {
|
|
3996
|
-
|
|
3997
|
-
version: 1;
|
|
3969
|
+
blockId: string;
|
|
3998
3970
|
streamId: string;
|
|
3999
|
-
chatId: string;
|
|
4000
3971
|
seq: number;
|
|
3972
|
+
blockNr: number;
|
|
4001
3973
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
}
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
3974
|
+
type: "block.stats";
|
|
3975
|
+
stats: {
|
|
3976
|
+
toplevel: {
|
|
3977
|
+
lines: number;
|
|
3978
|
+
bytes: number;
|
|
3979
|
+
cnt?: number | undefined;
|
|
3980
|
+
};
|
|
3981
|
+
code: {
|
|
3982
|
+
lines: number;
|
|
3983
|
+
bytes: number;
|
|
3984
|
+
cnt?: number | undefined;
|
|
3985
|
+
};
|
|
3986
|
+
image: {
|
|
3987
|
+
lines: number;
|
|
3988
|
+
bytes: number;
|
|
3989
|
+
cnt?: number | undefined;
|
|
3990
|
+
};
|
|
3991
|
+
total: {
|
|
3992
|
+
lines: number;
|
|
3993
|
+
bytes: number;
|
|
3994
|
+
cnt?: number | undefined;
|
|
3995
|
+
};
|
|
3996
|
+
};
|
|
3997
|
+
usage: {
|
|
3998
|
+
prompt_tokens: number;
|
|
3999
|
+
completion_tokens: number;
|
|
4000
|
+
total_tokens: number;
|
|
4001
|
+
model?: string | undefined;
|
|
4002
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
4003
|
+
reasoningEffort?: string | undefined;
|
|
4004
|
+
};
|
|
4033
4005
|
} | {
|
|
4034
4006
|
streamId: string;
|
|
4035
4007
|
chatId: string;
|
|
@@ -4479,6 +4451,44 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
4479
4451
|
nature: "collaborative" | "open" | "sensitive";
|
|
4480
4452
|
outcome: "not-applied" | "persisted" | "refused";
|
|
4481
4453
|
error?: string | undefined;
|
|
4454
|
+
} | {
|
|
4455
|
+
type: "prompt.research";
|
|
4456
|
+
version: 1;
|
|
4457
|
+
streamId: string;
|
|
4458
|
+
chatId: string;
|
|
4459
|
+
seq: number;
|
|
4460
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4461
|
+
researchId: string;
|
|
4462
|
+
status: "complete" | "failed" | "partial";
|
|
4463
|
+
brief: string;
|
|
4464
|
+
sources: {
|
|
4465
|
+
url: string;
|
|
4466
|
+
finalUrl: string | null;
|
|
4467
|
+
contentType: string | null;
|
|
4468
|
+
httpStatus: number | null;
|
|
4469
|
+
backendFetchable: boolean;
|
|
4470
|
+
fetched: boolean;
|
|
4471
|
+
errorCode?: string | undefined;
|
|
4472
|
+
}[];
|
|
4473
|
+
api: {
|
|
4474
|
+
method: string;
|
|
4475
|
+
path: string;
|
|
4476
|
+
description: string;
|
|
4477
|
+
fields: string[];
|
|
4478
|
+
}[];
|
|
4479
|
+
excerpts: {
|
|
4480
|
+
sourceUrl: string;
|
|
4481
|
+
text: string;
|
|
4482
|
+
locator?: string | undefined;
|
|
4483
|
+
}[];
|
|
4484
|
+
seedRows: {
|
|
4485
|
+
sourceUrl: string;
|
|
4486
|
+
dbName: string;
|
|
4487
|
+
key: string;
|
|
4488
|
+
item: unknown;
|
|
4489
|
+
}[];
|
|
4490
|
+
completedAt: string;
|
|
4491
|
+
errorCode?: string | undefined;
|
|
4482
4492
|
})[];
|
|
4483
4493
|
}, {}>;
|
|
4484
4494
|
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
@@ -4599,37 +4609,18 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4599
4609
|
seq: number;
|
|
4600
4610
|
blockNr: number;
|
|
4601
4611
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4602
|
-
type: "block.
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
image: {
|
|
4615
|
-
lines: number;
|
|
4616
|
-
bytes: number;
|
|
4617
|
-
cnt?: number | undefined;
|
|
4618
|
-
};
|
|
4619
|
-
total: {
|
|
4620
|
-
lines: number;
|
|
4621
|
-
bytes: number;
|
|
4622
|
-
cnt?: number | undefined;
|
|
4623
|
-
};
|
|
4624
|
-
};
|
|
4625
|
-
usage: {
|
|
4626
|
-
prompt_tokens: number;
|
|
4627
|
-
completion_tokens: number;
|
|
4628
|
-
total_tokens: number;
|
|
4629
|
-
model?: string | undefined;
|
|
4630
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
4631
|
-
reasoningEffort?: string | undefined;
|
|
4632
|
-
};
|
|
4612
|
+
type: "block.toplevel.begin";
|
|
4613
|
+
sectionId: string;
|
|
4614
|
+
} | {
|
|
4615
|
+
blockId: string;
|
|
4616
|
+
streamId: string;
|
|
4617
|
+
seq: number;
|
|
4618
|
+
blockNr: number;
|
|
4619
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4620
|
+
lineNr: number;
|
|
4621
|
+
line: string;
|
|
4622
|
+
type: "block.toplevel.line";
|
|
4623
|
+
sectionId: string;
|
|
4633
4624
|
} | {
|
|
4634
4625
|
blockId: string;
|
|
4635
4626
|
streamId: string;
|
|
@@ -4641,14 +4632,8 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4641
4632
|
bytes: number;
|
|
4642
4633
|
cnt?: number | undefined;
|
|
4643
4634
|
};
|
|
4644
|
-
type: "block.
|
|
4635
|
+
type: "block.toplevel.end";
|
|
4645
4636
|
sectionId: string;
|
|
4646
|
-
url?: string | undefined;
|
|
4647
|
-
uploadId?: string | undefined;
|
|
4648
|
-
cid?: string | undefined;
|
|
4649
|
-
mimeType?: string | undefined;
|
|
4650
|
-
size?: number | undefined;
|
|
4651
|
-
docWritten?: boolean | undefined;
|
|
4652
4637
|
} | {
|
|
4653
4638
|
blockId: string;
|
|
4654
4639
|
streamId: string;
|
|
@@ -4701,24 +4686,6 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4701
4686
|
kind: string;
|
|
4702
4687
|
truncatedAtLine: number;
|
|
4703
4688
|
errorCount: number;
|
|
4704
|
-
} | {
|
|
4705
|
-
blockId: string;
|
|
4706
|
-
streamId: string;
|
|
4707
|
-
seq: number;
|
|
4708
|
-
blockNr: number;
|
|
4709
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4710
|
-
type: "block.toplevel.begin";
|
|
4711
|
-
sectionId: string;
|
|
4712
|
-
} | {
|
|
4713
|
-
blockId: string;
|
|
4714
|
-
streamId: string;
|
|
4715
|
-
seq: number;
|
|
4716
|
-
blockNr: number;
|
|
4717
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4718
|
-
lineNr: number;
|
|
4719
|
-
line: string;
|
|
4720
|
-
type: "block.toplevel.line";
|
|
4721
|
-
sectionId: string;
|
|
4722
4689
|
} | {
|
|
4723
4690
|
blockId: string;
|
|
4724
4691
|
streamId: string;
|
|
@@ -4730,46 +4697,51 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4730
4697
|
bytes: number;
|
|
4731
4698
|
cnt?: number | undefined;
|
|
4732
4699
|
};
|
|
4733
|
-
type: "block.
|
|
4700
|
+
type: "block.image";
|
|
4734
4701
|
sectionId: string;
|
|
4702
|
+
url?: string | undefined;
|
|
4703
|
+
uploadId?: string | undefined;
|
|
4704
|
+
cid?: string | undefined;
|
|
4705
|
+
mimeType?: string | undefined;
|
|
4706
|
+
size?: number | undefined;
|
|
4707
|
+
docWritten?: boolean | undefined;
|
|
4735
4708
|
} | {
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
errorCode?: string | undefined;
|
|
4709
|
+
blockId: string;
|
|
4710
|
+
streamId: string;
|
|
4711
|
+
seq: number;
|
|
4712
|
+
blockNr: number;
|
|
4713
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4714
|
+
type: "block.stats";
|
|
4715
|
+
stats: {
|
|
4716
|
+
toplevel: {
|
|
4717
|
+
lines: number;
|
|
4718
|
+
bytes: number;
|
|
4719
|
+
cnt?: number | undefined;
|
|
4720
|
+
};
|
|
4721
|
+
code: {
|
|
4722
|
+
lines: number;
|
|
4723
|
+
bytes: number;
|
|
4724
|
+
cnt?: number | undefined;
|
|
4725
|
+
};
|
|
4726
|
+
image: {
|
|
4727
|
+
lines: number;
|
|
4728
|
+
bytes: number;
|
|
4729
|
+
cnt?: number | undefined;
|
|
4730
|
+
};
|
|
4731
|
+
total: {
|
|
4732
|
+
lines: number;
|
|
4733
|
+
bytes: number;
|
|
4734
|
+
cnt?: number | undefined;
|
|
4735
|
+
};
|
|
4736
|
+
};
|
|
4737
|
+
usage: {
|
|
4738
|
+
prompt_tokens: number;
|
|
4739
|
+
completion_tokens: number;
|
|
4740
|
+
total_tokens: number;
|
|
4741
|
+
model?: string | undefined;
|
|
4742
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
4743
|
+
reasoningEffort?: string | undefined;
|
|
4744
|
+
};
|
|
4773
4745
|
} | {
|
|
4774
4746
|
streamId: string;
|
|
4775
4747
|
chatId: string;
|
|
@@ -5219,6 +5191,44 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
5219
5191
|
nature: "collaborative" | "open" | "sensitive";
|
|
5220
5192
|
outcome: "not-applied" | "persisted" | "refused";
|
|
5221
5193
|
error?: string | undefined;
|
|
5194
|
+
} | {
|
|
5195
|
+
type: "prompt.research";
|
|
5196
|
+
version: 1;
|
|
5197
|
+
streamId: string;
|
|
5198
|
+
chatId: string;
|
|
5199
|
+
seq: number;
|
|
5200
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5201
|
+
researchId: string;
|
|
5202
|
+
status: "complete" | "failed" | "partial";
|
|
5203
|
+
brief: string;
|
|
5204
|
+
sources: {
|
|
5205
|
+
url: string;
|
|
5206
|
+
finalUrl: string | null;
|
|
5207
|
+
contentType: string | null;
|
|
5208
|
+
httpStatus: number | null;
|
|
5209
|
+
backendFetchable: boolean;
|
|
5210
|
+
fetched: boolean;
|
|
5211
|
+
errorCode?: string | undefined;
|
|
5212
|
+
}[];
|
|
5213
|
+
api: {
|
|
5214
|
+
method: string;
|
|
5215
|
+
path: string;
|
|
5216
|
+
description: string;
|
|
5217
|
+
fields: string[];
|
|
5218
|
+
}[];
|
|
5219
|
+
excerpts: {
|
|
5220
|
+
sourceUrl: string;
|
|
5221
|
+
text: string;
|
|
5222
|
+
locator?: string | undefined;
|
|
5223
|
+
}[];
|
|
5224
|
+
seedRows: {
|
|
5225
|
+
sourceUrl: string;
|
|
5226
|
+
dbName: string;
|
|
5227
|
+
key: string;
|
|
5228
|
+
item: unknown;
|
|
5229
|
+
}[];
|
|
5230
|
+
completedAt: string;
|
|
5231
|
+
errorCode?: string | undefined;
|
|
5222
5232
|
})[];
|
|
5223
5233
|
}[];
|
|
5224
5234
|
usage?: {
|
|
@@ -5351,37 +5361,18 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5351
5361
|
seq: number;
|
|
5352
5362
|
blockNr: number;
|
|
5353
5363
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5354
|
-
type: "block.
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
image: {
|
|
5367
|
-
lines: number;
|
|
5368
|
-
bytes: number;
|
|
5369
|
-
cnt?: number | undefined;
|
|
5370
|
-
};
|
|
5371
|
-
total: {
|
|
5372
|
-
lines: number;
|
|
5373
|
-
bytes: number;
|
|
5374
|
-
cnt?: number | undefined;
|
|
5375
|
-
};
|
|
5376
|
-
};
|
|
5377
|
-
usage: {
|
|
5378
|
-
prompt_tokens: number;
|
|
5379
|
-
completion_tokens: number;
|
|
5380
|
-
total_tokens: number;
|
|
5381
|
-
model?: string | undefined;
|
|
5382
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
5383
|
-
reasoningEffort?: string | undefined;
|
|
5384
|
-
};
|
|
5364
|
+
type: "block.toplevel.begin";
|
|
5365
|
+
sectionId: string;
|
|
5366
|
+
} | {
|
|
5367
|
+
blockId: string;
|
|
5368
|
+
streamId: string;
|
|
5369
|
+
seq: number;
|
|
5370
|
+
blockNr: number;
|
|
5371
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5372
|
+
lineNr: number;
|
|
5373
|
+
line: string;
|
|
5374
|
+
type: "block.toplevel.line";
|
|
5375
|
+
sectionId: string;
|
|
5385
5376
|
} | {
|
|
5386
5377
|
blockId: string;
|
|
5387
5378
|
streamId: string;
|
|
@@ -5393,14 +5384,8 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5393
5384
|
bytes: number;
|
|
5394
5385
|
cnt?: number | undefined;
|
|
5395
5386
|
};
|
|
5396
|
-
type: "block.
|
|
5387
|
+
type: "block.toplevel.end";
|
|
5397
5388
|
sectionId: string;
|
|
5398
|
-
url?: string | undefined;
|
|
5399
|
-
uploadId?: string | undefined;
|
|
5400
|
-
cid?: string | undefined;
|
|
5401
|
-
mimeType?: string | undefined;
|
|
5402
|
-
size?: number | undefined;
|
|
5403
|
-
docWritten?: boolean | undefined;
|
|
5404
5389
|
} | {
|
|
5405
5390
|
blockId: string;
|
|
5406
5391
|
streamId: string;
|
|
@@ -5453,24 +5438,6 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5453
5438
|
kind: string;
|
|
5454
5439
|
truncatedAtLine: number;
|
|
5455
5440
|
errorCount: number;
|
|
5456
|
-
} | {
|
|
5457
|
-
blockId: string;
|
|
5458
|
-
streamId: string;
|
|
5459
|
-
seq: number;
|
|
5460
|
-
blockNr: number;
|
|
5461
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5462
|
-
type: "block.toplevel.begin";
|
|
5463
|
-
sectionId: string;
|
|
5464
|
-
} | {
|
|
5465
|
-
blockId: string;
|
|
5466
|
-
streamId: string;
|
|
5467
|
-
seq: number;
|
|
5468
|
-
blockNr: number;
|
|
5469
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5470
|
-
lineNr: number;
|
|
5471
|
-
line: string;
|
|
5472
|
-
type: "block.toplevel.line";
|
|
5473
|
-
sectionId: string;
|
|
5474
5441
|
} | {
|
|
5475
5442
|
blockId: string;
|
|
5476
5443
|
streamId: string;
|
|
@@ -5482,46 +5449,51 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5482
5449
|
bytes: number;
|
|
5483
5450
|
cnt?: number | undefined;
|
|
5484
5451
|
};
|
|
5485
|
-
type: "block.
|
|
5452
|
+
type: "block.image";
|
|
5486
5453
|
sectionId: string;
|
|
5454
|
+
url?: string | undefined;
|
|
5455
|
+
uploadId?: string | undefined;
|
|
5456
|
+
cid?: string | undefined;
|
|
5457
|
+
mimeType?: string | undefined;
|
|
5458
|
+
size?: number | undefined;
|
|
5459
|
+
docWritten?: boolean | undefined;
|
|
5487
5460
|
} | {
|
|
5488
|
-
|
|
5489
|
-
version: 1;
|
|
5461
|
+
blockId: string;
|
|
5490
5462
|
streamId: string;
|
|
5491
|
-
chatId: string;
|
|
5492
5463
|
seq: number;
|
|
5464
|
+
blockNr: number;
|
|
5493
5465
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
}
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5466
|
+
type: "block.stats";
|
|
5467
|
+
stats: {
|
|
5468
|
+
toplevel: {
|
|
5469
|
+
lines: number;
|
|
5470
|
+
bytes: number;
|
|
5471
|
+
cnt?: number | undefined;
|
|
5472
|
+
};
|
|
5473
|
+
code: {
|
|
5474
|
+
lines: number;
|
|
5475
|
+
bytes: number;
|
|
5476
|
+
cnt?: number | undefined;
|
|
5477
|
+
};
|
|
5478
|
+
image: {
|
|
5479
|
+
lines: number;
|
|
5480
|
+
bytes: number;
|
|
5481
|
+
cnt?: number | undefined;
|
|
5482
|
+
};
|
|
5483
|
+
total: {
|
|
5484
|
+
lines: number;
|
|
5485
|
+
bytes: number;
|
|
5486
|
+
cnt?: number | undefined;
|
|
5487
|
+
};
|
|
5488
|
+
};
|
|
5489
|
+
usage: {
|
|
5490
|
+
prompt_tokens: number;
|
|
5491
|
+
completion_tokens: number;
|
|
5492
|
+
total_tokens: number;
|
|
5493
|
+
model?: string | undefined;
|
|
5494
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | "shell" | undefined;
|
|
5495
|
+
reasoningEffort?: string | undefined;
|
|
5496
|
+
};
|
|
5525
5497
|
} | {
|
|
5526
5498
|
streamId: string;
|
|
5527
5499
|
chatId: string;
|
|
@@ -5971,6 +5943,44 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5971
5943
|
nature: "collaborative" | "open" | "sensitive";
|
|
5972
5944
|
outcome: "not-applied" | "persisted" | "refused";
|
|
5973
5945
|
error?: string | undefined;
|
|
5946
|
+
} | {
|
|
5947
|
+
type: "prompt.research";
|
|
5948
|
+
version: 1;
|
|
5949
|
+
streamId: string;
|
|
5950
|
+
chatId: string;
|
|
5951
|
+
seq: number;
|
|
5952
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5953
|
+
researchId: string;
|
|
5954
|
+
status: "complete" | "failed" | "partial";
|
|
5955
|
+
brief: string;
|
|
5956
|
+
sources: {
|
|
5957
|
+
url: string;
|
|
5958
|
+
finalUrl: string | null;
|
|
5959
|
+
contentType: string | null;
|
|
5960
|
+
httpStatus: number | null;
|
|
5961
|
+
backendFetchable: boolean;
|
|
5962
|
+
fetched: boolean;
|
|
5963
|
+
errorCode?: string | undefined;
|
|
5964
|
+
}[];
|
|
5965
|
+
api: {
|
|
5966
|
+
method: string;
|
|
5967
|
+
path: string;
|
|
5968
|
+
description: string;
|
|
5969
|
+
fields: string[];
|
|
5970
|
+
}[];
|
|
5971
|
+
excerpts: {
|
|
5972
|
+
sourceUrl: string;
|
|
5973
|
+
text: string;
|
|
5974
|
+
locator?: string | undefined;
|
|
5975
|
+
}[];
|
|
5976
|
+
seedRows: {
|
|
5977
|
+
sourceUrl: string;
|
|
5978
|
+
dbName: string;
|
|
5979
|
+
key: string;
|
|
5980
|
+
item: unknown;
|
|
5981
|
+
}[];
|
|
5982
|
+
completedAt: string;
|
|
5983
|
+
errorCode?: string | undefined;
|
|
5974
5984
|
})[];
|
|
5975
5985
|
}[];
|
|
5976
5986
|
usage?: {
|