glitch-javascript-sdk 3.2.5 → 3.2.6
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/cjs/index.js.map +1 -1
- package/dist/esm/api/Agents.d.ts +12 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -1
- package/package.json +1 -1
- package/src/api/Agents.ts +13 -1
package/dist/esm/api/Agents.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import Response from "../util/Response";
|
|
2
2
|
import { AxiosPromise, AxiosProgressEvent } from "axios";
|
|
3
|
+
export interface AgentRunRequest {
|
|
4
|
+
run_type?: string;
|
|
5
|
+
trigger_source?: string;
|
|
6
|
+
background?: boolean;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
live_mode?: boolean;
|
|
9
|
+
initial_message?: string | null;
|
|
10
|
+
attachment_ids?: string[];
|
|
11
|
+
agent_run_id?: string | null;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
3
14
|
declare class Agents {
|
|
4
15
|
/**
|
|
5
16
|
* List game titles that can be managed in the Agents section.
|
|
@@ -36,7 +47,7 @@ declare class Agents {
|
|
|
36
47
|
/**
|
|
37
48
|
* Run an agent planning cycle. Returns 402 when trial/subscription is required.
|
|
38
49
|
*/
|
|
39
|
-
static runAgent<T>(title_id: string, agent_id: string, data?:
|
|
50
|
+
static runAgent<T>(title_id: string, agent_id: string, data?: AgentRunRequest, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
40
51
|
/**
|
|
41
52
|
* Upload one file for an agent run. data can include { agent_run_id }.
|
|
42
53
|
*/
|