@elevasis/sdk 1.24.0 → 1.25.0
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/cli.cjs +1178 -1039
- package/dist/index.d.ts +4760 -4567
- package/dist/index.js +989 -2332
- package/dist/node/index.d.ts +660 -1323
- package/dist/node/index.js +1 -1
- package/dist/test-utils/index.d.ts +4101 -4115
- package/dist/test-utils/index.js +1724 -3471
- package/dist/types/worker/index.d.ts +3 -2
- package/dist/types/worker/platform.d.ts +2 -2
- package/dist/worker/index.js +394 -2448
- package/package.json +2 -2
- package/reference/cli.mdx +1107 -808
- package/reference/scaffold/recipes/customize-crm-actions.md +45 -46
- package/reference/scaffold/recipes/extend-crm.md +253 -255
- package/reference/scaffold/recipes/index.md +43 -44
- package/reference/scaffold/reference/contracts.md +976 -1063
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* Worker -> Parent: { type: 'credential-request', id, name }
|
|
27
27
|
* Parent -> Worker: { type: 'credential-result', id, provider?, credentials?, error?, code? }
|
|
28
28
|
*/
|
|
29
|
-
import type { DeploymentSpec } from '../index.js';
|
|
29
|
+
import type { DeploymentSpec, WorkflowDefinition } from '../index.js';
|
|
30
30
|
export { platform, PlatformToolError } from './platform.js';
|
|
31
31
|
export type { PlatformCredential } from './platform.js';
|
|
32
32
|
export { classifyPlatformToolError, generateHmacToken } from './utils.js';
|
|
@@ -39,7 +39,7 @@ export interface LogEntry {
|
|
|
39
39
|
timestamp: string;
|
|
40
40
|
context?: Record<string, unknown>;
|
|
41
41
|
}
|
|
42
|
-
export declare function executeWorkflow(workflow:
|
|
42
|
+
export declare function executeWorkflow(workflow: WorkflowDefinition, input: unknown, context: {
|
|
43
43
|
executionId: string;
|
|
44
44
|
organizationId: string;
|
|
45
45
|
organizationName: string;
|
|
@@ -48,6 +48,7 @@ export declare function executeWorkflow(workflow: any, input: unknown, context:
|
|
|
48
48
|
parentExecutionId?: string;
|
|
49
49
|
executionDepth: number;
|
|
50
50
|
adapters?: Record<string, unknown>;
|
|
51
|
+
signal?: AbortSignal;
|
|
51
52
|
}): Promise<{
|
|
52
53
|
output: unknown;
|
|
53
54
|
logs: LogEntry[];
|
|
@@ -12,7 +12,7 @@ interface TokenUsage {
|
|
|
12
12
|
cost?: number;
|
|
13
13
|
}
|
|
14
14
|
/** Inbound tool-result from parent */
|
|
15
|
-
interface ToolCallResponse {
|
|
15
|
+
export interface ToolCallResponse {
|
|
16
16
|
type: 'tool-result';
|
|
17
17
|
id: string;
|
|
18
18
|
result?: unknown;
|
|
@@ -21,7 +21,7 @@ interface ToolCallResponse {
|
|
|
21
21
|
usage?: TokenUsage;
|
|
22
22
|
}
|
|
23
23
|
/** Inbound credential-result from parent */
|
|
24
|
-
interface CredentialResultMessage {
|
|
24
|
+
export interface CredentialResultMessage {
|
|
25
25
|
type: 'credential-result';
|
|
26
26
|
id: string;
|
|
27
27
|
provider?: string;
|