@applica-software-guru/persona-sdk 0.1.108 → 0.1.110
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/index.d.ts +24 -1
- package/package.json +1 -1
- package/src/agents/types.ts +8 -0
- package/src/index.ts +3 -0
- package/src/triggers/types.ts +17 -1
package/dist/index.d.ts
CHANGED
|
@@ -1284,6 +1284,13 @@ export declare interface SynthesizerConfiguration {
|
|
|
1284
1284
|
stability?: number;
|
|
1285
1285
|
style?: number;
|
|
1286
1286
|
voiceInstructions?: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* Solo ElevenLabs. `websocket` spinge il testo man mano che arriva dal
|
|
1289
|
+
* modello su una connessione persistente (un socket per sessione, un contesto
|
|
1290
|
+
* per turno) invece di una richiesta HTTP per frase: l'handshake si paga una
|
|
1291
|
+
* volta per chiamata e non per turno. Se il socket cade si degrada sull'HTTP.
|
|
1292
|
+
*/
|
|
1293
|
+
transport?: SynthesizerTransport;
|
|
1287
1294
|
/**
|
|
1288
1295
|
* Solo ElevenLabs, 0-4. Valori alti riducono la latenza ma dal 4 il
|
|
1289
1296
|
* normalizzatore del testo viene disattivato e numeri e date vengono
|
|
@@ -1294,6 +1301,8 @@ export declare interface SynthesizerConfiguration {
|
|
|
1294
1301
|
|
|
1295
1302
|
export declare type SynthesizerName = 'gcloud' | 'elevenlabs' | 'gtts' | 'openai';
|
|
1296
1303
|
|
|
1304
|
+
export declare type SynthesizerTransport = 'http' | 'websocket';
|
|
1305
|
+
|
|
1297
1306
|
export declare interface SynthesizerVoice {
|
|
1298
1307
|
id?: string;
|
|
1299
1308
|
name?: string;
|
|
@@ -1413,9 +1422,11 @@ export declare interface Trigger {
|
|
|
1413
1422
|
|
|
1414
1423
|
export declare interface TriggerDestination {
|
|
1415
1424
|
type?: string;
|
|
1416
|
-
configuration?:
|
|
1425
|
+
configuration?: TriggerDestinationConfiguration;
|
|
1417
1426
|
}
|
|
1418
1427
|
|
|
1428
|
+
export declare type TriggerDestinationConfiguration = WorkflowDestinationConfiguration | Record<string, unknown>;
|
|
1429
|
+
|
|
1419
1430
|
export declare interface TriggerExecutionResult {
|
|
1420
1431
|
id?: string;
|
|
1421
1432
|
triggerId?: string;
|
|
@@ -1596,6 +1607,18 @@ export declare interface Workflow {
|
|
|
1596
1607
|
features?: Feature[];
|
|
1597
1608
|
}
|
|
1598
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Configuration for "workflow" trigger destinations.
|
|
1612
|
+
* `timeout` is the maximum time in seconds to wait for the workflow
|
|
1613
|
+
* execution callback; when not set the server applies its default (300s).
|
|
1614
|
+
*/
|
|
1615
|
+
export declare interface WorkflowDestinationConfiguration {
|
|
1616
|
+
workflowId?: string;
|
|
1617
|
+
callbackUrl?: string;
|
|
1618
|
+
args?: Record<string, unknown>;
|
|
1619
|
+
timeout?: number;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1599
1622
|
export declare class WorkflowExecutionsApi extends HttpApi {
|
|
1600
1623
|
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
1601
1624
|
list(workflowId: string, page?: number, size?: number): Promise<Paginated<Execution>>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@applica-software-guru/persona-sdk",
|
|
3
3
|
"description": "Official TypeScript SDK for the Persona API — manage agents, sessions, projects, knowledge bases, workflows, triggers and more.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.110",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
package/src/agents/types.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type LanguageCode = 'en-US' | 'it-IT' | 'es-ES' | 'fr-FR' | 'de-DE' | 'pt
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
export type SynthesizerName = 'gcloud' | 'elevenlabs' | 'gtts' | 'openai';
|
|
9
|
+
export type SynthesizerTransport = 'http' | 'websocket';
|
|
9
10
|
|
|
10
11
|
export type TranscriberName = 'gcloud' | 'deepgram' | 'elevenlabs' | 'vosk';
|
|
11
12
|
|
|
@@ -93,6 +94,13 @@ export interface SynthesizerConfiguration {
|
|
|
93
94
|
stability?: number;
|
|
94
95
|
style?: number;
|
|
95
96
|
voiceInstructions?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Solo ElevenLabs. `websocket` spinge il testo man mano che arriva dal
|
|
99
|
+
* modello su una connessione persistente (un socket per sessione, un contesto
|
|
100
|
+
* per turno) invece di una richiesta HTTP per frase: l'handshake si paga una
|
|
101
|
+
* volta per chiamata e non per turno. Se il socket cade si degrada sull'HTTP.
|
|
102
|
+
*/
|
|
103
|
+
transport?: SynthesizerTransport;
|
|
96
104
|
/**
|
|
97
105
|
* Solo ElevenLabs, 0-4. Valori alti riducono la latenza ma dal 4 il
|
|
98
106
|
* normalizzatore del testo viene disattivato e numeri e date vengono
|
package/src/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ export type {
|
|
|
31
31
|
OrchestrationAgent,
|
|
32
32
|
SynthesizerConfiguration,
|
|
33
33
|
SynthesizerName,
|
|
34
|
+
SynthesizerTransport,
|
|
34
35
|
SynthesizerVoice,
|
|
35
36
|
TranscriberConfiguration,
|
|
36
37
|
TranscriberName,
|
|
@@ -143,6 +144,8 @@ export type {
|
|
|
143
144
|
GmailTriggerSourceConfiguration,
|
|
144
145
|
ImapTriggerSourceConfiguration,
|
|
145
146
|
TriggerDestination,
|
|
147
|
+
TriggerDestinationConfiguration,
|
|
148
|
+
WorkflowDestinationConfiguration,
|
|
146
149
|
TriggerExecutionResult,
|
|
147
150
|
} from './triggers/types';
|
|
148
151
|
export { FeaturesApi } from './features/features-api';
|
package/src/triggers/types.ts
CHANGED
|
@@ -25,9 +25,25 @@ export interface TriggerSource {
|
|
|
25
25
|
configuration?: TriggerSourceConfiguration;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Configuration for "workflow" trigger destinations.
|
|
30
|
+
* `timeout` is the maximum time in seconds to wait for the workflow
|
|
31
|
+
* execution callback; when not set the server applies its default (300s).
|
|
32
|
+
*/
|
|
33
|
+
export interface WorkflowDestinationConfiguration {
|
|
34
|
+
workflowId?: string;
|
|
35
|
+
callbackUrl?: string;
|
|
36
|
+
args?: Record<string, unknown>;
|
|
37
|
+
timeout?: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type TriggerDestinationConfiguration =
|
|
41
|
+
| WorkflowDestinationConfiguration
|
|
42
|
+
| Record<string, unknown>;
|
|
43
|
+
|
|
28
44
|
export interface TriggerDestination {
|
|
29
45
|
type?: string;
|
|
30
|
-
configuration?:
|
|
46
|
+
configuration?: TriggerDestinationConfiguration;
|
|
31
47
|
}
|
|
32
48
|
|
|
33
49
|
export interface Trigger {
|