@breign/client 1.0.198 → 1.0.200
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/AgentApi.d.ts +3 -1
- package/dist/apis/AgentApi.js +8 -2
- package/dist/apis/AuthApi.d.ts +18 -5
- package/dist/apis/AuthApi.js +31 -4
- package/dist/models/ApplicationTokenFormatUio.d.ts +26 -0
- package/dist/models/ApplicationTokenFormatUio.js +52 -0
- package/dist/models/ApplicationTokenRequestUio.d.ts +18 -3
- package/dist/models/ApplicationTokenRequestUio.js +10 -10
- package/dist/models/ApplicationTokenResponseUio.d.ts +26 -5
- package/dist/models/ApplicationTokenResponseUio.js +10 -7
- package/dist/models/ApplicationTokenRevocationRequestUio.d.ts +44 -0
- package/dist/models/ApplicationTokenRevocationRequestUio.js +56 -0
- package/dist/models/ConversationMessagesInnerUio.d.ts +3 -3
- package/dist/models/ConversationMessagesInnerUio.js +3 -3
- package/dist/models/ConversationUio.d.ts +3 -3
- package/dist/models/ConversationUio.js +3 -3
- package/dist/models/ModelUsedUio.d.ts +82 -0
- package/dist/models/ModelUsedUio.js +86 -0
- package/dist/models/TokenUsage1Uio.d.ts +57 -0
- package/dist/models/TokenUsage1Uio.js +65 -0
- package/dist/models/TokenUsageUio.d.ts +7 -0
- package/dist/models/TokenUsageUio.js +3 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/openapi.json +192 -10
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -126,6 +126,8 @@ export interface GetConversationsForAgentRequest {
|
|
|
126
126
|
lastMessageTo?: Date;
|
|
127
127
|
sortOrder?: GetConversationsForAgentSortOrderEnum;
|
|
128
128
|
messageReaction?: GetConversationsForAgentMessageReactionEnum;
|
|
129
|
+
minMessages?: number;
|
|
130
|
+
maxMessages?: number;
|
|
129
131
|
}
|
|
130
132
|
export interface GetFlowRequest {
|
|
131
133
|
agentId: string;
|
|
@@ -438,7 +440,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
438
440
|
* Get conversations for an agent
|
|
439
441
|
* Get conversations for an agent
|
|
440
442
|
*/
|
|
441
|
-
getConversationsForAgent(agentId: string, page?: number, search?: string, messageSearch?: string, conversationId?: string, messageId?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, messageReaction?: GetConversationsForAgentMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
443
|
+
getConversationsForAgent(agentId: string, page?: number, search?: string, messageSearch?: string, conversationId?: string, messageId?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, messageReaction?: GetConversationsForAgentMessageReactionEnum, minMessages?: number, maxMessages?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
442
444
|
/**
|
|
443
445
|
* Retrieves a specific conversation flow by ID
|
|
444
446
|
* Get a specific flow
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -853,6 +853,12 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
853
853
|
if (requestParameters['messageReaction'] != null) {
|
|
854
854
|
queryParameters['messageReaction'] = requestParameters['messageReaction'];
|
|
855
855
|
}
|
|
856
|
+
if (requestParameters['minMessages'] != null) {
|
|
857
|
+
queryParameters['minMessages'] = requestParameters['minMessages'];
|
|
858
|
+
}
|
|
859
|
+
if (requestParameters['maxMessages'] != null) {
|
|
860
|
+
queryParameters['maxMessages'] = requestParameters['maxMessages'];
|
|
861
|
+
}
|
|
856
862
|
const headerParameters = {};
|
|
857
863
|
if (this.configuration && this.configuration.apiKey) {
|
|
858
864
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -869,8 +875,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
869
875
|
* Get conversations for an agent
|
|
870
876
|
* Get conversations for an agent
|
|
871
877
|
*/
|
|
872
|
-
async getConversationsForAgent(agentId, page, search, messageSearch, conversationId, messageId, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, messageReaction, initOverrides) {
|
|
873
|
-
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, messageSearch: messageSearch, conversationId: conversationId, messageId: messageId, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder, messageReaction: messageReaction }, initOverrides);
|
|
878
|
+
async getConversationsForAgent(agentId, page, search, messageSearch, conversationId, messageId, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, messageReaction, minMessages, maxMessages, initOverrides) {
|
|
879
|
+
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, messageSearch: messageSearch, conversationId: conversationId, messageId: messageId, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder, messageReaction: messageReaction, minMessages: minMessages, maxMessages: maxMessages }, initOverrides);
|
|
874
880
|
return await response.value();
|
|
875
881
|
}
|
|
876
882
|
/**
|
package/dist/apis/AuthApi.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 { ApplicationAuthorizationRequestUio, ApplicationAuthorizationResponseUio, ApplicationTokenRequestUio, ApplicationTokenResponseUio, AuthCodeConfirmRequestUio, AuthCodeConfirmResponseUio, AuthCodeRequestUio, AuthCodeResponseUio, GetJwks200ResponseUio } from '../models/index';
|
|
13
|
+
import type { ApplicationAuthorizationRequestUio, ApplicationAuthorizationResponseUio, ApplicationTokenRequestUio, ApplicationTokenResponseUio, ApplicationTokenRevocationRequestUio, AuthCodeConfirmRequestUio, AuthCodeConfirmResponseUio, AuthCodeRequestUio, AuthCodeResponseUio, GetJwks200ResponseUio } from '../models/index';
|
|
14
14
|
export interface AuthorizeApplicationRequest {
|
|
15
15
|
responseType: AuthorizeApplicationResponseTypeEnum;
|
|
16
16
|
clientId: string;
|
|
@@ -37,6 +37,9 @@ export interface OauthCallbackRequest {
|
|
|
37
37
|
code?: string;
|
|
38
38
|
state?: string;
|
|
39
39
|
}
|
|
40
|
+
export interface RevokeApplicationTokenRequest {
|
|
41
|
+
applicationTokenRevocationRequestUio: ApplicationTokenRevocationRequestUio;
|
|
42
|
+
}
|
|
40
43
|
export interface ToolOauthCallbackRequest {
|
|
41
44
|
toolId: string;
|
|
42
45
|
code?: string;
|
|
@@ -77,13 +80,13 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
77
80
|
*/
|
|
78
81
|
createApplicationAuthorization(applicationAuthorizationRequestUio: ApplicationAuthorizationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationAuthorizationResponseUio>;
|
|
79
82
|
/**
|
|
80
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
81
|
-
* Exchange an application authorization code
|
|
83
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
84
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
82
85
|
*/
|
|
83
86
|
exchangeApplicationAuthorizationCodeRaw(requestParameters: ExchangeApplicationAuthorizationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationTokenResponseUio>>;
|
|
84
87
|
/**
|
|
85
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
86
|
-
* Exchange an application authorization code
|
|
88
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
89
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
87
90
|
*/
|
|
88
91
|
exchangeApplicationAuthorizationCode(applicationTokenRequestUio: ApplicationTokenRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationTokenResponseUio>;
|
|
89
92
|
/**
|
|
@@ -116,6 +119,16 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
116
119
|
* OAuth callback
|
|
117
120
|
*/
|
|
118
121
|
oauthCallback(code?: string, state?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
124
|
+
* Revoke an application refresh token
|
|
125
|
+
*/
|
|
126
|
+
revokeApplicationTokenRaw(requestParameters: RevokeApplicationTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
127
|
+
/**
|
|
128
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
129
|
+
* Revoke an application refresh token
|
|
130
|
+
*/
|
|
131
|
+
revokeApplicationToken(applicationTokenRevocationRequestUio: ApplicationTokenRevocationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
119
132
|
/**
|
|
120
133
|
* Handles OAuth provider callback for a specific tool
|
|
121
134
|
* Tool OAuth callback
|
package/dist/apis/AuthApi.js
CHANGED
|
@@ -177,8 +177,8 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
177
177
|
return await response.value();
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
181
|
-
* Exchange an application authorization code
|
|
180
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
181
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
182
182
|
*/
|
|
183
183
|
async exchangeApplicationAuthorizationCodeRaw(requestParameters, initOverrides) {
|
|
184
184
|
if (requestParameters['applicationTokenRequestUio'] == null) {
|
|
@@ -197,8 +197,8 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
197
197
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationTokenResponseUioFromJSON)(jsonValue));
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
201
|
-
* Exchange an application authorization code
|
|
200
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
201
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
202
202
|
*/
|
|
203
203
|
async exchangeApplicationAuthorizationCode(applicationTokenRequestUio, initOverrides) {
|
|
204
204
|
const response = await this.exchangeApplicationAuthorizationCodeRaw({ applicationTokenRequestUio: applicationTokenRequestUio }, initOverrides);
|
|
@@ -286,6 +286,33 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
286
286
|
async oauthCallback(code, state, initOverrides) {
|
|
287
287
|
await this.oauthCallbackRaw({ code: code, state: state }, initOverrides);
|
|
288
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
291
|
+
* Revoke an application refresh token
|
|
292
|
+
*/
|
|
293
|
+
async revokeApplicationTokenRaw(requestParameters, initOverrides) {
|
|
294
|
+
if (requestParameters['applicationTokenRevocationRequestUio'] == null) {
|
|
295
|
+
throw new runtime.RequiredError('applicationTokenRevocationRequestUio', 'Required parameter "applicationTokenRevocationRequestUio" was null or undefined when calling revokeApplicationToken().');
|
|
296
|
+
}
|
|
297
|
+
const queryParameters = {};
|
|
298
|
+
const headerParameters = {};
|
|
299
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
300
|
+
const response = await this.request({
|
|
301
|
+
path: `/auth/revoke`,
|
|
302
|
+
method: 'POST',
|
|
303
|
+
headers: headerParameters,
|
|
304
|
+
query: queryParameters,
|
|
305
|
+
body: (0, index_1.ApplicationTokenRevocationRequestUioToJSON)(requestParameters['applicationTokenRevocationRequestUio']),
|
|
306
|
+
}, initOverrides);
|
|
307
|
+
return new runtime.VoidApiResponse(response);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
311
|
+
* Revoke an application refresh token
|
|
312
|
+
*/
|
|
313
|
+
async revokeApplicationToken(applicationTokenRevocationRequestUio, initOverrides) {
|
|
314
|
+
await this.revokeApplicationTokenRaw({ applicationTokenRevocationRequestUio: applicationTokenRevocationRequestUio }, initOverrides);
|
|
315
|
+
}
|
|
289
316
|
/**
|
|
290
317
|
* Handles OAuth provider callback for a specific tool
|
|
291
318
|
* Tool OAuth callback
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* `api_key` (default) creates an API key of the user. `jwt` returns a 1 h access token and a rotating 30-day refresh token instead, without creating an API key.
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export declare const ApplicationTokenFormatUio: {
|
|
18
|
+
readonly ApiKey: "api_key";
|
|
19
|
+
readonly Jwt: "jwt";
|
|
20
|
+
};
|
|
21
|
+
export type ApplicationTokenFormatUio = typeof ApplicationTokenFormatUio[keyof typeof ApplicationTokenFormatUio];
|
|
22
|
+
export declare function instanceOfApplicationTokenFormatUio(value: any): boolean;
|
|
23
|
+
export declare function ApplicationTokenFormatUioFromJSON(json: any): ApplicationTokenFormatUio;
|
|
24
|
+
export declare function ApplicationTokenFormatUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationTokenFormatUio;
|
|
25
|
+
export declare function ApplicationTokenFormatUioToJSON(value?: ApplicationTokenFormatUio | null): any;
|
|
26
|
+
export declare function ApplicationTokenFormatUioToJSONTyped(value: any, ignoreDiscriminator: boolean): ApplicationTokenFormatUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.ApplicationTokenFormatUio = void 0;
|
|
17
|
+
exports.instanceOfApplicationTokenFormatUio = instanceOfApplicationTokenFormatUio;
|
|
18
|
+
exports.ApplicationTokenFormatUioFromJSON = ApplicationTokenFormatUioFromJSON;
|
|
19
|
+
exports.ApplicationTokenFormatUioFromJSONTyped = ApplicationTokenFormatUioFromJSONTyped;
|
|
20
|
+
exports.ApplicationTokenFormatUioToJSON = ApplicationTokenFormatUioToJSON;
|
|
21
|
+
exports.ApplicationTokenFormatUioToJSONTyped = ApplicationTokenFormatUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* `api_key` (default) creates an API key of the user. `jwt` returns a 1 h access token and a rotating 30-day refresh token instead, without creating an API key.
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ApplicationTokenFormatUio = {
|
|
28
|
+
ApiKey: 'api_key',
|
|
29
|
+
Jwt: 'jwt'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfApplicationTokenFormatUio(value) {
|
|
32
|
+
for (const key in exports.ApplicationTokenFormatUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ApplicationTokenFormatUio, key)) {
|
|
34
|
+
if (exports.ApplicationTokenFormatUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ApplicationTokenFormatUioFromJSON(json) {
|
|
42
|
+
return ApplicationTokenFormatUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApplicationTokenFormatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ApplicationTokenFormatUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ApplicationTokenFormatUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ApplicationTokenFormatUio } from './ApplicationTokenFormatUio';
|
|
12
13
|
/**
|
|
14
|
+
* `authorization_code` exchanges the code (with `code`, `code_verifier` and `redirect_uri`); `refresh_token` renews the tokens of a session opened with `token_format=jwt`.
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
15
17
|
* @interface ApplicationTokenRequestUio
|
|
@@ -26,31 +28,44 @@ export interface ApplicationTokenRequestUio {
|
|
|
26
28
|
* @type {string}
|
|
27
29
|
* @memberof ApplicationTokenRequestUio
|
|
28
30
|
*/
|
|
29
|
-
code
|
|
31
|
+
code?: string;
|
|
30
32
|
/**
|
|
31
33
|
*
|
|
32
34
|
* @type {string}
|
|
33
35
|
* @memberof ApplicationTokenRequestUio
|
|
34
36
|
*/
|
|
35
|
-
codeVerifier
|
|
37
|
+
codeVerifier?: string;
|
|
36
38
|
/**
|
|
37
39
|
*
|
|
38
40
|
* @type {string}
|
|
39
41
|
* @memberof ApplicationTokenRequestUio
|
|
40
42
|
*/
|
|
41
|
-
redirectUri
|
|
43
|
+
redirectUri?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Required with `grant_type=refresh_token`.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ApplicationTokenRequestUio
|
|
48
|
+
*/
|
|
49
|
+
refreshToken?: string;
|
|
42
50
|
/**
|
|
43
51
|
*
|
|
44
52
|
* @type {string}
|
|
45
53
|
* @memberof ApplicationTokenRequestUio
|
|
46
54
|
*/
|
|
47
55
|
clientId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ApplicationTokenFormatUio}
|
|
59
|
+
* @memberof ApplicationTokenRequestUio
|
|
60
|
+
*/
|
|
61
|
+
tokenFormat?: ApplicationTokenFormatUio;
|
|
48
62
|
}
|
|
49
63
|
/**
|
|
50
64
|
* @export
|
|
51
65
|
*/
|
|
52
66
|
export declare const ApplicationTokenRequestUioGrantTypeEnum: {
|
|
53
67
|
readonly AuthorizationCode: "authorization_code";
|
|
68
|
+
readonly RefreshToken: "refresh_token";
|
|
54
69
|
};
|
|
55
70
|
export type ApplicationTokenRequestUioGrantTypeEnum = typeof ApplicationTokenRequestUioGrantTypeEnum[keyof typeof ApplicationTokenRequestUioGrantTypeEnum];
|
|
56
71
|
/**
|
|
@@ -19,11 +19,13 @@ exports.ApplicationTokenRequestUioFromJSON = ApplicationTokenRequestUioFromJSON;
|
|
|
19
19
|
exports.ApplicationTokenRequestUioFromJSONTyped = ApplicationTokenRequestUioFromJSONTyped;
|
|
20
20
|
exports.ApplicationTokenRequestUioToJSON = ApplicationTokenRequestUioToJSON;
|
|
21
21
|
exports.ApplicationTokenRequestUioToJSONTyped = ApplicationTokenRequestUioToJSONTyped;
|
|
22
|
+
const ApplicationTokenFormatUio_1 = require("./ApplicationTokenFormatUio");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
25
26
|
exports.ApplicationTokenRequestUioGrantTypeEnum = {
|
|
26
|
-
AuthorizationCode: 'authorization_code'
|
|
27
|
+
AuthorizationCode: 'authorization_code',
|
|
28
|
+
RefreshToken: 'refresh_token'
|
|
27
29
|
};
|
|
28
30
|
/**
|
|
29
31
|
* Check if a given object implements the ApplicationTokenRequestUio interface.
|
|
@@ -31,12 +33,6 @@ exports.ApplicationTokenRequestUioGrantTypeEnum = {
|
|
|
31
33
|
function instanceOfApplicationTokenRequestUio(value) {
|
|
32
34
|
if (!('grantType' in value) || value['grantType'] === undefined)
|
|
33
35
|
return false;
|
|
34
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('codeVerifier' in value) || value['codeVerifier'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('redirectUri' in value) || value['redirectUri'] === undefined)
|
|
39
|
-
return false;
|
|
40
36
|
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
41
37
|
return false;
|
|
42
38
|
return true;
|
|
@@ -50,10 +46,12 @@ function ApplicationTokenRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
46
|
}
|
|
51
47
|
return {
|
|
52
48
|
'grantType': json['grant_type'],
|
|
53
|
-
'code': json['code'],
|
|
54
|
-
'codeVerifier': json['code_verifier'],
|
|
55
|
-
'redirectUri': json['redirect_uri'],
|
|
49
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
50
|
+
'codeVerifier': json['code_verifier'] == null ? undefined : json['code_verifier'],
|
|
51
|
+
'redirectUri': json['redirect_uri'] == null ? undefined : json['redirect_uri'],
|
|
52
|
+
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
|
56
53
|
'clientId': json['client_id'],
|
|
54
|
+
'tokenFormat': json['token_format'] == null ? undefined : (0, ApplicationTokenFormatUio_1.ApplicationTokenFormatUioFromJSON)(json['token_format']),
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
function ApplicationTokenRequestUioToJSON(json) {
|
|
@@ -68,6 +66,8 @@ function ApplicationTokenRequestUioToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
68
66
|
'code': value['code'],
|
|
69
67
|
'code_verifier': value['codeVerifier'],
|
|
70
68
|
'redirect_uri': value['redirectUri'],
|
|
69
|
+
'refresh_token': value['refreshToken'],
|
|
71
70
|
'client_id': value['clientId'],
|
|
71
|
+
'token_format': (0, ApplicationTokenFormatUio_1.ApplicationTokenFormatUioToJSON)(value['tokenFormat']),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -10,13 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
+
* An API key (`token_type: api_key`), or with `token_format=jwt` an access token and a refresh token (`token_type: Bearer`). Each refresh returns a new refresh token; the previous one stops working, and presenting it again closes the session.
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
15
16
|
* @interface ApplicationTokenResponseUio
|
|
16
17
|
*/
|
|
17
18
|
export interface ApplicationTokenResponseUio {
|
|
18
19
|
/**
|
|
19
|
-
* API key, to send in the `x-api-key` header
|
|
20
|
+
* API key, to send in the `x-api-key` header; or access token, to send as `Authorization: Bearer`.
|
|
21
|
+
*
|
|
20
22
|
* @type {string}
|
|
21
23
|
* @memberof ApplicationTokenResponseUio
|
|
22
24
|
*/
|
|
@@ -28,29 +30,48 @@ export interface ApplicationTokenResponseUio {
|
|
|
28
30
|
*/
|
|
29
31
|
tokenType: ApplicationTokenResponseUioTokenTypeEnum;
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* Only for an API key.
|
|
32
34
|
* @type {string}
|
|
33
35
|
* @memberof ApplicationTokenResponseUio
|
|
34
36
|
*/
|
|
35
|
-
keyId
|
|
37
|
+
keyId?: string;
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* Only for an API key.
|
|
38
40
|
* @type {string}
|
|
39
41
|
* @memberof ApplicationTokenResponseUio
|
|
40
42
|
*/
|
|
41
|
-
keyName
|
|
43
|
+
keyName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Lifetime of the access token in seconds. Only with `token_format=jwt`.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ApplicationTokenResponseUio
|
|
48
|
+
*/
|
|
49
|
+
expiresIn?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Only with `token_format=jwt`.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ApplicationTokenResponseUio
|
|
54
|
+
*/
|
|
55
|
+
refreshToken?: string;
|
|
42
56
|
/**
|
|
43
57
|
*
|
|
44
58
|
* @type {string}
|
|
45
59
|
* @memberof ApplicationTokenResponseUio
|
|
46
60
|
*/
|
|
47
61
|
email?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ApplicationTokenResponseUio
|
|
66
|
+
*/
|
|
67
|
+
userId?: string;
|
|
48
68
|
}
|
|
49
69
|
/**
|
|
50
70
|
* @export
|
|
51
71
|
*/
|
|
52
72
|
export declare const ApplicationTokenResponseUioTokenTypeEnum: {
|
|
53
73
|
readonly ApiKey: "api_key";
|
|
74
|
+
readonly Bearer: "Bearer";
|
|
54
75
|
};
|
|
55
76
|
export type ApplicationTokenResponseUioTokenTypeEnum = typeof ApplicationTokenResponseUioTokenTypeEnum[keyof typeof ApplicationTokenResponseUioTokenTypeEnum];
|
|
56
77
|
/**
|
|
@@ -23,7 +23,8 @@ exports.ApplicationTokenResponseUioToJSONTyped = ApplicationTokenResponseUioToJS
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.ApplicationTokenResponseUioTokenTypeEnum = {
|
|
26
|
-
ApiKey: 'api_key'
|
|
26
|
+
ApiKey: 'api_key',
|
|
27
|
+
Bearer: 'Bearer'
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
* Check if a given object implements the ApplicationTokenResponseUio interface.
|
|
@@ -33,10 +34,6 @@ function instanceOfApplicationTokenResponseUio(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('tokenType' in value) || value['tokenType'] === undefined)
|
|
35
36
|
return false;
|
|
36
|
-
if (!('keyId' in value) || value['keyId'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('keyName' in value) || value['keyName'] === undefined)
|
|
39
|
-
return false;
|
|
40
37
|
return true;
|
|
41
38
|
}
|
|
42
39
|
function ApplicationTokenResponseUioFromJSON(json) {
|
|
@@ -49,9 +46,12 @@ function ApplicationTokenResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
46
|
return {
|
|
50
47
|
'accessToken': json['access_token'],
|
|
51
48
|
'tokenType': json['token_type'],
|
|
52
|
-
'keyId': json['key_id'],
|
|
53
|
-
'keyName': json['key_name'],
|
|
49
|
+
'keyId': json['key_id'] == null ? undefined : json['key_id'],
|
|
50
|
+
'keyName': json['key_name'] == null ? undefined : json['key_name'],
|
|
51
|
+
'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'],
|
|
52
|
+
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
|
54
53
|
'email': json['email'] == null ? undefined : json['email'],
|
|
54
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
function ApplicationTokenResponseUioToJSON(json) {
|
|
@@ -66,6 +66,9 @@ function ApplicationTokenResponseUioToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
66
66
|
'token_type': value['tokenType'],
|
|
67
67
|
'key_id': value['keyId'],
|
|
68
68
|
'key_name': value['keyName'],
|
|
69
|
+
'expires_in': value['expiresIn'],
|
|
70
|
+
'refresh_token': value['refreshToken'],
|
|
69
71
|
'email': value['email'],
|
|
72
|
+
'user_id': value['userId'],
|
|
70
73
|
};
|
|
71
74
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ApplicationTokenRevocationRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplicationTokenRevocationRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* The refresh token to revoke.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApplicationTokenRevocationRequestUio
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApplicationTokenRevocationRequestUio
|
|
28
|
+
*/
|
|
29
|
+
clientId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApplicationTokenRevocationRequestUio
|
|
34
|
+
*/
|
|
35
|
+
tokenTypeHint?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApplicationTokenRevocationRequestUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApplicationTokenRevocationRequestUio(value: object): value is ApplicationTokenRevocationRequestUio;
|
|
41
|
+
export declare function ApplicationTokenRevocationRequestUioFromJSON(json: any): ApplicationTokenRevocationRequestUio;
|
|
42
|
+
export declare function ApplicationTokenRevocationRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationTokenRevocationRequestUio;
|
|
43
|
+
export declare function ApplicationTokenRevocationRequestUioToJSON(json: any): ApplicationTokenRevocationRequestUio;
|
|
44
|
+
export declare function ApplicationTokenRevocationRequestUioToJSONTyped(value?: ApplicationTokenRevocationRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfApplicationTokenRevocationRequestUio = instanceOfApplicationTokenRevocationRequestUio;
|
|
17
|
+
exports.ApplicationTokenRevocationRequestUioFromJSON = ApplicationTokenRevocationRequestUioFromJSON;
|
|
18
|
+
exports.ApplicationTokenRevocationRequestUioFromJSONTyped = ApplicationTokenRevocationRequestUioFromJSONTyped;
|
|
19
|
+
exports.ApplicationTokenRevocationRequestUioToJSON = ApplicationTokenRevocationRequestUioToJSON;
|
|
20
|
+
exports.ApplicationTokenRevocationRequestUioToJSONTyped = ApplicationTokenRevocationRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApplicationTokenRevocationRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApplicationTokenRevocationRequestUio(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApplicationTokenRevocationRequestUioFromJSON(json) {
|
|
32
|
+
return ApplicationTokenRevocationRequestUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApplicationTokenRevocationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'token': json['token'],
|
|
40
|
+
'clientId': json['client_id'],
|
|
41
|
+
'tokenTypeHint': json['token_type_hint'] == null ? undefined : json['token_type_hint'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ApplicationTokenRevocationRequestUioToJSON(json) {
|
|
45
|
+
return ApplicationTokenRevocationRequestUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ApplicationTokenRevocationRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'token': value['token'],
|
|
53
|
+
'client_id': value['clientId'],
|
|
54
|
+
'token_type_hint': value['tokenTypeHint'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ConversationMessagesInnerSuggestionsInnerUio } from './ConversationMessagesInnerSuggestionsInnerUio';
|
|
13
|
+
import type { TokenUsage1Uio } from './TokenUsage1Uio';
|
|
13
14
|
import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
|
|
14
15
|
import type { ConversationMessageApprovalUio } from './ConversationMessageApprovalUio';
|
|
15
16
|
import type { ConversationMessagesInnerFlowNodeUio } from './ConversationMessagesInnerFlowNodeUio';
|
|
16
17
|
import type { ToolResultsUio } from './ToolResultsUio';
|
|
17
|
-
import type { TokenUsageUio } from './TokenUsageUio';
|
|
18
18
|
import type { ConversationMessageQuestionnaireUio } from './ConversationMessageQuestionnaireUio';
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -74,10 +74,10 @@ export interface ConversationMessagesInnerUio {
|
|
|
74
74
|
audio?: Array<ChatMessageAudioInnerUio>;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
|
-
* @type {
|
|
77
|
+
* @type {TokenUsage1Uio}
|
|
78
78
|
* @memberof ConversationMessagesInnerUio
|
|
79
79
|
*/
|
|
80
|
-
usage?:
|
|
80
|
+
usage?: TokenUsage1Uio;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {Array<ToolResultsUio>}
|
|
@@ -19,11 +19,11 @@ exports.ConversationMessagesInnerUioFromJSONTyped = ConversationMessagesInnerUio
|
|
|
19
19
|
exports.ConversationMessagesInnerUioToJSON = ConversationMessagesInnerUioToJSON;
|
|
20
20
|
exports.ConversationMessagesInnerUioToJSONTyped = ConversationMessagesInnerUioToJSONTyped;
|
|
21
21
|
const ConversationMessagesInnerSuggestionsInnerUio_1 = require("./ConversationMessagesInnerSuggestionsInnerUio");
|
|
22
|
+
const TokenUsage1Uio_1 = require("./TokenUsage1Uio");
|
|
22
23
|
const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
|
|
23
24
|
const ConversationMessageApprovalUio_1 = require("./ConversationMessageApprovalUio");
|
|
24
25
|
const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
|
|
25
26
|
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
26
|
-
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
27
27
|
const ConversationMessageQuestionnaireUio_1 = require("./ConversationMessageQuestionnaireUio");
|
|
28
28
|
/**
|
|
29
29
|
* Check if a given object implements the ConversationMessagesInnerUio interface.
|
|
@@ -55,7 +55,7 @@ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(ConversationMessagesInnerSuggestionsInnerUio_1.ConversationMessagesInnerSuggestionsInnerUioFromJSON)),
|
|
56
56
|
'flowNode': json['flowNode'] == null ? undefined : (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioFromJSON)(json['flowNode']),
|
|
57
57
|
'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
|
|
58
|
-
'usage': json['usage'] == null ? undefined : (0,
|
|
58
|
+
'usage': json['usage'] == null ? undefined : (0, TokenUsage1Uio_1.TokenUsage1UioFromJSON)(json['usage']),
|
|
59
59
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
60
60
|
'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
|
|
61
61
|
'questionnaires': json['questionnaires'] == null ? undefined : (json['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioFromJSON)),
|
|
@@ -78,7 +78,7 @@ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
78
78
|
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(ConversationMessagesInnerSuggestionsInnerUio_1.ConversationMessagesInnerSuggestionsInnerUioToJSON)),
|
|
79
79
|
'flowNode': (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioToJSON)(value['flowNode']),
|
|
80
80
|
'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
|
|
81
|
-
'usage': (0,
|
|
81
|
+
'usage': (0, TokenUsage1Uio_1.TokenUsage1UioToJSON)(value['usage']),
|
|
82
82
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
83
83
|
'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
|
|
84
84
|
'questionnaires': value['questionnaires'] == null ? undefined : (value['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioToJSON)),
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ConversationMessagesInnerUio } from './ConversationMessagesInnerUio';
|
|
13
|
+
import type { TokenUsage1Uio } from './TokenUsage1Uio';
|
|
13
14
|
import type { ConversationMetricsInnerUio } from './ConversationMetricsInnerUio';
|
|
14
|
-
import type { TokenUsageUio } from './TokenUsageUio';
|
|
15
15
|
import type { ChatContextUio } from './ChatContextUio';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
@@ -63,10 +63,10 @@ export interface ConversationUio {
|
|
|
63
63
|
messages: Array<ConversationMessagesInnerUio>;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @type {
|
|
66
|
+
* @type {TokenUsage1Uio}
|
|
67
67
|
* @memberof ConversationUio
|
|
68
68
|
*/
|
|
69
|
-
usage?:
|
|
69
|
+
usage?: TokenUsage1Uio;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {Array<ConversationMetricsInnerUio>}
|