@arcadeai/arcadejs 0.1.2 → 0.2.0
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 +25 -0
- package/README.md +10 -1
- package/core.d.ts +3 -3
- package/core.d.ts.map +1 -1
- package/core.js.map +1 -1
- package/core.mjs.map +1 -1
- package/error.d.ts.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 +5 -5
- package/src/error.ts +1 -1
- 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
package/src/index.ts
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Errors from './error';
|
|
4
|
-
import * as Uploads from './uploads';
|
|
5
3
|
import { type Agent } from './_shims/index';
|
|
6
4
|
import * as Core from './core';
|
|
5
|
+
import * as Errors from './error';
|
|
7
6
|
import * as Pagination from './pagination';
|
|
7
|
+
import { type OffsetPageParams, OffsetPageResponse } from './pagination';
|
|
8
|
+
import * as Uploads from './uploads';
|
|
8
9
|
import * as API from './resources/index';
|
|
10
|
+
import { Auth, AuthAuthorizeParams, AuthRequest, AuthStatusParams } from './resources/auth';
|
|
11
|
+
import { Health, HealthSchema } from './resources/health';
|
|
12
|
+
import { Chat, ChatMessage, ChatRequest, ChatResponse, Choice, Usage } from './resources/chat/chat';
|
|
13
|
+
import {
|
|
14
|
+
AuthorizeToolRequest,
|
|
15
|
+
ExecuteToolRequest,
|
|
16
|
+
Inputs,
|
|
17
|
+
Output,
|
|
18
|
+
Parameter,
|
|
19
|
+
Requirements,
|
|
20
|
+
Response,
|
|
21
|
+
ResponseOutput,
|
|
22
|
+
ToolAuthorizeParams,
|
|
23
|
+
ToolExecuteParams,
|
|
24
|
+
ToolGetParams,
|
|
25
|
+
ToolListParams,
|
|
26
|
+
ToolkitDefinition,
|
|
27
|
+
Tools,
|
|
28
|
+
ValueSchema,
|
|
29
|
+
} from './resources/tools/tools';
|
|
9
30
|
|
|
10
31
|
export interface ClientOptions {
|
|
11
32
|
/**
|
|
@@ -162,7 +183,59 @@ export class Arcade extends Core.APIClient {
|
|
|
162
183
|
static fileFromPath = Uploads.fileFromPath;
|
|
163
184
|
}
|
|
164
185
|
|
|
165
|
-
|
|
186
|
+
Arcade.Auth = Auth;
|
|
187
|
+
Arcade.Health = Health;
|
|
188
|
+
Arcade.Chat = Chat;
|
|
189
|
+
Arcade.Tools = Tools;
|
|
190
|
+
export declare namespace Arcade {
|
|
191
|
+
export type RequestOptions = Core.RequestOptions;
|
|
192
|
+
|
|
193
|
+
export import OffsetPage = Pagination.OffsetPage;
|
|
194
|
+
export { type OffsetPageParams as OffsetPageParams, type OffsetPageResponse as OffsetPageResponse };
|
|
195
|
+
|
|
196
|
+
export {
|
|
197
|
+
Auth as Auth,
|
|
198
|
+
type AuthRequest as AuthRequest,
|
|
199
|
+
type AuthAuthorizeParams as AuthAuthorizeParams,
|
|
200
|
+
type AuthStatusParams as AuthStatusParams,
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export { Health as Health, type HealthSchema as HealthSchema };
|
|
204
|
+
|
|
205
|
+
export {
|
|
206
|
+
Chat as Chat,
|
|
207
|
+
type ChatMessage as ChatMessage,
|
|
208
|
+
type ChatRequest as ChatRequest,
|
|
209
|
+
type ChatResponse as ChatResponse,
|
|
210
|
+
type Choice as Choice,
|
|
211
|
+
type Usage as Usage,
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export {
|
|
215
|
+
Tools as Tools,
|
|
216
|
+
type AuthorizeToolRequest as AuthorizeToolRequest,
|
|
217
|
+
type ExecuteToolRequest as ExecuteToolRequest,
|
|
218
|
+
type Inputs as Inputs,
|
|
219
|
+
type Output as Output,
|
|
220
|
+
type Parameter as Parameter,
|
|
221
|
+
type Requirements as Requirements,
|
|
222
|
+
type Response as Response,
|
|
223
|
+
type ResponseOutput as ResponseOutput,
|
|
224
|
+
type ToolkitDefinition as ToolkitDefinition,
|
|
225
|
+
type ValueSchema as ValueSchema,
|
|
226
|
+
type ToolListParams as ToolListParams,
|
|
227
|
+
type ToolAuthorizeParams as ToolAuthorizeParams,
|
|
228
|
+
type ToolExecuteParams as ToolExecuteParams,
|
|
229
|
+
type ToolGetParams as ToolGetParams,
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
export type AuthorizationResponse = API.AuthorizationResponse;
|
|
233
|
+
export type Error = API.Error;
|
|
234
|
+
export type ToolDefinition = API.ToolDefinition;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export { toFile, fileFromPath } from './uploads';
|
|
238
|
+
export {
|
|
166
239
|
ArcadeError,
|
|
167
240
|
APIError,
|
|
168
241
|
APIConnectionError,
|
|
@@ -176,52 +249,6 @@ export const {
|
|
|
176
249
|
InternalServerError,
|
|
177
250
|
PermissionDeniedError,
|
|
178
251
|
UnprocessableEntityError,
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export import toFile = Uploads.toFile;
|
|
182
|
-
export import fileFromPath = Uploads.fileFromPath;
|
|
183
|
-
|
|
184
|
-
export namespace Arcade {
|
|
185
|
-
export import RequestOptions = Core.RequestOptions;
|
|
186
|
-
|
|
187
|
-
export import OffsetPage = Pagination.OffsetPage;
|
|
188
|
-
export import OffsetPageParams = Pagination.OffsetPageParams;
|
|
189
|
-
export import OffsetPageResponse = Pagination.OffsetPageResponse;
|
|
190
|
-
|
|
191
|
-
export import Auth = API.Auth;
|
|
192
|
-
export import AuthRequest = API.AuthRequest;
|
|
193
|
-
export import AuthAuthorizeParams = API.AuthAuthorizeParams;
|
|
194
|
-
export import AuthStatusParams = API.AuthStatusParams;
|
|
195
|
-
|
|
196
|
-
export import Health = API.Health;
|
|
197
|
-
export import HealthSchema = API.HealthSchema;
|
|
198
|
-
|
|
199
|
-
export import Chat = API.Chat;
|
|
200
|
-
export import ChatMessage = API.ChatMessage;
|
|
201
|
-
export import ChatRequest = API.ChatRequest;
|
|
202
|
-
export import ChatResponse = API.ChatResponse;
|
|
203
|
-
export import Choice = API.Choice;
|
|
204
|
-
export import Usage = API.Usage;
|
|
205
|
-
|
|
206
|
-
export import Tools = API.Tools;
|
|
207
|
-
export import AuthorizeToolRequest = API.AuthorizeToolRequest;
|
|
208
|
-
export import ExecuteToolRequest = API.ExecuteToolRequest;
|
|
209
|
-
export import Inputs = API.Inputs;
|
|
210
|
-
export import Output = API.Output;
|
|
211
|
-
export import Parameter = API.Parameter;
|
|
212
|
-
export import Requirements = API.Requirements;
|
|
213
|
-
export import Response = API.Response;
|
|
214
|
-
export import ResponseOutput = API.ResponseOutput;
|
|
215
|
-
export import ToolkitDefinition = API.ToolkitDefinition;
|
|
216
|
-
export import ValueSchema = API.ValueSchema;
|
|
217
|
-
export import ToolListParams = API.ToolListParams;
|
|
218
|
-
export import ToolAuthorizeParams = API.ToolAuthorizeParams;
|
|
219
|
-
export import ToolExecuteParams = API.ToolExecuteParams;
|
|
220
|
-
export import ToolGetParams = API.ToolGetParams;
|
|
221
|
-
|
|
222
|
-
export import AuthorizationResponse = API.AuthorizationResponse;
|
|
223
|
-
export import Error = API.Error;
|
|
224
|
-
export import ToolDefinition = API.ToolDefinition;
|
|
225
|
-
}
|
|
252
|
+
} from './error';
|
|
226
253
|
|
|
227
254
|
export default Arcade;
|
package/src/resources/auth.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
4
|
import * as Core from '../core';
|
|
5
|
-
import * as AuthAPI from './auth';
|
|
6
5
|
import * as Shared from './shared';
|
|
7
6
|
|
|
8
7
|
export class Auth extends APIResource {
|
|
@@ -90,8 +89,10 @@ export interface AuthStatusParams {
|
|
|
90
89
|
wait?: number;
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
export namespace Auth {
|
|
94
|
-
export
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
export declare namespace Auth {
|
|
93
|
+
export {
|
|
94
|
+
type AuthRequest as AuthRequest,
|
|
95
|
+
type AuthAuthorizeParams as AuthAuthorizeParams,
|
|
96
|
+
type AuthStatusParams as AuthStatusParams,
|
|
97
|
+
};
|
|
97
98
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
-
import * as ChatAPI from './chat';
|
|
5
4
|
import * as Shared from '../shared';
|
|
6
5
|
import * as CompletionsAPI from './completions';
|
|
6
|
+
import { CompletionCreateParams, Completions } from './completions';
|
|
7
7
|
|
|
8
8
|
export class Chat extends APIResource {
|
|
9
9
|
completions: CompletionsAPI.Completions = new CompletionsAPI.Completions(this._client);
|
|
@@ -175,12 +175,16 @@ export interface Usage {
|
|
|
175
175
|
total_tokens?: number;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
export
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
Chat.Completions = Completions;
|
|
179
|
+
|
|
180
|
+
export declare namespace Chat {
|
|
181
|
+
export {
|
|
182
|
+
type ChatMessage as ChatMessage,
|
|
183
|
+
type ChatRequest as ChatRequest,
|
|
184
|
+
type ChatResponse as ChatResponse,
|
|
185
|
+
type Choice as Choice,
|
|
186
|
+
type Usage as Usage,
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export { Completions as Completions, type CompletionCreateParams as CompletionCreateParams };
|
|
186
190
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as CompletionsAPI from './completions';
|
|
6
5
|
import * as ChatAPI from './chat';
|
|
7
6
|
|
|
8
7
|
export class Completions extends APIResource {
|
|
@@ -97,6 +96,6 @@ export namespace CompletionCreateParams {
|
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
|
|
100
|
-
export namespace Completions {
|
|
101
|
-
export
|
|
99
|
+
export declare namespace Completions {
|
|
100
|
+
export { type CompletionCreateParams as CompletionCreateParams };
|
|
102
101
|
}
|
|
@@ -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 };
|