@applica-software-guru/persona-sdk 0.1.109 → 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 +15 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/triggers/types.ts +17 -1
package/dist/index.d.ts
CHANGED
|
@@ -1422,9 +1422,11 @@ export declare interface Trigger {
|
|
|
1422
1422
|
|
|
1423
1423
|
export declare interface TriggerDestination {
|
|
1424
1424
|
type?: string;
|
|
1425
|
-
configuration?:
|
|
1425
|
+
configuration?: TriggerDestinationConfiguration;
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
|
+
export declare type TriggerDestinationConfiguration = WorkflowDestinationConfiguration | Record<string, unknown>;
|
|
1429
|
+
|
|
1428
1430
|
export declare interface TriggerExecutionResult {
|
|
1429
1431
|
id?: string;
|
|
1430
1432
|
triggerId?: string;
|
|
@@ -1605,6 +1607,18 @@ export declare interface Workflow {
|
|
|
1605
1607
|
features?: Feature[];
|
|
1606
1608
|
}
|
|
1607
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
|
+
|
|
1608
1622
|
export declare class WorkflowExecutionsApi extends HttpApi {
|
|
1609
1623
|
constructor(baseUrl: string, auth: string | AuthenticationProvider);
|
|
1610
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/index.ts
CHANGED
|
@@ -144,6 +144,8 @@ export type {
|
|
|
144
144
|
GmailTriggerSourceConfiguration,
|
|
145
145
|
ImapTriggerSourceConfiguration,
|
|
146
146
|
TriggerDestination,
|
|
147
|
+
TriggerDestinationConfiguration,
|
|
148
|
+
WorkflowDestinationConfiguration,
|
|
147
149
|
TriggerExecutionResult,
|
|
148
150
|
} from './triggers/types';
|
|
149
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 {
|