@applica-software-guru/persona-sdk 0.0.1-preview6 → 0.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/.eslintrc.cjs +6 -5
- package/.nvmrc +1 -1
- package/.prettierignore +3 -5
- package/.prettierrc +3 -5
- package/README.md +247 -2
- package/bitbucket-pipelines.yml +2 -12
- package/dist/bundle.cjs.js +1 -14
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.es.js +472 -699
- package/dist/bundle.es.js.map +1 -1
- package/dist/index.d.ts +1089 -5
- package/package.json +9 -39
- package/src/agents/agents-api.ts +54 -0
- package/src/agents/types.ts +346 -0
- package/src/auth/api-key-auth.ts +13 -0
- package/src/auth/authentication-provider.ts +4 -0
- package/src/auth/bearer-token-auth.ts +13 -0
- package/src/auth/index.ts +3 -0
- package/src/credentials/credentials-api.ts +40 -0
- package/src/credentials/types.ts +67 -0
- package/src/exceptions.ts +10 -0
- package/src/features/feature-templates-api.ts +41 -0
- package/src/features/features-api.ts +16 -0
- package/src/features/types.ts +25 -0
- package/src/http-api.ts +95 -0
- package/src/index.ts +153 -4
- package/src/knowledges/knowledge-base-documents-api.ts +38 -0
- package/src/knowledges/knowledge-bases-api.ts +47 -0
- package/src/knowledges/types.ts +70 -0
- package/src/missions/missions-api.ts +60 -0
- package/src/missions/types.ts +25 -0
- package/src/paginated.ts +6 -0
- package/src/persona-sdk.ts +81 -0
- package/src/projects/projects-api.ts +55 -0
- package/src/projects/types.ts +42 -0
- package/src/revisions/types.ts +9 -0
- package/src/service-prices/service-prices-api.ts +32 -0
- package/src/service-prices/types.ts +8 -0
- package/src/sessions/sessions-api.ts +55 -0
- package/src/sessions/types.ts +129 -0
- package/src/triggers/trigger-executions-api.ts +27 -0
- package/src/triggers/triggers-api.ts +37 -0
- package/src/triggers/types.ts +50 -0
- package/src/workflows/types.ts +150 -0
- package/src/workflows/workflow-executions-api.ts +27 -0
- package/src/workflows/workflows-api.ts +51 -0
- package/tsconfig.json +20 -28
- package/vite.config.ts +20 -62
- package/dist/bundle.iife.js +0 -15
- package/dist/bundle.iife.js.map +0 -1
- package/dist/bundle.umd.js +0 -15
- package/dist/bundle.umd.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/logging.d.ts +0 -18
- package/dist/logging.d.ts.map +0 -1
- package/dist/messages.d.ts +0 -7
- package/dist/messages.d.ts.map +0 -1
- package/dist/protocol/base.d.ts +0 -23
- package/dist/protocol/base.d.ts.map +0 -1
- package/dist/protocol/index.d.ts +0 -5
- package/dist/protocol/index.d.ts.map +0 -1
- package/dist/protocol/rest.d.ts +0 -22
- package/dist/protocol/rest.d.ts.map +0 -1
- package/dist/protocol/webrtc.d.ts +0 -56
- package/dist/protocol/webrtc.d.ts.map +0 -1
- package/dist/protocol/websocket.d.ts +0 -22
- package/dist/protocol/websocket.d.ts.map +0 -1
- package/dist/runtime.d.ts +0 -21
- package/dist/runtime.d.ts.map +0 -1
- package/dist/types.d.ts +0 -79
- package/dist/types.d.ts.map +0 -1
- package/jsconfig.node.json +0 -10
- package/playground/index.html +0 -14
- package/playground/src/app.tsx +0 -10
- package/playground/src/chat.tsx +0 -52
- package/playground/src/components/assistant-ui/assistant-modal.tsx +0 -57
- package/playground/src/components/assistant-ui/markdown-text.tsx +0 -119
- package/playground/src/components/assistant-ui/thread-list.tsx +0 -62
- package/playground/src/components/assistant-ui/thread.tsx +0 -249
- package/playground/src/components/assistant-ui/tool-fallback.tsx +0 -33
- package/playground/src/components/assistant-ui/tooltip-icon-button.tsx +0 -38
- package/playground/src/components/ui/avatar.tsx +0 -35
- package/playground/src/components/ui/button.tsx +0 -43
- package/playground/src/components/ui/tooltip.tsx +0 -32
- package/playground/src/lib/utils.ts +0 -6
- package/playground/src/main.tsx +0 -10
- package/playground/src/styles.css +0 -1
- package/playground/src/vite-env.d.ts +0 -1
- package/preview.sh +0 -13
- package/src/logging.ts +0 -34
- package/src/messages.ts +0 -79
- package/src/protocol/base.ts +0 -55
- package/src/protocol/index.ts +0 -4
- package/src/protocol/rest.ts +0 -66
- package/src/protocol/webrtc.ts +0 -339
- package/src/protocol/websocket.ts +0 -108
- package/src/runtime.tsx +0 -217
- package/src/types.ts +0 -98
- package/tsconfig.node.json +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,1089 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare interface AddProjectSubscriptionCreditsRequest {
|
|
2
|
+
credits: number;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export declare interface Agent {
|
|
6
|
+
id?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
apiKey?: string;
|
|
9
|
+
code?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
type?: AgentType;
|
|
13
|
+
synthesizer?: SynthesizerConfiguration;
|
|
14
|
+
transcriber?: TranscriberConfiguration;
|
|
15
|
+
model?: ModelConfiguration;
|
|
16
|
+
systemInstructions?: string;
|
|
17
|
+
variables?: Variable[];
|
|
18
|
+
enabledProtocols?: AgentProtocol[];
|
|
19
|
+
twilio?: TwilioConfiguration;
|
|
20
|
+
languageCode?: LanguageCode;
|
|
21
|
+
initialMessage?: string;
|
|
22
|
+
knowledge?: KnowledgeConfiguration;
|
|
23
|
+
wakeup?: WakeupConfiguration;
|
|
24
|
+
telegram?: TelegramConfiguration;
|
|
25
|
+
whatsapp?: WhatsAppConfiguration;
|
|
26
|
+
collaboration?: CollaborationConfiguration;
|
|
27
|
+
orchestration?: OrchestrationConfiguration;
|
|
28
|
+
network?: NetworkConfiguration;
|
|
29
|
+
features?: Feature[];
|
|
30
|
+
toolkit?: ToolkitConfiguration;
|
|
31
|
+
shortTermMemory?: StmConfiguration;
|
|
32
|
+
responseSchema?: Record<string, unknown>;
|
|
33
|
+
verboseErrors?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export declare interface AgentContext {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare interface AgentCreateRequest {
|
|
40
|
+
projectId?: string;
|
|
41
|
+
code?: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
type?: AgentType;
|
|
45
|
+
synthesizer?: SynthesizerConfiguration;
|
|
46
|
+
transcriber?: TranscriberConfiguration;
|
|
47
|
+
model?: ModelConfiguration;
|
|
48
|
+
systemInstructions?: string;
|
|
49
|
+
variables?: Variable[];
|
|
50
|
+
enabledProtocols?: AgentProtocol[];
|
|
51
|
+
twilio?: TwilioConfiguration;
|
|
52
|
+
languageCode?: LanguageCode;
|
|
53
|
+
initialMessage?: string;
|
|
54
|
+
knowledge?: KnowledgeConfiguration;
|
|
55
|
+
wakeup?: WakeupConfiguration;
|
|
56
|
+
telegram?: TelegramConfiguration;
|
|
57
|
+
whatsapp?: WhatsAppConfiguration;
|
|
58
|
+
collaboration?: CollaborationConfiguration;
|
|
59
|
+
orchestration?: OrchestrationConfiguration;
|
|
60
|
+
network?: NetworkConfiguration;
|
|
61
|
+
features?: Feature[];
|
|
62
|
+
toolkit?: ToolkitConfiguration;
|
|
63
|
+
shortTermMemory?: StmConfiguration;
|
|
64
|
+
responseSchema?: Record<string, unknown>;
|
|
65
|
+
verboseErrors?: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare type AgentProtocol = 'webrtc' | 'twilio' | 'rest' | 'websocket' | 'telegram';
|
|
69
|
+
|
|
70
|
+
export declare interface AgentResponse {
|
|
71
|
+
messages?: Message[];
|
|
72
|
+
transfer?: TransferAction;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export declare class AgentsApi extends HttpApi {
|
|
76
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
77
|
+
list(keyword?: string | null, page?: number, size?: number): Promise<Paginated<Agent>>;
|
|
78
|
+
get(agentId: string): Promise<Agent>;
|
|
79
|
+
create(request: AgentCreateRequest): Promise<Agent>;
|
|
80
|
+
update(request: AgentUpdateRequest): Promise<Agent>;
|
|
81
|
+
remove(agentId: string): Promise<void>;
|
|
82
|
+
getSynthesizerSupportedVoices(synthesizerName: string): Promise<SynthesizerVoice[]>;
|
|
83
|
+
listRevisions(agentId: string): Promise<Revision[]>;
|
|
84
|
+
getRevision(agentId: string, revisionId: string): Promise<Revision>;
|
|
85
|
+
rollback(agentId: string, revisionId: string): Promise<Agent>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare type AgentType = 'agent';
|
|
89
|
+
|
|
90
|
+
export declare interface AgentUpdateRequest extends Agent {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export declare interface AgentValue {
|
|
94
|
+
agentId?: string;
|
|
95
|
+
initialContext?: Record<string, unknown>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export declare class ApiException extends Error {
|
|
99
|
+
readonly statusCode: number;
|
|
100
|
+
readonly body: string;
|
|
101
|
+
constructor(statusCode: number, body: string);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export declare class ApiKeyAuthenticationProvider implements AuthenticationProvider {
|
|
105
|
+
private readonly apiKey;
|
|
106
|
+
constructor(apiKey: string);
|
|
107
|
+
applyHeaders(headers: Headers): void;
|
|
108
|
+
getCredentials(): string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare interface AuthenticationProvider {
|
|
112
|
+
applyHeaders(headers: Headers): void;
|
|
113
|
+
getCredentials(): string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare interface AuthorizeRequest {
|
|
117
|
+
name?: string;
|
|
118
|
+
provider?: string;
|
|
119
|
+
clientId?: string;
|
|
120
|
+
clientSecret?: string;
|
|
121
|
+
scope?: string;
|
|
122
|
+
apiKey?: string;
|
|
123
|
+
apiSecret?: string;
|
|
124
|
+
token?: string;
|
|
125
|
+
successUrl?: string;
|
|
126
|
+
server?: string;
|
|
127
|
+
port?: number;
|
|
128
|
+
useSsl?: boolean;
|
|
129
|
+
username?: string;
|
|
130
|
+
password?: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export declare interface AuthorizeResponse {
|
|
134
|
+
credentials?: Credentials;
|
|
135
|
+
state?: OAuth2State;
|
|
136
|
+
redirectUrl?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare class BearerTokenAuthenticationProvider implements AuthenticationProvider {
|
|
140
|
+
private readonly token;
|
|
141
|
+
constructor(token: string);
|
|
142
|
+
applyHeaders(headers: Headers): void;
|
|
143
|
+
getCredentials(): string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export declare interface ChangeProjectSubscriptionPlanRequest {
|
|
147
|
+
toPlanType: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export declare interface ChunkResult {
|
|
151
|
+
id?: string;
|
|
152
|
+
text?: string;
|
|
153
|
+
score?: number;
|
|
154
|
+
metadata?: Record<string, unknown>;
|
|
155
|
+
documentId?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare interface CollaborationConfiguration {
|
|
159
|
+
enabled?: boolean;
|
|
160
|
+
collaborators?: Collaborator[];
|
|
161
|
+
mode?: CollaborationMode;
|
|
162
|
+
maxNumberOfIterations?: number;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export declare type CollaborationMode = 'delegate_and_return' | 'persistent_transfer' | 'consult_then_respond';
|
|
166
|
+
|
|
167
|
+
export declare interface Collaborator {
|
|
168
|
+
name?: string;
|
|
169
|
+
agent?: string;
|
|
170
|
+
scope?: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export declare interface CommittedUsage {
|
|
174
|
+
id?: string;
|
|
175
|
+
committedAt?: string;
|
|
176
|
+
projectId?: string;
|
|
177
|
+
sessionId?: string;
|
|
178
|
+
creditsUsed?: number;
|
|
179
|
+
totalCost?: number;
|
|
180
|
+
totalPrice?: number;
|
|
181
|
+
userId?: string;
|
|
182
|
+
details?: UsageCost[];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export declare interface Connection {
|
|
186
|
+
id?: string;
|
|
187
|
+
sourceId?: string;
|
|
188
|
+
targetId?: string;
|
|
189
|
+
sourceHandle?: string;
|
|
190
|
+
targetHandle?: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export declare interface ContentItem {
|
|
194
|
+
text?: string | Ref;
|
|
195
|
+
file?: ContentItemFile | Ref;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export declare interface ContentItemFile {
|
|
199
|
+
content?: string;
|
|
200
|
+
contentType?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export declare interface ContentValue {
|
|
204
|
+
content?: ContentItem[];
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export declare interface Credentials {
|
|
208
|
+
id?: string;
|
|
209
|
+
name?: string;
|
|
210
|
+
projectId?: string;
|
|
211
|
+
provider?: string;
|
|
212
|
+
obtainedAt?: string;
|
|
213
|
+
validUntil?: string;
|
|
214
|
+
data?: unknown;
|
|
215
|
+
clientId?: string;
|
|
216
|
+
clientSecret?: string;
|
|
217
|
+
apiKey?: string;
|
|
218
|
+
apiSecret?: string;
|
|
219
|
+
token?: string;
|
|
220
|
+
successUrl?: string;
|
|
221
|
+
active?: boolean;
|
|
222
|
+
server?: string;
|
|
223
|
+
port?: number;
|
|
224
|
+
useSsl?: boolean;
|
|
225
|
+
username?: string;
|
|
226
|
+
password?: string;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export declare class CredentialsApi extends HttpApi {
|
|
230
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
231
|
+
authorize(provider: string, request: AuthorizeRequest): Promise<AuthorizeResponse>;
|
|
232
|
+
handleOAuth2Callback(provider: string, code: string, state: string, scope?: string): Promise<OAuth2CallbackResponse>;
|
|
233
|
+
list(): Promise<Credentials[]>;
|
|
234
|
+
getByProvider(provider: string): Promise<Credentials[]>;
|
|
235
|
+
getById(credentialsId: string): Promise<Credentials>;
|
|
236
|
+
remove(credentialsId: string): Promise<void>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export declare type DocumentExtractorName = 'fitz' | 'document-ai' | 'gemini' | 'markdown';
|
|
240
|
+
|
|
241
|
+
export declare type EmbeddingModelName = 'text-multilingual-embedding-002' | 'gemini-embedding-001';
|
|
242
|
+
|
|
243
|
+
export declare interface ExecuteRequest {
|
|
244
|
+
userId?: string;
|
|
245
|
+
initialData?: Record<string, unknown>;
|
|
246
|
+
callbackUrl?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare interface Execution {
|
|
250
|
+
id?: string;
|
|
251
|
+
workflowId?: string;
|
|
252
|
+
status?: string;
|
|
253
|
+
userId?: string;
|
|
254
|
+
steps?: Step[];
|
|
255
|
+
startedAt?: string;
|
|
256
|
+
endedAt?: string;
|
|
257
|
+
output?: Record<string, unknown>;
|
|
258
|
+
error?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export declare type ExecutionStatus = 'running' | 'completed' | 'failed' | 'cancelled';
|
|
262
|
+
|
|
263
|
+
export declare interface Feature {
|
|
264
|
+
id?: string;
|
|
265
|
+
templateId?: string;
|
|
266
|
+
credentialsId?: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export declare type FeatureConfiguration = McpServerConfiguration | FlagConfiguration | SkillConfiguration;
|
|
270
|
+
|
|
271
|
+
export declare interface FeatureCredentialsConfiguration {
|
|
272
|
+
requireCredentials?: boolean;
|
|
273
|
+
credentialsType?: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export declare class FeaturesApi {
|
|
277
|
+
private readonly baseUrl;
|
|
278
|
+
private readonly auth;
|
|
279
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
280
|
+
templates(): FeatureTemplatesApi;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export declare interface FeatureTemplate {
|
|
284
|
+
id?: string;
|
|
285
|
+
projectId?: string;
|
|
286
|
+
type?: FeatureType;
|
|
287
|
+
name?: string;
|
|
288
|
+
description?: string;
|
|
289
|
+
logoUrl?: string;
|
|
290
|
+
configuration?: FeatureConfiguration;
|
|
291
|
+
credentialsConfiguration?: FeatureCredentialsConfiguration;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export declare class FeatureTemplatesApi extends HttpApi {
|
|
295
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
296
|
+
list(keyword?: string | null, page?: number, size?: number): Promise<Paginated<FeatureTemplate>>;
|
|
297
|
+
get(templateId: string): Promise<FeatureTemplate>;
|
|
298
|
+
create(template: FeatureTemplate): Promise<FeatureTemplate>;
|
|
299
|
+
update(templateId: string, template: FeatureTemplate): Promise<FeatureTemplate>;
|
|
300
|
+
patch(templateId: string, template: FeatureTemplate): Promise<FeatureTemplate>;
|
|
301
|
+
remove(templateId: string): Promise<void>;
|
|
302
|
+
getMcpAvailableTools(configuration: McpServerConfiguration): Promise<McpToolsResponse>;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export declare type FeatureType = 'mcp' | 'flag' | 'skill';
|
|
306
|
+
|
|
307
|
+
export declare interface FlagConfiguration {
|
|
308
|
+
type?: string;
|
|
309
|
+
flag?: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export declare interface FunctionCall {
|
|
313
|
+
name?: string;
|
|
314
|
+
args?: Record<string, unknown>;
|
|
315
|
+
id?: string;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export declare interface FunctionResponse {
|
|
319
|
+
name?: string;
|
|
320
|
+
result?: Record<string, unknown>;
|
|
321
|
+
functionCallId?: string;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export declare interface GenerationRequest {
|
|
325
|
+
agentId?: string;
|
|
326
|
+
userMessage?: unknown;
|
|
327
|
+
initialContext?: AgentContext;
|
|
328
|
+
responseSchema?: Record<string, unknown>;
|
|
329
|
+
parentSessionId?: string;
|
|
330
|
+
userId?: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export declare interface GenerationResponse {
|
|
334
|
+
json?: unknown;
|
|
335
|
+
response?: AgentResponse;
|
|
336
|
+
sessionId?: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export declare interface GmailTriggerSourceConfiguration {
|
|
340
|
+
event?: string;
|
|
341
|
+
query?: string;
|
|
342
|
+
credentialsId?: string;
|
|
343
|
+
userEmail?: string;
|
|
344
|
+
watchExpiration?: number;
|
|
345
|
+
lastHistoryId?: number;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export declare interface Handle {
|
|
349
|
+
name?: string;
|
|
350
|
+
description?: string;
|
|
351
|
+
type?: string;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
declare abstract class HttpApi {
|
|
355
|
+
private readonly baseUrl;
|
|
356
|
+
private readonly authProvider;
|
|
357
|
+
constructor(baseUrl: string, apiKey: string | AuthenticationProvider);
|
|
358
|
+
protected getBaseUrl(): string;
|
|
359
|
+
protected getAuthProvider(): AuthenticationProvider;
|
|
360
|
+
private buildHeaders;
|
|
361
|
+
private buildUrl;
|
|
362
|
+
private handleResponse;
|
|
363
|
+
protected httpGet<T>(path: string, params?: Record<string, unknown>): Promise<T>;
|
|
364
|
+
protected httpPost<T>(path: string, body?: unknown): Promise<T>;
|
|
365
|
+
protected httpPut<T>(path: string, body: unknown): Promise<T>;
|
|
366
|
+
protected httpPatch<T>(path: string, body: unknown): Promise<T>;
|
|
367
|
+
protected httpDelete(path: string): Promise<void>;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export declare interface HttpTransport {
|
|
371
|
+
url?: string;
|
|
372
|
+
enablePersonaAuth?: boolean;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
declare interface Image_2 {
|
|
376
|
+
content?: string;
|
|
377
|
+
contentType?: string;
|
|
378
|
+
}
|
|
379
|
+
export { Image_2 as Image }
|
|
380
|
+
|
|
381
|
+
export declare interface ImapTriggerSourceConfiguration {
|
|
382
|
+
event?: string;
|
|
383
|
+
credentialsId?: string;
|
|
384
|
+
mailbox?: string;
|
|
385
|
+
searchCriteria?: string;
|
|
386
|
+
processAttachments?: boolean;
|
|
387
|
+
allowedMimeTypes?: string[];
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export declare interface KnowledgeBase {
|
|
391
|
+
id?: string;
|
|
392
|
+
projectId?: string;
|
|
393
|
+
name?: string;
|
|
394
|
+
description?: string;
|
|
395
|
+
quality?: KnowledgeBaseQuality;
|
|
396
|
+
chunkSize?: KnowledgeBaseChunkSize;
|
|
397
|
+
embeddingModel?: EmbeddingModelName;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export declare type KnowledgeBaseChunkSize = 'small' | 'medium' | 'large';
|
|
401
|
+
|
|
402
|
+
export declare interface KnowledgeBaseCreateRequest {
|
|
403
|
+
name?: string;
|
|
404
|
+
description?: string;
|
|
405
|
+
quality?: KnowledgeBaseQuality;
|
|
406
|
+
chunkSize?: KnowledgeBaseChunkSize;
|
|
407
|
+
embeddingModel?: EmbeddingModelName;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export declare interface KnowledgeBaseDocument {
|
|
411
|
+
id?: string;
|
|
412
|
+
knowledgeBaseId?: string;
|
|
413
|
+
path?: string;
|
|
414
|
+
name?: string;
|
|
415
|
+
size?: number;
|
|
416
|
+
contentType?: string;
|
|
417
|
+
status?: KnowledgeBaseDocumentStatus;
|
|
418
|
+
progress?: number;
|
|
419
|
+
extractor?: DocumentExtractorName;
|
|
420
|
+
error?: string;
|
|
421
|
+
metadata?: Record<string, unknown>;
|
|
422
|
+
totalPages?: number;
|
|
423
|
+
callbackUrl?: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export declare class KnowledgeBaseDocumentsApi extends HttpApi {
|
|
427
|
+
private readonly knowledgeBaseId;
|
|
428
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider, knowledgeBaseId: string);
|
|
429
|
+
list(keyword?: string | null, page?: number, size?: number): Promise<Paginated<KnowledgeBaseDocument>>;
|
|
430
|
+
upload(request: KnowledgeBaseDocumentUploadRequest): Promise<KnowledgeBaseDocument>;
|
|
431
|
+
get(documentId: string): Promise<KnowledgeBaseDocument>;
|
|
432
|
+
reprocess(documentId: string): Promise<KnowledgeBaseDocument>;
|
|
433
|
+
remove(documentId: string): Promise<void>;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export declare type KnowledgeBaseDocumentStatus = 'pending' | 'processing' | 'completed' | 'failed';
|
|
437
|
+
|
|
438
|
+
export declare interface KnowledgeBaseDocumentUploadRequest {
|
|
439
|
+
uri?: string;
|
|
440
|
+
base64?: string;
|
|
441
|
+
name?: string;
|
|
442
|
+
extractor?: DocumentExtractorName;
|
|
443
|
+
callbackUrl?: string;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export declare type KnowledgeBaseQuality = 'extremely_high' | 'very_high' | 'high' | 'medium' | 'low';
|
|
447
|
+
|
|
448
|
+
export declare class KnowledgeBasesApi extends HttpApi {
|
|
449
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
450
|
+
list(keyword?: string | null, page?: number, size?: number): Promise<Paginated<KnowledgeBase>>;
|
|
451
|
+
get(id: string): Promise<KnowledgeBase>;
|
|
452
|
+
create(request: KnowledgeBaseCreateRequest): Promise<KnowledgeBase>;
|
|
453
|
+
update(request: KnowledgeBaseUpdateRequest): Promise<KnowledgeBase>;
|
|
454
|
+
remove(id: string): Promise<void>;
|
|
455
|
+
documents(knowledgeBaseId: string): KnowledgeBaseDocumentsApi;
|
|
456
|
+
searchChunks(id: string, request: SearchChunksRequest): Promise<ChunkResult[]>;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export declare interface KnowledgeBaseUpdateRequest {
|
|
460
|
+
id?: string;
|
|
461
|
+
name?: string;
|
|
462
|
+
description?: string;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export declare interface KnowledgeConfiguration {
|
|
466
|
+
enabled?: boolean;
|
|
467
|
+
knowledgeType?: KnowledgeType;
|
|
468
|
+
namespace?: string[];
|
|
469
|
+
numberOfEntries?: number;
|
|
470
|
+
args?: Record<string, unknown>;
|
|
471
|
+
knowledgeBaseId?: string;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export declare type KnowledgeType = 'multi_hop' | 'simple';
|
|
475
|
+
|
|
476
|
+
export declare type LanguageCode = 'en-US' | 'it-IT' | 'es-ES' | 'fr-FR' | 'de-DE' | 'pt-BR';
|
|
477
|
+
|
|
478
|
+
export declare interface McpServerConfiguration {
|
|
479
|
+
type?: string;
|
|
480
|
+
name?: string;
|
|
481
|
+
transport?: Transport;
|
|
482
|
+
enabledTools?: string[];
|
|
483
|
+
disabledTools?: string[];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export declare interface McpToolsResponse {
|
|
487
|
+
tools?: ToolDefinition[];
|
|
488
|
+
error?: string;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export declare interface Message {
|
|
492
|
+
id?: string;
|
|
493
|
+
sessionId?: string;
|
|
494
|
+
text?: string;
|
|
495
|
+
image?: Image_2;
|
|
496
|
+
file?: SessionFile;
|
|
497
|
+
role?: string;
|
|
498
|
+
timestamp?: number;
|
|
499
|
+
createdAt?: string;
|
|
500
|
+
functionCalls?: FunctionCall[];
|
|
501
|
+
functionResponse?: FunctionResponse;
|
|
502
|
+
finishReason?: string;
|
|
503
|
+
sources?: Source[];
|
|
504
|
+
task?: Record<string, unknown>;
|
|
505
|
+
sender?: string;
|
|
506
|
+
thought?: boolean;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export declare interface Mission {
|
|
510
|
+
id?: string;
|
|
511
|
+
projectId?: string;
|
|
512
|
+
name?: string;
|
|
513
|
+
goal?: string;
|
|
514
|
+
status?: MissionStatus;
|
|
515
|
+
plannerAgentId?: string;
|
|
516
|
+
workerAgents?: Record<string, unknown>[];
|
|
517
|
+
steps?: Record<string, unknown>[];
|
|
518
|
+
currentStepId?: string;
|
|
519
|
+
version?: number;
|
|
520
|
+
userInstructions?: string[];
|
|
521
|
+
createdAt?: string;
|
|
522
|
+
updatedAt?: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export declare class MissionsApi extends HttpApi {
|
|
526
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
527
|
+
list(projectId?: string | null, status?: string | null, page?: number, size?: number): Promise<Mission[]>;
|
|
528
|
+
get(missionId: string): Promise<Mission>;
|
|
529
|
+
create(mission: Mission): Promise<Mission>;
|
|
530
|
+
update(missionId: string, mission: Mission): Promise<Mission>;
|
|
531
|
+
remove(missionId: string): Promise<void>;
|
|
532
|
+
generate(missionId: string): Promise<Mission>;
|
|
533
|
+
execute(missionId: string): Promise<Mission>;
|
|
534
|
+
retry(missionId: string): Promise<Mission>;
|
|
535
|
+
replan(missionId: string): Promise<Mission>;
|
|
536
|
+
sendInstruction(missionId: string, instruction: string): Promise<Mission>;
|
|
537
|
+
stop(missionId: string): Promise<Mission>;
|
|
538
|
+
resume(missionId: string): Promise<Mission>;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export declare type MissionStatus = 'draft' | 'planned' | 'active' | 'review' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
542
|
+
|
|
543
|
+
export declare interface ModelConfiguration {
|
|
544
|
+
modelName?: ModelName;
|
|
545
|
+
temperature?: number;
|
|
546
|
+
reasoningEffort?: ReasoningEffort;
|
|
547
|
+
url?: string;
|
|
548
|
+
ollamaModelName?: string;
|
|
549
|
+
openaiCompatibleModelName?: string;
|
|
550
|
+
openaiCompatibleApiKey?: string;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export declare type ModelName = 'gemini-3-pro' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | 'gemini-2.5-pro-exp-03-25' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-1.5-flash-latest' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro-latest' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gpt-5.2' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.5' | 'o1' | 'o1-mini' | 'o3-mini' | 'o4-mini' | 'o4-mini-high' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'accounts/fireworks/models/minimax-m2p5' | 'accounts/fireworks/models/deepseek-v3p2' | 'accounts/fireworks/models/kimi-k2p5' | 'accounts/fireworks/models/glm-5' | 'grok-4-1-fast-reasoning' | 'grok-4-1-fast-non-reasoning' | 'grok-code-fast-1' | 'grok-4-fast-reasoning' | 'grok-4-fast-non-reasoning' | 'grok-4-0709' | 'grok-3-mini' | 'grok-3' | 'grok-2-vision-1212' | 'ollama' | 'openai-compatible';
|
|
554
|
+
|
|
555
|
+
export declare type ModelProvider = 'google' | 'openai' | 'grok' | 'fireworks' | 'ollama' | 'openai_compatible';
|
|
556
|
+
|
|
557
|
+
export declare interface NetworkConfiguration {
|
|
558
|
+
allowedWebsites?: string[];
|
|
559
|
+
allowedIps?: string[];
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
declare interface Node_2 {
|
|
563
|
+
id?: string;
|
|
564
|
+
type?: NodeType;
|
|
565
|
+
name?: string;
|
|
566
|
+
description?: string;
|
|
567
|
+
position?: Position;
|
|
568
|
+
allowDynamicInputVariables?: boolean;
|
|
569
|
+
allowDynamicOutputVariables?: boolean;
|
|
570
|
+
allowDynamicHandles?: boolean;
|
|
571
|
+
staticVariables?: WorkflowVariable[];
|
|
572
|
+
variables?: WorkflowVariable[];
|
|
573
|
+
values?: Record<string, unknown>;
|
|
574
|
+
staticHandles?: Handle[];
|
|
575
|
+
handles?: Handle[];
|
|
576
|
+
}
|
|
577
|
+
export { Node_2 as Node }
|
|
578
|
+
|
|
579
|
+
export declare interface NodeExecutionResult {
|
|
580
|
+
nextNodes?: Node_2[];
|
|
581
|
+
output?: Record<string, unknown>;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export declare type NodeType = 'start' | 'action' | 'condition' | 'loop' | 'tool' | 'agent' | 'set_var' | 'output' | 'workflow' | 'resource' | 'script';
|
|
585
|
+
|
|
586
|
+
export declare interface OAuth2CallbackResponse {
|
|
587
|
+
id?: string;
|
|
588
|
+
successUrl?: string;
|
|
589
|
+
success?: boolean;
|
|
590
|
+
error?: string;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export declare interface OAuth2State {
|
|
594
|
+
id?: string;
|
|
595
|
+
credentialsName?: string;
|
|
596
|
+
projectId?: string;
|
|
597
|
+
provider?: string;
|
|
598
|
+
status?: string;
|
|
599
|
+
code?: string;
|
|
600
|
+
scope?: string;
|
|
601
|
+
clientId?: string;
|
|
602
|
+
clientSecret?: string;
|
|
603
|
+
apiKey?: string;
|
|
604
|
+
apiSecret?: string;
|
|
605
|
+
token?: string;
|
|
606
|
+
successUrl?: string;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export declare interface OrchestrationAgent {
|
|
610
|
+
name?: string;
|
|
611
|
+
agent?: string;
|
|
612
|
+
scope?: string;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export declare interface OrchestrationConfiguration {
|
|
616
|
+
enabled?: boolean;
|
|
617
|
+
agents?: OrchestrationAgent[];
|
|
618
|
+
maxParallelCalls?: number;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export declare interface Paginated<T> {
|
|
622
|
+
items: T[];
|
|
623
|
+
total: number;
|
|
624
|
+
page: number;
|
|
625
|
+
size: number;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export declare class PersonaSdk {
|
|
629
|
+
private readonly baseUrl;
|
|
630
|
+
private readonly workflowsBaseUrl;
|
|
631
|
+
constructor(baseUrl: string, workflowsBaseUrl: string);
|
|
632
|
+
projects(apiKey: string): ProjectsApi;
|
|
633
|
+
projects(authProvider: AuthenticationProvider): ProjectsApi;
|
|
634
|
+
agents(apiKey: string): AgentsApi;
|
|
635
|
+
agents(authProvider: AuthenticationProvider): AgentsApi;
|
|
636
|
+
knowledgeBases(apiKey: string): KnowledgeBasesApi;
|
|
637
|
+
knowledgeBases(authProvider: AuthenticationProvider): KnowledgeBasesApi;
|
|
638
|
+
workflows(apiKey: string): WorkflowsApi;
|
|
639
|
+
workflows(authProvider: AuthenticationProvider): WorkflowsApi;
|
|
640
|
+
credentials(apiKey: string): CredentialsApi;
|
|
641
|
+
credentials(authProvider: AuthenticationProvider): CredentialsApi;
|
|
642
|
+
features(apiKey: string): FeaturesApi;
|
|
643
|
+
features(authProvider: AuthenticationProvider): FeaturesApi;
|
|
644
|
+
triggers(apiKey: string): TriggersApi;
|
|
645
|
+
triggers(authProvider: AuthenticationProvider): TriggersApi;
|
|
646
|
+
servicePrices(apiKey: string): ServicePricesApi;
|
|
647
|
+
servicePrices(authProvider: AuthenticationProvider): ServicePricesApi;
|
|
648
|
+
sessions(apiKey: string): SessionsApi;
|
|
649
|
+
sessions(authProvider: AuthenticationProvider): SessionsApi;
|
|
650
|
+
missions(apiKey: string): MissionsApi;
|
|
651
|
+
missions(authProvider: AuthenticationProvider): MissionsApi;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export declare interface Position {
|
|
655
|
+
x?: number;
|
|
656
|
+
y?: number;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
export declare interface Project {
|
|
660
|
+
id?: string;
|
|
661
|
+
name?: string;
|
|
662
|
+
tag?: string;
|
|
663
|
+
apiKey?: string;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export declare interface ProjectCreateRequest {
|
|
667
|
+
name: string;
|
|
668
|
+
tag?: string;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
export declare class ProjectsApi extends HttpApi {
|
|
672
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
673
|
+
list(keyword: string | null, page: number, size: number): Promise<Paginated<Project>>;
|
|
674
|
+
get(projectId: string): Promise<Project>;
|
|
675
|
+
getMine(): Promise<Project>;
|
|
676
|
+
create(request: ProjectCreateRequest): Promise<Project>;
|
|
677
|
+
update(request: ProjectUpdateRequest): Promise<Project>;
|
|
678
|
+
remove(projectId: string): Promise<void>;
|
|
679
|
+
getSubscription(projectId: string): Promise<ProjectSubscription>;
|
|
680
|
+
changeSubscriptionPlan(projectId: string, request: ChangeProjectSubscriptionPlanRequest): Promise<ProjectSubscription>;
|
|
681
|
+
addSubscriptionCredits(projectId: string, request: AddProjectSubscriptionCreditsRequest): Promise<ProjectSubscription>;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export declare interface ProjectSubscription {
|
|
685
|
+
id?: string;
|
|
686
|
+
projectId?: string;
|
|
687
|
+
owner?: string;
|
|
688
|
+
planType?: string;
|
|
689
|
+
status?: string;
|
|
690
|
+
startDate?: string;
|
|
691
|
+
planCredits?: number;
|
|
692
|
+
extraCredits?: number;
|
|
693
|
+
keepCreditsOnRenew?: boolean;
|
|
694
|
+
endDate?: string;
|
|
695
|
+
createdAt?: string;
|
|
696
|
+
updatedAt?: string;
|
|
697
|
+
stripeCustomerId?: string;
|
|
698
|
+
stripeSubscriptionId?: string;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export declare interface ProjectUpdateRequest {
|
|
702
|
+
projectId: string;
|
|
703
|
+
name?: string;
|
|
704
|
+
tag?: string;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export declare type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high';
|
|
708
|
+
|
|
709
|
+
export declare interface Ref {
|
|
710
|
+
nodeId?: string;
|
|
711
|
+
variableName?: string;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
export declare interface Revision {
|
|
715
|
+
id?: string;
|
|
716
|
+
entityId?: string;
|
|
717
|
+
projectId?: string;
|
|
718
|
+
revisionNumber?: number;
|
|
719
|
+
createdAt?: string;
|
|
720
|
+
snapshot?: Record<string, unknown>;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export declare interface RevisionType {
|
|
724
|
+
id?: string;
|
|
725
|
+
entityId?: string;
|
|
726
|
+
entityType?: string;
|
|
727
|
+
timestamp?: string;
|
|
728
|
+
data?: Record<string, unknown>;
|
|
729
|
+
userId?: string;
|
|
730
|
+
comment?: string;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export declare interface RunResult {
|
|
734
|
+
source?: Node_2;
|
|
735
|
+
success?: boolean;
|
|
736
|
+
message?: string;
|
|
737
|
+
nextNodes?: string[];
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
export declare interface SearchChunksRequest {
|
|
741
|
+
query?: string;
|
|
742
|
+
limit?: number;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export declare interface ServicePrice {
|
|
746
|
+
id?: string;
|
|
747
|
+
service?: string;
|
|
748
|
+
cost?: number;
|
|
749
|
+
unit?: string;
|
|
750
|
+
markupPercentage?: number;
|
|
751
|
+
fixedPrice?: number;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export declare class ServicePricesApi extends HttpApi {
|
|
755
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
756
|
+
list(keyword?: string | null, page?: number, size?: number): Promise<Paginated<ServicePrice>>;
|
|
757
|
+
get(id: string): Promise<ServicePrice>;
|
|
758
|
+
create(servicePrice: ServicePrice): Promise<ServicePrice>;
|
|
759
|
+
update(id: string, servicePrice: ServicePrice): Promise<ServicePrice>;
|
|
760
|
+
remove(id: string): Promise<void>;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export declare interface Session {
|
|
764
|
+
id?: string;
|
|
765
|
+
code?: string;
|
|
766
|
+
name?: string;
|
|
767
|
+
projectId?: string;
|
|
768
|
+
agentId?: string;
|
|
769
|
+
currentAgentId?: string;
|
|
770
|
+
userId?: string;
|
|
771
|
+
status?: string;
|
|
772
|
+
visibility?: string;
|
|
773
|
+
type?: string;
|
|
774
|
+
createdAt?: string;
|
|
775
|
+
finishedAt?: string;
|
|
776
|
+
parentSessionId?: string;
|
|
777
|
+
protocol?: string;
|
|
778
|
+
extras?: Record<string, unknown>;
|
|
779
|
+
isNew?: boolean;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export declare type SessionCollaborationMode = 'delegate_and_return' | 'persistent_transfer' | 'consult_then_respond';
|
|
783
|
+
|
|
784
|
+
export declare interface SessionFile {
|
|
785
|
+
name?: string;
|
|
786
|
+
url?: string;
|
|
787
|
+
base64?: string;
|
|
788
|
+
contentType?: string;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export declare class SessionsApi extends HttpApi {
|
|
792
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
793
|
+
list(keyword?: string | null, status?: string | null, agentId?: string | null, userId?: string | null, page?: number, size?: number): Promise<Paginated<Session>>;
|
|
794
|
+
get(sessionId: string): Promise<Session>;
|
|
795
|
+
getUsage(sessionId: string): Promise<CommittedUsage[]>;
|
|
796
|
+
generateMessage(code: string, request: GenerationRequest): Promise<GenerationResponse>;
|
|
797
|
+
findMessages(code: string, page?: number, size?: number): Promise<Paginated<Message>>;
|
|
798
|
+
remove(code: string): Promise<void>;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
export declare interface SkillConfiguration {
|
|
802
|
+
name?: string;
|
|
803
|
+
description?: string;
|
|
804
|
+
instructions?: string;
|
|
805
|
+
allowedTools?: string[];
|
|
806
|
+
metadata?: Record<string, unknown>;
|
|
807
|
+
resources?: SkillResource[];
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export declare interface SkillResource {
|
|
811
|
+
path?: string;
|
|
812
|
+
content?: string;
|
|
813
|
+
contentType?: string;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export declare interface Source {
|
|
817
|
+
type?: string;
|
|
818
|
+
url?: string;
|
|
819
|
+
documentId?: string;
|
|
820
|
+
pageId?: string;
|
|
821
|
+
pageNumber?: number;
|
|
822
|
+
chunks?: SourceChunk[];
|
|
823
|
+
mostRelevant?: boolean;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export declare interface SourceChunk {
|
|
827
|
+
start?: number;
|
|
828
|
+
end?: number;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export declare interface StartNode extends Node_2 {
|
|
832
|
+
trigger?: WorkflowTrigger;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export declare interface StdioTransport {
|
|
836
|
+
command?: string;
|
|
837
|
+
args?: string[];
|
|
838
|
+
env?: Record<string, string>;
|
|
839
|
+
cwd?: string;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
export declare interface Step {
|
|
843
|
+
id?: string;
|
|
844
|
+
nodeId?: string;
|
|
845
|
+
status?: string;
|
|
846
|
+
startedAt?: string;
|
|
847
|
+
endedAt?: string;
|
|
848
|
+
result?: Record<string, unknown>;
|
|
849
|
+
error?: string;
|
|
850
|
+
output?: Record<string, unknown>;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export declare interface StmConfiguration {
|
|
854
|
+
type?: StmType;
|
|
855
|
+
maxMessages?: number;
|
|
856
|
+
includeToolCalls?: boolean;
|
|
857
|
+
model?: ModelConfiguration;
|
|
858
|
+
maxNumberOfWords?: number;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
export declare type StmType = 'simple' | 'summary';
|
|
862
|
+
|
|
863
|
+
export declare interface SynthesizerConfiguration {
|
|
864
|
+
enabled?: boolean;
|
|
865
|
+
synthesizerName?: SynthesizerName;
|
|
866
|
+
languageCode?: LanguageCode;
|
|
867
|
+
voice?: string;
|
|
868
|
+
sampleRateHertz?: number;
|
|
869
|
+
speed?: number;
|
|
870
|
+
similarityBoost?: number;
|
|
871
|
+
stability?: number;
|
|
872
|
+
style?: number;
|
|
873
|
+
voiceInstructions?: string;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export declare type SynthesizerName = 'gcloud' | 'elevenlabs' | 'gtts' | 'openai';
|
|
877
|
+
|
|
878
|
+
export declare interface SynthesizerVoice {
|
|
879
|
+
id?: string;
|
|
880
|
+
name?: string;
|
|
881
|
+
languageCodes?: string[];
|
|
882
|
+
gender?: string;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export declare interface TelegramConfiguration {
|
|
886
|
+
enabled?: boolean;
|
|
887
|
+
botToken?: string;
|
|
888
|
+
enabledUsers?: string[];
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export declare interface Tool {
|
|
892
|
+
type?: ToolType;
|
|
893
|
+
name?: string;
|
|
894
|
+
description?: string;
|
|
895
|
+
config?: ToolConfig;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
export declare type ToolConfig = ToolLocalConfig | ToolRemoteConfig;
|
|
899
|
+
|
|
900
|
+
export declare interface ToolDefinition {
|
|
901
|
+
name?: string;
|
|
902
|
+
description?: string;
|
|
903
|
+
parameters?: Record<string, unknown>;
|
|
904
|
+
output?: Record<string, unknown>;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export declare interface ToolkitConfiguration {
|
|
908
|
+
tools?: Tool[];
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export declare interface ToolLocalConfig {
|
|
912
|
+
parameters?: Record<string, unknown>;
|
|
913
|
+
output?: Record<string, unknown>;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
export declare interface ToolRemoteConfig {
|
|
917
|
+
serviceUrl?: string;
|
|
918
|
+
secret?: string;
|
|
919
|
+
timeout?: number;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
export declare type ToolType = 'remote' | 'local';
|
|
923
|
+
|
|
924
|
+
export declare interface TranscriberConfiguration {
|
|
925
|
+
enabled?: boolean;
|
|
926
|
+
transcriberName?: TranscriberName;
|
|
927
|
+
languageCode?: LanguageCode;
|
|
928
|
+
sampleRateHertz?: number;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export declare type TranscriberName = 'gcloud' | 'deepgram' | 'vosk';
|
|
932
|
+
|
|
933
|
+
export declare interface TransferAction {
|
|
934
|
+
request?: string;
|
|
935
|
+
thought?: string;
|
|
936
|
+
agent?: string;
|
|
937
|
+
functionCallMessage?: Message;
|
|
938
|
+
functionResponseMessage?: Message;
|
|
939
|
+
collaborationMode?: SessionCollaborationMode;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
export declare type Transport = HttpTransport | StdioTransport;
|
|
943
|
+
|
|
944
|
+
export declare interface Trigger {
|
|
945
|
+
id?: string;
|
|
946
|
+
projectId?: string;
|
|
947
|
+
name?: string;
|
|
948
|
+
source?: TriggerSource;
|
|
949
|
+
destination?: TriggerDestination;
|
|
950
|
+
enabled?: boolean;
|
|
951
|
+
createdAt?: string;
|
|
952
|
+
processedAt?: string;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export declare interface TriggerDestination {
|
|
956
|
+
type?: string;
|
|
957
|
+
configuration?: Record<string, unknown>;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
export declare interface TriggerExecutionResult {
|
|
961
|
+
id?: string;
|
|
962
|
+
triggerId?: string;
|
|
963
|
+
success?: boolean;
|
|
964
|
+
message?: string;
|
|
965
|
+
processedAt?: string;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
export declare class TriggerExecutionsApi extends HttpApi {
|
|
969
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
970
|
+
list(triggerId: string, page?: number, size?: number): Promise<Paginated<TriggerExecutionResult>>;
|
|
971
|
+
execute(triggerId: string, execution: TriggerExecutionResult): Promise<TriggerExecutionResult>;
|
|
972
|
+
get(executionId: string): Promise<TriggerExecutionResult>;
|
|
973
|
+
remove(executionId: string): Promise<void>;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export declare class TriggersApi extends HttpApi {
|
|
977
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
978
|
+
list(keyword?: string | null, page?: number, size?: number): Promise<Paginated<Trigger>>;
|
|
979
|
+
create(trigger: Trigger): Promise<Trigger>;
|
|
980
|
+
update(triggerId: string, trigger: Trigger): Promise<Trigger>;
|
|
981
|
+
remove(triggerId: string): Promise<void>;
|
|
982
|
+
get(triggerId: string): Promise<Trigger>;
|
|
983
|
+
executions(): TriggerExecutionsApi;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export declare interface TriggerSource {
|
|
987
|
+
type?: TriggerSourceType;
|
|
988
|
+
configuration?: TriggerSourceConfiguration;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export declare type TriggerSourceConfiguration = GmailTriggerSourceConfiguration | ImapTriggerSourceConfiguration | Record<string, unknown>;
|
|
992
|
+
|
|
993
|
+
export declare type TriggerSourceType = 'webhook' | 'schedule' | 'gmail' | 'imap';
|
|
994
|
+
|
|
995
|
+
export declare interface TwilioConfiguration {
|
|
996
|
+
phoneNumber?: string;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export declare interface UsageCost {
|
|
1000
|
+
service?: string;
|
|
1001
|
+
value?: number;
|
|
1002
|
+
cost?: number;
|
|
1003
|
+
price?: number;
|
|
1004
|
+
credits?: number;
|
|
1005
|
+
unit?: string;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
export declare interface Variable {
|
|
1009
|
+
name?: string;
|
|
1010
|
+
source?: VariableSource;
|
|
1011
|
+
defaultValue?: unknown;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
export declare type VariableDirection = 'in' | 'out';
|
|
1015
|
+
|
|
1016
|
+
export declare interface VariableSource {
|
|
1017
|
+
type?: string;
|
|
1018
|
+
tool?: string;
|
|
1019
|
+
args?: Record<string, unknown>;
|
|
1020
|
+
property?: string;
|
|
1021
|
+
mcpServer?: string;
|
|
1022
|
+
resourceUri?: string;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export declare type VariableType = 'string' | 'number' | 'boolean' | 'object' | 'file' | 'list';
|
|
1026
|
+
|
|
1027
|
+
export declare interface WakeupConfiguration {
|
|
1028
|
+
enabled?: boolean;
|
|
1029
|
+
wakeupWords?: string[];
|
|
1030
|
+
sleepWords?: string[];
|
|
1031
|
+
sleepInEachRequest?: boolean;
|
|
1032
|
+
sleepDelaySeconds?: number;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
export declare interface WhatsAppConfiguration {
|
|
1036
|
+
phoneNumberId?: string;
|
|
1037
|
+
enabledUsers?: string[];
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
export declare interface Workflow {
|
|
1041
|
+
id?: string;
|
|
1042
|
+
projectId?: string;
|
|
1043
|
+
name?: string;
|
|
1044
|
+
description?: string;
|
|
1045
|
+
rootNode?: StartNode;
|
|
1046
|
+
nodes?: Node_2[];
|
|
1047
|
+
connections?: Connection[];
|
|
1048
|
+
features?: Feature[];
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export declare class WorkflowExecutionsApi extends HttpApi {
|
|
1052
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
1053
|
+
list(workflowId: string, page?: number, size?: number): Promise<Paginated<Execution>>;
|
|
1054
|
+
get(workflowId: string, executionId: string): Promise<Execution>;
|
|
1055
|
+
run(workflowId: string, request: ExecuteRequest): Promise<Execution>;
|
|
1056
|
+
queue(workflowId: string, request: ExecuteRequest): Promise<Execution>;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export declare interface WorkflowResult {
|
|
1060
|
+
workflowId?: string;
|
|
1061
|
+
steps?: RunResult[];
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
export declare class WorkflowsApi extends HttpApi {
|
|
1065
|
+
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
1066
|
+
list(keyword?: string | null, page?: number, size?: number): Promise<Paginated<Workflow>>;
|
|
1067
|
+
create(workflow: Workflow): Promise<Workflow>;
|
|
1068
|
+
update(workflowId: string, workflow: Workflow): Promise<Workflow>;
|
|
1069
|
+
remove(workflowId: string): Promise<void>;
|
|
1070
|
+
get(workflowId: string): Promise<Workflow>;
|
|
1071
|
+
executions(): WorkflowExecutionsApi;
|
|
1072
|
+
listRevisions(workflowId: string): Promise<RevisionType[]>;
|
|
1073
|
+
getRevision(workflowId: string, revisionId: string): Promise<RevisionType>;
|
|
1074
|
+
rollback(workflowId: string, revisionId: string): Promise<Workflow>;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
export declare interface WorkflowTrigger {
|
|
1078
|
+
type?: string;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export declare interface WorkflowVariable {
|
|
1082
|
+
name?: string;
|
|
1083
|
+
description?: string;
|
|
1084
|
+
type?: VariableType;
|
|
1085
|
+
direction?: VariableDirection;
|
|
1086
|
+
defaultValue?: unknown;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export { }
|