@breign/client 1.0.46 → 1.0.47
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/OrganizationsApi.d.ts +14 -1
- package/dist/apis/OrganizationsApi.js +29 -0
- package/dist/models/OrganizationEngineUio.d.ts +45 -0
- package/dist/models/OrganizationEngineUio.js +53 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +86 -0
- package/package.json +1 -1
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { OrganizationUio, RoleUio } from '../models/index';
|
|
13
|
+
import type { OrganizationEngineUio, OrganizationUio, RoleUio } from '../models/index';
|
|
14
14
|
export interface GetOrganizationByIdRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface GetOrganizationEngineRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
}
|
|
17
20
|
export interface ListOrganizationRolesRequest {
|
|
18
21
|
organizationId: string;
|
|
19
22
|
}
|
|
@@ -31,6 +34,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
31
34
|
* Get an organization by ID
|
|
32
35
|
*/
|
|
33
36
|
getOrganizationById(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
39
|
+
* Get an organization engine configuration
|
|
40
|
+
*/
|
|
41
|
+
getOrganizationEngineRaw(requestParameters: GetOrganizationEngineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationEngineUio>>;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
44
|
+
* Get an organization engine configuration
|
|
45
|
+
*/
|
|
46
|
+
getOrganizationEngine(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationEngineUio>;
|
|
34
47
|
/**
|
|
35
48
|
* Retrieves all roles configured for the given organization
|
|
36
49
|
* List roles of an organization
|
|
@@ -82,6 +82,35 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
82
82
|
const response = await this.getOrganizationByIdRaw({ organizationId: organizationId }, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
87
|
+
* Get an organization engine configuration
|
|
88
|
+
*/
|
|
89
|
+
async getOrganizationEngineRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['organizationId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationEngine().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
97
|
+
}
|
|
98
|
+
const response = await this.request({
|
|
99
|
+
path: `/organizations/{organizationId}/engine`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides);
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationEngineUioFromJSON)(jsonValue));
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
108
|
+
* Get an organization engine configuration
|
|
109
|
+
*/
|
|
110
|
+
async getOrganizationEngine(organizationId, initOverrides) {
|
|
111
|
+
const response = await this.getOrganizationEngineRaw({ organizationId: organizationId }, initOverrides);
|
|
112
|
+
return await response.value();
|
|
113
|
+
}
|
|
85
114
|
/**
|
|
86
115
|
* Retrieves all roles configured for the given organization
|
|
87
116
|
* List roles of an organization
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import type { EngineOptionsUio } from './EngineOptionsUio';
|
|
13
|
+
/**
|
|
14
|
+
* Engine configuration attached to an organization.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrganizationEngineUio
|
|
17
|
+
*/
|
|
18
|
+
export interface OrganizationEngineUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OrganizationEngineUio
|
|
23
|
+
*/
|
|
24
|
+
providerId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OrganizationEngineUio
|
|
29
|
+
*/
|
|
30
|
+
model?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {EngineOptionsUio}
|
|
34
|
+
* @memberof OrganizationEngineUio
|
|
35
|
+
*/
|
|
36
|
+
options?: EngineOptionsUio;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the OrganizationEngineUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfOrganizationEngineUio(value: object): value is OrganizationEngineUio;
|
|
42
|
+
export declare function OrganizationEngineUioFromJSON(json: any): OrganizationEngineUio;
|
|
43
|
+
export declare function OrganizationEngineUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationEngineUio;
|
|
44
|
+
export declare function OrganizationEngineUioToJSON(json: any): OrganizationEngineUio;
|
|
45
|
+
export declare function OrganizationEngineUioToJSONTyped(value?: OrganizationEngineUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfOrganizationEngineUio = instanceOfOrganizationEngineUio;
|
|
17
|
+
exports.OrganizationEngineUioFromJSON = OrganizationEngineUioFromJSON;
|
|
18
|
+
exports.OrganizationEngineUioFromJSONTyped = OrganizationEngineUioFromJSONTyped;
|
|
19
|
+
exports.OrganizationEngineUioToJSON = OrganizationEngineUioToJSON;
|
|
20
|
+
exports.OrganizationEngineUioToJSONTyped = OrganizationEngineUioToJSONTyped;
|
|
21
|
+
const EngineOptionsUio_1 = require("./EngineOptionsUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OrganizationEngineUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOrganizationEngineUio(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function OrganizationEngineUioFromJSON(json) {
|
|
29
|
+
return OrganizationEngineUioFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function OrganizationEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
37
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
38
|
+
'options': json['options'] == null ? undefined : (0, EngineOptionsUio_1.EngineOptionsUioFromJSON)(json['options']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function OrganizationEngineUioToJSON(json) {
|
|
42
|
+
return OrganizationEngineUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function OrganizationEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'providerId': value['providerId'],
|
|
50
|
+
'model': value['model'],
|
|
51
|
+
'options': (0, EngineOptionsUio_1.EngineOptionsUioToJSON)(value['options']),
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -138,6 +138,7 @@ export * from './MetricIdentifierUio';
|
|
|
138
138
|
export * from './MetricUio';
|
|
139
139
|
export * from './ModelAgentUio';
|
|
140
140
|
export * from './ModelUio';
|
|
141
|
+
export * from './OrganizationEngineUio';
|
|
141
142
|
export * from './OrganizationUio';
|
|
142
143
|
export * from './PersonaUio';
|
|
143
144
|
export * from './PinRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -156,6 +156,7 @@ __exportStar(require("./MetricIdentifierUio"), exports);
|
|
|
156
156
|
__exportStar(require("./MetricUio"), exports);
|
|
157
157
|
__exportStar(require("./ModelAgentUio"), exports);
|
|
158
158
|
__exportStar(require("./ModelUio"), exports);
|
|
159
|
+
__exportStar(require("./OrganizationEngineUio"), exports);
|
|
159
160
|
__exportStar(require("./OrganizationUio"), exports);
|
|
160
161
|
__exportStar(require("./PersonaUio"), exports);
|
|
161
162
|
__exportStar(require("./PinRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -4146,6 +4146,47 @@
|
|
|
4146
4146
|
"tags" : [ "organizations" ]
|
|
4147
4147
|
}
|
|
4148
4148
|
},
|
|
4149
|
+
"/organizations/{organizationId}/engine" : {
|
|
4150
|
+
"get" : {
|
|
4151
|
+
"description" : "Retrieves only the engine configuration (providerId, model, options) for a given organization.",
|
|
4152
|
+
"operationId" : "getOrganizationEngine",
|
|
4153
|
+
"parameters" : [ {
|
|
4154
|
+
"description" : "ID of the organization",
|
|
4155
|
+
"in" : "path",
|
|
4156
|
+
"name" : "organizationId",
|
|
4157
|
+
"required" : true,
|
|
4158
|
+
"schema" : {
|
|
4159
|
+
"type" : "string"
|
|
4160
|
+
}
|
|
4161
|
+
} ],
|
|
4162
|
+
"responses" : {
|
|
4163
|
+
"200" : {
|
|
4164
|
+
"content" : {
|
|
4165
|
+
"application/json" : {
|
|
4166
|
+
"schema" : {
|
|
4167
|
+
"$ref" : "#/components/schemas/OrganizationEngine"
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
},
|
|
4171
|
+
"description" : "Engine configuration found (or null if not configured)"
|
|
4172
|
+
},
|
|
4173
|
+
"401" : {
|
|
4174
|
+
"description" : "Unauthorized"
|
|
4175
|
+
},
|
|
4176
|
+
"403" : {
|
|
4177
|
+
"description" : "Forbidden - User doesn't have permission"
|
|
4178
|
+
},
|
|
4179
|
+
"404" : {
|
|
4180
|
+
"description" : "Organization not found"
|
|
4181
|
+
},
|
|
4182
|
+
"500" : {
|
|
4183
|
+
"description" : "Server error"
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
4186
|
+
"summary" : "Get an organization engine configuration",
|
|
4187
|
+
"tags" : [ "organizations" ]
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
4149
4190
|
"/manifests" : {
|
|
4150
4191
|
"get" : {
|
|
4151
4192
|
"description" : "Retrieves manifests, filtered by user ID for non-admin users",
|
|
@@ -8664,6 +8705,23 @@
|
|
|
8664
8705
|
"required" : [ "color", "createdAt", "id", "name", "organizationId" ],
|
|
8665
8706
|
"type" : "object"
|
|
8666
8707
|
},
|
|
8708
|
+
"OrganizationEngine" : {
|
|
8709
|
+
"additionalProperties" : false,
|
|
8710
|
+
"description" : "Engine configuration attached to an organization.",
|
|
8711
|
+
"nullable" : true,
|
|
8712
|
+
"properties" : {
|
|
8713
|
+
"providerId" : {
|
|
8714
|
+
"type" : "string"
|
|
8715
|
+
},
|
|
8716
|
+
"model" : {
|
|
8717
|
+
"type" : "string"
|
|
8718
|
+
},
|
|
8719
|
+
"options" : {
|
|
8720
|
+
"$ref" : "#/components/schemas/EngineOptions"
|
|
8721
|
+
}
|
|
8722
|
+
},
|
|
8723
|
+
"type" : "object"
|
|
8724
|
+
},
|
|
8667
8725
|
"Manifest" : {
|
|
8668
8726
|
"additionalProperties" : true,
|
|
8669
8727
|
"properties" : {
|
|
@@ -9226,6 +9284,34 @@
|
|
|
9226
9284
|
"enum" : [ "entry", "exit" ],
|
|
9227
9285
|
"type" : "string"
|
|
9228
9286
|
},
|
|
9287
|
+
"EngineOptions" : {
|
|
9288
|
+
"additionalProperties" : false,
|
|
9289
|
+
"description" : "Advanced engine options for an organization.",
|
|
9290
|
+
"properties" : {
|
|
9291
|
+
"reasoningOverride" : {
|
|
9292
|
+
"description" : "Force reasoning on/off. If omitted, adapter decides.",
|
|
9293
|
+
"type" : "boolean"
|
|
9294
|
+
},
|
|
9295
|
+
"reasoningEffort" : {
|
|
9296
|
+
"enum" : [ "minimal", "low", "medium", "high" ],
|
|
9297
|
+
"type" : "string"
|
|
9298
|
+
},
|
|
9299
|
+
"verbosity" : {
|
|
9300
|
+
"enum" : [ "low", "medium", "high" ],
|
|
9301
|
+
"type" : "string"
|
|
9302
|
+
},
|
|
9303
|
+
"maxOutputTokens" : {
|
|
9304
|
+
"minimum" : 1,
|
|
9305
|
+
"type" : "integer"
|
|
9306
|
+
},
|
|
9307
|
+
"modelOptions" : {
|
|
9308
|
+
"additionalProperties" : true,
|
|
9309
|
+
"description" : "Provider-specific options payload.",
|
|
9310
|
+
"type" : "object"
|
|
9311
|
+
}
|
|
9312
|
+
},
|
|
9313
|
+
"type" : "object"
|
|
9314
|
+
},
|
|
9229
9315
|
"TextToSpeechProvider" : {
|
|
9230
9316
|
"enum" : [ "ELEVENLABS" ],
|
|
9231
9317
|
"type" : "string"
|