@arcadeai/arcadejs 0.2.2 → 1.0.0-rc.1
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/CHANGELOG.md +36 -0
- package/README.md +2 -3
- package/core.d.ts.map +1 -1
- package/core.js +10 -1
- package/core.js.map +1 -1
- package/core.mjs +10 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -8
- package/index.d.ts +9 -8
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth.d.ts +73 -9
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +81 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +79 -0
- package/resources/auth.mjs.map +1 -1
- package/resources/chat/chat.d.ts +5 -2
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +4 -1
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.ts +8 -10
- package/resources/shared.d.ts.map +1 -1
- package/resources/tools/formatted.d.ts +2 -5
- package/resources/tools/formatted.d.ts.map +1 -1
- package/resources/tools/formatted.js +6 -6
- package/resources/tools/formatted.js.map +1 -1
- package/resources/tools/formatted.mjs +6 -6
- package/resources/tools/formatted.mjs.map +1 -1
- package/resources/tools/index.d.ts +2 -2
- package/resources/tools/index.d.ts.map +1 -1
- package/resources/tools/index.js +2 -1
- package/resources/tools/index.js.map +1 -1
- package/resources/tools/index.mjs +1 -1
- package/resources/tools/index.mjs.map +1 -1
- package/resources/tools/scheduled.d.ts +15 -33
- package/resources/tools/scheduled.d.ts.map +1 -1
- package/resources/tools/scheduled.js +11 -8
- package/resources/tools/scheduled.js.map +1 -1
- package/resources/tools/scheduled.mjs +10 -7
- package/resources/tools/scheduled.mjs.map +1 -1
- package/resources/tools/tools.d.ts +75 -126
- package/resources/tools/tools.d.ts.map +1 -1
- package/resources/tools/tools.js +7 -4
- package/resources/tools/tools.js.map +1 -1
- package/resources/tools/tools.mjs +5 -3
- package/resources/tools/tools.mjs.map +1 -1
- package/src/core.ts +11 -1
- package/src/index.ts +9 -10
- package/src/resources/auth.ts +127 -8
- package/src/resources/chat/chat.ts +6 -2
- package/src/resources/chat/completions.ts +5 -1
- package/src/resources/index.ts +2 -2
- package/src/resources/shared.ts +10 -12
- package/src/resources/tools/formatted.ts +12 -8
- package/src/resources/tools/index.ts +3 -3
- package/src/resources/tools/scheduled.ts +30 -46
- package/src/resources/tools/tools.ts +93 -156
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/resources/tools/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Tools = exports.ToolListResponsesOffsetPage = exports.Scheduled = exports.Formatted = exports.FormattedListResponsesOffsetPage = void 0;
|
|
4
|
+
exports.Tools = exports.ToolListResponsesOffsetPage = exports.ToolExecutionsOffsetPage = exports.Scheduled = exports.Formatted = exports.FormattedListResponsesOffsetPage = void 0;
|
|
5
5
|
var formatted_1 = require("./formatted.js");
|
|
6
6
|
Object.defineProperty(exports, "FormattedListResponsesOffsetPage", { enumerable: true, get: function () { return formatted_1.FormattedListResponsesOffsetPage; } });
|
|
7
7
|
Object.defineProperty(exports, "Formatted", { enumerable: true, get: function () { return formatted_1.Formatted; } });
|
|
8
8
|
var scheduled_1 = require("./scheduled.js");
|
|
9
9
|
Object.defineProperty(exports, "Scheduled", { enumerable: true, get: function () { return scheduled_1.Scheduled; } });
|
|
10
10
|
var tools_1 = require("./tools.js");
|
|
11
|
+
Object.defineProperty(exports, "ToolExecutionsOffsetPage", { enumerable: true, get: function () { return tools_1.ToolExecutionsOffsetPage; } });
|
|
11
12
|
Object.defineProperty(exports, "ToolListResponsesOffsetPage", { enumerable: true, get: function () { return tools_1.ToolListResponsesOffsetPage; } });
|
|
12
13
|
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAOqB;AANnB,6HAAA,gCAAgC,OAAA;AAChC,sGAAA,SAAS,OAAA;AAMX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAOqB;AANnB,6HAAA,gCAAgC,OAAA;AAChC,sGAAA,SAAS,OAAA;AAMX,4CAA6F;AAApF,sGAAA,SAAS,OAAA;AAClB,oCAeiB;AAdf,iHAAA,wBAAwB,OAAA;AACxB,oHAAA,2BAA2B,OAAA;AAC3B,8FAAA,KAAK,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { FormattedListResponsesOffsetPage, Formatted, } from "./formatted.mjs";
|
|
3
3
|
export { Scheduled } from "./scheduled.mjs";
|
|
4
|
-
export { ToolListResponsesOffsetPage, Tools, } from "./tools.mjs";
|
|
4
|
+
export { ToolExecutionsOffsetPage, ToolListResponsesOffsetPage, Tools, } from "./tools.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gCAAgC,EAChC,SAAS,GAKV;OACM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gCAAgC,EAChC,SAAS,GAKV;OACM,EAAE,SAAS,EAAuD;OAClE,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,KAAK,GAYN"}
|
|
@@ -1,57 +1,39 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
import * as ToolsAPI from "./tools.js";
|
|
4
|
+
import { ToolExecutionsOffsetPage } from "./tools.js";
|
|
5
|
+
import { type OffsetPageParams } from "../../pagination.js";
|
|
4
6
|
export declare class Scheduled extends APIResource {
|
|
5
7
|
/**
|
|
6
8
|
* Returns a page of scheduled tool executions
|
|
7
9
|
*/
|
|
8
|
-
list(options?: Core.RequestOptions): Core.
|
|
10
|
+
list(query?: ScheduledListParams, options?: Core.RequestOptions): Core.PagePromise<ToolExecutionsOffsetPage, ToolsAPI.ToolExecution>;
|
|
11
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ToolExecutionsOffsetPage, ToolsAPI.ToolExecution>;
|
|
9
12
|
/**
|
|
10
13
|
* Returns the details for a specific scheduled tool execution
|
|
11
14
|
*/
|
|
12
|
-
|
|
15
|
+
get(id: string, options?: Core.RequestOptions): Core.APIPromise<ScheduledGetResponse>;
|
|
13
16
|
}
|
|
14
|
-
export interface
|
|
15
|
-
items?: Array<ToolsAPI.ToolExecution>;
|
|
16
|
-
limit?: number;
|
|
17
|
-
offset?: number;
|
|
18
|
-
page_count?: number;
|
|
19
|
-
total_count?: number;
|
|
20
|
-
}
|
|
21
|
-
export interface ScheduledDetailsResponse {
|
|
17
|
+
export interface ScheduledGetResponse {
|
|
22
18
|
id?: string;
|
|
23
19
|
attempts?: Array<ToolsAPI.ToolExecutionAttempt>;
|
|
24
|
-
created_at?:
|
|
20
|
+
created_at?: string;
|
|
25
21
|
execution_status?: string;
|
|
26
22
|
execution_type?: string;
|
|
27
|
-
finished_at?:
|
|
28
|
-
|
|
29
|
-
run_at?:
|
|
30
|
-
started_at?:
|
|
23
|
+
finished_at?: string;
|
|
24
|
+
input?: Record<string, unknown>;
|
|
25
|
+
run_at?: string;
|
|
26
|
+
started_at?: string;
|
|
31
27
|
tool_name?: string;
|
|
32
28
|
toolkit_name?: string;
|
|
33
29
|
toolkit_version?: string;
|
|
34
|
-
updated_at?:
|
|
30
|
+
updated_at?: string;
|
|
35
31
|
user_id?: string;
|
|
36
32
|
}
|
|
37
|
-
export
|
|
38
|
-
interface CreatedAt {
|
|
39
|
-
'time.Time'?: string;
|
|
40
|
-
}
|
|
41
|
-
interface FinishedAt {
|
|
42
|
-
'time.Time'?: string;
|
|
43
|
-
}
|
|
44
|
-
interface RunAt {
|
|
45
|
-
'time.Time'?: string;
|
|
46
|
-
}
|
|
47
|
-
interface StartedAt {
|
|
48
|
-
'time.Time'?: string;
|
|
49
|
-
}
|
|
50
|
-
interface UpdatedAt {
|
|
51
|
-
'time.Time'?: string;
|
|
52
|
-
}
|
|
33
|
+
export interface ScheduledListParams extends OffsetPageParams {
|
|
53
34
|
}
|
|
54
35
|
export declare namespace Scheduled {
|
|
55
|
-
export { type
|
|
36
|
+
export { type ScheduledGetResponse as ScheduledGetResponse, type ScheduledListParams as ScheduledListParams, };
|
|
56
37
|
}
|
|
38
|
+
export { ToolExecutionsOffsetPage };
|
|
57
39
|
//# sourceMappingURL=scheduled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled.d.ts","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":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MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;CAAG;AAEhE,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Scheduled = void 0;
|
|
4
|
+
exports.ToolExecutionsOffsetPage = exports.Scheduled = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
|
+
const tools_1 = require("./tools.js");
|
|
8
|
+
Object.defineProperty(exports, "ToolExecutionsOffsetPage", { enumerable: true, get: function () { return tools_1.ToolExecutionsOffsetPage; } });
|
|
6
9
|
class Scheduled extends resource_1.APIResource {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return this._client.
|
|
10
|
+
list(query = {}, options) {
|
|
11
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
12
|
+
return this.list({}, query);
|
|
13
|
+
}
|
|
14
|
+
return this._client.getAPIList('/v1/scheduled_tools', tools_1.ToolExecutionsOffsetPage, { query, ...options });
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
14
17
|
* Returns the details for a specific scheduled tool execution
|
|
15
18
|
*/
|
|
16
|
-
|
|
17
|
-
return this._client.get(`/v1/
|
|
19
|
+
get(id, options) {
|
|
20
|
+
return this._client.get(`/v1/scheduled_tools/${id}`, options);
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
exports.Scheduled = Scheduled;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,sCAAmD;AAqE1C,yGArEA,gCAAwB,OAqEA;AAlEjC,MAAa,SAAU,SAAQ,sBAAW;IASxC,IAAI,CACF,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,gCAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,OAA6B;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAzBD,8BAyBC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
+
import { ToolExecutionsOffsetPage } from "./tools.mjs";
|
|
3
5
|
export class Scheduled extends APIResource {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return this._client.
|
|
6
|
+
list(query = {}, options) {
|
|
7
|
+
if (isRequestOptions(query)) {
|
|
8
|
+
return this.list({}, query);
|
|
9
|
+
}
|
|
10
|
+
return this._client.getAPIList('/v1/scheduled_tools', ToolExecutionsOffsetPage, { query, ...options });
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Returns the details for a specific scheduled tool execution
|
|
12
14
|
*/
|
|
13
|
-
|
|
14
|
-
return this._client.get(`/v1/
|
|
15
|
+
get(id, options) {
|
|
16
|
+
return this._client.get(`/v1/scheduled_tools/${id}`, options);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
19
|
+
export { ToolExecutionsOffsetPage };
|
|
17
20
|
//# sourceMappingURL=scheduled.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled.mjs","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"scheduled.mjs","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,wBAAwB,EAAE;AAGnC,MAAM,OAAO,SAAU,SAAQ,WAAW;IASxC,IAAI,CACF,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,OAA6B;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAyCD,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
|
+
import * as ToolsAPI from "./tools.js";
|
|
3
4
|
import * as Shared from "../shared.js";
|
|
4
5
|
import * as FormattedAPI from "./formatted.js";
|
|
5
6
|
import { Formatted, FormattedGetParams, FormattedGetResponse, FormattedListParams, FormattedListResponse, FormattedListResponsesOffsetPage } from "./formatted.js";
|
|
6
7
|
import * as ScheduledAPI from "./scheduled.js";
|
|
7
|
-
import { Scheduled,
|
|
8
|
+
import { Scheduled, ScheduledGetResponse, ScheduledListParams } from "./scheduled.js";
|
|
8
9
|
import { OffsetPage, type OffsetPageParams } from "../../pagination.js";
|
|
9
10
|
export declare class Tools extends APIResource {
|
|
10
11
|
scheduled: ScheduledAPI.Scheduled;
|
|
@@ -18,7 +19,7 @@ export declare class Tools extends APIResource {
|
|
|
18
19
|
/**
|
|
19
20
|
* Authorizes a user for a specific tool by name
|
|
20
21
|
*/
|
|
21
|
-
authorize(body: ToolAuthorizeParams, options?: Core.RequestOptions): Core.APIPromise<Shared.
|
|
22
|
+
authorize(body: ToolAuthorizeParams, options?: Core.RequestOptions): Core.APIPromise<Shared.AuthAuthorizationResponse>;
|
|
22
23
|
/**
|
|
23
24
|
* Executes a tool by name and arguments
|
|
24
25
|
*/
|
|
@@ -26,52 +27,48 @@ export declare class Tools extends APIResource {
|
|
|
26
27
|
/**
|
|
27
28
|
* Returns the arcade tool specification for a specific tool
|
|
28
29
|
*/
|
|
29
|
-
get(
|
|
30
|
+
get(name: string, options?: Core.RequestOptions): Core.APIPromise<ToolGetResponse>;
|
|
30
31
|
}
|
|
31
32
|
export declare class ToolListResponsesOffsetPage extends OffsetPage<ToolListResponse> {
|
|
32
33
|
}
|
|
34
|
+
export declare class ToolExecutionsOffsetPage extends OffsetPage<ToolExecution> {
|
|
35
|
+
}
|
|
33
36
|
export interface AuthorizeToolRequest {
|
|
34
37
|
tool_name: string;
|
|
35
|
-
user_id: string;
|
|
36
38
|
/**
|
|
37
39
|
* Optional: if not provided, any version is used
|
|
38
40
|
*/
|
|
39
41
|
tool_version?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Required only when calling with an API key
|
|
44
|
+
*/
|
|
45
|
+
user_id?: string;
|
|
40
46
|
}
|
|
41
47
|
export interface ExecuteToolRequest {
|
|
42
48
|
tool_name: string;
|
|
43
49
|
/**
|
|
44
50
|
* JSON input to the tool, if any
|
|
45
51
|
*/
|
|
46
|
-
|
|
52
|
+
input?: Record<string, unknown>;
|
|
47
53
|
/**
|
|
48
54
|
* The time at which the tool should be run (optional). If not provided, the tool
|
|
49
55
|
* is run immediately
|
|
50
56
|
*/
|
|
51
|
-
run_at?:
|
|
57
|
+
run_at?: string;
|
|
52
58
|
/**
|
|
53
59
|
* The tool version to use (optional). If not provided, any version is used
|
|
54
60
|
*/
|
|
55
61
|
tool_version?: string;
|
|
56
62
|
user_id?: string;
|
|
57
63
|
}
|
|
58
|
-
export declare namespace ExecuteToolRequest {
|
|
59
|
-
/**
|
|
60
|
-
* The time at which the tool should be run (optional). If not provided, the tool
|
|
61
|
-
* is run immediately
|
|
62
|
-
*/
|
|
63
|
-
interface RunAt {
|
|
64
|
-
'time.Time'?: string;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
64
|
export interface ExecuteToolResponse {
|
|
68
65
|
id?: string;
|
|
69
66
|
duration?: number;
|
|
67
|
+
execution_id?: string;
|
|
70
68
|
execution_type?: string;
|
|
71
|
-
finished_at?:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
run_at?: ExecuteToolResponse.RunAt;
|
|
69
|
+
finished_at?: string;
|
|
70
|
+
output?: ExecuteToolResponse.Output;
|
|
71
|
+
run_at?: string;
|
|
75
72
|
status?: string;
|
|
76
73
|
/**
|
|
77
74
|
* Whether the request was successful. For immediately-executed requests, this will
|
|
@@ -81,76 +78,66 @@ export interface ExecuteToolResponse {
|
|
|
81
78
|
success?: boolean;
|
|
82
79
|
}
|
|
83
80
|
export declare namespace ExecuteToolResponse {
|
|
84
|
-
interface
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
'time.Time'?: string;
|
|
81
|
+
interface Output {
|
|
82
|
+
authorization?: Shared.AuthAuthorizationResponse;
|
|
83
|
+
error?: Output.Error;
|
|
84
|
+
value?: unknown;
|
|
89
85
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
message: string;
|
|
99
|
-
additional_prompt_content?: string;
|
|
100
|
-
can_retry?: boolean;
|
|
101
|
-
developer_message?: string;
|
|
102
|
-
retry_after_ms?: number;
|
|
86
|
+
namespace Output {
|
|
87
|
+
interface Error {
|
|
88
|
+
message: string;
|
|
89
|
+
additional_prompt_content?: string;
|
|
90
|
+
can_retry?: boolean;
|
|
91
|
+
developer_message?: string;
|
|
92
|
+
retry_after_ms?: number;
|
|
93
|
+
}
|
|
103
94
|
}
|
|
104
95
|
}
|
|
105
96
|
export interface ToolExecution {
|
|
106
97
|
id?: string;
|
|
107
|
-
created_at?:
|
|
98
|
+
created_at?: string;
|
|
108
99
|
execution_status?: string;
|
|
109
100
|
execution_type?: string;
|
|
110
|
-
finished_at?:
|
|
111
|
-
run_at?:
|
|
112
|
-
started_at?:
|
|
101
|
+
finished_at?: string;
|
|
102
|
+
run_at?: string;
|
|
103
|
+
started_at?: string;
|
|
113
104
|
tool_name?: string;
|
|
114
105
|
toolkit_name?: string;
|
|
115
106
|
toolkit_version?: string;
|
|
116
|
-
updated_at?:
|
|
107
|
+
updated_at?: string;
|
|
117
108
|
user_id?: string;
|
|
118
109
|
}
|
|
119
|
-
export declare namespace ToolExecution {
|
|
120
|
-
interface CreatedAt {
|
|
121
|
-
'time.Time'?: string;
|
|
122
|
-
}
|
|
123
|
-
interface FinishedAt {
|
|
124
|
-
'time.Time'?: string;
|
|
125
|
-
}
|
|
126
|
-
interface RunAt {
|
|
127
|
-
'time.Time'?: string;
|
|
128
|
-
}
|
|
129
|
-
interface StartedAt {
|
|
130
|
-
'time.Time'?: string;
|
|
131
|
-
}
|
|
132
|
-
interface UpdatedAt {
|
|
133
|
-
'time.Time'?: string;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
110
|
export interface ToolExecutionAttempt {
|
|
137
111
|
id?: string;
|
|
138
|
-
finished_at?:
|
|
139
|
-
output?:
|
|
140
|
-
started_at?:
|
|
112
|
+
finished_at?: string;
|
|
113
|
+
output?: ToolExecutionAttempt.Output;
|
|
114
|
+
started_at?: string;
|
|
141
115
|
success?: boolean;
|
|
142
116
|
system_error_message?: string;
|
|
143
117
|
}
|
|
144
118
|
export declare namespace ToolExecutionAttempt {
|
|
145
|
-
interface
|
|
146
|
-
|
|
119
|
+
interface Output {
|
|
120
|
+
authorization?: Shared.AuthAuthorizationResponse;
|
|
121
|
+
error?: Output.Error;
|
|
122
|
+
value?: unknown;
|
|
147
123
|
}
|
|
148
|
-
|
|
149
|
-
|
|
124
|
+
namespace Output {
|
|
125
|
+
interface Error {
|
|
126
|
+
message: string;
|
|
127
|
+
additional_prompt_content?: string;
|
|
128
|
+
can_retry?: boolean;
|
|
129
|
+
developer_message?: string;
|
|
130
|
+
retry_after_ms?: number;
|
|
131
|
+
}
|
|
150
132
|
}
|
|
151
133
|
}
|
|
134
|
+
export interface ValueSchema {
|
|
135
|
+
val_type: string;
|
|
136
|
+
enum?: Array<string>;
|
|
137
|
+
inner_val_type?: string;
|
|
138
|
+
}
|
|
152
139
|
export interface ToolListResponse {
|
|
153
|
-
|
|
140
|
+
input: ToolListResponse.Input;
|
|
154
141
|
name: string;
|
|
155
142
|
toolkit: ToolListResponse.Toolkit;
|
|
156
143
|
description?: string;
|
|
@@ -159,24 +146,17 @@ export interface ToolListResponse {
|
|
|
159
146
|
requirements?: ToolListResponse.Requirements;
|
|
160
147
|
}
|
|
161
148
|
export declare namespace ToolListResponse {
|
|
162
|
-
interface
|
|
163
|
-
parameters?: Array<
|
|
149
|
+
interface Input {
|
|
150
|
+
parameters?: Array<Input.Parameter>;
|
|
164
151
|
}
|
|
165
|
-
namespace
|
|
152
|
+
namespace Input {
|
|
166
153
|
interface Parameter {
|
|
167
154
|
name: string;
|
|
168
|
-
value_schema:
|
|
155
|
+
value_schema: ToolsAPI.ValueSchema;
|
|
169
156
|
description?: string;
|
|
170
157
|
inferrable?: boolean;
|
|
171
158
|
required?: boolean;
|
|
172
159
|
}
|
|
173
|
-
namespace Parameter {
|
|
174
|
-
interface ValueSchema {
|
|
175
|
-
val_type: string;
|
|
176
|
-
enum?: Array<string>;
|
|
177
|
-
inner_val_type?: string;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
160
|
}
|
|
181
161
|
interface Toolkit {
|
|
182
162
|
name: string;
|
|
@@ -186,20 +166,14 @@ export declare namespace ToolListResponse {
|
|
|
186
166
|
interface Output {
|
|
187
167
|
available_modes?: Array<string>;
|
|
188
168
|
description?: string;
|
|
189
|
-
value_schema?:
|
|
190
|
-
}
|
|
191
|
-
namespace Output {
|
|
192
|
-
interface ValueSchema {
|
|
193
|
-
val_type: string;
|
|
194
|
-
enum?: Array<string>;
|
|
195
|
-
inner_val_type?: string;
|
|
196
|
-
}
|
|
169
|
+
value_schema?: ToolsAPI.ValueSchema;
|
|
197
170
|
}
|
|
198
171
|
interface Requirements {
|
|
199
172
|
authorization?: Requirements.Authorization;
|
|
200
173
|
}
|
|
201
174
|
namespace Requirements {
|
|
202
175
|
interface Authorization {
|
|
176
|
+
id?: string;
|
|
203
177
|
oauth2?: Authorization.Oauth2;
|
|
204
178
|
provider_id?: string;
|
|
205
179
|
provider_type?: string;
|
|
@@ -212,7 +186,7 @@ export declare namespace ToolListResponse {
|
|
|
212
186
|
}
|
|
213
187
|
}
|
|
214
188
|
export interface ToolGetResponse {
|
|
215
|
-
|
|
189
|
+
input: ToolGetResponse.Input;
|
|
216
190
|
name: string;
|
|
217
191
|
toolkit: ToolGetResponse.Toolkit;
|
|
218
192
|
description?: string;
|
|
@@ -221,24 +195,17 @@ export interface ToolGetResponse {
|
|
|
221
195
|
requirements?: ToolGetResponse.Requirements;
|
|
222
196
|
}
|
|
223
197
|
export declare namespace ToolGetResponse {
|
|
224
|
-
interface
|
|
225
|
-
parameters?: Array<
|
|
198
|
+
interface Input {
|
|
199
|
+
parameters?: Array<Input.Parameter>;
|
|
226
200
|
}
|
|
227
|
-
namespace
|
|
201
|
+
namespace Input {
|
|
228
202
|
interface Parameter {
|
|
229
203
|
name: string;
|
|
230
|
-
value_schema:
|
|
204
|
+
value_schema: ToolsAPI.ValueSchema;
|
|
231
205
|
description?: string;
|
|
232
206
|
inferrable?: boolean;
|
|
233
207
|
required?: boolean;
|
|
234
208
|
}
|
|
235
|
-
namespace Parameter {
|
|
236
|
-
interface ValueSchema {
|
|
237
|
-
val_type: string;
|
|
238
|
-
enum?: Array<string>;
|
|
239
|
-
inner_val_type?: string;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
209
|
}
|
|
243
210
|
interface Toolkit {
|
|
244
211
|
name: string;
|
|
@@ -248,20 +215,14 @@ export declare namespace ToolGetResponse {
|
|
|
248
215
|
interface Output {
|
|
249
216
|
available_modes?: Array<string>;
|
|
250
217
|
description?: string;
|
|
251
|
-
value_schema?:
|
|
252
|
-
}
|
|
253
|
-
namespace Output {
|
|
254
|
-
interface ValueSchema {
|
|
255
|
-
val_type: string;
|
|
256
|
-
enum?: Array<string>;
|
|
257
|
-
inner_val_type?: string;
|
|
258
|
-
}
|
|
218
|
+
value_schema?: ToolsAPI.ValueSchema;
|
|
259
219
|
}
|
|
260
220
|
interface Requirements {
|
|
261
221
|
authorization?: Requirements.Authorization;
|
|
262
222
|
}
|
|
263
223
|
namespace Requirements {
|
|
264
224
|
interface Authorization {
|
|
225
|
+
id?: string;
|
|
265
226
|
oauth2?: Authorization.Oauth2;
|
|
266
227
|
provider_id?: string;
|
|
267
228
|
provider_type?: string;
|
|
@@ -281,47 +242,35 @@ export interface ToolListParams extends OffsetPageParams {
|
|
|
281
242
|
}
|
|
282
243
|
export interface ToolAuthorizeParams {
|
|
283
244
|
tool_name: string;
|
|
284
|
-
user_id: string;
|
|
285
245
|
/**
|
|
286
246
|
* Optional: if not provided, any version is used
|
|
287
247
|
*/
|
|
288
248
|
tool_version?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Required only when calling with an API key
|
|
251
|
+
*/
|
|
252
|
+
user_id?: string;
|
|
289
253
|
}
|
|
290
254
|
export interface ToolExecuteParams {
|
|
291
255
|
tool_name: string;
|
|
292
256
|
/**
|
|
293
257
|
* JSON input to the tool, if any
|
|
294
258
|
*/
|
|
295
|
-
|
|
259
|
+
input?: Record<string, unknown>;
|
|
296
260
|
/**
|
|
297
261
|
* The time at which the tool should be run (optional). If not provided, the tool
|
|
298
262
|
* is run immediately
|
|
299
263
|
*/
|
|
300
|
-
run_at?:
|
|
264
|
+
run_at?: string;
|
|
301
265
|
/**
|
|
302
266
|
* The tool version to use (optional). If not provided, any version is used
|
|
303
267
|
*/
|
|
304
268
|
tool_version?: string;
|
|
305
269
|
user_id?: string;
|
|
306
270
|
}
|
|
307
|
-
export declare namespace ToolExecuteParams {
|
|
308
|
-
/**
|
|
309
|
-
* The time at which the tool should be run (optional). If not provided, the tool
|
|
310
|
-
* is run immediately
|
|
311
|
-
*/
|
|
312
|
-
interface RunAt {
|
|
313
|
-
'time.Time'?: string;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
export interface ToolGetParams {
|
|
317
|
-
/**
|
|
318
|
-
* Tool ID
|
|
319
|
-
*/
|
|
320
|
-
toolId: string;
|
|
321
|
-
}
|
|
322
271
|
export declare namespace Tools {
|
|
323
|
-
export { type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type ExecuteToolResponse as ExecuteToolResponse, type
|
|
324
|
-
export { Scheduled as Scheduled, type
|
|
272
|
+
export { type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type ExecuteToolResponse as ExecuteToolResponse, type ToolExecution as ToolExecution, type ToolExecutionAttempt as ToolExecutionAttempt, type ValueSchema as ValueSchema, type ToolListResponse as ToolListResponse, type ToolGetResponse as ToolGetResponse, ToolListResponsesOffsetPage as ToolListResponsesOffsetPage, type ToolListParams as ToolListParams, type ToolAuthorizeParams as ToolAuthorizeParams, type ToolExecuteParams as ToolExecuteParams, };
|
|
273
|
+
export { Scheduled as Scheduled, type ScheduledGetResponse as ScheduledGetResponse, type ScheduledListParams as ScheduledListParams, };
|
|
325
274
|
export { Formatted as Formatted, type FormattedListResponse as FormattedListResponse, type FormattedGetResponse as FormattedGetResponse, FormattedListResponsesOffsetPage as FormattedListResponsesOffsetPage, type FormattedListParams as FormattedListParams, type FormattedGetParams as FormattedGetParams, };
|
|
326
275
|
}
|
|
327
276
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,EACjC,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":"AAEA,OAAO,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AO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,2BAA2B,IAAI,2BAA2B,EAC1D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,gCAAgC,IAAI,gCAAgC,EACpE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/tools/tools.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.ToolListResponsesOffsetPage = exports.Tools = void 0;
|
|
27
|
+
exports.ToolExecutionsOffsetPage = exports.ToolListResponsesOffsetPage = exports.Tools = void 0;
|
|
28
28
|
const resource_1 = require("../../resource.js");
|
|
29
29
|
const core_1 = require("../../core.js");
|
|
30
30
|
const FormattedAPI = __importStar(require("./formatted.js"));
|
|
@@ -42,7 +42,7 @@ class Tools extends resource_1.APIResource {
|
|
|
42
42
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
43
43
|
return this.list({}, query);
|
|
44
44
|
}
|
|
45
|
-
return this._client.getAPIList('/v1/tools
|
|
45
|
+
return this._client.getAPIList('/v1/tools', ToolListResponsesOffsetPage, { query, ...options });
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Authorizes a user for a specific tool by name
|
|
@@ -59,14 +59,17 @@ class Tools extends resource_1.APIResource {
|
|
|
59
59
|
/**
|
|
60
60
|
* Returns the arcade tool specification for a specific tool
|
|
61
61
|
*/
|
|
62
|
-
get(
|
|
63
|
-
return this._client.get(
|
|
62
|
+
get(name, options) {
|
|
63
|
+
return this._client.get(`/v1/tools/${name}`, options);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.Tools = Tools;
|
|
67
67
|
class ToolListResponsesOffsetPage extends pagination_1.OffsetPage {
|
|
68
68
|
}
|
|
69
69
|
exports.ToolListResponsesOffsetPage = ToolListResponsesOffsetPage;
|
|
70
|
+
class ToolExecutionsOffsetPage extends pagination_1.OffsetPage {
|
|
71
|
+
}
|
|
72
|
+
exports.ToolExecutionsOffsetPage = ToolExecutionsOffsetPage;
|
|
70
73
|
Tools.ToolListResponsesOffsetPage = ToolListResponsesOffsetPage;
|
|
71
74
|
Tools.Scheduled = scheduled_1.Scheduled;
|
|
72
75
|
Tools.Formatted = formatted_1.Formatted;
|