@breign/client 1.0.88 → 1.0.89
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/apis/ToolsApi.d.ts +3 -2
- package/dist/apis/ToolsApi.js +4 -2
- package/dist/models/SetupToolRequestUio.d.ts +38 -0
- package/dist/models/SetupToolRequestUio.js +50 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +23 -0
- package/package.json +1 -1
package/dist/apis/ToolsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -56,6 +56,7 @@ export interface SetToolTokenRequest {
|
|
|
56
56
|
}
|
|
57
57
|
export interface SetupToolRequest {
|
|
58
58
|
toolId: string;
|
|
59
|
+
setupToolRequestUio?: SetupToolRequestUio;
|
|
59
60
|
}
|
|
60
61
|
export interface UpdateToolRequest {
|
|
61
62
|
toolId: string;
|
|
@@ -172,7 +173,7 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
172
173
|
/**
|
|
173
174
|
* Complete the setup of a tool (oauth2 configuration)
|
|
174
175
|
*/
|
|
175
|
-
setupTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
176
|
+
setupTool(toolId: string, setupToolRequestUio?: SetupToolRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
176
177
|
/**
|
|
177
178
|
* Update a tool
|
|
178
179
|
*/
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -411,6 +411,7 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
411
411
|
}
|
|
412
412
|
const queryParameters = {};
|
|
413
413
|
const headerParameters = {};
|
|
414
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
414
415
|
if (this.configuration && this.configuration.apiKey) {
|
|
415
416
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
416
417
|
}
|
|
@@ -419,14 +420,15 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
419
420
|
method: 'POST',
|
|
420
421
|
headers: headerParameters,
|
|
421
422
|
query: queryParameters,
|
|
423
|
+
body: (0, index_1.SetupToolRequestUioToJSON)(requestParameters['setupToolRequestUio']),
|
|
422
424
|
}, initOverrides);
|
|
423
425
|
return new runtime.VoidApiResponse(response);
|
|
424
426
|
}
|
|
425
427
|
/**
|
|
426
428
|
* Complete the setup of a tool (oauth2 configuration)
|
|
427
429
|
*/
|
|
428
|
-
async setupTool(toolId, initOverrides) {
|
|
429
|
-
await this.setupToolRaw({ toolId: toolId }, initOverrides);
|
|
430
|
+
async setupTool(toolId, setupToolRequestUio, initOverrides) {
|
|
431
|
+
await this.setupToolRaw({ toolId: toolId, setupToolRequestUio: setupToolRequestUio }, initOverrides);
|
|
430
432
|
}
|
|
431
433
|
/**
|
|
432
434
|
* Update a tool
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SetupToolRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SetupToolRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* OAuth2 client ID (required when the provider does not support dynamic client registration)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetupToolRequestUio
|
|
22
|
+
*/
|
|
23
|
+
clientId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* OAuth2 client secret (optional, for confidential clients)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SetupToolRequestUio
|
|
28
|
+
*/
|
|
29
|
+
clientSecret?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SetupToolRequestUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSetupToolRequestUio(value: object): value is SetupToolRequestUio;
|
|
35
|
+
export declare function SetupToolRequestUioFromJSON(json: any): SetupToolRequestUio;
|
|
36
|
+
export declare function SetupToolRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetupToolRequestUio;
|
|
37
|
+
export declare function SetupToolRequestUioToJSON(json: any): SetupToolRequestUio;
|
|
38
|
+
export declare function SetupToolRequestUioToJSONTyped(value?: SetupToolRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSetupToolRequestUio = instanceOfSetupToolRequestUio;
|
|
17
|
+
exports.SetupToolRequestUioFromJSON = SetupToolRequestUioFromJSON;
|
|
18
|
+
exports.SetupToolRequestUioFromJSONTyped = SetupToolRequestUioFromJSONTyped;
|
|
19
|
+
exports.SetupToolRequestUioToJSON = SetupToolRequestUioToJSON;
|
|
20
|
+
exports.SetupToolRequestUioToJSONTyped = SetupToolRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SetupToolRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSetupToolRequestUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SetupToolRequestUioFromJSON(json) {
|
|
28
|
+
return SetupToolRequestUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SetupToolRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'clientId': json['clientId'] == null ? undefined : json['clientId'],
|
|
36
|
+
'clientSecret': json['clientSecret'] == null ? undefined : json['clientSecret'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function SetupToolRequestUioToJSON(json) {
|
|
40
|
+
return SetupToolRequestUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SetupToolRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'clientId': value['clientId'],
|
|
48
|
+
'clientSecret': value['clientSecret'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -219,6 +219,7 @@ export * from './SequenceContentsUio';
|
|
|
219
219
|
export * from './SequenceCreateRequestUio';
|
|
220
220
|
export * from './SequenceUio';
|
|
221
221
|
export * from './SetTokenRequestUio';
|
|
222
|
+
export * from './SetupToolRequestUio';
|
|
222
223
|
export * from './SimpleAgentUio';
|
|
223
224
|
export * from './SkillAssignRequestUio';
|
|
224
225
|
export * from './SkillCreateRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -237,6 +237,7 @@ __exportStar(require("./SequenceContentsUio"), exports);
|
|
|
237
237
|
__exportStar(require("./SequenceCreateRequestUio"), exports);
|
|
238
238
|
__exportStar(require("./SequenceUio"), exports);
|
|
239
239
|
__exportStar(require("./SetTokenRequestUio"), exports);
|
|
240
|
+
__exportStar(require("./SetupToolRequestUio"), exports);
|
|
240
241
|
__exportStar(require("./SimpleAgentUio"), exports);
|
|
241
242
|
__exportStar(require("./SkillAssignRequestUio"), exports);
|
|
242
243
|
__exportStar(require("./SkillCreateRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -6745,6 +6745,16 @@
|
|
|
6745
6745
|
"type" : "string"
|
|
6746
6746
|
}
|
|
6747
6747
|
} ],
|
|
6748
|
+
"requestBody" : {
|
|
6749
|
+
"content" : {
|
|
6750
|
+
"application/json" : {
|
|
6751
|
+
"schema" : {
|
|
6752
|
+
"$ref" : "#/components/schemas/setupTool_request"
|
|
6753
|
+
}
|
|
6754
|
+
}
|
|
6755
|
+
},
|
|
6756
|
+
"required" : false
|
|
6757
|
+
},
|
|
6748
6758
|
"responses" : {
|
|
6749
6759
|
"204" : {
|
|
6750
6760
|
"description" : "Tool setup completed"
|
|
@@ -12342,6 +12352,19 @@
|
|
|
12342
12352
|
"required" : [ "image" ],
|
|
12343
12353
|
"type" : "object"
|
|
12344
12354
|
},
|
|
12355
|
+
"setupTool_request" : {
|
|
12356
|
+
"properties" : {
|
|
12357
|
+
"clientId" : {
|
|
12358
|
+
"description" : "OAuth2 client ID (required when the provider does not support dynamic client registration)",
|
|
12359
|
+
"type" : "string"
|
|
12360
|
+
},
|
|
12361
|
+
"clientSecret" : {
|
|
12362
|
+
"description" : "OAuth2 client secret (optional, for confidential clients)",
|
|
12363
|
+
"type" : "string"
|
|
12364
|
+
}
|
|
12365
|
+
},
|
|
12366
|
+
"type" : "object"
|
|
12367
|
+
},
|
|
12345
12368
|
"connectOAuth2Tool_200_response" : {
|
|
12346
12369
|
"additionalProperties" : false,
|
|
12347
12370
|
"properties" : {
|