@breign/client 1.0.48 → 1.0.50
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/EngineApi.d.ts +13 -0
- package/dist/apis/EngineApi.js +29 -0
- package/dist/models/AgentUio.d.ts +14 -0
- package/dist/models/AgentUio.js +10 -0
- package/dist/openapi.json +86 -0
- package/package.json +1 -1
package/dist/apis/EngineApi.d.ts
CHANGED
|
@@ -38,6 +38,9 @@ export interface UpdateProviderRequest {
|
|
|
38
38
|
export interface ValidateProviderRequest {
|
|
39
39
|
providerValiationRequestUio: ProviderValiationRequestUio;
|
|
40
40
|
}
|
|
41
|
+
export interface ValidateStoredProviderRequest {
|
|
42
|
+
providerId: string;
|
|
43
|
+
}
|
|
41
44
|
/**
|
|
42
45
|
*
|
|
43
46
|
*/
|
|
@@ -122,4 +125,14 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
122
125
|
* Validate a provider
|
|
123
126
|
*/
|
|
124
127
|
validateProvider(providerValiationRequestUio: ProviderValiationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ModelUio>>;
|
|
128
|
+
/**
|
|
129
|
+
* Validate a provider by id using the API key stored server-side and fetch available models
|
|
130
|
+
* Validate a stored provider
|
|
131
|
+
*/
|
|
132
|
+
validateStoredProviderRaw(requestParameters: ValidateStoredProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ModelUio>>>;
|
|
133
|
+
/**
|
|
134
|
+
* Validate a provider by id using the API key stored server-side and fetch available models
|
|
135
|
+
* Validate a stored provider
|
|
136
|
+
*/
|
|
137
|
+
validateStoredProvider(providerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ModelUio>>;
|
|
125
138
|
}
|
package/dist/apis/EngineApi.js
CHANGED
|
@@ -305,5 +305,34 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
305
305
|
const response = await this.validateProviderRaw({ providerValiationRequestUio: providerValiationRequestUio }, initOverrides);
|
|
306
306
|
return await response.value();
|
|
307
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Validate a provider by id using the API key stored server-side and fetch available models
|
|
310
|
+
* Validate a stored provider
|
|
311
|
+
*/
|
|
312
|
+
async validateStoredProviderRaw(requestParameters, initOverrides) {
|
|
313
|
+
if (requestParameters['providerId'] == null) {
|
|
314
|
+
throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling validateStoredProvider().');
|
|
315
|
+
}
|
|
316
|
+
const queryParameters = {};
|
|
317
|
+
const headerParameters = {};
|
|
318
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
319
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
320
|
+
}
|
|
321
|
+
const response = await this.request({
|
|
322
|
+
path: `/engines/providers/{providerId}/validate`.replace(`{${"providerId"}}`, encodeURIComponent(String(requestParameters['providerId']))),
|
|
323
|
+
method: 'POST',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
}, initOverrides);
|
|
327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ModelUioFromJSON));
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Validate a provider by id using the API key stored server-side and fetch available models
|
|
331
|
+
* Validate a stored provider
|
|
332
|
+
*/
|
|
333
|
+
async validateStoredProvider(providerId, initOverrides) {
|
|
334
|
+
const response = await this.validateStoredProviderRaw({ providerId: providerId }, initOverrides);
|
|
335
|
+
return await response.value();
|
|
336
|
+
}
|
|
308
337
|
}
|
|
309
338
|
exports.EngineApi = EngineApi;
|
|
@@ -209,7 +209,21 @@ export interface AgentUio {
|
|
|
209
209
|
* @memberof AgentUio
|
|
210
210
|
*/
|
|
211
211
|
creator?: AgentCreatorUio;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof AgentUio
|
|
216
|
+
*/
|
|
217
|
+
providerSource?: AgentUioProviderSourceEnum;
|
|
212
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* @export
|
|
221
|
+
*/
|
|
222
|
+
export declare const AgentUioProviderSourceEnum: {
|
|
223
|
+
readonly External: "EXTERNAL";
|
|
224
|
+
readonly Internal: "INTERNAL";
|
|
225
|
+
};
|
|
226
|
+
export type AgentUioProviderSourceEnum = typeof AgentUioProviderSourceEnum[keyof typeof AgentUioProviderSourceEnum];
|
|
213
227
|
/**
|
|
214
228
|
* Check if a given object implements the AgentUio interface.
|
|
215
229
|
*/
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentUioProviderSourceEnum = void 0;
|
|
16
17
|
exports.instanceOfAgentUio = instanceOfAgentUio;
|
|
17
18
|
exports.AgentUioFromJSON = AgentUioFromJSON;
|
|
18
19
|
exports.AgentUioFromJSONTyped = AgentUioFromJSONTyped;
|
|
@@ -26,6 +27,13 @@ const AgentCreatorUio_1 = require("./AgentCreatorUio");
|
|
|
26
27
|
const EngineUio_1 = require("./EngineUio");
|
|
27
28
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
28
29
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.AgentUioProviderSourceEnum = {
|
|
34
|
+
External: 'EXTERNAL',
|
|
35
|
+
Internal: 'INTERNAL'
|
|
36
|
+
};
|
|
29
37
|
/**
|
|
30
38
|
* Check if a given object implements the AgentUio interface.
|
|
31
39
|
*/
|
|
@@ -82,6 +90,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
90
|
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
83
91
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
84
92
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
93
|
+
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
85
94
|
};
|
|
86
95
|
}
|
|
87
96
|
function AgentUioToJSON(json) {
|
|
@@ -122,5 +131,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
122
131
|
'personal': value['personal'],
|
|
123
132
|
'createdBy': value['createdBy'],
|
|
124
133
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
134
|
+
'providerSource': value['providerSource'],
|
|
125
135
|
};
|
|
126
136
|
}
|
package/dist/openapi.json
CHANGED
|
@@ -3462,6 +3462,88 @@
|
|
|
3462
3462
|
"tags" : [ "engine" ]
|
|
3463
3463
|
}
|
|
3464
3464
|
},
|
|
3465
|
+
"/engines/providers/{providerId}/validate" : {
|
|
3466
|
+
"post" : {
|
|
3467
|
+
"description" : "Validate a provider by id using the API key stored server-side and fetch available models",
|
|
3468
|
+
"operationId" : "validateStoredProvider",
|
|
3469
|
+
"parameters" : [ {
|
|
3470
|
+
"description" : "ID of the provider",
|
|
3471
|
+
"in" : "path",
|
|
3472
|
+
"name" : "providerId",
|
|
3473
|
+
"required" : true,
|
|
3474
|
+
"schema" : {
|
|
3475
|
+
"type" : "string"
|
|
3476
|
+
}
|
|
3477
|
+
} ],
|
|
3478
|
+
"responses" : {
|
|
3479
|
+
"200" : {
|
|
3480
|
+
"content" : {
|
|
3481
|
+
"application/json" : {
|
|
3482
|
+
"schema" : {
|
|
3483
|
+
"items" : {
|
|
3484
|
+
"$ref" : "#/components/schemas/Model"
|
|
3485
|
+
},
|
|
3486
|
+
"type" : "array"
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
},
|
|
3490
|
+
"description" : "Provider validated successfully"
|
|
3491
|
+
},
|
|
3492
|
+
"400" : {
|
|
3493
|
+
"content" : {
|
|
3494
|
+
"application/json" : {
|
|
3495
|
+
"schema" : {
|
|
3496
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
},
|
|
3500
|
+
"description" : "Provider has no stored API key or provider type not supported"
|
|
3501
|
+
},
|
|
3502
|
+
"401" : {
|
|
3503
|
+
"content" : {
|
|
3504
|
+
"application/json" : {
|
|
3505
|
+
"schema" : {
|
|
3506
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3510
|
+
"description" : "Not authenticated"
|
|
3511
|
+
},
|
|
3512
|
+
"403" : {
|
|
3513
|
+
"content" : {
|
|
3514
|
+
"application/json" : {
|
|
3515
|
+
"schema" : {
|
|
3516
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3520
|
+
"description" : "Forbidden"
|
|
3521
|
+
},
|
|
3522
|
+
"404" : {
|
|
3523
|
+
"content" : {
|
|
3524
|
+
"application/json" : {
|
|
3525
|
+
"schema" : {
|
|
3526
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
},
|
|
3530
|
+
"description" : "Provider not found"
|
|
3531
|
+
},
|
|
3532
|
+
"500" : {
|
|
3533
|
+
"content" : {
|
|
3534
|
+
"application/json" : {
|
|
3535
|
+
"schema" : {
|
|
3536
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
},
|
|
3540
|
+
"description" : "Error while fetching models"
|
|
3541
|
+
}
|
|
3542
|
+
},
|
|
3543
|
+
"summary" : "Validate a stored provider",
|
|
3544
|
+
"tags" : [ "engine" ]
|
|
3545
|
+
}
|
|
3546
|
+
},
|
|
3465
3547
|
"/files" : {
|
|
3466
3548
|
"get" : {
|
|
3467
3549
|
"description" : "Retrieves a list of all files (admin only)",
|
|
@@ -6563,6 +6645,10 @@
|
|
|
6563
6645
|
},
|
|
6564
6646
|
"creator" : {
|
|
6565
6647
|
"$ref" : "#/components/schemas/Agent_creator"
|
|
6648
|
+
},
|
|
6649
|
+
"providerSource" : {
|
|
6650
|
+
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
6651
|
+
"type" : "string"
|
|
6566
6652
|
}
|
|
6567
6653
|
},
|
|
6568
6654
|
"required" : [ "id", "modules", "name", "organisationId", "persona", "promptInit" ],
|