lua-cli 3.10.5 → 3.12.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/README.md +12 -0
- package/dist/api/agents.api.service.d.ts +21 -0
- package/dist/api/agents.api.service.d.ts.map +1 -0
- package/dist/api/agents.api.service.js +49 -0
- package/dist/api/agents.api.service.js.map +1 -0
- package/dist/api/device-trigger.api.service.d.ts +136 -0
- package/dist/api/device-trigger.api.service.d.ts.map +1 -0
- package/dist/api/device-trigger.api.service.js +120 -0
- package/dist/api/device-trigger.api.service.js.map +1 -0
- package/dist/api/lazy-instances.d.ts +8 -0
- package/dist/api/lazy-instances.d.ts.map +1 -1
- package/dist/api/lazy-instances.js +16 -0
- package/dist/api/lazy-instances.js.map +1 -1
- package/dist/api/unifiedto.api.service.d.ts +18 -1
- package/dist/api/unifiedto.api.service.d.ts.map +1 -1
- package/dist/api/unifiedto.api.service.js +26 -0
- package/dist/api/unifiedto.api.service.js.map +1 -1
- package/dist/api-exports.d.ts +57 -2
- package/dist/api-exports.d.ts.map +1 -1
- package/dist/api-exports.js +36 -2
- package/dist/api-exports.js.map +1 -1
- package/dist/cli/command-definitions.d.ts.map +1 -1
- package/dist/cli/command-definitions.js +57 -3
- package/dist/cli/command-definitions.js.map +1 -1
- package/dist/commands/governance.d.ts +7 -0
- package/dist/commands/governance.d.ts.map +1 -0
- package/dist/commands/governance.js +256 -0
- package/dist/commands/governance.js.map +1 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/integrations.d.ts.map +1 -1
- package/dist/commands/integrations.js +456 -80
- package/dist/commands/integrations.js.map +1 -1
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +25 -27
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +67 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/compiler/agent-traverser.d.ts.map +1 -1
- package/dist/compiler/agent-traverser.js +1 -0
- package/dist/compiler/agent-traverser.js.map +1 -1
- package/dist/compiler/compiler.d.ts.map +1 -1
- package/dist/compiler/compiler.js +13 -0
- package/dist/compiler/compiler.js.map +1 -1
- package/dist/compiler/plugins/agent.plugin.d.ts +5 -0
- package/dist/compiler/plugins/agent.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/agent.plugin.js +13 -0
- package/dist/compiler/plugins/agent.plugin.js.map +1 -1
- package/dist/compiler/plugins/base.d.ts +28 -0
- package/dist/compiler/plugins/base.d.ts.map +1 -1
- package/dist/compiler/plugins/base.js.map +1 -1
- package/dist/compiler/plugins/device-trigger.plugin.d.ts +38 -0
- package/dist/compiler/plugins/device-trigger.plugin.d.ts.map +1 -0
- package/dist/compiler/plugins/device-trigger.plugin.js +103 -0
- package/dist/compiler/plugins/device-trigger.plugin.js.map +1 -0
- package/dist/compiler/plugins/device.plugin.d.ts +2 -9
- package/dist/compiler/plugins/device.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/device.plugin.js +2 -204
- package/dist/compiler/plugins/device.plugin.js.map +1 -1
- package/dist/compiler/plugins/registry.d.ts.map +1 -1
- package/dist/compiler/plugins/registry.js +2 -0
- package/dist/compiler/plugins/registry.js.map +1 -1
- package/dist/compiler/plugins/skill.plugin.d.ts +7 -3
- package/dist/compiler/plugins/skill.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/skill.plugin.js +22 -4
- package/dist/compiler/plugins/skill.plugin.js.map +1 -1
- package/dist/compiler/types.d.ts +21 -35
- package/dist/compiler/types.d.ts.map +1 -1
- package/dist/compiler/types.js +1 -0
- package/dist/compiler/types.js.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/agent.d.ts +3 -1
- package/dist/interfaces/agent.d.ts.map +1 -1
- package/dist/interfaces/device-triggers.d.ts +82 -0
- package/dist/interfaces/device-triggers.d.ts.map +1 -0
- package/dist/interfaces/device-triggers.js +6 -0
- package/dist/interfaces/device-triggers.js.map +1 -0
- package/dist/interfaces/unifiedto.d.ts +19 -0
- package/dist/interfaces/unifiedto.d.ts.map +1 -1
- package/dist/primitives/agent.handler.d.ts +7 -2
- package/dist/primitives/agent.handler.d.ts.map +1 -1
- package/dist/primitives/agent.handler.js +43 -6
- package/dist/primitives/agent.handler.js.map +1 -1
- package/dist/primitives/base.handler.d.ts +76 -3
- package/dist/primitives/base.handler.d.ts.map +1 -1
- package/dist/primitives/base.handler.js +99 -8
- package/dist/primitives/base.handler.js.map +1 -1
- package/dist/primitives/device-trigger.handler.d.ts +56 -0
- package/dist/primitives/device-trigger.handler.d.ts.map +1 -0
- package/dist/primitives/device-trigger.handler.js +100 -0
- package/dist/primitives/device-trigger.handler.js.map +1 -0
- package/dist/primitives/device.handler.d.ts.map +1 -1
- package/dist/primitives/device.handler.js +0 -2
- package/dist/primitives/device.handler.js.map +1 -1
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +4 -0
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/mcp-server.handler.d.ts +46 -22
- package/dist/primitives/mcp-server.handler.d.ts.map +1 -1
- package/dist/primitives/mcp-server.handler.js +52 -21
- package/dist/primitives/mcp-server.handler.js.map +1 -1
- package/dist/types/skill.d.ts +65 -8
- package/dist/types/skill.d.ts.map +1 -1
- package/dist/types/skill.js +18 -0
- package/dist/types/skill.js.map +1 -1
- package/dist/types/yaml.types.d.ts +7 -0
- package/dist/types/yaml.types.d.ts.map +1 -1
- package/dist/utils/artifact-loader.d.ts +2 -1
- package/dist/utils/artifact-loader.d.ts.map +1 -1
- package/dist/utils/artifact-loader.js +3 -0
- package/dist/utils/artifact-loader.js.map +1 -1
- package/dist/utils/sandbox.d.ts.map +1 -1
- package/dist/utils/sandbox.js +10 -0
- package/dist/utils/sandbox.js.map +1 -1
- package/dist/utils/sync-display.d.ts +1 -0
- package/dist/utils/sync-display.d.ts.map +1 -1
- package/dist/utils/sync-display.js +8 -0
- package/dist/utils/sync-display.js.map +1 -1
- package/dist/utils/sync-fetch.d.ts +9 -2
- package/dist/utils/sync-fetch.d.ts.map +1 -1
- package/dist/utils/sync-fetch.js +21 -7
- package/dist/utils/sync-fetch.js.map +1 -1
- package/dist/utils/sync-helpers.d.ts +2 -2
- package/dist/utils/sync-helpers.d.ts.map +1 -1
- package/dist/utils/sync-helpers.js +2 -2
- package/dist/utils/sync-helpers.js.map +1 -1
- package/docs/README.md +1 -1
- package/node_modules/@lua/shared-types/dist/index.d.mts +122 -1
- package/node_modules/@lua/shared-types/dist/index.d.ts +122 -1
- package/node_modules/@lua/shared-types/src/agent-config.types.ts +31 -0
- package/node_modules/@lua/shared-types/src/agent-invocation.types.ts +73 -0
- package/node_modules/@lua/shared-types/src/device.types.ts +18 -0
- package/node_modules/@lua/shared-types/src/index.ts +2 -0
- package/package.json +2 -1
- package/template/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
- ⏰ **Scheduled Jobs** - Cron-based and one-time background tasks
|
|
18
18
|
- 📥 **Preprocessors** - Filter and route messages before they reach your agent
|
|
19
19
|
- 📤 **Postprocessors** - Transform and format agent responses
|
|
20
|
+
- 🔗 **Integrations & Triggers** - Connect third-party services (Gmail, Slack, etc.) and manage event-driven triggers; pause/resume individual triggers or entire connections
|
|
20
21
|
- 💬 **Streaming Chat** - Real-time chat interface with typing indicators
|
|
21
22
|
- 🧪 **Local Testing** - Test tools, webhooks, and jobs in sandbox before deploying
|
|
22
23
|
- 🚀 **Batch Deployment** - Push all components with one command
|
|
@@ -260,6 +261,17 @@ lua production # View production status
|
|
|
260
261
|
lua env # Manage environment variables
|
|
261
262
|
lua logs # View agent logs
|
|
262
263
|
lua marketplace # Browse and install skills
|
|
264
|
+
|
|
265
|
+
# Integrations & Triggers
|
|
266
|
+
lua integrations list # List connected integrations
|
|
267
|
+
lua integrations connect # Connect a new integration (OAuth or token)
|
|
268
|
+
lua integrations webhooks list # List all triggers for an agent
|
|
269
|
+
lua integrations webhooks create # Create a new trigger for a connection
|
|
270
|
+
lua integrations webhooks pause --webhook-id <id> # Pause a single trigger
|
|
271
|
+
lua integrations webhooks resume --webhook-id <id> # Resume a single trigger
|
|
272
|
+
lua integrations webhooks pause --connection-id <id> # Pause all triggers for a connection
|
|
273
|
+
lua integrations webhooks resume --connection-id <id> # Resume all triggers for a connection
|
|
274
|
+
lua triggers # Alias for 'lua integrations webhooks'
|
|
263
275
|
```
|
|
264
276
|
|
|
265
277
|
[**→ Full CLI Reference**](docs/CLI_REFERENCE.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AgentInvocationInput, AgentInvocationOutput } from "@lua/shared-types";
|
|
2
|
+
import { HttpClient } from "./http.client.js";
|
|
3
|
+
import { ApiResponse } from "../interfaces/common.js";
|
|
4
|
+
/**
|
|
5
|
+
* Thin wrapper around `POST /chat/generate/:agentId` used by the lua-cli
|
|
6
|
+
* sandbox's `Agents.invoke`. Mirrors the HTTP pattern `lua chat` already uses
|
|
7
|
+
* — no new endpoint on lua-api / lua-core is required.
|
|
8
|
+
*/
|
|
9
|
+
export default class AgentsApiService extends HttpClient {
|
|
10
|
+
private readonly apiKey;
|
|
11
|
+
constructor(baseUrl: string, apiKey: string);
|
|
12
|
+
invoke(targetAgentId: string, body: AgentInvocationInput): Promise<ApiResponse<AgentInvocationOutput>>;
|
|
13
|
+
/**
|
|
14
|
+
* Sandbox overload: mirrors the `AI.generate` pattern where the simplified
|
|
15
|
+
* `(prompt)` call returns plain text and the `(input)` call returns the
|
|
16
|
+
* full structured output.
|
|
17
|
+
*/
|
|
18
|
+
invokeForSandbox(targetAgentId: string, promptOrInput: string | AgentInvocationInput): Promise<string | AgentInvocationOutput>;
|
|
19
|
+
private toChatGenerateBody;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=agents.api.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.api.service.d.ts","sourceRoot":"","sources":["../../src/api/agents.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AActD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IAGpD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADvB,OAAO,EAAE,MAAM,EACE,MAAM,EAAE,MAAM;IAK3B,MAAM,CACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAY9C;;;;OAIG;IACG,gBAAgB,CACpB,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GAAG,oBAAoB,GAC3C,OAAO,CAAC,MAAM,GAAG,qBAAqB,CAAC;IAe1C,OAAO,CAAC,kBAAkB;CAa3B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { HttpClient } from "./http.client.js";
|
|
2
|
+
/**
|
|
3
|
+
* Thin wrapper around `POST /chat/generate/:agentId` used by the lua-cli
|
|
4
|
+
* sandbox's `Agents.invoke`. Mirrors the HTTP pattern `lua chat` already uses
|
|
5
|
+
* — no new endpoint on lua-api / lua-core is required.
|
|
6
|
+
*/
|
|
7
|
+
export default class AgentsApiService extends HttpClient {
|
|
8
|
+
constructor(baseUrl, apiKey) {
|
|
9
|
+
super(baseUrl);
|
|
10
|
+
this.apiKey = apiKey;
|
|
11
|
+
}
|
|
12
|
+
async invoke(targetAgentId, body) {
|
|
13
|
+
const channel = body.channel ?? "agent-invocation";
|
|
14
|
+
const query = new URLSearchParams({ channel });
|
|
15
|
+
if (body.identifier)
|
|
16
|
+
query.set("identifier", body.identifier);
|
|
17
|
+
const chatBody = this.toChatGenerateBody(body);
|
|
18
|
+
return this.httpPost(`/chat/generate/${targetAgentId}?${query.toString()}`, chatBody, { Authorization: `Bearer ${this.apiKey}` });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Sandbox overload: mirrors the `AI.generate` pattern where the simplified
|
|
22
|
+
* `(prompt)` call returns plain text and the `(input)` call returns the
|
|
23
|
+
* full structured output.
|
|
24
|
+
*/
|
|
25
|
+
async invokeForSandbox(targetAgentId, promptOrInput) {
|
|
26
|
+
const input = typeof promptOrInput === "string" ? { prompt: promptOrInput } : promptOrInput;
|
|
27
|
+
const result = await this.invoke(targetAgentId, input);
|
|
28
|
+
if (!result.success) {
|
|
29
|
+
throw new Error(result.error?.message || "Agent invocation failed");
|
|
30
|
+
}
|
|
31
|
+
if (!result.data) {
|
|
32
|
+
throw new Error("Agent invocation failed: empty response");
|
|
33
|
+
}
|
|
34
|
+
return typeof promptOrInput === "string" ? (result.data.text ?? "") : result.data;
|
|
35
|
+
}
|
|
36
|
+
toChatGenerateBody(body) {
|
|
37
|
+
const messages = body.messages
|
|
38
|
+
? body.messages
|
|
39
|
+
: [{ type: "text", text: body.prompt ?? "" }];
|
|
40
|
+
return {
|
|
41
|
+
messages,
|
|
42
|
+
navigate: false,
|
|
43
|
+
...(body.systemPrompt !== undefined ? { systemPrompt: body.systemPrompt } : {}),
|
|
44
|
+
...(body.runtimeContext !== undefined ? { runtimeContext: body.runtimeContext } : {}),
|
|
45
|
+
...(body.threadId !== undefined ? { threadId: body.threadId } : {}),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=agents.api.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.api.service.js","sourceRoot":"","sources":["../../src/api/agents.api.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAe9C;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,CAAC;QAC7D,CAAC;QAED,OAAO,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;IACpF,CAAC;IAEO,kBAAkB,CAAC,IAA0B;QACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ;YAC5B,CAAC,CAAE,IAAI,CAAC,QAAyC;YACjD,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC;QAEzD,OAAO;YACL,QAAQ;YACR,QAAQ,EAAE,KAAK;YACf,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/E,GAAG,CAAC,IAAI,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACrF,GAAG,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACpE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { HttpClient } from "./http.client.js";
|
|
2
|
+
import { ApiResponse } from "../interfaces/common.js";
|
|
3
|
+
import { CreateDeviceTriggerDTO, PushDeviceTriggerVersionDTO } from "../interfaces/device-triggers.js";
|
|
4
|
+
/**
|
|
5
|
+
* Device Trigger API Response Types
|
|
6
|
+
*/
|
|
7
|
+
export interface DeviceTriggerVersionInfo {
|
|
8
|
+
version: string;
|
|
9
|
+
deviceTriggerId: string;
|
|
10
|
+
createdAt: string | number;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface GetDeviceTriggersResponse {
|
|
14
|
+
deviceTriggers: Array<{
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
versions: DeviceTriggerVersionInfo[];
|
|
22
|
+
activeVersionId?: string;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
export interface CreateDeviceTriggerResponse {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
agentId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DeviceTriggerVersionResponse {
|
|
32
|
+
versionId: string;
|
|
33
|
+
deviceTriggerId: string;
|
|
34
|
+
version: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
}
|
|
37
|
+
export interface DeleteDeviceTriggerResponse {
|
|
38
|
+
deleted: boolean;
|
|
39
|
+
deactivated?: boolean;
|
|
40
|
+
message: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Device Trigger API Service
|
|
44
|
+
* Handles all device trigger-related API calls
|
|
45
|
+
*/
|
|
46
|
+
export default class DeviceTriggerApi extends HttpClient {
|
|
47
|
+
private apiKey;
|
|
48
|
+
private agentId;
|
|
49
|
+
/**
|
|
50
|
+
* Creates an instance of DeviceTriggerApi
|
|
51
|
+
* @param baseUrl - The base URL for the API
|
|
52
|
+
* @param apiKey - The API key for authentication
|
|
53
|
+
* @param agentId - The unique identifier of the agent
|
|
54
|
+
*/
|
|
55
|
+
constructor(baseUrl: string, apiKey: string, agentId: string);
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves all device triggers for the agent
|
|
58
|
+
* @returns Promise resolving to an ApiResponse containing an array of device triggers with their versions
|
|
59
|
+
* @throws Error if the API request fails or the agent is not found
|
|
60
|
+
*/
|
|
61
|
+
getDeviceTriggers(): Promise<ApiResponse<GetDeviceTriggersResponse>>;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a new device trigger for the agent
|
|
64
|
+
* @param data - The device trigger data including name and description
|
|
65
|
+
* @returns Promise resolving to an ApiResponse containing the created device trigger details
|
|
66
|
+
* @throws Error if the device trigger creation fails or validation errors occur
|
|
67
|
+
*/
|
|
68
|
+
createDeviceTrigger(data: CreateDeviceTriggerDTO): Promise<ApiResponse<CreateDeviceTriggerResponse>>;
|
|
69
|
+
/**
|
|
70
|
+
* Pushes a new version of a device trigger to production
|
|
71
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
72
|
+
* @param versionData - The version data including code, configuration, and metadata
|
|
73
|
+
* @returns Promise resolving to an ApiResponse containing the created version details
|
|
74
|
+
* @throws Error if the device trigger is not found or the push operation fails
|
|
75
|
+
*/
|
|
76
|
+
pushDeviceTrigger(deviceTriggerId: string, versionData: PushDeviceTriggerVersionDTO): Promise<ApiResponse<DeviceTriggerVersionResponse>>;
|
|
77
|
+
/**
|
|
78
|
+
* Pushes a new development/sandbox version of a device trigger for testing
|
|
79
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
80
|
+
* @param versionData - The version data including code, configuration, and metadata
|
|
81
|
+
* @returns Promise resolving to an ApiResponse containing the development version details
|
|
82
|
+
* @throws Error if the device trigger is not found or the push operation fails
|
|
83
|
+
*/
|
|
84
|
+
pushDevDeviceTrigger(deviceTriggerId: string, versionData: PushDeviceTriggerVersionDTO): Promise<ApiResponse<DeviceTriggerVersionResponse>>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves all versions of a specific device trigger
|
|
87
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
88
|
+
* @returns Promise resolving to an ApiResponse containing an array of device trigger versions
|
|
89
|
+
* @throws Error if the device trigger is not found or the request fails
|
|
90
|
+
*/
|
|
91
|
+
getDeviceTriggerVersions(deviceTriggerId: string): Promise<ApiResponse<{
|
|
92
|
+
versions: DeviceTriggerVersionInfo[];
|
|
93
|
+
activeVersionId?: string;
|
|
94
|
+
}>>;
|
|
95
|
+
/**
|
|
96
|
+
* Publishes a specific version of a device trigger to production
|
|
97
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
98
|
+
* @param version - The version identifier to publish
|
|
99
|
+
* @returns Promise resolving to an ApiResponse containing publication confirmation details
|
|
100
|
+
* @throws Error if the device trigger or version is not found or the publish operation fails
|
|
101
|
+
*/
|
|
102
|
+
publishDeviceTriggerVersion(deviceTriggerId: string, version: string): Promise<ApiResponse<{
|
|
103
|
+
message: string;
|
|
104
|
+
deviceTriggerId: string;
|
|
105
|
+
activeVersionId: string;
|
|
106
|
+
publishedAt: string;
|
|
107
|
+
}>>;
|
|
108
|
+
/**
|
|
109
|
+
* Activates a device trigger (enables it to receive events)
|
|
110
|
+
* @param deviceTriggerId - The unique identifier of the device trigger to activate
|
|
111
|
+
* @returns Promise resolving to an ApiResponse with activation status
|
|
112
|
+
* @throws Error if the device trigger is not found or the operation fails
|
|
113
|
+
*/
|
|
114
|
+
activateDeviceTrigger(deviceTriggerId: string): Promise<ApiResponse<{
|
|
115
|
+
message: string;
|
|
116
|
+
active: boolean;
|
|
117
|
+
}>>;
|
|
118
|
+
/**
|
|
119
|
+
* Deactivates a device trigger (stops it from receiving events)
|
|
120
|
+
* @param deviceTriggerId - The unique identifier of the device trigger to deactivate
|
|
121
|
+
* @returns Promise resolving to an ApiResponse with deactivation status
|
|
122
|
+
* @throws Error if the device trigger is not found or the operation fails
|
|
123
|
+
*/
|
|
124
|
+
deactivateDeviceTrigger(deviceTriggerId: string): Promise<ApiResponse<{
|
|
125
|
+
message: string;
|
|
126
|
+
active: boolean;
|
|
127
|
+
}>>;
|
|
128
|
+
/**
|
|
129
|
+
* Deletes a device trigger and all its versions, or deactivates it if it has versions
|
|
130
|
+
* @param deviceTriggerId - The unique identifier of the device trigger to delete
|
|
131
|
+
* @returns Promise resolving to an ApiResponse with deletion status
|
|
132
|
+
* @throws Error if the device trigger is not found or the delete operation fails
|
|
133
|
+
*/
|
|
134
|
+
deleteDeviceTrigger(deviceTriggerId: string): Promise<ApiResponse<DeleteDeviceTriggerResponse>>;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=device-trigger.api.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-trigger.api.service.d.ts","sourceRoot":"","sources":["../../src/api/device-trigger.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,KAAK,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,wBAAwB,EAAE,CAAC;QACrC,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAA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AAe,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAM7L;;;;;OAKG;IACG,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAMhH;;;;;OAKG;IACG,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAMlH;;;;;OAKG;IACG,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;CAKtG"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { HttpClient } from "./http.client.js";
|
|
2
|
+
/**
|
|
3
|
+
* Device Trigger API Service
|
|
4
|
+
* Handles all device trigger-related API calls
|
|
5
|
+
*/
|
|
6
|
+
export default class DeviceTriggerApi extends HttpClient {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an instance of DeviceTriggerApi
|
|
9
|
+
* @param baseUrl - The base URL for the API
|
|
10
|
+
* @param apiKey - The API key for authentication
|
|
11
|
+
* @param agentId - The unique identifier of the agent
|
|
12
|
+
*/
|
|
13
|
+
constructor(baseUrl, apiKey, agentId) {
|
|
14
|
+
super(baseUrl);
|
|
15
|
+
this.apiKey = apiKey;
|
|
16
|
+
this.agentId = agentId;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves all device triggers for the agent
|
|
20
|
+
* @returns Promise resolving to an ApiResponse containing an array of device triggers with their versions
|
|
21
|
+
* @throws Error if the API request fails or the agent is not found
|
|
22
|
+
*/
|
|
23
|
+
async getDeviceTriggers() {
|
|
24
|
+
return this.httpGet(`/developer/device-triggers/${this.agentId}`, {
|
|
25
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new device trigger for the agent
|
|
30
|
+
* @param data - The device trigger data including name and description
|
|
31
|
+
* @returns Promise resolving to an ApiResponse containing the created device trigger details
|
|
32
|
+
* @throws Error if the device trigger creation fails or validation errors occur
|
|
33
|
+
*/
|
|
34
|
+
async createDeviceTrigger(data) {
|
|
35
|
+
return this.httpPost(`/developer/device-triggers/${this.agentId}`, data, {
|
|
36
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Pushes a new version of a device trigger to production
|
|
41
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
42
|
+
* @param versionData - The version data including code, configuration, and metadata
|
|
43
|
+
* @returns Promise resolving to an ApiResponse containing the created version details
|
|
44
|
+
* @throws Error if the device trigger is not found or the push operation fails
|
|
45
|
+
*/
|
|
46
|
+
async pushDeviceTrigger(deviceTriggerId, versionData) {
|
|
47
|
+
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/version`, versionData, {
|
|
48
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Pushes a new development/sandbox version of a device trigger for testing
|
|
53
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
54
|
+
* @param versionData - The version data including code, configuration, and metadata
|
|
55
|
+
* @returns Promise resolving to an ApiResponse containing the development version details
|
|
56
|
+
* @throws Error if the device trigger is not found or the push operation fails
|
|
57
|
+
*/
|
|
58
|
+
async pushDevDeviceTrigger(deviceTriggerId, versionData) {
|
|
59
|
+
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/version/sandbox`, versionData, {
|
|
60
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves all versions of a specific device trigger
|
|
65
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
66
|
+
* @returns Promise resolving to an ApiResponse containing an array of device trigger versions
|
|
67
|
+
* @throws Error if the device trigger is not found or the request fails
|
|
68
|
+
*/
|
|
69
|
+
async getDeviceTriggerVersions(deviceTriggerId) {
|
|
70
|
+
return this.httpGet(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/versions`, {
|
|
71
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Publishes a specific version of a device trigger to production
|
|
76
|
+
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
77
|
+
* @param version - The version identifier to publish
|
|
78
|
+
* @returns Promise resolving to an ApiResponse containing publication confirmation details
|
|
79
|
+
* @throws Error if the device trigger or version is not found or the publish operation fails
|
|
80
|
+
*/
|
|
81
|
+
async publishDeviceTriggerVersion(deviceTriggerId, version) {
|
|
82
|
+
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/${version}/publish`, {}, {
|
|
83
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Activates a device trigger (enables it to receive events)
|
|
88
|
+
* @param deviceTriggerId - The unique identifier of the device trigger to activate
|
|
89
|
+
* @returns Promise resolving to an ApiResponse with activation status
|
|
90
|
+
* @throws Error if the device trigger is not found or the operation fails
|
|
91
|
+
*/
|
|
92
|
+
async activateDeviceTrigger(deviceTriggerId) {
|
|
93
|
+
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/activate`, {}, {
|
|
94
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Deactivates a device trigger (stops it from receiving events)
|
|
99
|
+
* @param deviceTriggerId - The unique identifier of the device trigger to deactivate
|
|
100
|
+
* @returns Promise resolving to an ApiResponse with deactivation status
|
|
101
|
+
* @throws Error if the device trigger is not found or the operation fails
|
|
102
|
+
*/
|
|
103
|
+
async deactivateDeviceTrigger(deviceTriggerId) {
|
|
104
|
+
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/deactivate`, {}, {
|
|
105
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Deletes a device trigger and all its versions, or deactivates it if it has versions
|
|
110
|
+
* @param deviceTriggerId - The unique identifier of the device trigger to delete
|
|
111
|
+
* @returns Promise resolving to an ApiResponse with deletion status
|
|
112
|
+
* @throws Error if the device trigger is not found or the delete operation fails
|
|
113
|
+
*/
|
|
114
|
+
async deleteDeviceTrigger(deviceTriggerId) {
|
|
115
|
+
return this.httpDelete(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}`, {
|
|
116
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=device-trigger.api.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-trigger.api.service.js","sourceRoot":"","sources":["../../src/api/device-trigger.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAkD9C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IAItD;;;;;OAKG;IACH,YAAY,OAAe,EAAE,MAAc,EAAE,OAAe;QAC1D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,iBAAiB;QACrB,OAAO,IAAI,CAAC,OAAO,CAA4B,8BAA8B,IAAI,CAAC,OAAO,EAAE,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CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,qBAAqB,CAAC,eAAuB;QACjD,OAAO,IAAI,CAAC,QAAQ,CAAuC,8BAA8B,IAAI,CAAC,OAAO,IAAI,eAAe,WAAW,EAAE,EAAE,EAAE;YACvI,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAAC,eAAuB;QACnD,OAAO,IAAI,CAAC,QAAQ,CAAuC,8BAA8B,IAAI,CAAC,OAAO,IAAI,eAAe,aAAa,EAAE,EAAE,EAAE;YACzI,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CAAC,eAAuB;QAC/C,OAAO,IAAI,CAAC,UAAU,CAA8B,8BAA8B,IAAI,CAAC,OAAO,IAAI,eAAe,EAAE,EAAE;YACnH,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -10,6 +10,7 @@ import CustomDataApiService from "./custom.data.api.service.js";
|
|
|
10
10
|
import WebhookApi from "./webhook.api.service.js";
|
|
11
11
|
import JobApi from "./job.api.service.js";
|
|
12
12
|
import AiApiService from "./ai.api.service.js";
|
|
13
|
+
import AgentsApiService from "./agents.api.service.js";
|
|
13
14
|
import WhatsAppTemplatesApiService from "./whatsapp-templates.api.service.js";
|
|
14
15
|
import CdnApi from "./cdn.api.service.js";
|
|
15
16
|
import DeveloperApi from "./developer.api.service.js";
|
|
@@ -69,6 +70,13 @@ export declare function getJobInstance(): Promise<JobApi>;
|
|
|
69
70
|
* @returns AiApiService instance
|
|
70
71
|
*/
|
|
71
72
|
export declare function getAiInstance(): Promise<AiApiService>;
|
|
73
|
+
/**
|
|
74
|
+
* Gets or creates Agents API instance (for VM `Agents.invoke`).
|
|
75
|
+
* Instance is created once and reused for subsequent calls.
|
|
76
|
+
*
|
|
77
|
+
* @returns AgentsApiService instance
|
|
78
|
+
*/
|
|
79
|
+
export declare function getAgentsInstance(): Promise<AgentsApiService>;
|
|
72
80
|
/**
|
|
73
81
|
* Gets or creates Templates API instance.
|
|
74
82
|
* Instance is created once and reused for subsequent calls.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-instances.d.ts","sourceRoot":"","sources":["../../src/api/lazy-instances.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAC9E,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,YAAY,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"lazy-instances.d.ts","sourceRoot":"","sources":["../../src/api/lazy-instances.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,YAAY,MAAM,qBAAq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.api.service.js";
|
|
|
12
12
|
import WebhookApi from "./webhook.api.service.js";
|
|
13
13
|
import JobApi from "./job.api.service.js";
|
|
14
14
|
import AiApiService from "./ai.api.service.js";
|
|
15
|
+
import AgentsApiService from "./agents.api.service.js";
|
|
15
16
|
import WhatsAppTemplatesApiService from "./whatsapp-templates.api.service.js";
|
|
16
17
|
import CdnApi from "./cdn.api.service.js";
|
|
17
18
|
import DeveloperApi from "./developer.api.service.js";
|
|
@@ -26,6 +27,7 @@ let _orderInstance = null;
|
|
|
26
27
|
let _webhookInstance = null;
|
|
27
28
|
let _jobInstance = null;
|
|
28
29
|
let _aiInstance = null;
|
|
30
|
+
let _agentsInstance = null;
|
|
29
31
|
let _whatsAppTemplatesInstance = null;
|
|
30
32
|
let _cdnInstance = null;
|
|
31
33
|
let _developerInstance = null;
|
|
@@ -133,6 +135,19 @@ export async function getAiInstance() {
|
|
|
133
135
|
}
|
|
134
136
|
return _aiInstance;
|
|
135
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Gets or creates Agents API instance (for VM `Agents.invoke`).
|
|
140
|
+
* Instance is created once and reused for subsequent calls.
|
|
141
|
+
*
|
|
142
|
+
* @returns AgentsApiService instance
|
|
143
|
+
*/
|
|
144
|
+
export async function getAgentsInstance() {
|
|
145
|
+
if (!_agentsInstance) {
|
|
146
|
+
const creds = await getCredentials();
|
|
147
|
+
_agentsInstance = new AgentsApiService(BASE_URLS.API, creds.apiKey);
|
|
148
|
+
}
|
|
149
|
+
return _agentsInstance;
|
|
150
|
+
}
|
|
136
151
|
/**
|
|
137
152
|
* Gets or creates Templates API instance.
|
|
138
153
|
* Instance is created once and reused for subsequent calls.
|
|
@@ -197,6 +212,7 @@ export function clearAllInstances() {
|
|
|
197
212
|
_webhookInstance = null;
|
|
198
213
|
_jobInstance = null;
|
|
199
214
|
_aiInstance = null;
|
|
215
|
+
_agentsInstance = null;
|
|
200
216
|
_whatsAppTemplatesInstance = null;
|
|
201
217
|
_cdnInstance = null;
|
|
202
218
|
_developerInstance = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-instances.js","sourceRoot":"","sources":["../../src/api/lazy-instances.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAC9E,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAGtD;;GAEG;AACH,IAAI,aAAa,GAA8B,IAAI,CAAC;AACpD,IAAI,aAAa,GAAgC,IAAI,CAAC;AACtD,IAAI,iBAAiB,GAA6B,IAAI,CAAC;AACvD,IAAI,gBAAgB,GAA4B,IAAI,CAAC;AACrD,IAAI,cAAc,GAA2B,IAAI,CAAC;AAClD,IAAI,gBAAgB,GAAsB,IAAI,CAAC;AAC/C,IAAI,YAAY,GAAkB,IAAI,CAAC;AACvC,IAAI,WAAW,GAAwB,IAAI,CAAC;AAC5C,IAAI,0BAA0B,GAAuC,IAAI,CAAC;AAC1E,IAAI,YAAY,GAAkB,IAAI,CAAC;AACvC,IAAI,kBAAkB,GAAwB,IAAI,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,KAAK,G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MAAM,CAAC,yBAAyB,CAAC,CAAC;QACvE,MAAM,KAAK,GAAG,MAAM,cAAc,EAAE,CAAC;QACrC,eAAe,GAAG,IAAI,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxB,MAAM,KAAK,GAAG,MAAM,cAAc,EAAE,CAAC;QACrC,kBAAkB,GAAG,IAAI,YAAY,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;IACD,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,aAAa,GAAG,IAAI,CAAC;IACrB,aAAa,GAAG,IAAI,CAAC;IACrB,iBAAiB,GAAG,IAAI,CAAC;IACzB,gBAAgB,GAAG,IAAI,CAAC;IACxB,cAAc,GAAG,IAAI,CAAC;IACtB,gBAAgB,GAAG,IAAI,CAAC;IACxB,YAAY,GAAG,IAAI,CAAC;IACpB,WAAW,GAAG,IAAI,CAAC;IACnB,eAAe,GAAG,IAAI,CAAC;IACvB,0BAA0B,GAAG,IAAI,CAAC;IAClC,YAAY,GAAG,IAAI,CAAC;IACpB,kBAAkB,GAAG,IAAI,CAAC;AAC5B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from "./http.client.js";
|
|
2
2
|
import { ApiResponse } from "../interfaces/common.js";
|
|
3
|
-
import { UnifiedToIntegrationResponse, UnifiedToAuthUrlResponse, UnifiedToConnectionResponse, WebhookEventInfo, CreateWebhookSubscriptionParams, WebhookSubscriptionResponse, FinalizeConnectionResponse } from "../interfaces/unifiedto.js";
|
|
3
|
+
import { UnifiedToIntegrationResponse, UnifiedToAuthUrlResponse, UnifiedToConnectionResponse, WebhookEventInfo, CreateWebhookSubscriptionParams, WebhookSubscriptionResponse, FinalizeConnectionResponse, UpdateConnectionStatusResponse } from "../interfaces/unifiedto.js";
|
|
4
4
|
/**
|
|
5
5
|
* UnifiedTo API Service
|
|
6
6
|
* Handles all UnifiedTo integration-related API calls
|
|
@@ -112,5 +112,22 @@ export default class UnifiedToApi extends HttpClient {
|
|
|
112
112
|
success: boolean;
|
|
113
113
|
message: string;
|
|
114
114
|
}>>;
|
|
115
|
+
/**
|
|
116
|
+
* User-initiated pause of a webhook subscription
|
|
117
|
+
*/
|
|
118
|
+
pauseWebhookSubscription(agentId: string, webhookId: string, reason?: string): Promise<ApiResponse<WebhookSubscriptionResponse>>;
|
|
119
|
+
/**
|
|
120
|
+
* User-initiated resume of a webhook subscription
|
|
121
|
+
* Returns error with code CREDIT_SUSPENDED if the webhook is credit-suspended
|
|
122
|
+
*/
|
|
123
|
+
resumeWebhookSubscription(agentId: string, webhookId: string): Promise<ApiResponse<WebhookSubscriptionResponse>>;
|
|
124
|
+
/**
|
|
125
|
+
* Pause all non-credit-suspended triggers for a connection
|
|
126
|
+
*/
|
|
127
|
+
pauseConnection(agentId: string, connectionId: string): Promise<ApiResponse<UpdateConnectionStatusResponse>>;
|
|
128
|
+
/**
|
|
129
|
+
* Resume all triggers for a connection (skips credit-suspended ones)
|
|
130
|
+
*/
|
|
131
|
+
resumeConnection(agentId: string, connectionId: string): Promise<ApiResponse<UpdateConnectionStatusResponse>>;
|
|
115
132
|
}
|
|
116
133
|
//# sourceMappingURL=unifiedto.api.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unifiedto.api.service.d.ts","sourceRoot":"","sources":["../../src/api/unifiedto.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAA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E,MAAM,GACd,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,CAAC,CAAC;IAOtD;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAQpD;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAS9D;;OAEG;IACG,wBAAwB,CAC5B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAQpD;;;OAGG;IACG,yBAAyB,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAQpD;;OAEG;IACG,eAAe,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAAC;IAQvD;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAAC;CAOxD"}
|
|
@@ -118,5 +118,31 @@ export default class UnifiedToApi extends HttpClient {
|
|
|
118
118
|
async deleteWebhookSubscription(agentId, webhookId) {
|
|
119
119
|
return this.httpDelete(`/developer/unifiedto/webhooks/${agentId}/${webhookId}`, { Authorization: `Bearer ${this.apiKey}` });
|
|
120
120
|
}
|
|
121
|
+
// ==================== User Pause / Resume ====================
|
|
122
|
+
/**
|
|
123
|
+
* User-initiated pause of a webhook subscription
|
|
124
|
+
*/
|
|
125
|
+
async pauseWebhookSubscription(agentId, webhookId, reason) {
|
|
126
|
+
return this.httpPatch(`/developer/unifiedto/webhooks/${agentId}/${webhookId}`, { status: 'paused', ...(reason ? { reason } : {}) }, { Authorization: `Bearer ${this.apiKey}` });
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* User-initiated resume of a webhook subscription
|
|
130
|
+
* Returns error with code CREDIT_SUSPENDED if the webhook is credit-suspended
|
|
131
|
+
*/
|
|
132
|
+
async resumeWebhookSubscription(agentId, webhookId) {
|
|
133
|
+
return this.httpPatch(`/developer/unifiedto/webhooks/${agentId}/${webhookId}`, { status: 'active' }, { Authorization: `Bearer ${this.apiKey}` });
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Pause all non-credit-suspended triggers for a connection
|
|
137
|
+
*/
|
|
138
|
+
async pauseConnection(agentId, connectionId) {
|
|
139
|
+
return this.httpPatch(`/developer/unifiedto/connections/${agentId}/${connectionId}`, { status: 'paused' }, { Authorization: `Bearer ${this.apiKey}` });
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Resume all triggers for a connection (skips credit-suspended ones)
|
|
143
|
+
*/
|
|
144
|
+
async resumeConnection(agentId, connectionId) {
|
|
145
|
+
return this.httpPatch(`/developer/unifiedto/connections/${agentId}/${connectionId}`, { status: 'active' }, { Authorization: `Bearer ${this.apiKey}` });
|
|
146
|
+
}
|
|
121
147
|
}
|
|
122
148
|
//# sourceMappingURL=unifiedto.api.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unifiedto.api.service.js","sourceRoot":"","sources":["../../src/api/unifiedto.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"unifiedto.api.service.js","sourceRoot":"","sources":["../../src/api/unifiedto.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAa9C;;;GA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