@cargo-ai/api 1.0.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.
- package/build/src/api/ai/index.d.ts +78 -0
- package/build/src/api/ai/index.d.ts.map +1 -0
- package/build/src/api/ai/index.js +530 -0
- package/build/src/api/billing/index.d.ts +25 -0
- package/build/src/api/billing/index.d.ts.map +1 -0
- package/build/src/api/billing/index.js +155 -0
- package/build/src/api/connection/index.d.ts +28 -0
- package/build/src/api/connection/index.d.ts.map +1 -0
- package/build/src/api/connection/index.js +172 -0
- package/build/src/api/expression/index.d.ts +26 -0
- package/build/src/api/expression/index.d.ts.map +1 -0
- package/build/src/api/expression/index.js +115 -0
- package/build/src/api/index.d.ts +72 -0
- package/build/src/api/index.d.ts.map +1 -0
- package/build/src/api/index.js +51 -0
- package/build/src/api/orchestration/index.d.ts +66 -0
- package/build/src/api/orchestration/index.d.ts.map +1 -0
- package/build/src/api/orchestration/index.js +625 -0
- package/build/src/api/revenueOrganization/index.d.ts +37 -0
- package/build/src/api/revenueOrganization/index.d.ts.map +1 -0
- package/build/src/api/revenueOrganization/index.js +241 -0
- package/build/src/api/segmentation/index.d.ts +28 -0
- package/build/src/api/segmentation/index.d.ts.map +1 -0
- package/build/src/api/segmentation/index.js +188 -0
- package/build/src/api/storage/index.d.ts +45 -0
- package/build/src/api/storage/index.d.ts.map +1 -0
- package/build/src/api/storage/index.js +402 -0
- package/build/src/api/systemOfRecordIntegration/index.d.ts +29 -0
- package/build/src/api/systemOfRecordIntegration/index.d.ts.map +1 -0
- package/build/src/api/systemOfRecordIntegration/index.js +151 -0
- package/build/src/api/userManagement/index.d.ts +14 -0
- package/build/src/api/userManagement/index.d.ts.map +1 -0
- package/build/src/api/userManagement/index.js +33 -0
- package/build/src/api/workspaceManagement/index.d.ts +43 -0
- package/build/src/api/workspaceManagement/index.d.ts.map +1 -0
- package/build/src/api/workspaceManagement/index.js +283 -0
- package/build/src/client.d.ts +5 -0
- package/build/src/client.d.ts.map +1 -0
- package/build/src/client.js +24 -0
- package/build/src/fetcher/client.d.ts +7 -0
- package/build/src/fetcher/client.d.ts.map +1 -0
- package/build/src/fetcher/client.js +9 -0
- package/build/src/fetcher/error.d.ts +101 -0
- package/build/src/fetcher/error.d.ts.map +1 -0
- package/build/src/fetcher/error.js +184 -0
- package/build/src/fetcher/fetcher.d.ts +12 -0
- package/build/src/fetcher/fetcher.d.ts.map +1 -0
- package/build/src/fetcher/fetcher.js +1 -0
- package/build/src/fetcher/index.d.ts +34 -0
- package/build/src/fetcher/index.d.ts.map +1 -0
- package/build/src/fetcher/index.js +78 -0
- package/build/src/index.d.ts +5 -0
- package/build/src/index.d.ts.map +1 -0
- package/build/src/index.js +3 -0
- package/build/src/store/ai.d.ts +481 -0
- package/build/src/store/ai.d.ts.map +1 -0
- package/build/src/store/ai.js +112 -0
- package/build/src/store/billing.d.ts +140 -0
- package/build/src/store/billing.d.ts.map +1 -0
- package/build/src/store/billing.js +62 -0
- package/build/src/store/connection.d.ts +183 -0
- package/build/src/store/connection.d.ts.map +1 -0
- package/build/src/store/connection.js +88 -0
- package/build/src/store/expression.d.ts +112 -0
- package/build/src/store/expression.d.ts.map +1 -0
- package/build/src/store/expression.js +27 -0
- package/build/src/store/index.d.ts +14 -0
- package/build/src/store/index.d.ts.map +1 -0
- package/build/src/store/index.js +25 -0
- package/build/src/store/orchestration.d.ts +942 -0
- package/build/src/store/orchestration.d.ts.map +1 -0
- package/build/src/store/orchestration.js +217 -0
- package/build/src/store/revenueOrganization.d.ts +201 -0
- package/build/src/store/revenueOrganization.d.ts.map +1 -0
- package/build/src/store/revenueOrganization.js +68 -0
- package/build/src/store/segmentation.d.ts +566 -0
- package/build/src/store/segmentation.d.ts.map +1 -0
- package/build/src/store/segmentation.js +103 -0
- package/build/src/store/storage.d.ts +1096 -0
- package/build/src/store/storage.d.ts.map +1 -0
- package/build/src/store/storage.js +174 -0
- package/build/src/store/systemOfRecordIntegration.d.ts +122 -0
- package/build/src/store/systemOfRecordIntegration.d.ts.map +1 -0
- package/build/src/store/systemOfRecordIntegration.js +53 -0
- package/build/src/store/userManagement.d.ts +34 -0
- package/build/src/store/userManagement.d.ts.map +1 -0
- package/build/src/store/userManagement.js +22 -0
- package/build/src/store/workspaceManagement.d.ts +215 -0
- package/build/src/store/workspaceManagement.d.ts.map +1 -0
- package/build/src/store/workspaceManagement.js +103 -0
- package/build/src/types.d.ts +6 -0
- package/build/src/types.d.ts.map +1 -0
- package/build/src/types.js +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
import type { BackendToFrontend } from "../types.js";
|
|
3
|
+
import type { FetcherRequest } from "./fetcher.js";
|
|
4
|
+
export { determineIfIsFetcherError, type FetcherError, FetcherRequestErrorClass, getErrorWithReasonErrorMessage, } from "./error.js";
|
|
5
|
+
export type FetcherDependencies = {
|
|
6
|
+
baseUrl: string;
|
|
7
|
+
workspaceUuid?: string;
|
|
8
|
+
getAccessToken?: (refresh?: boolean) => Promise<string>;
|
|
9
|
+
};
|
|
10
|
+
export type FetcherUploadFilePayload = {
|
|
11
|
+
formData: FormData;
|
|
12
|
+
onProgress: (progressPercentage: number) => void;
|
|
13
|
+
onComplete: (payload: {
|
|
14
|
+
s3Filename: string;
|
|
15
|
+
contentType: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onError: () => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const zodFetcherUploadFileErrorReason: z.ZodEnum<{
|
|
21
|
+
noFile: "noFile";
|
|
22
|
+
}>;
|
|
23
|
+
export type Fetcher = {
|
|
24
|
+
baseUrl: string;
|
|
25
|
+
uploadFile: (url: string, { formData, onProgress, onComplete, onError }: FetcherUploadFilePayload) => Promise<void>;
|
|
26
|
+
fetch<TResult>(request: FetcherRequest & {
|
|
27
|
+
replaceNullByUndefined: false;
|
|
28
|
+
}): Promise<TResult>;
|
|
29
|
+
fetch<TResult>(request: FetcherRequest & {
|
|
30
|
+
replaceNullByUndefined?: true | undefined;
|
|
31
|
+
}): Promise<BackendToFrontend<TResult>>;
|
|
32
|
+
};
|
|
33
|
+
export declare const buildFetcher: (dependencies: FetcherDependencies) => Fetcher;
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fetcher/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EACL,yBAAyB,EACzB,KAAK,YAAY,EACjB,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,CAAC,kBAAkB,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,UAAU,EAAE,CAAC,OAAO,EAAE;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,+BAA+B;;EAAqB,CAAC;AAElE,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,CACV,GAAG,EAAE,MAAM,EACX,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,wBAAwB,KACpE,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,KAAK,CAAC,OAAO,EACX,OAAO,EAAE,cAAc,GAAG;QAAE,sBAAsB,EAAE,KAAK,CAAA;KAAE,GAC1D,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,KAAK,CAAC,OAAO,EACX,OAAO,EAAE,cAAc,GAAG;QAAE,sBAAsB,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;KAAE,GACtE,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,YAAY,iBAAkB,mBAAmB,KAAG,OAgGhE,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
import { nullToUndefined } from "cargo-utils";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
import { buildClient } from "./client.js";
|
|
5
|
+
import { fromFetcherError } from "./error.js";
|
|
6
|
+
export { determineIfIsFetcherError, FetcherRequestErrorClass, getErrorWithReasonErrorMessage, } from "./error.js";
|
|
7
|
+
export const zodFetcherUploadFileErrorReason = z.enum(["noFile"]);
|
|
8
|
+
export const buildFetcher = (dependencies) => {
|
|
9
|
+
const { baseUrl, workspaceUuid, getAccessToken } = dependencies;
|
|
10
|
+
const client = buildClient({ baseUrl });
|
|
11
|
+
const generateAxiosFetcher = async (request) => {
|
|
12
|
+
const { endpoint, method, params, payload, forceTokenRefresh = false, replaceNullByUndefined = true, withoutWorkspace = false, } = request;
|
|
13
|
+
const source = axios.CancelToken.source();
|
|
14
|
+
let accessToken;
|
|
15
|
+
if (getAccessToken !== undefined) {
|
|
16
|
+
accessToken = await getAccessToken(forceTokenRefresh);
|
|
17
|
+
}
|
|
18
|
+
const workspaceHeaders = workspaceUuid !== undefined && withoutWorkspace === false
|
|
19
|
+
? { "selected-workspace-uuid": workspaceUuid }
|
|
20
|
+
: {};
|
|
21
|
+
const options = {
|
|
22
|
+
url: endpoint,
|
|
23
|
+
method: method,
|
|
24
|
+
params,
|
|
25
|
+
data: payload,
|
|
26
|
+
cancelToken: source.token,
|
|
27
|
+
headers: {
|
|
28
|
+
authorization: accessToken !== undefined ? `Bearer ${accessToken}` : undefined,
|
|
29
|
+
...workspaceHeaders,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
const promise = client.request(options);
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
promise.cancel = source.cancel;
|
|
35
|
+
return promise
|
|
36
|
+
.then((response) => {
|
|
37
|
+
if (replaceNullByUndefined === true) {
|
|
38
|
+
return nullToUndefined(response.data);
|
|
39
|
+
}
|
|
40
|
+
return response.data;
|
|
41
|
+
})
|
|
42
|
+
.catch(async (axiosError) => {
|
|
43
|
+
throw await fromFetcherError(axiosError);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
const uploadFile = async (url, payload) => {
|
|
47
|
+
const { formData, onProgress, onComplete, onError } = payload;
|
|
48
|
+
const workspaceHeaders = workspaceUuid
|
|
49
|
+
? { "selected-workspace-uuid": workspaceUuid }
|
|
50
|
+
: {};
|
|
51
|
+
client
|
|
52
|
+
.post(url, formData, {
|
|
53
|
+
headers: {
|
|
54
|
+
"Content-Type": "multipart/form-data",
|
|
55
|
+
authorization: getAccessToken
|
|
56
|
+
? `Bearer ${await getAccessToken()}`
|
|
57
|
+
: undefined,
|
|
58
|
+
...workspaceHeaders,
|
|
59
|
+
},
|
|
60
|
+
onUploadProgress: (data) => {
|
|
61
|
+
onProgress(Math.round((100 * data.loaded) / data.total));
|
|
62
|
+
},
|
|
63
|
+
})
|
|
64
|
+
.then(({ data }) => onComplete({
|
|
65
|
+
s3Filename: data.s3Filename,
|
|
66
|
+
contentType: data.contentType,
|
|
67
|
+
name: data.name,
|
|
68
|
+
}))
|
|
69
|
+
.catch(() => {
|
|
70
|
+
onError();
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
baseUrl,
|
|
75
|
+
uploadFile,
|
|
76
|
+
fetch: generateAxiosFetcher,
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { type AiTypes } from "cargo-domain-types";
|
|
2
|
+
import type { JsonSchema } from "cargo-utils";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
import type { StateCreator } from "zustand";
|
|
5
|
+
import type { BackendToFrontend, DateToString } from "../types.js";
|
|
6
|
+
export declare namespace Ai {
|
|
7
|
+
type Agent = BackendToFrontend<AiTypes.Agent>;
|
|
8
|
+
type AgentIcon = BackendToFrontend<AiTypes.AgentIcon>;
|
|
9
|
+
type AgentDeployment = BackendToFrontend<AiTypes.AgentDeployment>;
|
|
10
|
+
type Template = BackendToFrontend<AiTypes.Template>;
|
|
11
|
+
type TemplateCategory = BackendToFrontend<AiTypes.TemplateCategory>;
|
|
12
|
+
type AgentTemplate = BackendToFrontend<AiTypes.AgentTemplate>;
|
|
13
|
+
type SuggestedAction = BackendToFrontend<AiTypes.SuggestedAction>;
|
|
14
|
+
type Release = BackendToFrontend<AiTypes.Release>;
|
|
15
|
+
type McpServer = BackendToFrontend<AiTypes.McpServer>;
|
|
16
|
+
type McpClient = BackendToFrontend<AiTypes.McpClient>;
|
|
17
|
+
type McpClientAuthentication = BackendToFrontend<AiTypes.McpClientAuthentication>;
|
|
18
|
+
type Tool = BackendToFrontend<AiTypes.Tool>;
|
|
19
|
+
type ToolTemplate = BackendToFrontend<AiTypes.ToolTemplate>;
|
|
20
|
+
type Resource = BackendToFrontend<AiTypes.Resource>;
|
|
21
|
+
type ModelResource = BackendToFrontend<AiTypes.ModelResource>;
|
|
22
|
+
type FileResource = BackendToFrontend<AiTypes.FileResource>;
|
|
23
|
+
type FileOrFolder = BackendToFrontend<AiTypes.FileOrFolder>;
|
|
24
|
+
type ModelResourceTemplate = BackendToFrontend<AiTypes.ModelResourceTemplate>;
|
|
25
|
+
type FileResourceTemplate = BackendToFrontend<AiTypes.FileResourceTemplate>;
|
|
26
|
+
type ResourceTemplate = BackendToFrontend<AiTypes.ResourceTemplate>;
|
|
27
|
+
type Capability = BackendToFrontend<AiTypes.Capability>;
|
|
28
|
+
type Chat = BackendToFrontend<AiTypes.Chat>;
|
|
29
|
+
type ChatTrigger = BackendToFrontend<AiTypes.ChatTrigger>;
|
|
30
|
+
type Message = BackendToFrontend<AiTypes.Message>;
|
|
31
|
+
type EvaluatedTool = BackendToFrontend<AiTypes.EvaluatedTool>;
|
|
32
|
+
type EvaluatedToolInvocationOutput<T> = BackendToFrontend<AiTypes.EvaluatedToolInvocationOutput<T>>;
|
|
33
|
+
type MessageMetadata = BackendToFrontend<AiTypes.MessageMetadata>;
|
|
34
|
+
type Vote = BackendToFrontend<AiTypes.Vote>;
|
|
35
|
+
type Document = BackendToFrontend<AiTypes.Document>;
|
|
36
|
+
type DocumentKind = BackendToFrontend<AiTypes.DocumentKind>;
|
|
37
|
+
type DocumentSuggestion = BackendToFrontend<AiTypes.DocumentSuggestion>;
|
|
38
|
+
type Memory = BackendToFrontend<AiTypes.Memory>;
|
|
39
|
+
type File = BackendToFrontend<AiTypes.File>;
|
|
40
|
+
const agentConfig: {
|
|
41
|
+
jsonSchema: JsonSchema;
|
|
42
|
+
uiSchema: Record<string, unknown>;
|
|
43
|
+
};
|
|
44
|
+
namespace Api {
|
|
45
|
+
type ListTemplatesResult = {
|
|
46
|
+
templates: Template[];
|
|
47
|
+
};
|
|
48
|
+
type GetAgentResult = {
|
|
49
|
+
agent: Agent;
|
|
50
|
+
};
|
|
51
|
+
type CreateAgentPayload = DateToString<{
|
|
52
|
+
name: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
icon: AiTypes.AgentIcon;
|
|
55
|
+
deployments: AiTypes.AgentDeployment[];
|
|
56
|
+
folderUuid?: string;
|
|
57
|
+
}>;
|
|
58
|
+
type CreateAgentResult = {
|
|
59
|
+
agent: Agent;
|
|
60
|
+
};
|
|
61
|
+
const zodCreateAgentErrorReason: z.ZodEnum<{
|
|
62
|
+
folderNotFound: "folderNotFound";
|
|
63
|
+
}>;
|
|
64
|
+
type AllAgentsResult = {
|
|
65
|
+
agents: Agent[];
|
|
66
|
+
};
|
|
67
|
+
type UpdateAgentPayload = DateToString<{
|
|
68
|
+
uuid: string;
|
|
69
|
+
name?: string;
|
|
70
|
+
icon?: AiTypes.AgentIcon;
|
|
71
|
+
description?: string | null;
|
|
72
|
+
deployments?: AiTypes.AgentDeployment[];
|
|
73
|
+
folderUuid?: string | null;
|
|
74
|
+
}>;
|
|
75
|
+
const zodUpdateAgentErrorReason: z.ZodEnum<{
|
|
76
|
+
folderNotFound: "folderNotFound";
|
|
77
|
+
agentNotFound: "agentNotFound";
|
|
78
|
+
}>;
|
|
79
|
+
type UpdateAgentResult = {
|
|
80
|
+
agent: Agent;
|
|
81
|
+
};
|
|
82
|
+
const zodRemoveAgentErrorReason: z.ZodEnum<{
|
|
83
|
+
agentNotFound: "agentNotFound";
|
|
84
|
+
}>;
|
|
85
|
+
type GetReleaseResult = {
|
|
86
|
+
release: Release;
|
|
87
|
+
};
|
|
88
|
+
type ListReleasesPayload = DateToString<{
|
|
89
|
+
agentUuid?: string;
|
|
90
|
+
userUuid?: string;
|
|
91
|
+
statuses?: AiTypes.ReleaseStatus[];
|
|
92
|
+
limit?: number;
|
|
93
|
+
offset?: number;
|
|
94
|
+
}>;
|
|
95
|
+
type ListReleasesResult = {
|
|
96
|
+
releases: Release[];
|
|
97
|
+
};
|
|
98
|
+
type GetDraftReleasePayload = DateToString<{
|
|
99
|
+
agentUuid: string;
|
|
100
|
+
}>;
|
|
101
|
+
type GetDraftReleaseResult = {
|
|
102
|
+
release: Release;
|
|
103
|
+
};
|
|
104
|
+
type UpdateDraftReleasePayload = DateToString<{
|
|
105
|
+
agentUuid: string;
|
|
106
|
+
parentUuid?: string;
|
|
107
|
+
tools?: AiTypes.Tool[];
|
|
108
|
+
mcpClients?: AiTypes.McpClient[];
|
|
109
|
+
resources?: AiTypes.Resource[];
|
|
110
|
+
capabilities?: AiTypes.Capability[];
|
|
111
|
+
suggestedActions?: AiTypes.SuggestedAction[];
|
|
112
|
+
systemPrompt?: string;
|
|
113
|
+
withReasoning?: boolean;
|
|
114
|
+
temperature?: number;
|
|
115
|
+
maxSteps?: number;
|
|
116
|
+
integrationSlug?: string;
|
|
117
|
+
connectorUuid?: string;
|
|
118
|
+
languageModelSlug?: string;
|
|
119
|
+
options?: {
|
|
120
|
+
connectorUuidsByIntegrationSlug?: Record<string, string>;
|
|
121
|
+
modelUuidsByIntegrationSlug?: Record<string, string>;
|
|
122
|
+
};
|
|
123
|
+
}>;
|
|
124
|
+
const zodUpdateDraftReleaseErrorReason: z.ZodEnum<{
|
|
125
|
+
agentNotFound: "agentNotFound";
|
|
126
|
+
draftReleaseNotFound: "draftReleaseNotFound";
|
|
127
|
+
invalidParent: "invalidParent";
|
|
128
|
+
invalidConnector: "invalidConnector";
|
|
129
|
+
failedToReconciliateAgentAiTools: "failedToReconciliateAgentAiTools";
|
|
130
|
+
}>;
|
|
131
|
+
type UpdateDraftReleaseResult = {
|
|
132
|
+
release: Release;
|
|
133
|
+
};
|
|
134
|
+
type DeployDraftReleasePayload = DateToString<{
|
|
135
|
+
agentUuid: string;
|
|
136
|
+
tools: AiTypes.Tool[];
|
|
137
|
+
mcpClients: AiTypes.McpClient[];
|
|
138
|
+
resources: AiTypes.Resource[];
|
|
139
|
+
capabilities: AiTypes.Capability[];
|
|
140
|
+
suggestedActions: AiTypes.SuggestedAction[];
|
|
141
|
+
systemPrompt?: string;
|
|
142
|
+
withReasoning?: boolean;
|
|
143
|
+
temperature?: number;
|
|
144
|
+
maxSteps?: number;
|
|
145
|
+
integrationSlug: string;
|
|
146
|
+
connectorUuid?: string;
|
|
147
|
+
languageModelSlug: string;
|
|
148
|
+
version: string;
|
|
149
|
+
description?: string;
|
|
150
|
+
options?: {
|
|
151
|
+
connectorUuidsByIntegrationSlug?: Record<string, string>;
|
|
152
|
+
modelUuidsByIntegrationSlug?: Record<string, string>;
|
|
153
|
+
};
|
|
154
|
+
}>;
|
|
155
|
+
const zodDeployDraftReleaseErrorReason: z.ZodEnum<{
|
|
156
|
+
agentNotFound: "agentNotFound";
|
|
157
|
+
draftReleaseNotFound: "draftReleaseNotFound";
|
|
158
|
+
failedToReconciliateAgentAiTools: "failedToReconciliateAgentAiTools";
|
|
159
|
+
duplicatedReleaseVersion: "duplicatedReleaseVersion";
|
|
160
|
+
}>;
|
|
161
|
+
type DeployDraftReleaseResult = {
|
|
162
|
+
release: Release;
|
|
163
|
+
};
|
|
164
|
+
type CreateChatPayload = DateToString<{
|
|
165
|
+
name?: string;
|
|
166
|
+
agentUuid?: string;
|
|
167
|
+
releaseUuid?: string;
|
|
168
|
+
trigger: AiTypes.ChatTrigger;
|
|
169
|
+
}>;
|
|
170
|
+
type CreateChatResult = {
|
|
171
|
+
chat: Ai.Chat;
|
|
172
|
+
};
|
|
173
|
+
type GetChatResult = {
|
|
174
|
+
chat: Chat;
|
|
175
|
+
};
|
|
176
|
+
const zodGetChatErrorReason: z.ZodEnum<{
|
|
177
|
+
chatNotFound: "chatNotFound";
|
|
178
|
+
}>;
|
|
179
|
+
type UpdateChatPayload = DateToString<{
|
|
180
|
+
uuid: string;
|
|
181
|
+
name?: string | null;
|
|
182
|
+
}>;
|
|
183
|
+
type UpdateChatResult = {
|
|
184
|
+
chat: Chat;
|
|
185
|
+
};
|
|
186
|
+
const zodUpdateChatErrorReason: z.ZodEnum<{
|
|
187
|
+
chatNotFound: "chatNotFound";
|
|
188
|
+
}>;
|
|
189
|
+
type RemoveChatPayload = DateToString<{
|
|
190
|
+
uuid: string;
|
|
191
|
+
}>;
|
|
192
|
+
type RemoveChatResult = {
|
|
193
|
+
outcome: "removed";
|
|
194
|
+
};
|
|
195
|
+
const zodRemoveChatErrorReason: z.ZodEnum<{
|
|
196
|
+
chatNotFound: "chatNotFound";
|
|
197
|
+
}>;
|
|
198
|
+
type ListChatsPayload = DateToString<{
|
|
199
|
+
agentUuid?: string;
|
|
200
|
+
releaseUuid?: string;
|
|
201
|
+
userUuid?: string;
|
|
202
|
+
triggerType?: AiTypes.ChatTrigger["type"];
|
|
203
|
+
limit?: number;
|
|
204
|
+
offset?: number;
|
|
205
|
+
}>;
|
|
206
|
+
type ListChatsResult = {
|
|
207
|
+
chats: Chat[];
|
|
208
|
+
};
|
|
209
|
+
type ListMessagesPayload = DateToString<{
|
|
210
|
+
chatUuid: string;
|
|
211
|
+
limit?: number;
|
|
212
|
+
offset?: number;
|
|
213
|
+
}>;
|
|
214
|
+
type ListMessagesResult = {
|
|
215
|
+
messages: Message[];
|
|
216
|
+
};
|
|
217
|
+
type GetMessageResult = {
|
|
218
|
+
message: Message;
|
|
219
|
+
};
|
|
220
|
+
const zodGetMessageErrorReason: z.ZodEnum<{
|
|
221
|
+
messageNotFound: "messageNotFound";
|
|
222
|
+
}>;
|
|
223
|
+
const zodRemoveMessageErrorReason: z.ZodEnum<{
|
|
224
|
+
messageNotFound: "messageNotFound";
|
|
225
|
+
messageNotUser: "messageNotUser";
|
|
226
|
+
}>;
|
|
227
|
+
type UpsertVotePayload = DateToString<{
|
|
228
|
+
chatUuid: string;
|
|
229
|
+
messageUuid: string;
|
|
230
|
+
isUpvoted: boolean;
|
|
231
|
+
}>;
|
|
232
|
+
type UpsertVoteResult = {
|
|
233
|
+
vote: Vote;
|
|
234
|
+
};
|
|
235
|
+
type ListVotesPayload = DateToString<{
|
|
236
|
+
chatUuid: string;
|
|
237
|
+
}>;
|
|
238
|
+
type ListVotesResult = {
|
|
239
|
+
votes: Vote[];
|
|
240
|
+
};
|
|
241
|
+
type GetDocumentResult = {
|
|
242
|
+
document: Document;
|
|
243
|
+
};
|
|
244
|
+
type ListDocumentsPayload = DateToString<{
|
|
245
|
+
uuid: string;
|
|
246
|
+
limit?: number;
|
|
247
|
+
offset?: number;
|
|
248
|
+
}>;
|
|
249
|
+
type ListDocumentsResult = {
|
|
250
|
+
documents: Document[];
|
|
251
|
+
};
|
|
252
|
+
type CreateDocumentPayload = DateToString<{
|
|
253
|
+
uuid: string;
|
|
254
|
+
kind: AiTypes.DocumentKind;
|
|
255
|
+
title: string;
|
|
256
|
+
content: string;
|
|
257
|
+
}>;
|
|
258
|
+
type CreateDocumentResult = {
|
|
259
|
+
document: Document;
|
|
260
|
+
};
|
|
261
|
+
type ResetDocumentPayload = DateToString<{
|
|
262
|
+
uuid: string;
|
|
263
|
+
createdAt: Date;
|
|
264
|
+
}>;
|
|
265
|
+
type ResetDocumentResult = {
|
|
266
|
+
document: Document;
|
|
267
|
+
};
|
|
268
|
+
type GetMcpServerResult = {
|
|
269
|
+
mcpServer: McpServer;
|
|
270
|
+
};
|
|
271
|
+
type CreateMcpServerPayload = DateToString<{
|
|
272
|
+
name: string;
|
|
273
|
+
tools?: AiTypes.Tool[];
|
|
274
|
+
}>;
|
|
275
|
+
type CreateMcpServerResult = {
|
|
276
|
+
mcpServer: McpServer;
|
|
277
|
+
};
|
|
278
|
+
type AllMcpServersResult = {
|
|
279
|
+
mcpServers: McpServer[];
|
|
280
|
+
};
|
|
281
|
+
type UpdateMcpServerPayload = DateToString<{
|
|
282
|
+
uuid: string;
|
|
283
|
+
name?: string;
|
|
284
|
+
tools?: AiTypes.Tool[];
|
|
285
|
+
}>;
|
|
286
|
+
const zodUpdateMcpServerErrorReason: z.ZodEnum<{
|
|
287
|
+
mcpServerNotFound: "mcpServerNotFound";
|
|
288
|
+
}>;
|
|
289
|
+
type UpdateMcpServerResult = {
|
|
290
|
+
mcpServer: McpServer;
|
|
291
|
+
};
|
|
292
|
+
type ConnectMcpClientPayload = DateToString<{
|
|
293
|
+
mcpClient: AiTypes.McpClient;
|
|
294
|
+
}>;
|
|
295
|
+
type ConnectMcpClientResult = {
|
|
296
|
+
tools: {
|
|
297
|
+
slug: string;
|
|
298
|
+
description?: string;
|
|
299
|
+
config: {
|
|
300
|
+
jsonSchema: JsonSchema;
|
|
301
|
+
};
|
|
302
|
+
}[];
|
|
303
|
+
};
|
|
304
|
+
const zodRemoveMcpServerErrorReason: z.ZodEnum<{
|
|
305
|
+
mcpServerNotFound: "mcpServerNotFound";
|
|
306
|
+
}>;
|
|
307
|
+
type OptimizePromptPayload = DateToString<{
|
|
308
|
+
prompt: string;
|
|
309
|
+
}>;
|
|
310
|
+
type OptimizePromptResult = {
|
|
311
|
+
prompt: string;
|
|
312
|
+
};
|
|
313
|
+
type EvaluatePromptPayload = DateToString<{
|
|
314
|
+
prompt: string;
|
|
315
|
+
tools: AiTypes.Tool[];
|
|
316
|
+
resources: AiTypes.Resource[];
|
|
317
|
+
capabilities: AiTypes.Capability[];
|
|
318
|
+
}>;
|
|
319
|
+
type EvaluatePromptResult = {
|
|
320
|
+
prompt?: string;
|
|
321
|
+
errorMessage?: string;
|
|
322
|
+
};
|
|
323
|
+
type ListMemoriesPayload = {
|
|
324
|
+
scope: "workspace";
|
|
325
|
+
} | {
|
|
326
|
+
scope: "user";
|
|
327
|
+
} | {
|
|
328
|
+
scope: "agent";
|
|
329
|
+
agentUuid: string;
|
|
330
|
+
};
|
|
331
|
+
type ListMemoriesResult = {
|
|
332
|
+
memories: Memory[];
|
|
333
|
+
};
|
|
334
|
+
type RemoveMemoryPayload = DateToString<{
|
|
335
|
+
mem0Id: string;
|
|
336
|
+
} & ({
|
|
337
|
+
scope: "workspace";
|
|
338
|
+
} | {
|
|
339
|
+
scope: "user";
|
|
340
|
+
} | {
|
|
341
|
+
scope: "agent";
|
|
342
|
+
agentUuid: string;
|
|
343
|
+
})>;
|
|
344
|
+
const zodRemoveMemoryErrorReason: z.ZodEnum<{
|
|
345
|
+
memoryNotFound: "memoryNotFound";
|
|
346
|
+
}>;
|
|
347
|
+
type UpdateMemoryPayload = DateToString<{
|
|
348
|
+
mem0Id: string;
|
|
349
|
+
content: string;
|
|
350
|
+
} & ({
|
|
351
|
+
scope: "workspace";
|
|
352
|
+
} | {
|
|
353
|
+
scope: "user";
|
|
354
|
+
} | {
|
|
355
|
+
scope: "agent";
|
|
356
|
+
agentUuid: string;
|
|
357
|
+
})>;
|
|
358
|
+
const zodUpdateMemoryErrorReason: z.ZodEnum<{
|
|
359
|
+
memoryNotFound: "memoryNotFound";
|
|
360
|
+
}>;
|
|
361
|
+
type GetFileResult = {
|
|
362
|
+
file: File;
|
|
363
|
+
};
|
|
364
|
+
type AllFilesResult = {
|
|
365
|
+
files: File[];
|
|
366
|
+
};
|
|
367
|
+
type UpdateFilePayload = DateToString<{
|
|
368
|
+
uuid: string;
|
|
369
|
+
name?: string;
|
|
370
|
+
folderUuid?: string | null;
|
|
371
|
+
}>;
|
|
372
|
+
type UpdateFileResult = {
|
|
373
|
+
file: File;
|
|
374
|
+
};
|
|
375
|
+
type UploadFilePayload = {
|
|
376
|
+
file: any;
|
|
377
|
+
folderUuid?: string;
|
|
378
|
+
onProgress: (progressPercentage: number) => void;
|
|
379
|
+
onComplete: (payload: {
|
|
380
|
+
s3Filename: string;
|
|
381
|
+
contentType: string;
|
|
382
|
+
name: string;
|
|
383
|
+
}) => void;
|
|
384
|
+
onError: () => void;
|
|
385
|
+
};
|
|
386
|
+
const zodUpdateFileErrorReason: z.ZodEnum<{
|
|
387
|
+
folderNotFound: "folderNotFound";
|
|
388
|
+
fileNotFound: "fileNotFound";
|
|
389
|
+
}>;
|
|
390
|
+
const zodRemoveFileErrorReason: z.ZodEnum<{
|
|
391
|
+
fileNotFound: "fileNotFound";
|
|
392
|
+
}>;
|
|
393
|
+
type GenerateSuggestedActionsPayload = DateToString<{
|
|
394
|
+
messageUuid?: string;
|
|
395
|
+
systemPrompt?: string;
|
|
396
|
+
contextPrompt?: string;
|
|
397
|
+
agentUuid?: string;
|
|
398
|
+
tools?: AiTypes.Tool[];
|
|
399
|
+
resources?: AiTypes.Resource[];
|
|
400
|
+
capabilities?: AiTypes.Capability[];
|
|
401
|
+
cacheKey?: string;
|
|
402
|
+
}>;
|
|
403
|
+
type GenerateSuggestedActionsResult = {
|
|
404
|
+
suggestedActions: AiTypes.SuggestedAction[];
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
const templateKeys: {
|
|
408
|
+
all: () => readonly ["templates"];
|
|
409
|
+
};
|
|
410
|
+
const mcpServerKeys: {
|
|
411
|
+
all: (workspaceUuid: string) => readonly ["batches", string];
|
|
412
|
+
};
|
|
413
|
+
const agentKeys: {
|
|
414
|
+
all: (workspaceUuid: string) => readonly ["agents", string];
|
|
415
|
+
};
|
|
416
|
+
const chatKeys: {
|
|
417
|
+
all: (workspaceUuid: string) => readonly ["chats", string];
|
|
418
|
+
get: (workspaceUuid: string, uuid: string) => readonly ["chats", string, string];
|
|
419
|
+
list: (workspaceUuid: string, payload: Api.ListChatsPayload) => readonly ["chats", string, {
|
|
420
|
+
agentUuid?: string | undefined;
|
|
421
|
+
releaseUuid?: string | undefined;
|
|
422
|
+
userUuid?: string | undefined;
|
|
423
|
+
triggerType?: "draft" | "chat" | "connector" | "web_extension" | "app" | "workflow" | undefined;
|
|
424
|
+
limit?: number | undefined;
|
|
425
|
+
offset?: number | undefined;
|
|
426
|
+
}];
|
|
427
|
+
};
|
|
428
|
+
const messageKeys: {
|
|
429
|
+
all: (workspaceUuid: string) => readonly ["messages", string];
|
|
430
|
+
get: (workspaceUuid: string, uuid: string) => readonly ["messages", string, string];
|
|
431
|
+
list: (workspaceUuid: string, payload: Api.ListMessagesPayload) => readonly ["messages", string, {
|
|
432
|
+
chatUuid: string;
|
|
433
|
+
limit?: number | undefined;
|
|
434
|
+
offset?: number | undefined;
|
|
435
|
+
}];
|
|
436
|
+
};
|
|
437
|
+
const memoryKeys: {
|
|
438
|
+
all: (workspaceUuid: string) => readonly ["memories", string];
|
|
439
|
+
list: (workspaceUuid: string, payload: Api.ListMemoriesPayload) => readonly ["memories", string, Api.ListMemoriesPayload];
|
|
440
|
+
};
|
|
441
|
+
const voteKeys: {
|
|
442
|
+
all: (workspaceUuid: string) => readonly ["votes", string];
|
|
443
|
+
list: (workspaceUuid: string, payload: Api.ListVotesPayload) => readonly ["votes", string, {
|
|
444
|
+
chatUuid: string;
|
|
445
|
+
}];
|
|
446
|
+
};
|
|
447
|
+
const releaseKeys: {
|
|
448
|
+
all: (workspaceUuid: string) => readonly ["releases", string];
|
|
449
|
+
get: (workspaceUuid: string, uuid: string) => readonly ["releases", string, string];
|
|
450
|
+
getDraft: (workspaceUuid: string, workflowUuid: string) => readonly ["releases", string, string];
|
|
451
|
+
list: (workspaceUuid: string, payload: Api.ListReleasesPayload) => readonly ["releases", string, {
|
|
452
|
+
agentUuid?: string | undefined;
|
|
453
|
+
userUuid?: string | undefined;
|
|
454
|
+
statuses?: AiTypes.ReleaseStatus[] | undefined;
|
|
455
|
+
limit?: number | undefined;
|
|
456
|
+
offset?: number | undefined;
|
|
457
|
+
}];
|
|
458
|
+
};
|
|
459
|
+
const documentKeys: {
|
|
460
|
+
all: (workspaceUuid: string) => readonly ["documents", string];
|
|
461
|
+
get: (workspaceUuid: string, uuid: string) => readonly ["documents", string, string];
|
|
462
|
+
list: (workspaceUuid: string, payload: Api.ListDocumentsPayload) => readonly ["documents", string, {
|
|
463
|
+
uuid: string;
|
|
464
|
+
limit?: number | undefined;
|
|
465
|
+
offset?: number | undefined;
|
|
466
|
+
}];
|
|
467
|
+
};
|
|
468
|
+
const fileKeys: {
|
|
469
|
+
all: (workspaceUuid: string) => readonly ["files", string];
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
export interface AiSlice {
|
|
473
|
+
mcpServers: Ai.McpServer[];
|
|
474
|
+
setMcpServers: (workflows: Ai.McpServer[]) => void;
|
|
475
|
+
agents: Ai.Agent[];
|
|
476
|
+
setAgents: (agents: Ai.Agent[]) => void;
|
|
477
|
+
files: Ai.File[];
|
|
478
|
+
setFiles: (files: Ai.File[]) => void;
|
|
479
|
+
}
|
|
480
|
+
export declare const createAiSlice: StateCreator<AiSlice, [], [], AiSlice>;
|
|
481
|
+
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/store/ai.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAW,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGnE,yBAAiB,EAAE,CAAC;IAClB,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACrD,KAAY,SAAS,GAAG,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC7D,KAAY,eAAe,GAAG,iBAAiB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACzE,KAAY,QAAQ,GAAG,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3D,KAAY,gBAAgB,GAAG,iBAAiB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC3E,KAAY,aAAa,GAAG,iBAAiB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACrE,KAAY,eAAe,GAAG,iBAAiB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;I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