glitch-javascript-sdk 3.2.4 → 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 +10 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Agents.d.ts +12 -1
- package/dist/esm/api/RedditSubreddits.d.ts +6 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +18 -1
- package/package.json +1 -1
- package/src/api/Agents.ts +13 -1
- package/src/api/RedditSubreddits.ts +9 -0
- package/src/routes/RedditSubredditsRoute.ts +1 -0
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
|
*/
|
|
@@ -19,6 +19,12 @@ declare class RedditSubreddits {
|
|
|
19
19
|
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/matchRedditSubreddits
|
|
20
20
|
*/
|
|
21
21
|
static match<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
22
|
+
/**
|
|
23
|
+
* Match one of the authenticated user's administered titles to Reddit communities.
|
|
24
|
+
*
|
|
25
|
+
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/titleRedditSubredditMatches
|
|
26
|
+
*/
|
|
27
|
+
static matchTitle<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
22
28
|
/**
|
|
23
29
|
* Admin-only ingestion of subreddit metadata and rules.
|
|
24
30
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -16401,6 +16401,7 @@ var RedditSubredditsRoute = /** @class */ (function () {
|
|
|
16401
16401
|
list: { url: '/reddit/subreddits', method: HTTP_METHODS.GET },
|
|
16402
16402
|
show: { url: '/reddit/subreddits/{subreddit}', method: HTTP_METHODS.GET },
|
|
16403
16403
|
match: { url: '/reddit/subreddits/match', method: HTTP_METHODS.POST },
|
|
16404
|
+
matchTitle: { url: '/titles/{title_id}/reddit/subreddit-matches', method: HTTP_METHODS.POST },
|
|
16404
16405
|
ingest: { url: '/admin/reddit/subreddits/ingest', method: HTTP_METHODS.POST },
|
|
16405
16406
|
refresh: { url: '/admin/reddit/subreddits/{subreddit}/refresh', method: HTTP_METHODS.POST },
|
|
16406
16407
|
};
|
|
@@ -16434,6 +16435,15 @@ var RedditSubreddits = /** @class */ (function () {
|
|
|
16434
16435
|
RedditSubreddits.match = function (data, params) {
|
|
16435
16436
|
return Requests.processRoute(RedditSubredditsRoute.routes.match, data, undefined, params);
|
|
16436
16437
|
};
|
|
16438
|
+
/**
|
|
16439
|
+
* Match one of the authenticated user's administered titles to Reddit communities.
|
|
16440
|
+
*
|
|
16441
|
+
* @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/titleRedditSubredditMatches
|
|
16442
|
+
*/
|
|
16443
|
+
RedditSubreddits.matchTitle = function (title_id, data, params) {
|
|
16444
|
+
if (data === void 0) { data = {}; }
|
|
16445
|
+
return Requests.processRoute(RedditSubredditsRoute.routes.matchTitle, data, { title_id: title_id }, params);
|
|
16446
|
+
};
|
|
16437
16447
|
/**
|
|
16438
16448
|
* Admin-only ingestion of subreddit metadata and rules.
|
|
16439
16449
|
*
|