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/index.d.ts
CHANGED
|
@@ -9104,6 +9104,17 @@ declare class ServerOperations {
|
|
|
9104
9104
|
static updatePolicy<T>(title_id: string, build_id: string, data: object): AxiosPromise<Response<T>>;
|
|
9105
9105
|
}
|
|
9106
9106
|
|
|
9107
|
+
interface AgentRunRequest {
|
|
9108
|
+
run_type?: string;
|
|
9109
|
+
trigger_source?: string;
|
|
9110
|
+
background?: boolean;
|
|
9111
|
+
inline?: boolean;
|
|
9112
|
+
live_mode?: boolean;
|
|
9113
|
+
initial_message?: string | null;
|
|
9114
|
+
attachment_ids?: string[];
|
|
9115
|
+
agent_run_id?: string | null;
|
|
9116
|
+
[key: string]: any;
|
|
9117
|
+
}
|
|
9107
9118
|
declare class Agents {
|
|
9108
9119
|
/**
|
|
9109
9120
|
* List game titles that can be managed in the Agents section.
|
|
@@ -9140,7 +9151,7 @@ declare class Agents {
|
|
|
9140
9151
|
/**
|
|
9141
9152
|
* Run an agent planning cycle. Returns 402 when trial/subscription is required.
|
|
9142
9153
|
*/
|
|
9143
|
-
static runAgent<T>(title_id: string, agent_id: string, data?:
|
|
9154
|
+
static runAgent<T>(title_id: string, agent_id: string, data?: AgentRunRequest, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9144
9155
|
/**
|
|
9145
9156
|
* Upload one file for an agent run. data can include { agent_run_id }.
|
|
9146
9157
|
*/
|
package/package.json
CHANGED
package/src/api/Agents.ts
CHANGED
|
@@ -3,6 +3,18 @@ import Requests from "../util/Requests";
|
|
|
3
3
|
import Response from "../util/Response";
|
|
4
4
|
import { AxiosPromise, AxiosProgressEvent } from "axios";
|
|
5
5
|
|
|
6
|
+
export interface AgentRunRequest {
|
|
7
|
+
run_type?: string;
|
|
8
|
+
trigger_source?: string;
|
|
9
|
+
background?: boolean;
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
live_mode?: boolean;
|
|
12
|
+
initial_message?: string | null;
|
|
13
|
+
attachment_ids?: string[];
|
|
14
|
+
agent_run_id?: string | null;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
|
|
6
18
|
class Agents {
|
|
7
19
|
/**
|
|
8
20
|
* List game titles that can be managed in the Agents section.
|
|
@@ -63,7 +75,7 @@ class Agents {
|
|
|
63
75
|
/**
|
|
64
76
|
* Run an agent planning cycle. Returns 402 when trial/subscription is required.
|
|
65
77
|
*/
|
|
66
|
-
public static runAgent<T>(title_id: string, agent_id: string, data?:
|
|
78
|
+
public static runAgent<T>(title_id: string, agent_id: string, data?: AgentRunRequest, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
67
79
|
return Requests.processRoute(AgentsRoute.routes.runAgent, data, { title_id, agent_id }, params);
|
|
68
80
|
}
|
|
69
81
|
|