@budibase/types 3.12.13 → 3.12.14
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/api/web/app/application.d.ts +0 -5
- package/dist/api/web/app/deployment.d.ts +4 -0
- package/dist/api/web/app/index.d.ts +1 -0
- package/dist/api/web/app/resource.d.ts +23 -0
- package/dist/api/web/app/workspaceApp.d.ts +3 -3
- package/dist/documents/app/row.d.ts +1 -0
- package/dist/documents/app/workspaceApp.d.ts +1 -1
- package/dist/documents/document.d.ts +0 -2
- package/dist/index.js +8 -8
- package/dist/index.js.map +4 -4
- package/dist/sdk/ai.d.ts +19 -1
- package/dist/sdk/db.d.ts +1 -10
- package/dist/sdk/events/action.d.ts +11 -0
- package/dist/sdk/events/event.d.ts +4 -1
- package/dist/sdk/events/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/sdk/ai.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Message } from "../api";
|
|
2
|
+
import { AgentChat, AIProvider } from "../documents";
|
|
2
3
|
export declare enum AIOperationEnum {
|
|
3
4
|
SUMMARISE_TEXT = "SUMMARISE_TEXT",
|
|
4
5
|
CLEAN_DATA = "CLEAN_DATA",
|
|
@@ -81,4 +82,21 @@ export interface LLMConfigOptions {
|
|
|
81
82
|
export interface LLMProviderConfig extends LLMConfigOptions {
|
|
82
83
|
provider: AIProvider;
|
|
83
84
|
}
|
|
85
|
+
export interface LLMStreamChunk {
|
|
86
|
+
type: "content" | "tool_call_start" | "tool_call_result" | "done" | "error" | "chat_saved";
|
|
87
|
+
content?: string;
|
|
88
|
+
toolCall?: {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
arguments: string;
|
|
92
|
+
};
|
|
93
|
+
toolResult?: {
|
|
94
|
+
id: string;
|
|
95
|
+
result: string;
|
|
96
|
+
error?: string;
|
|
97
|
+
};
|
|
98
|
+
messages?: Message[];
|
|
99
|
+
chat?: AgentChat;
|
|
100
|
+
tokensUsed?: number;
|
|
101
|
+
}
|
|
84
102
|
export {};
|
package/dist/sdk/db.d.ts
CHANGED
|
@@ -41,16 +41,6 @@ export interface DesignDocument extends Document {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
export type CouchFindOptions = {
|
|
45
|
-
selector: PouchDB.Find.Selector;
|
|
46
|
-
fields?: string[];
|
|
47
|
-
sort?: {
|
|
48
|
-
[key: string]: SortOption;
|
|
49
|
-
}[];
|
|
50
|
-
limit?: number;
|
|
51
|
-
skip?: number;
|
|
52
|
-
bookmark?: string;
|
|
53
|
-
};
|
|
54
44
|
export type DatabaseOpts = {
|
|
55
45
|
skip_setup?: boolean;
|
|
56
46
|
};
|
|
@@ -120,6 +110,7 @@ export interface Database {
|
|
|
120
110
|
sql<T extends Document>(sql: string, parameters?: SqlQueryBinding): Promise<T[]>;
|
|
121
111
|
sqlPurgeDocument(docIds: string[] | string): Promise<void>;
|
|
122
112
|
sqlDiskCleanup(): Promise<void>;
|
|
113
|
+
find<T extends Document>(params: Nano.MangoQuery): Promise<Nano.MangoResponse<T>>;
|
|
123
114
|
allDocs<T extends Document | RowValue>(params: DatabaseQueryOpts): Promise<AllDocsResponse<T>>;
|
|
124
115
|
query<T extends Document>(viewName: string, params: DatabaseQueryOpts): Promise<AllDocsResponse<T>>;
|
|
125
116
|
destroy(): Promise<Nano.OkResponse>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEvent } from "./event";
|
|
2
|
+
import { QueryVerb } from "../../documents";
|
|
3
|
+
export interface ActionAutomationStepExecuted extends BaseEvent {
|
|
4
|
+
stepId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ActionCrudExecuted extends BaseEvent {
|
|
7
|
+
type: QueryVerb;
|
|
8
|
+
}
|
|
9
|
+
export interface ActionAiAgentExecuted extends BaseEvent {
|
|
10
|
+
agentId: string;
|
|
11
|
+
}
|
|
@@ -129,7 +129,10 @@ export declare enum Event {
|
|
|
129
129
|
ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED = "environment_variable:upgrade_panel_opened",
|
|
130
130
|
AUDIT_LOGS_FILTERED = "audit_log:filtered",
|
|
131
131
|
AUDIT_LOGS_DOWNLOADED = "audit_log:downloaded",
|
|
132
|
-
ROW_ACTION_CREATED = "row_action:created"
|
|
132
|
+
ROW_ACTION_CREATED = "row_action:created",
|
|
133
|
+
ACTION_AUTOMATION_STEP_EXECUTED = "action:automation_step:executed",
|
|
134
|
+
ACTION_CRUD_EXECUTED = "action:crud:executed",
|
|
135
|
+
ACTION_AI_AGENT_EXECUTED = "action:ai_agent:executed"
|
|
133
136
|
}
|
|
134
137
|
export declare const UserGroupSyncEvents: Event[];
|
|
135
138
|
export declare const AsyncEvents: Event[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.14",
|
|
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": "
|
|
30
|
+
"gitHead": "dbe8dd62a6714a1bf0768542434fdeca2f81052b"
|
|
31
31
|
}
|