@vibes.diy/api-types 8.1.0 → 8.1.2
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/app.d.ts +100 -4
- package/chat.d.ts +1038 -297
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/invite.d.ts +14 -14
- package/package.json +4 -4
- package/prompt.d.ts +164 -8
- package/prompt.js +4 -1
- package/prompt.js.map +1 -1
- package/research.d.ts +110 -0
- package/research.js +262 -0
- package/research.js.map +1 -0
package/app.d.ts
CHANGED
|
@@ -397,6 +397,44 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
397
397
|
appSlug?: string | undefined;
|
|
398
398
|
ownerHandle?: string | undefined;
|
|
399
399
|
blocks: ({
|
|
400
|
+
type: "prompt.research";
|
|
401
|
+
version: 1;
|
|
402
|
+
streamId: string;
|
|
403
|
+
chatId: string;
|
|
404
|
+
seq: number;
|
|
405
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
406
|
+
researchId: string;
|
|
407
|
+
status: "complete" | "failed" | "partial";
|
|
408
|
+
brief: string;
|
|
409
|
+
sources: {
|
|
410
|
+
url: string;
|
|
411
|
+
finalUrl: string | null;
|
|
412
|
+
contentType: string | null;
|
|
413
|
+
httpStatus: number | null;
|
|
414
|
+
backendFetchable: boolean;
|
|
415
|
+
fetched: boolean;
|
|
416
|
+
errorCode?: string | undefined;
|
|
417
|
+
}[];
|
|
418
|
+
api: {
|
|
419
|
+
method: string;
|
|
420
|
+
path: string;
|
|
421
|
+
description: string;
|
|
422
|
+
fields: string[];
|
|
423
|
+
}[];
|
|
424
|
+
excerpts: {
|
|
425
|
+
sourceUrl: string;
|
|
426
|
+
text: string;
|
|
427
|
+
locator?: string | undefined;
|
|
428
|
+
}[];
|
|
429
|
+
seedRows: {
|
|
430
|
+
sourceUrl: string;
|
|
431
|
+
dbName: string;
|
|
432
|
+
key: string;
|
|
433
|
+
item: unknown;
|
|
434
|
+
}[];
|
|
435
|
+
completedAt: string;
|
|
436
|
+
errorCode?: string | undefined;
|
|
437
|
+
} | {
|
|
400
438
|
streamId: string;
|
|
401
439
|
chatId: string;
|
|
402
440
|
seq: number;
|
|
@@ -416,7 +454,7 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
416
454
|
type: "prompt.req";
|
|
417
455
|
request: {
|
|
418
456
|
model?: string | undefined;
|
|
419
|
-
messages: {
|
|
457
|
+
messages: ({
|
|
420
458
|
role: "assistant" | "system" | "user";
|
|
421
459
|
content: ({
|
|
422
460
|
type: "text";
|
|
@@ -435,7 +473,22 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
435
473
|
originalUploadId?: string | undefined;
|
|
436
474
|
size?: number | undefined;
|
|
437
475
|
})[];
|
|
438
|
-
}
|
|
476
|
+
} | {
|
|
477
|
+
role: "assistant";
|
|
478
|
+
content: string | null;
|
|
479
|
+
tool_calls: {
|
|
480
|
+
id: string;
|
|
481
|
+
type: "function";
|
|
482
|
+
function: {
|
|
483
|
+
name: string;
|
|
484
|
+
arguments: string;
|
|
485
|
+
};
|
|
486
|
+
}[];
|
|
487
|
+
} | {
|
|
488
|
+
role: "tool";
|
|
489
|
+
content: string;
|
|
490
|
+
tool_call_id: string;
|
|
491
|
+
})[];
|
|
439
492
|
stream?: boolean | undefined;
|
|
440
493
|
temperature?: number | undefined;
|
|
441
494
|
max_tokens?: number | undefined;
|
|
@@ -447,6 +500,20 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
447
500
|
stop?: string | string[] | undefined;
|
|
448
501
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
449
502
|
modalities?: string[] | undefined;
|
|
503
|
+
tools?: {
|
|
504
|
+
type: "function";
|
|
505
|
+
function: {
|
|
506
|
+
name: string;
|
|
507
|
+
description?: string | undefined;
|
|
508
|
+
parameters: unknown;
|
|
509
|
+
};
|
|
510
|
+
}[] | undefined;
|
|
511
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
512
|
+
type: "function";
|
|
513
|
+
function: {
|
|
514
|
+
name: string;
|
|
515
|
+
};
|
|
516
|
+
} | undefined;
|
|
450
517
|
};
|
|
451
518
|
} | {
|
|
452
519
|
streamId: string;
|
|
@@ -507,7 +574,7 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
507
574
|
type: "prompt.dry-run-payload";
|
|
508
575
|
request: {
|
|
509
576
|
model?: string | undefined;
|
|
510
|
-
messages: {
|
|
577
|
+
messages: ({
|
|
511
578
|
role: "assistant" | "system" | "user";
|
|
512
579
|
content: ({
|
|
513
580
|
type: "text";
|
|
@@ -526,7 +593,22 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
526
593
|
originalUploadId?: string | undefined;
|
|
527
594
|
size?: number | undefined;
|
|
528
595
|
})[];
|
|
529
|
-
}
|
|
596
|
+
} | {
|
|
597
|
+
role: "assistant";
|
|
598
|
+
content: string | null;
|
|
599
|
+
tool_calls: {
|
|
600
|
+
id: string;
|
|
601
|
+
type: "function";
|
|
602
|
+
function: {
|
|
603
|
+
name: string;
|
|
604
|
+
arguments: string;
|
|
605
|
+
};
|
|
606
|
+
}[];
|
|
607
|
+
} | {
|
|
608
|
+
role: "tool";
|
|
609
|
+
content: string;
|
|
610
|
+
tool_call_id: string;
|
|
611
|
+
})[];
|
|
530
612
|
stream?: boolean | undefined;
|
|
531
613
|
temperature?: number | undefined;
|
|
532
614
|
max_tokens?: number | undefined;
|
|
@@ -538,6 +620,20 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
538
620
|
stop?: string | string[] | undefined;
|
|
539
621
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
540
622
|
modalities?: string[] | undefined;
|
|
623
|
+
tools?: {
|
|
624
|
+
type: "function";
|
|
625
|
+
function: {
|
|
626
|
+
name: string;
|
|
627
|
+
description?: string | undefined;
|
|
628
|
+
parameters: unknown;
|
|
629
|
+
};
|
|
630
|
+
}[] | undefined;
|
|
631
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
632
|
+
type: "function";
|
|
633
|
+
function: {
|
|
634
|
+
name: string;
|
|
635
|
+
};
|
|
636
|
+
} | undefined;
|
|
541
637
|
};
|
|
542
638
|
} | {
|
|
543
639
|
streamId: string;
|