@budibase/types 3.12.8 → 3.12.10
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/ai.d.ts +10 -1
- package/dist/api/web/app/application.d.ts +1 -1
- package/dist/api/web/app/workspaceApp.d.ts +4 -0
- package/dist/api/web/global/agents.d.ts +2 -1
- package/dist/documents/app/automation/StepInputsOutputs.d.ts +16 -1
- package/dist/documents/app/automation/automation.d.ts +16 -1
- package/dist/documents/app/automation/schema.d.ts +6 -4
- package/dist/documents/app/workspaceApp.d.ts +3 -0
- package/dist/documents/document.d.ts +1 -2
- package/dist/documents/global/agents.d.ts +44 -1
- package/dist/documents/global/quotas.d.ts +1 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +3 -3
- package/dist/sdk/ai.d.ts +1 -0
- package/dist/sdk/datasources.d.ts +1 -1
- package/dist/sdk/db.d.ts +1 -0
- package/dist/sdk/licensing/quota.d.ts +3 -1
- package/dist/ui/common.d.ts +8 -0
- package/package.json +2 -2
package/dist/api/web/ai.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import openai from "openai";
|
|
2
2
|
import { EnrichedBinding } from "../../ui";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
+
export type UserContent = string | openai.ChatCompletionContentPart[];
|
|
4
5
|
export interface SystemMessage {
|
|
5
6
|
role: "system";
|
|
6
7
|
content: string;
|
|
7
8
|
}
|
|
8
9
|
export interface UserMessage {
|
|
9
10
|
role: "user";
|
|
10
|
-
content:
|
|
11
|
+
content: UserContent;
|
|
11
12
|
}
|
|
12
13
|
export interface AssistantMessage {
|
|
13
14
|
role: "assistant";
|
|
@@ -61,3 +62,11 @@ export interface GenerateTablesResponse {
|
|
|
61
62
|
name: string;
|
|
62
63
|
}[];
|
|
63
64
|
}
|
|
65
|
+
export interface UploadFileRequest {
|
|
66
|
+
data: string;
|
|
67
|
+
filename: string;
|
|
68
|
+
contentType: string;
|
|
69
|
+
}
|
|
70
|
+
export interface UploadFileResponse {
|
|
71
|
+
file: string;
|
|
72
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppNavigation } from "../../../documents";
|
|
1
2
|
export interface WorkspaceAppResponse {
|
|
2
3
|
_id: string;
|
|
3
4
|
_rev: string;
|
|
@@ -5,6 +6,8 @@ export interface WorkspaceAppResponse {
|
|
|
5
6
|
urlPrefix: string;
|
|
6
7
|
icon: string;
|
|
7
8
|
iconColor?: string;
|
|
9
|
+
navigation: AppNavigation;
|
|
10
|
+
isDefault: boolean;
|
|
8
11
|
}
|
|
9
12
|
export interface InsertWorkspaceAppRequest {
|
|
10
13
|
name: string;
|
|
@@ -22,6 +25,7 @@ export interface UpdateWorkspaceAppRequest {
|
|
|
22
25
|
urlPrefix: string;
|
|
23
26
|
icon: string;
|
|
24
27
|
iconColor?: string;
|
|
28
|
+
navigation: AppNavigation;
|
|
25
29
|
}
|
|
26
30
|
export interface UpdateWorkspaceAppResponse {
|
|
27
31
|
workspaceApp: WorkspaceAppResponse;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentChat } from "../../../documents";
|
|
1
|
+
import { AgentChat, AgentToolSource } from "../../../documents";
|
|
2
2
|
export type ChatAgentRequest = AgentChat;
|
|
3
3
|
export type ChatAgentResponse = AgentChat;
|
|
4
4
|
export type FetchAgentHistoryResponse = AgentChat[];
|
|
5
|
+
export type CreateToolSourceRequest = AgentToolSource;
|
|
@@ -2,7 +2,7 @@ import { Table } from "@budibase/types";
|
|
|
2
2
|
import { SortOrder } from "../../../api";
|
|
3
3
|
import { SearchFilters, EmptyFilterOption, BasicOperator, LogicalOperator } from "../../../sdk";
|
|
4
4
|
import { HttpMethod } from "../query";
|
|
5
|
-
import { Row } from "../row";
|
|
5
|
+
import { Row, RowAttachment } from "../row";
|
|
6
6
|
import { LoopStepType, EmailAttachment, AutomationResults, AutomationStepResult } from "./automation";
|
|
7
7
|
import { AutomationStep } from "./schema";
|
|
8
8
|
export declare enum FilterCondition {
|
|
@@ -174,6 +174,21 @@ export type GenerateTextStepOutputs = {
|
|
|
174
174
|
success: boolean;
|
|
175
175
|
response?: string;
|
|
176
176
|
};
|
|
177
|
+
export type ExtractFileDataStepInputs = {
|
|
178
|
+
file: RowAttachment | string;
|
|
179
|
+
source: "URL" | "Attachment";
|
|
180
|
+
fileType?: string;
|
|
181
|
+
schema: Record<string, any>;
|
|
182
|
+
};
|
|
183
|
+
export type ExtractFileDataStepOutputs = {
|
|
184
|
+
success: true;
|
|
185
|
+
data: Record<string, any>;
|
|
186
|
+
response?: string;
|
|
187
|
+
} | {
|
|
188
|
+
success: false;
|
|
189
|
+
data?: Record<string, any>;
|
|
190
|
+
response?: string;
|
|
191
|
+
};
|
|
177
192
|
export declare enum Model {
|
|
178
193
|
GPT_35_TURBO = "gpt-3.5-turbo",
|
|
179
194
|
GPT_4 = "gpt-4",
|
|
@@ -78,6 +78,7 @@ export declare enum AutomationActionStepId {
|
|
|
78
78
|
TRANSLATE = "TRANSLATE",
|
|
79
79
|
SUMMARISE = "SUMMARISE",
|
|
80
80
|
GENERATE_TEXT = "GENERATE_TEXT",
|
|
81
|
+
EXTRACT_FILE_DATA = "EXTRACT_FILE_DATA",
|
|
81
82
|
discord = "discord",
|
|
82
83
|
slack = "slack",
|
|
83
84
|
zapier = "zapier",
|
|
@@ -132,7 +133,10 @@ export interface BaseIOStructure {
|
|
|
132
133
|
customType?: AutomationCustomIOType;
|
|
133
134
|
title?: string;
|
|
134
135
|
description?: string;
|
|
135
|
-
dependsOn?: string
|
|
136
|
+
dependsOn?: string | {
|
|
137
|
+
field: string;
|
|
138
|
+
value: string | string[];
|
|
139
|
+
};
|
|
136
140
|
enum?: string[];
|
|
137
141
|
pretty?: string[];
|
|
138
142
|
properties?: AutomationIOProps;
|
|
@@ -273,3 +277,14 @@ export declare const PrettyContentTypes: {
|
|
|
273
277
|
proposal: string;
|
|
274
278
|
other: string;
|
|
275
279
|
};
|
|
280
|
+
export declare enum DocumentSourceType {
|
|
281
|
+
URL = "URL",
|
|
282
|
+
ATTACHMENT = "Attachment"
|
|
283
|
+
}
|
|
284
|
+
export declare enum SupportedFileType {
|
|
285
|
+
PDF = "pdf",
|
|
286
|
+
JPG = "jpg",
|
|
287
|
+
PNG = "png",
|
|
288
|
+
JPEG = "jpeg"
|
|
289
|
+
}
|
|
290
|
+
export declare const ImageContentTypes: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hosting } from "../../../sdk";
|
|
2
2
|
import { AutomationActionStepId, ActionImplementation, AutomationStepType, AutomationFeature, InputOutputBlock, AutomationTriggerStepId, AutomationEventType, AutomationIOType } from "./automation";
|
|
3
|
-
import { CollectStepInputs, CollectStepOutputs, CreateRowStepInputs, CreateRowStepOutputs, DelayStepInputs, DelayStepOutputs, DeleteRowStepInputs, DeleteRowStepOutputs, ExecuteQueryStepInputs, ExecuteQueryStepOutputs, ExecuteScriptStepInputs, ExecuteScriptStepOutputs, FilterStepInputs, FilterStepOutputs, QueryRowsStepInputs, QueryRowsStepOutputs, SmtpEmailStepInputs, ServerLogStepInputs, ServerLogStepOutputs, TriggerAutomationStepInputs, TriggerAutomationStepOutputs, UpdateRowStepInputs, UpdateRowStepOutputs, OutgoingWebhookStepInputs, ExternalAppStepOutputs, DiscordStepInputs, SlackStepInputs, ZapierStepInputs, ZapierStepOutputs, MakeIntegrationInputs, n8nStepInputs, BashStepInputs, BashStepOutputs, OpenAIStepInputs, OpenAIStepOutputs, LoopStepInputs, CronTriggerInputs, RowUpdatedTriggerInputs, RowCreatedTriggerInputs, RowDeletedTriggerInputs, BranchStepInputs, BaseAutomationOutputs, AppActionTriggerOutputs, CronTriggerOutputs, RowDeletedTriggerOutputs, RowCreatedTriggerOutputs, RowUpdatedTriggerOutputs, WebhookTriggerOutputs, RowActionTriggerInputs, ClassifyContentStepOutputs, ClassifyContentStepInputs, PromptLLMStepOutputs, PromptLLMStepInputs, TranslateStepOutputs, TranslateStepInputs, SummariseStepInputs, SummariseStepOutputs, GenerateTextStepInputs, GenerateTextStepOutputs, APIRequestStepInputs, APIRequestStepOutputs } from "./StepInputsOutputs";
|
|
3
|
+
import { CollectStepInputs, CollectStepOutputs, CreateRowStepInputs, CreateRowStepOutputs, DelayStepInputs, DelayStepOutputs, DeleteRowStepInputs, DeleteRowStepOutputs, ExecuteQueryStepInputs, ExecuteQueryStepOutputs, ExecuteScriptStepInputs, ExecuteScriptStepOutputs, FilterStepInputs, FilterStepOutputs, QueryRowsStepInputs, QueryRowsStepOutputs, SmtpEmailStepInputs, ServerLogStepInputs, ServerLogStepOutputs, TriggerAutomationStepInputs, TriggerAutomationStepOutputs, UpdateRowStepInputs, UpdateRowStepOutputs, OutgoingWebhookStepInputs, ExternalAppStepOutputs, DiscordStepInputs, SlackStepInputs, ZapierStepInputs, ZapierStepOutputs, MakeIntegrationInputs, n8nStepInputs, BashStepInputs, BashStepOutputs, OpenAIStepInputs, OpenAIStepOutputs, LoopStepInputs, CronTriggerInputs, RowUpdatedTriggerInputs, RowCreatedTriggerInputs, RowDeletedTriggerInputs, BranchStepInputs, BaseAutomationOutputs, AppActionTriggerOutputs, CronTriggerOutputs, RowDeletedTriggerOutputs, RowCreatedTriggerOutputs, RowUpdatedTriggerOutputs, WebhookTriggerOutputs, RowActionTriggerInputs, ClassifyContentStepOutputs, ClassifyContentStepInputs, PromptLLMStepOutputs, PromptLLMStepInputs, TranslateStepOutputs, TranslateStepInputs, SummariseStepInputs, SummariseStepOutputs, GenerateTextStepInputs, GenerateTextStepOutputs, ExtractFileDataStepOutputs, ExtractFileDataStepInputs, APIRequestStepInputs, APIRequestStepOutputs } from "./StepInputsOutputs";
|
|
4
4
|
export type ActionImplementations<T extends Hosting> = {
|
|
5
5
|
[AutomationActionStepId.COLLECT]: ActionImplementation<CollectStepInputs, CollectStepOutputs>;
|
|
6
6
|
[AutomationActionStepId.CREATE_ROW]: ActionImplementation<CreateRowStepInputs, CreateRowStepOutputs>;
|
|
@@ -28,6 +28,7 @@ export type ActionImplementations<T extends Hosting> = {
|
|
|
28
28
|
[AutomationActionStepId.TRANSLATE]: ActionImplementation<TranslateStepInputs, TranslateStepOutputs>;
|
|
29
29
|
[AutomationActionStepId.SUMMARISE]: ActionImplementation<SummariseStepInputs, SummariseStepOutputs>;
|
|
30
30
|
[AutomationActionStepId.GENERATE_TEXT]: ActionImplementation<GenerateTextStepInputs, GenerateTextStepOutputs>;
|
|
31
|
+
[AutomationActionStepId.EXTRACT_FILE_DATA]: ActionImplementation<ExtractFileDataStepInputs, ExtractFileDataStepOutputs>;
|
|
31
32
|
} & (T extends "self" ? {
|
|
32
33
|
[AutomationActionStepId.EXECUTE_BASH]: ActionImplementation<BashStepInputs, BashStepOutputs>;
|
|
33
34
|
} : {});
|
|
@@ -50,8 +51,8 @@ export interface AutomationStepSchemaBase {
|
|
|
50
51
|
custom?: boolean;
|
|
51
52
|
features?: Partial<Record<AutomationFeature, boolean>>;
|
|
52
53
|
}
|
|
53
|
-
export type AutomationStepInputs<T extends AutomationActionStepId> = T extends AutomationActionStepId.COLLECT ? CollectStepInputs : T extends AutomationActionStepId.CREATE_ROW ? CreateRowStepInputs : T extends AutomationActionStepId.DELAY ? DelayStepInputs : T extends AutomationActionStepId.DELETE_ROW ? DeleteRowStepInputs : T extends AutomationActionStepId.EXECUTE_QUERY ? ExecuteQueryStepInputs : T extends AutomationActionStepId.API_REQUEST ? APIRequestStepInputs : T extends AutomationActionStepId.EXECUTE_SCRIPT ? ExecuteScriptStepInputs : T extends AutomationActionStepId.EXECUTE_SCRIPT_V2 ? ExecuteScriptStepInputs : T extends AutomationActionStepId.FILTER ? FilterStepInputs : T extends AutomationActionStepId.QUERY_ROWS ? QueryRowsStepInputs : T extends AutomationActionStepId.SEND_EMAIL_SMTP ? SmtpEmailStepInputs : T extends AutomationActionStepId.SERVER_LOG ? ServerLogStepInputs : T extends AutomationActionStepId.TRIGGER_AUTOMATION_RUN ? TriggerAutomationStepInputs : T extends AutomationActionStepId.UPDATE_ROW ? UpdateRowStepInputs : T extends AutomationActionStepId.OUTGOING_WEBHOOK ? OutgoingWebhookStepInputs : T extends AutomationActionStepId.discord ? DiscordStepInputs : T extends AutomationActionStepId.slack ? SlackStepInputs : T extends AutomationActionStepId.zapier ? ZapierStepInputs : T extends AutomationActionStepId.integromat ? MakeIntegrationInputs : T extends AutomationActionStepId.n8n ? n8nStepInputs : T extends AutomationActionStepId.EXECUTE_BASH ? BashStepInputs : T extends AutomationActionStepId.OPENAI ? OpenAIStepInputs : T extends AutomationActionStepId.LOOP ? LoopStepInputs : T extends AutomationActionStepId.BRANCH ? BranchStepInputs : T extends AutomationActionStepId.CLASSIFY_CONTENT ? ClassifyContentStepInputs : T extends AutomationActionStepId.PROMPT_LLM ? PromptLLMStepInputs : T extends AutomationActionStepId.TRANSLATE ? TranslateStepInputs : T extends AutomationActionStepId.SUMMARISE ? SummariseStepInputs : T extends AutomationActionStepId.GENERATE_TEXT ? GenerateTextStepInputs : never;
|
|
54
|
-
export type AutomationStepOutputs<T extends AutomationActionStepId> = T extends AutomationActionStepId.COLLECT ? CollectStepOutputs : T extends AutomationActionStepId.CREATE_ROW ? CreateRowStepOutputs : T extends AutomationActionStepId.DELAY ? DelayStepOutputs : T extends AutomationActionStepId.DELETE_ROW ? DeleteRowStepOutputs : T extends AutomationActionStepId.EXECUTE_QUERY ? ExecuteQueryStepOutputs : T extends AutomationActionStepId.API_REQUEST ? APIRequestStepOutputs : T extends AutomationActionStepId.EXECUTE_SCRIPT ? ExecuteScriptStepOutputs : T extends AutomationActionStepId.EXECUTE_SCRIPT_V2 ? ExecuteScriptStepOutputs : T extends AutomationActionStepId.FILTER ? FilterStepOutputs : T extends AutomationActionStepId.QUERY_ROWS ? QueryRowsStepOutputs : T extends AutomationActionStepId.SEND_EMAIL_SMTP ? BaseAutomationOutputs : T extends AutomationActionStepId.SERVER_LOG ? ServerLogStepOutputs : T extends AutomationActionStepId.TRIGGER_AUTOMATION_RUN ? TriggerAutomationStepOutputs : T extends AutomationActionStepId.UPDATE_ROW ? UpdateRowStepOutputs : T extends AutomationActionStepId.OUTGOING_WEBHOOK ? ExternalAppStepOutputs : T extends AutomationActionStepId.discord ? ExternalAppStepOutputs : T extends AutomationActionStepId.slack ? ExternalAppStepOutputs : T extends AutomationActionStepId.zapier ? ZapierStepOutputs : T extends AutomationActionStepId.integromat ? ExternalAppStepOutputs : T extends AutomationActionStepId.EXECUTE_BASH ? BashStepOutputs : T extends AutomationActionStepId.OPENAI ? OpenAIStepOutputs : T extends AutomationActionStepId.LOOP ? BaseAutomationOutputs : T extends AutomationActionStepId.CLASSIFY_CONTENT ? ClassifyContentStepOutputs : T extends AutomationActionStepId.PROMPT_LLM ? PromptLLMStepOutputs : T extends AutomationActionStepId.TRANSLATE ? TranslateStepOutputs : T extends AutomationActionStepId.SUMMARISE ? SummariseStepOutputs : T extends AutomationActionStepId.GENERATE_TEXT ? GenerateTextStepOutputs : never;
|
|
54
|
+
export type AutomationStepInputs<T extends AutomationActionStepId> = T extends AutomationActionStepId.COLLECT ? CollectStepInputs : T extends AutomationActionStepId.CREATE_ROW ? CreateRowStepInputs : T extends AutomationActionStepId.DELAY ? DelayStepInputs : T extends AutomationActionStepId.DELETE_ROW ? DeleteRowStepInputs : T extends AutomationActionStepId.EXECUTE_QUERY ? ExecuteQueryStepInputs : T extends AutomationActionStepId.API_REQUEST ? APIRequestStepInputs : T extends AutomationActionStepId.EXECUTE_SCRIPT ? ExecuteScriptStepInputs : T extends AutomationActionStepId.EXECUTE_SCRIPT_V2 ? ExecuteScriptStepInputs : T extends AutomationActionStepId.FILTER ? FilterStepInputs : T extends AutomationActionStepId.QUERY_ROWS ? QueryRowsStepInputs : T extends AutomationActionStepId.SEND_EMAIL_SMTP ? SmtpEmailStepInputs : T extends AutomationActionStepId.SERVER_LOG ? ServerLogStepInputs : T extends AutomationActionStepId.TRIGGER_AUTOMATION_RUN ? TriggerAutomationStepInputs : T extends AutomationActionStepId.UPDATE_ROW ? UpdateRowStepInputs : T extends AutomationActionStepId.OUTGOING_WEBHOOK ? OutgoingWebhookStepInputs : T extends AutomationActionStepId.discord ? DiscordStepInputs : T extends AutomationActionStepId.slack ? SlackStepInputs : T extends AutomationActionStepId.zapier ? ZapierStepInputs : T extends AutomationActionStepId.integromat ? MakeIntegrationInputs : T extends AutomationActionStepId.n8n ? n8nStepInputs : T extends AutomationActionStepId.EXECUTE_BASH ? BashStepInputs : T extends AutomationActionStepId.OPENAI ? OpenAIStepInputs : T extends AutomationActionStepId.LOOP ? LoopStepInputs : T extends AutomationActionStepId.BRANCH ? BranchStepInputs : T extends AutomationActionStepId.CLASSIFY_CONTENT ? ClassifyContentStepInputs : T extends AutomationActionStepId.PROMPT_LLM ? PromptLLMStepInputs : T extends AutomationActionStepId.TRANSLATE ? TranslateStepInputs : T extends AutomationActionStepId.SUMMARISE ? SummariseStepInputs : T extends AutomationActionStepId.GENERATE_TEXT ? GenerateTextStepInputs : T extends AutomationActionStepId.EXTRACT_FILE_DATA ? ExtractFileDataStepInputs : never;
|
|
55
|
+
export type AutomationStepOutputs<T extends AutomationActionStepId> = T extends AutomationActionStepId.COLLECT ? CollectStepOutputs : T extends AutomationActionStepId.CREATE_ROW ? CreateRowStepOutputs : T extends AutomationActionStepId.DELAY ? DelayStepOutputs : T extends AutomationActionStepId.DELETE_ROW ? DeleteRowStepOutputs : T extends AutomationActionStepId.EXECUTE_QUERY ? ExecuteQueryStepOutputs : T extends AutomationActionStepId.API_REQUEST ? APIRequestStepOutputs : T extends AutomationActionStepId.EXECUTE_SCRIPT ? ExecuteScriptStepOutputs : T extends AutomationActionStepId.EXECUTE_SCRIPT_V2 ? ExecuteScriptStepOutputs : T extends AutomationActionStepId.FILTER ? FilterStepOutputs : T extends AutomationActionStepId.QUERY_ROWS ? QueryRowsStepOutputs : T extends AutomationActionStepId.SEND_EMAIL_SMTP ? BaseAutomationOutputs : T extends AutomationActionStepId.SERVER_LOG ? ServerLogStepOutputs : T extends AutomationActionStepId.TRIGGER_AUTOMATION_RUN ? TriggerAutomationStepOutputs : T extends AutomationActionStepId.UPDATE_ROW ? UpdateRowStepOutputs : T extends AutomationActionStepId.OUTGOING_WEBHOOK ? ExternalAppStepOutputs : T extends AutomationActionStepId.discord ? ExternalAppStepOutputs : T extends AutomationActionStepId.slack ? ExternalAppStepOutputs : T extends AutomationActionStepId.zapier ? ZapierStepOutputs : T extends AutomationActionStepId.integromat ? ExternalAppStepOutputs : T extends AutomationActionStepId.EXECUTE_BASH ? BashStepOutputs : T extends AutomationActionStepId.OPENAI ? OpenAIStepOutputs : T extends AutomationActionStepId.LOOP ? BaseAutomationOutputs : T extends AutomationActionStepId.CLASSIFY_CONTENT ? ClassifyContentStepOutputs : T extends AutomationActionStepId.PROMPT_LLM ? PromptLLMStepOutputs : T extends AutomationActionStepId.TRANSLATE ? TranslateStepOutputs : T extends AutomationActionStepId.SUMMARISE ? SummariseStepOutputs : T extends AutomationActionStepId.GENERATE_TEXT ? GenerateTextStepOutputs : T extends AutomationActionStepId.EXTRACT_FILE_DATA ? ExtractFileDataStepOutputs : never;
|
|
55
56
|
export interface AutomationStepSchema<TStep extends AutomationActionStepId> extends AutomationStepSchemaBase {
|
|
56
57
|
id: string;
|
|
57
58
|
stepId: TStep;
|
|
@@ -85,8 +86,9 @@ export type PromptLLMStep = AutomationStepSchema<AutomationActionStepId.PROMPT_L
|
|
|
85
86
|
export type TranslateStep = AutomationStepSchema<AutomationActionStepId.TRANSLATE>;
|
|
86
87
|
export type SummariseStep = AutomationStepSchema<AutomationActionStepId.SUMMARISE>;
|
|
87
88
|
export type GenerateTextStep = AutomationStepSchema<AutomationActionStepId.GENERATE_TEXT>;
|
|
89
|
+
export type ExtractFileDataStep = AutomationStepSchema<AutomationActionStepId.EXTRACT_FILE_DATA>;
|
|
88
90
|
export type BranchStep = AutomationStepSchema<AutomationActionStepId.BRANCH>;
|
|
89
|
-
export type AutomationStep = CollectStep | CreateRowStep | DelayStep | DeleteRowStep | ExecuteQueryStep | APIRequestStep | ExecuteScriptStep | ExecuteScriptV2Step | FilterStep | QueryRowsStep | SendEmailSmtpStep | ServerLogStep | TriggerAutomationRunStep | UpdateRowStep | OutgoingWebhookStep | DiscordStep | SlackStep | ZapierStep | IntegromatStep | N8nStep | LoopStep | ExecuteBashStep | OpenAIStep | BranchStep | ClassifyContentStep | PromptLLMStep | TranslateStep | SummariseStep | GenerateTextStep;
|
|
91
|
+
export type AutomationStep = CollectStep | CreateRowStep | DelayStep | DeleteRowStep | ExecuteQueryStep | APIRequestStep | ExecuteScriptStep | ExecuteScriptV2Step | FilterStep | QueryRowsStep | SendEmailSmtpStep | ServerLogStep | TriggerAutomationRunStep | UpdateRowStep | OutgoingWebhookStep | DiscordStep | SlackStep | ZapierStep | IntegromatStep | N8nStep | LoopStep | ExecuteBashStep | OpenAIStep | BranchStep | ClassifyContentStep | PromptLLMStep | TranslateStep | SummariseStep | GenerateTextStep | ExtractFileDataStep;
|
|
90
92
|
export declare function isBranchStep(step: AutomationStep | AutomationTrigger): step is BranchStep;
|
|
91
93
|
export declare function isTrigger(step: AutomationStep | AutomationTrigger): step is AutomationTrigger;
|
|
92
94
|
export declare function isRowUpdateTrigger(step: AutomationStep | AutomationTrigger): step is RowUpdatedTrigger;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Document } from "../document";
|
|
2
|
+
import { AppNavigation } from "./app";
|
|
2
3
|
export interface WorkspaceApp extends Document {
|
|
3
4
|
name: string;
|
|
4
5
|
urlPrefix: string;
|
|
5
6
|
icon: string;
|
|
6
7
|
iconColor?: string;
|
|
8
|
+
navigation: AppNavigation;
|
|
9
|
+
isDefault: boolean;
|
|
7
10
|
}
|
|
@@ -12,7 +12,6 @@ export declare enum DocumentType {
|
|
|
12
12
|
APP_DEV = "app_dev",
|
|
13
13
|
APP_METADATA = "app_metadata",
|
|
14
14
|
ROLE = "role",
|
|
15
|
-
MIGRATIONS = "migrations",
|
|
16
15
|
DEV_INFO = "devinfo",
|
|
17
16
|
AUTOMATION_LOG = "log_au",
|
|
18
17
|
ACCOUNT_METADATA = "acc_metadata",
|
|
@@ -35,12 +34,12 @@ export declare enum DocumentType {
|
|
|
35
34
|
USER_FLAG = "flag",
|
|
36
35
|
AUTOMATION_METADATA = "meta_au",
|
|
37
36
|
AUDIT_LOG = "al",
|
|
38
|
-
APP_MIGRATION_METADATA = "_design/migrations",
|
|
39
37
|
SCIM_LOG = "scimlog",
|
|
40
38
|
ROW_ACTIONS = "ra",
|
|
41
39
|
OAUTH2_CONFIG = "oauth2",
|
|
42
40
|
OAUTH2_CONFIG_LOG = "oauth2log",
|
|
43
41
|
AGENT_CHAT = "agentchat",
|
|
42
|
+
AGENT_TOOL_SOURCE = "agenttoolsource",
|
|
44
43
|
WORKSPACE_APP = "workspace_app"
|
|
45
44
|
}
|
|
46
45
|
export declare function getDocumentType(id: string): DocumentType | undefined;
|
|
@@ -1,5 +1,48 @@
|
|
|
1
|
-
import { Document, Message } from "../../";
|
|
1
|
+
import { Document, Message, Tool } from "../../";
|
|
2
2
|
export interface AgentChat extends Document {
|
|
3
3
|
title: string;
|
|
4
4
|
messages: Message[];
|
|
5
5
|
}
|
|
6
|
+
export interface BaseToolSourceAuth {
|
|
7
|
+
guidelines?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GitHubToolAuth extends BaseToolSourceAuth {
|
|
10
|
+
apiKey: string;
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ConfluenceToolAuth extends BaseToolSourceAuth {
|
|
14
|
+
apiKey: string;
|
|
15
|
+
email: string;
|
|
16
|
+
baseUrl?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface BambooHRToolAuth extends BaseToolSourceAuth {
|
|
19
|
+
apiKey: string;
|
|
20
|
+
subdomain: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BudibaseToolAuth extends BaseToolSourceAuth {
|
|
23
|
+
}
|
|
24
|
+
export type AgentToolSourceAuth = GitHubToolAuth | ConfluenceToolAuth | BudibaseToolAuth | BambooHRToolAuth;
|
|
25
|
+
export interface GitHubToolSource extends Document {
|
|
26
|
+
type: "GITHUB";
|
|
27
|
+
disabledTools: string[];
|
|
28
|
+
auth: GitHubToolAuth;
|
|
29
|
+
}
|
|
30
|
+
export interface ConfluenceToolSource extends Document {
|
|
31
|
+
type: "CONFLUENCE";
|
|
32
|
+
disabledTools: string[];
|
|
33
|
+
auth: ConfluenceToolAuth;
|
|
34
|
+
}
|
|
35
|
+
export interface BudibaseToolSource extends Document {
|
|
36
|
+
type: "BUDIBASE";
|
|
37
|
+
disabledTools: string[];
|
|
38
|
+
auth: BudibaseToolAuth;
|
|
39
|
+
}
|
|
40
|
+
export interface BambooHRToolSource extends Document {
|
|
41
|
+
type: "BAMBOOHR";
|
|
42
|
+
disabledTools: string[];
|
|
43
|
+
auth: BambooHRToolAuth;
|
|
44
|
+
}
|
|
45
|
+
export type AgentToolSource = GitHubToolSource | ConfluenceToolSource | BudibaseToolSource | BambooHRToolSource;
|
|
46
|
+
export type AgentToolSourceWithTools = (GitHubToolSource | ConfluenceToolSource | BudibaseToolSource | BambooHRToolSource) & {
|
|
47
|
+
tools: Tool[];
|
|
48
|
+
};
|
|
@@ -31,6 +31,7 @@ export interface MonthlyUsage {
|
|
|
31
31
|
[MonthlyQuotaName.QUERIES]: number;
|
|
32
32
|
[MonthlyQuotaName.AUTOMATIONS]: number;
|
|
33
33
|
[MonthlyQuotaName.BUDIBASE_AI_CREDITS]: number;
|
|
34
|
+
[MonthlyQuotaName.ACTIONS]: number;
|
|
34
35
|
triggers: {
|
|
35
36
|
[key in MonthlyQuotaName]?: QuotaTriggers;
|
|
36
37
|
};
|