@arcadeai/arcadejs 0.1.2 → 0.2.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 +37 -0
- package/README.md +10 -1
- package/core.d.ts +4 -5
- package/core.d.ts.map +1 -1
- package/core.js +7 -11
- package/core.js.map +1 -1
- package/core.mjs +7 -11
- package/core.mjs.map +1 -1
- package/error.d.ts +18 -24
- package/error.d.ts.map +1 -1
- package/error.js +1 -31
- package/error.js.map +1 -1
- package/error.mjs +1 -31
- package/error.mjs.map +1 -1
- package/index.d.mts +18 -38
- package/index.d.ts +18 -38
- package/index.d.ts.map +1 -1
- package/index.js +28 -13
- package/index.js.map +1 -1
- package/index.mjs +12 -12
- package/index.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/auth.d.ts +1 -4
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +0 -2
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +0 -2
- package/resources/auth.mjs.map +1 -1
- package/resources/chat/chat.d.ts +3 -8
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js +2 -3
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs +2 -3
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +1 -2
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/completions.js +0 -2
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs +0 -2
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.d.ts +2 -2
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/health.d.ts +1 -2
- package/resources/health.d.ts.map +1 -1
- package/resources/health.js +0 -2
- package/resources/health.js.map +1 -1
- package/resources/health.mjs +0 -2
- package/resources/health.mjs.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.ts +2 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/tools/formatted.d.ts +1 -6
- package/resources/tools/formatted.d.ts.map +1 -1
- package/resources/tools/formatted.js +1 -27
- package/resources/tools/formatted.js.map +1 -1
- package/resources/tools/formatted.mjs +1 -4
- 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 +3 -3
- 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/tools.d.ts +3 -21
- package/resources/tools/tools.d.ts.map +1 -1
- package/resources/tools/tools.js +3 -4
- package/resources/tools/tools.js.map +1 -1
- package/resources/tools/tools.mjs +3 -4
- package/resources/tools/tools.mjs.map +1 -1
- package/resources/tools.d.ts +0 -160
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +0 -36
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +1 -33
- package/resources/tools.mjs.map +1 -1
- package/src/core.ts +13 -19
- package/src/error.ts +25 -41
- package/src/index.ts +77 -50
- package/src/resources/auth.ts +6 -5
- package/src/resources/chat/chat.ts +13 -9
- package/src/resources/chat/completions.ts +2 -3
- package/src/resources/chat/index.ts +2 -2
- package/src/resources/health.ts +2 -3
- package/src/resources/index.ts +24 -17
- package/src/resources/shared.ts +4 -0
- package/src/resources/tools/formatted.ts +10 -7
- package/src/resources/tools/index.ts +21 -21
- package/src/resources/tools/tools.ts +37 -22
- package/src/resources/tools.ts +0 -240
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/tools/definition.d.ts +0 -24
- package/resources/tools/definition.d.ts.map +0 -1
- package/resources/tools/definition.js +0 -17
- package/resources/tools/definition.js.map +0 -1
- package/resources/tools/definition.mjs +0 -13
- package/resources/tools/definition.mjs.map +0 -1
- package/src/resources/tools/definition.ts +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { ChatMessage, ChatRequest, ChatResponse, Choice, Usage
|
|
4
|
-
export {
|
|
3
|
+
export { Chat, type ChatMessage, type ChatRequest, type ChatResponse, type Choice, type Usage } from './chat';
|
|
4
|
+
export { Completions, type CompletionCreateParams } from './completions';
|
package/src/resources/health.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
4
|
import * as Core from '../core';
|
|
5
|
-
import * as HealthAPI from './health';
|
|
6
5
|
|
|
7
6
|
export class Health extends APIResource {
|
|
8
7
|
/**
|
|
@@ -17,6 +16,6 @@ export interface HealthSchema {
|
|
|
17
16
|
healthy?: boolean;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
export namespace Health {
|
|
21
|
-
export
|
|
19
|
+
export declare namespace Health {
|
|
20
|
+
export { type HealthSchema as HealthSchema };
|
|
22
21
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
-
export { AuthRequest, AuthAuthorizeParams, AuthStatusParams
|
|
4
|
+
export { Auth, type AuthRequest, type AuthAuthorizeParams, type AuthStatusParams } from './auth';
|
|
5
|
+
export {
|
|
6
|
+
Chat,
|
|
7
|
+
type ChatMessage,
|
|
8
|
+
type ChatRequest,
|
|
9
|
+
type ChatResponse,
|
|
10
|
+
type Choice,
|
|
11
|
+
type Usage,
|
|
12
|
+
} from './chat/chat';
|
|
13
|
+
export { Health, type HealthSchema } from './health';
|
|
5
14
|
export {
|
|
6
|
-
AuthorizeToolRequest,
|
|
7
|
-
ExecuteToolRequest,
|
|
8
|
-
Inputs,
|
|
9
|
-
Output,
|
|
10
|
-
Parameter,
|
|
11
|
-
Requirements,
|
|
12
|
-
Response,
|
|
13
|
-
ResponseOutput,
|
|
14
|
-
ToolkitDefinition,
|
|
15
|
-
ValueSchema,
|
|
16
|
-
ToolListParams,
|
|
17
|
-
ToolAuthorizeParams,
|
|
18
|
-
ToolExecuteParams,
|
|
19
|
-
ToolGetParams,
|
|
20
15
|
Tools,
|
|
16
|
+
type AuthorizeToolRequest,
|
|
17
|
+
type ExecuteToolRequest,
|
|
18
|
+
type Inputs,
|
|
19
|
+
type Output,
|
|
20
|
+
type Parameter,
|
|
21
|
+
type Requirements,
|
|
22
|
+
type Response,
|
|
23
|
+
type ResponseOutput,
|
|
24
|
+
type ToolkitDefinition,
|
|
25
|
+
type ValueSchema,
|
|
26
|
+
type ToolListParams,
|
|
27
|
+
type ToolAuthorizeParams,
|
|
28
|
+
type ToolExecuteParams,
|
|
29
|
+
type ToolGetParams,
|
|
21
30
|
} from './tools/tools';
|
|
22
|
-
export { ChatMessage, ChatRequest, ChatResponse, Choice, Usage, Chat } from './chat/chat';
|
|
23
|
-
export { HealthSchema, Health } from './health';
|
package/src/resources/shared.ts
CHANGED
|
@@ -10,9 +10,13 @@ export interface AuthorizationResponse {
|
|
|
10
10
|
|
|
11
11
|
context?: AuthorizationResponse.Context;
|
|
12
12
|
|
|
13
|
+
provider_id?: string;
|
|
14
|
+
|
|
13
15
|
scopes?: Array<string>;
|
|
14
16
|
|
|
15
17
|
status?: 'pending' | 'completed' | 'failed';
|
|
18
|
+
|
|
19
|
+
user_id?: string;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export namespace AuthorizationResponse {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
|
-
import * as FormattedAPI from './formatted';
|
|
7
6
|
import { OffsetPage, type OffsetPageParams } from '../../pagination';
|
|
8
7
|
|
|
9
8
|
export class Formatted extends APIResource {
|
|
@@ -69,10 +68,14 @@ export interface FormattedGetParams {
|
|
|
69
68
|
format?: string;
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
Formatted.FormattedListResponsesOffsetPage = FormattedListResponsesOffsetPage;
|
|
72
|
+
|
|
73
|
+
export declare namespace Formatted {
|
|
74
|
+
export {
|
|
75
|
+
type FormattedListResponse as FormattedListResponse,
|
|
76
|
+
type FormattedGetResponse as FormattedGetResponse,
|
|
77
|
+
FormattedListResponsesOffsetPage as FormattedListResponsesOffsetPage,
|
|
78
|
+
type FormattedListParams as FormattedListParams,
|
|
79
|
+
type FormattedGetParams as FormattedGetParams,
|
|
80
|
+
};
|
|
78
81
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
|
-
AuthorizeToolRequest,
|
|
5
|
-
ExecuteToolRequest,
|
|
6
|
-
Inputs,
|
|
7
|
-
Output,
|
|
8
|
-
Parameter,
|
|
9
|
-
Requirements,
|
|
10
|
-
Response,
|
|
11
|
-
ResponseOutput,
|
|
12
|
-
ToolkitDefinition,
|
|
13
|
-
ValueSchema,
|
|
14
|
-
ToolListParams,
|
|
15
|
-
ToolAuthorizeParams,
|
|
16
|
-
ToolExecuteParams,
|
|
17
|
-
ToolGetParams,
|
|
18
|
-
Tools,
|
|
19
|
-
} from './tools';
|
|
20
|
-
export {
|
|
21
|
-
FormattedListResponse,
|
|
22
|
-
FormattedGetResponse,
|
|
23
|
-
FormattedListParams,
|
|
24
|
-
FormattedGetParams,
|
|
25
4
|
FormattedListResponsesOffsetPage,
|
|
26
5
|
Formatted,
|
|
6
|
+
type FormattedListResponse,
|
|
7
|
+
type FormattedGetResponse,
|
|
8
|
+
type FormattedListParams,
|
|
9
|
+
type FormattedGetParams,
|
|
27
10
|
} from './formatted';
|
|
11
|
+
export {
|
|
12
|
+
Tools,
|
|
13
|
+
type AuthorizeToolRequest,
|
|
14
|
+
type ExecuteToolRequest,
|
|
15
|
+
type Inputs,
|
|
16
|
+
type Output,
|
|
17
|
+
type Parameter,
|
|
18
|
+
type Requirements,
|
|
19
|
+
type Response,
|
|
20
|
+
type ResponseOutput,
|
|
21
|
+
type ToolkitDefinition,
|
|
22
|
+
type ValueSchema,
|
|
23
|
+
type ToolListParams,
|
|
24
|
+
type ToolAuthorizeParams,
|
|
25
|
+
type ToolExecuteParams,
|
|
26
|
+
type ToolGetParams,
|
|
27
|
+
} from './tools';
|
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
|
-
import * as ToolsAPI from './tools';
|
|
7
6
|
import * as Shared from '../shared';
|
|
8
7
|
import { ToolDefinitionsOffsetPage } from '../shared';
|
|
9
8
|
import * as FormattedAPI from './formatted';
|
|
9
|
+
import {
|
|
10
|
+
Formatted,
|
|
11
|
+
FormattedGetParams,
|
|
12
|
+
FormattedGetResponse,
|
|
13
|
+
FormattedListParams,
|
|
14
|
+
FormattedListResponse,
|
|
15
|
+
FormattedListResponsesOffsetPage,
|
|
16
|
+
} from './formatted';
|
|
10
17
|
import { type OffsetPageParams } from '../../pagination';
|
|
11
18
|
|
|
12
19
|
export class Tools extends APIResource {
|
|
@@ -223,27 +230,35 @@ export interface ToolGetParams {
|
|
|
223
230
|
toolId: string;
|
|
224
231
|
}
|
|
225
232
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
export
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
233
|
+
Tools.Formatted = Formatted;
|
|
234
|
+
Tools.FormattedListResponsesOffsetPage = FormattedListResponsesOffsetPage;
|
|
235
|
+
|
|
236
|
+
export declare namespace Tools {
|
|
237
|
+
export {
|
|
238
|
+
type AuthorizeToolRequest as AuthorizeToolRequest,
|
|
239
|
+
type ExecuteToolRequest as ExecuteToolRequest,
|
|
240
|
+
type Inputs as Inputs,
|
|
241
|
+
type Output as Output,
|
|
242
|
+
type Parameter as Parameter,
|
|
243
|
+
type Requirements as Requirements,
|
|
244
|
+
type Response as Response,
|
|
245
|
+
type ResponseOutput as ResponseOutput,
|
|
246
|
+
type ToolkitDefinition as ToolkitDefinition,
|
|
247
|
+
type ValueSchema as ValueSchema,
|
|
248
|
+
type ToolListParams as ToolListParams,
|
|
249
|
+
type ToolAuthorizeParams as ToolAuthorizeParams,
|
|
250
|
+
type ToolExecuteParams as ToolExecuteParams,
|
|
251
|
+
type ToolGetParams as ToolGetParams,
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export {
|
|
255
|
+
Formatted as Formatted,
|
|
256
|
+
type FormattedListResponse as FormattedListResponse,
|
|
257
|
+
type FormattedGetResponse as FormattedGetResponse,
|
|
258
|
+
FormattedListResponsesOffsetPage as FormattedListResponsesOffsetPage,
|
|
259
|
+
type FormattedListParams as FormattedListParams,
|
|
260
|
+
type FormattedGetParams as FormattedGetParams,
|
|
261
|
+
};
|
|
247
262
|
}
|
|
248
263
|
|
|
249
264
|
export { ToolDefinitionsOffsetPage };
|
package/src/resources/tools.ts
CHANGED
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../resource';
|
|
4
|
-
import { isRequestOptions } from '../core';
|
|
5
|
-
import * as Core from '../core';
|
|
6
|
-
import * as ToolsAPI from './tools';
|
|
7
|
-
import * as Shared from './shared';
|
|
8
|
-
import { ToolDefinitionsOffsetPage } from './shared';
|
|
9
|
-
import { type OffsetPageParams } from '../pagination';
|
|
10
|
-
|
|
11
|
-
export class Tools extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Returns a list of tools, optionally filtered by toolkit or auth provider
|
|
14
|
-
*/
|
|
15
|
-
list(
|
|
16
|
-
query?: ToolListParams,
|
|
17
|
-
options?: Core.RequestOptions,
|
|
18
|
-
): Core.PagePromise<ToolDefinitionsOffsetPage, Shared.ToolDefinition>;
|
|
19
|
-
list(options?: Core.RequestOptions): Core.PagePromise<ToolDefinitionsOffsetPage, Shared.ToolDefinition>;
|
|
20
|
-
list(
|
|
21
|
-
query: ToolListParams | Core.RequestOptions = {},
|
|
22
|
-
options?: Core.RequestOptions,
|
|
23
|
-
): Core.PagePromise<ToolDefinitionsOffsetPage, Shared.ToolDefinition> {
|
|
24
|
-
if (isRequestOptions(query)) {
|
|
25
|
-
return this.list({}, query);
|
|
26
|
-
}
|
|
27
|
-
return this._client.getAPIList('/v1/tools/list', ToolDefinitionsOffsetPage, { query, ...options });
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Authorizes a user for a specific tool by name
|
|
32
|
-
*/
|
|
33
|
-
authorize(
|
|
34
|
-
body: ToolAuthorizeParams,
|
|
35
|
-
options?: Core.RequestOptions,
|
|
36
|
-
): Core.APIPromise<Shared.AuthorizationResponse> {
|
|
37
|
-
return this._client.post('/v1/tools/authorize', { body, ...options });
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Executes a tool by name and arguments
|
|
42
|
-
*/
|
|
43
|
-
execute(body: ToolExecuteParams, options?: Core.RequestOptions): Core.APIPromise<Response> {
|
|
44
|
-
return this._client.post('/v1/tools/execute', { body, ...options });
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Returns the arcade tool specification for a specific tool
|
|
49
|
-
*/
|
|
50
|
-
get(query: ToolGetParams, options?: Core.RequestOptions): Core.APIPromise<Shared.ToolDefinition> {
|
|
51
|
-
return this._client.get('/v1/tools/definition', { query, ...options });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface AuthorizeToolRequest {
|
|
56
|
-
tool_name: string;
|
|
57
|
-
|
|
58
|
-
user_id: string;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Optional: if not provided, any version is used
|
|
62
|
-
*/
|
|
63
|
-
tool_version?: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface ExecuteToolRequest {
|
|
67
|
-
tool_name: string;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Serialized JSON string
|
|
71
|
-
*/
|
|
72
|
-
inputs?: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Optional: if not provided, any version is used
|
|
76
|
-
*/
|
|
77
|
-
tool_version?: string;
|
|
78
|
-
|
|
79
|
-
user_id?: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface Inputs {
|
|
83
|
-
parameters?: Array<Parameter>;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface Output {
|
|
87
|
-
available_modes?: Array<string>;
|
|
88
|
-
|
|
89
|
-
description?: string;
|
|
90
|
-
|
|
91
|
-
value_schema?: ValueSchema;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface Parameter {
|
|
95
|
-
name: string;
|
|
96
|
-
|
|
97
|
-
value_schema: ValueSchema;
|
|
98
|
-
|
|
99
|
-
description?: string;
|
|
100
|
-
|
|
101
|
-
inferrable?: boolean;
|
|
102
|
-
|
|
103
|
-
required?: boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface Requirements {
|
|
107
|
-
authorization?: Requirements.Authorization;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export namespace Requirements {
|
|
111
|
-
export interface Authorization {
|
|
112
|
-
oauth2?: Authorization.Oauth2;
|
|
113
|
-
|
|
114
|
-
provider_id?: string;
|
|
115
|
-
|
|
116
|
-
provider_type?: string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export namespace Authorization {
|
|
120
|
-
export interface Oauth2 {
|
|
121
|
-
scopes?: Array<string>;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export interface Response {
|
|
127
|
-
invocation_id: string;
|
|
128
|
-
|
|
129
|
-
duration?: number;
|
|
130
|
-
|
|
131
|
-
finished_at?: Response.FinishedAt;
|
|
132
|
-
|
|
133
|
-
output?: ResponseOutput;
|
|
134
|
-
|
|
135
|
-
success?: boolean;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export namespace Response {
|
|
139
|
-
export interface FinishedAt {
|
|
140
|
-
'time.Time'?: string;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export interface ResponseOutput {
|
|
145
|
-
error?: ResponseOutput.Error;
|
|
146
|
-
|
|
147
|
-
requires_authorization?: Shared.AuthorizationResponse;
|
|
148
|
-
|
|
149
|
-
value?: unknown;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export namespace ResponseOutput {
|
|
153
|
-
export interface Error {
|
|
154
|
-
message: string;
|
|
155
|
-
|
|
156
|
-
additional_prompt_content?: string;
|
|
157
|
-
|
|
158
|
-
can_retry?: boolean;
|
|
159
|
-
|
|
160
|
-
developer_message?: string;
|
|
161
|
-
|
|
162
|
-
retry_after_ms?: number;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface ToolkitDefinition {
|
|
167
|
-
name: string;
|
|
168
|
-
|
|
169
|
-
description?: string;
|
|
170
|
-
|
|
171
|
-
version?: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface ValueSchema {
|
|
175
|
-
val_type: string;
|
|
176
|
-
|
|
177
|
-
enum?: Array<string>;
|
|
178
|
-
|
|
179
|
-
inner_val_type?: string;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface ToolListParams extends OffsetPageParams {
|
|
183
|
-
/**
|
|
184
|
-
* Toolkit name
|
|
185
|
-
*/
|
|
186
|
-
toolkit?: string;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface ToolAuthorizeParams {
|
|
190
|
-
tool_name: string;
|
|
191
|
-
|
|
192
|
-
user_id: string;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Optional: if not provided, any version is used
|
|
196
|
-
*/
|
|
197
|
-
tool_version?: string;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export interface ToolExecuteParams {
|
|
201
|
-
tool_name: string;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Serialized JSON string
|
|
205
|
-
*/
|
|
206
|
-
inputs?: string;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Optional: if not provided, any version is used
|
|
210
|
-
*/
|
|
211
|
-
tool_version?: string;
|
|
212
|
-
|
|
213
|
-
user_id?: string;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface ToolGetParams {
|
|
217
|
-
/**
|
|
218
|
-
* Tool ID
|
|
219
|
-
*/
|
|
220
|
-
toolId: string;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export namespace Tools {
|
|
224
|
-
export import AuthorizeToolRequest = ToolsAPI.AuthorizeToolRequest;
|
|
225
|
-
export import ExecuteToolRequest = ToolsAPI.ExecuteToolRequest;
|
|
226
|
-
export import Inputs = ToolsAPI.Inputs;
|
|
227
|
-
export import Output = ToolsAPI.Output;
|
|
228
|
-
export import Parameter = ToolsAPI.Parameter;
|
|
229
|
-
export import Requirements = ToolsAPI.Requirements;
|
|
230
|
-
export import Response = ToolsAPI.Response;
|
|
231
|
-
export import ResponseOutput = ToolsAPI.ResponseOutput;
|
|
232
|
-
export import ToolkitDefinition = ToolsAPI.ToolkitDefinition;
|
|
233
|
-
export import ValueSchema = ToolsAPI.ValueSchema;
|
|
234
|
-
export import ToolListParams = ToolsAPI.ToolListParams;
|
|
235
|
-
export import ToolAuthorizeParams = ToolsAPI.ToolAuthorizeParams;
|
|
236
|
-
export import ToolExecuteParams = ToolsAPI.ToolExecuteParams;
|
|
237
|
-
export import ToolGetParams = ToolsAPI.ToolGetParams;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export { ToolDefinitionsOffsetPage };
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1
|
|
1
|
+
export const VERSION = '0.2.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1
|
|
1
|
+
export declare const VERSION = "0.2.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1
|
|
1
|
+
export const VERSION = '0.2.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
import * as DefinitionAPI from "./definition.js";
|
|
4
|
-
import * as Shared from "../shared.js";
|
|
5
|
-
export declare class Definition extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Returns the arcade tool specification for a specific tool
|
|
8
|
-
*/
|
|
9
|
-
get(query: DefinitionGetParams, options?: Core.RequestOptions): Core.APIPromise<Shared.ToolDefinition>;
|
|
10
|
-
}
|
|
11
|
-
export interface DefinitionGetParams {
|
|
12
|
-
/**
|
|
13
|
-
* Director ID
|
|
14
|
-
*/
|
|
15
|
-
directorId: string;
|
|
16
|
-
/**
|
|
17
|
-
* Tool ID
|
|
18
|
-
*/
|
|
19
|
-
toolId: string;
|
|
20
|
-
}
|
|
21
|
-
export declare namespace Definition {
|
|
22
|
-
export import DefinitionGetParams = DefinitionAPI.DefinitionGetParams;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=definition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/resources/tools/definition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAEpC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;CAGvG;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,UAAU,CAAC;IAC1B,MAAM,QAAQ,mBAAmB,GAAG,aAAa,CAAC,mBAAmB,CAAC;CACvE"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Definition = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
6
|
-
class Definition extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Returns the arcade tool specification for a specific tool
|
|
9
|
-
*/
|
|
10
|
-
get(query, options) {
|
|
11
|
-
return this._client.get('/v1/tools/definition', { query, ...options });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.Definition = Definition;
|
|
15
|
-
(function (Definition) {
|
|
16
|
-
})(Definition = exports.Definition || (exports.Definition = {}));
|
|
17
|
-
//# sourceMappingURL=definition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../src/resources/tools/definition.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,GAAG,CAAC,KAA0B,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAPD,gCAOC;AAcD,WAAiB,UAAU;AAE3B,CAAC,EAFgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAE1B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
3
|
-
export class Definition extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Returns the arcade tool specification for a specific tool
|
|
6
|
-
*/
|
|
7
|
-
get(query, options) {
|
|
8
|
-
return this._client.get('/v1/tools/definition', { query, ...options });
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
(function (Definition) {
|
|
12
|
-
})(Definition || (Definition = {}));
|
|
13
|
-
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","sourceRoot":"","sources":["../../src/resources/tools/definition.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,GAAG,CAAC,KAA0B,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAcD,WAAiB,UAAU;AAE3B,CAAC,EAFgB,UAAU,KAAV,UAAU,QAE1B"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../resource';
|
|
4
|
-
import * as Core from '../../core';
|
|
5
|
-
import * as DefinitionAPI from './definition';
|
|
6
|
-
import * as Shared from '../shared';
|
|
7
|
-
|
|
8
|
-
export class Definition extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Returns the arcade tool specification for a specific tool
|
|
11
|
-
*/
|
|
12
|
-
get(query: DefinitionGetParams, options?: Core.RequestOptions): Core.APIPromise<Shared.ToolDefinition> {
|
|
13
|
-
return this._client.get('/v1/tools/definition', { query, ...options });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface DefinitionGetParams {
|
|
18
|
-
/**
|
|
19
|
-
* Director ID
|
|
20
|
-
*/
|
|
21
|
-
directorId: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Tool ID
|
|
25
|
-
*/
|
|
26
|
-
toolId: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export namespace Definition {
|
|
30
|
-
export import DefinitionGetParams = DefinitionAPI.DefinitionGetParams;
|
|
31
|
-
}
|