@budibase/types 3.28.0 → 3.28.1

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.
@@ -1,5 +1,6 @@
1
1
  import openai from "openai";
2
2
  import { EnrichedBinding } from "../../ui";
3
+ import { ModelMessage } from "ai";
3
4
  export type UserContent = string | openai.ChatCompletionContentPart[];
4
5
  export interface SystemMessage {
5
6
  role: "system";
@@ -21,6 +22,11 @@ export interface ToolMessage {
21
22
  }
22
23
  export type Message = SystemMessage | UserMessage | AssistantMessage | ToolMessage;
23
24
  export type ResponseFormat = "text" | "json" | openai.ResponseFormatJSONSchema;
25
+ export interface ChatCompletionRequestV2 {
26
+ messages: ModelMessage[];
27
+ model: string;
28
+ stream?: boolean;
29
+ }
24
30
  export interface ChatCompletionRequest {
25
31
  messages: Message[];
26
32
  format?: ResponseFormat;
@@ -59,6 +59,7 @@ export interface AgentFile extends Document {
59
59
  filename: string;
60
60
  mimetype?: string;
61
61
  size?: number;
62
+ objectStoreKey: string;
62
63
  ragSourceId: string;
63
64
  status: AgentFileStatus;
64
65
  chunkCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/types",
3
- "version": "3.28.0",
3
+ "version": "3.28.1",
4
4
  "description": "Budibase types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,5 +27,5 @@
27
27
  "dependencies": {
28
28
  "scim-patch": "^0.8.1"
29
29
  },
30
- "gitHead": "b57235144ae6ed94b1b54d9ea73335106feedc02"
30
+ "gitHead": "e034f570c9fbb13b51fa2178e74764b1c3182761"
31
31
  }