@breign/client 1.0.158 → 1.0.160
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/AiGatewayApi.d.ts +28 -1
- package/dist/apis/AiGatewayApi.js +63 -0
- package/dist/apis/PromptsApi.d.ts +41 -1
- package/dist/apis/PromptsApi.js +92 -0
- package/dist/apis/ToolsApi.d.ts +46 -1
- package/dist/apis/ToolsApi.js +107 -0
- package/dist/models/AgentRateLimitSettingsUio.d.ts +80 -0
- package/dist/models/AgentRateLimitSettingsUio.js +80 -0
- package/dist/models/AgentRateLimitSettingsUpdateRequestUio.d.ts +50 -0
- package/dist/models/AgentRateLimitSettingsUpdateRequestUio.js +54 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +64 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.js +72 -0
- package/dist/models/AiGatewaySettingsUio.d.ts +57 -0
- package/dist/models/AiGatewaySettingsUio.js +65 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +39 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.js +51 -0
- package/dist/models/McpCallLogCursorUio.d.ts +38 -0
- package/dist/models/McpCallLogCursorUio.js +54 -0
- package/dist/models/McpCallLogEventUio.d.ts +27 -0
- package/dist/models/McpCallLogEventUio.js +53 -0
- package/dist/models/McpCallLogStatusUio.d.ts +25 -0
- package/dist/models/McpCallLogStatusUio.js +51 -0
- package/dist/models/McpCallLogUio.d.ts +162 -0
- package/dist/models/McpCallLogUio.js +114 -0
- package/dist/models/McpCallLogsDeletedResponseUio.d.ts +32 -0
- package/dist/models/McpCallLogsDeletedResponseUio.js +50 -0
- package/dist/models/McpCallLogsResponseUio.d.ts +58 -0
- package/dist/models/McpCallLogsResponseUio.js +68 -0
- package/dist/models/McpLogsSettingsRequestUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsRequestUio.js +50 -0
- package/dist/models/McpLogsSettingsResponseUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsResponseUio.js +54 -0
- package/dist/models/PromptRateLimitResponseUio.d.ts +50 -0
- package/dist/models/PromptRateLimitResponseUio.js +62 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/openapi.json +752 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
13
|
+
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
14
14
|
export interface CreateAiGatewayChatCompletionRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
aiGatewayChatCompletionRequestUio: AiGatewayChatCompletionRequestUio;
|
|
@@ -36,6 +36,9 @@ export interface GetAiGatewayModelRequest {
|
|
|
36
36
|
organizationId: string;
|
|
37
37
|
model: string;
|
|
38
38
|
}
|
|
39
|
+
export interface GetAiGatewaySettingsRequest {
|
|
40
|
+
organizationId: string;
|
|
41
|
+
}
|
|
39
42
|
export interface GetAiGatewayV1CreditsRequest {
|
|
40
43
|
organizationId: string;
|
|
41
44
|
}
|
|
@@ -66,6 +69,10 @@ export interface ListAiGatewayModelsRequest {
|
|
|
66
69
|
export interface ListAiGatewayV1ModelsRequest {
|
|
67
70
|
organizationId: string;
|
|
68
71
|
}
|
|
72
|
+
export interface UpdateAiGatewaySettingsRequest {
|
|
73
|
+
organizationId: string;
|
|
74
|
+
aiGatewaySettingsUpdateRequestUio: AiGatewaySettingsUpdateRequestUio;
|
|
75
|
+
}
|
|
69
76
|
/**
|
|
70
77
|
*
|
|
71
78
|
*/
|
|
@@ -130,6 +137,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
|
|
|
130
137
|
* Get a model available through the AI gateway
|
|
131
138
|
*/
|
|
132
139
|
getAiGatewayModel(organizationId: string, model: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayModelUio>;
|
|
140
|
+
/**
|
|
141
|
+
* Organization admin settings for gateway RPM and per-model token quotas.
|
|
142
|
+
* Get AI Gateway limits settings
|
|
143
|
+
*/
|
|
144
|
+
getAiGatewaySettingsRaw(requestParameters: GetAiGatewaySettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewaySettingsUio>>;
|
|
145
|
+
/**
|
|
146
|
+
* Organization admin settings for gateway RPM and per-model token quotas.
|
|
147
|
+
* Get AI Gateway limits settings
|
|
148
|
+
*/
|
|
149
|
+
getAiGatewaySettings(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewaySettingsUio>;
|
|
133
150
|
/**
|
|
134
151
|
* Équivalent de `GET /v1/credits`. `total_used` est la dépense cumulée de l\'organisation, calculée depuis la configuration de prix. `balance` est toujours null : Breign n\'a pas de notion de crédits prépayés.
|
|
135
152
|
* Check credit balance (AI Gateway REST API)
|
|
@@ -190,6 +207,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
|
|
|
190
207
|
* List models (AI Gateway REST API)
|
|
191
208
|
*/
|
|
192
209
|
listAiGatewayV1Models(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayV1ModelListUio>;
|
|
210
|
+
/**
|
|
211
|
+
* Organization admin can set gateway RPM and per-model token quotas.
|
|
212
|
+
* Update AI Gateway limits settings
|
|
213
|
+
*/
|
|
214
|
+
updateAiGatewaySettingsRaw(requestParameters: UpdateAiGatewaySettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewaySettingsUio>>;
|
|
215
|
+
/**
|
|
216
|
+
* Organization admin can set gateway RPM and per-model token quotas.
|
|
217
|
+
* Update AI Gateway limits settings
|
|
218
|
+
*/
|
|
219
|
+
updateAiGatewaySettings(organizationId: string, aiGatewaySettingsUpdateRequestUio: AiGatewaySettingsUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewaySettingsUio>;
|
|
193
220
|
}
|
|
194
221
|
/**
|
|
195
222
|
* @export
|
|
@@ -253,6 +253,35 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
253
253
|
const response = await this.getAiGatewayModelRaw({ organizationId: organizationId, model: model }, initOverrides);
|
|
254
254
|
return await response.value();
|
|
255
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* Organization admin settings for gateway RPM and per-model token quotas.
|
|
258
|
+
* Get AI Gateway limits settings
|
|
259
|
+
*/
|
|
260
|
+
async getAiGatewaySettingsRaw(requestParameters, initOverrides) {
|
|
261
|
+
if (requestParameters['organizationId'] == null) {
|
|
262
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAiGatewaySettings().');
|
|
263
|
+
}
|
|
264
|
+
const queryParameters = {};
|
|
265
|
+
const headerParameters = {};
|
|
266
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
267
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
268
|
+
}
|
|
269
|
+
const response = await this.request({
|
|
270
|
+
path: `/organizations/{organizationId}/ai-gateway/settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
271
|
+
method: 'GET',
|
|
272
|
+
headers: headerParameters,
|
|
273
|
+
query: queryParameters,
|
|
274
|
+
}, initOverrides);
|
|
275
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySettingsUioFromJSON)(jsonValue));
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Organization admin settings for gateway RPM and per-model token quotas.
|
|
279
|
+
* Get AI Gateway limits settings
|
|
280
|
+
*/
|
|
281
|
+
async getAiGatewaySettings(organizationId, initOverrides) {
|
|
282
|
+
const response = await this.getAiGatewaySettingsRaw({ organizationId: organizationId }, initOverrides);
|
|
283
|
+
return await response.value();
|
|
284
|
+
}
|
|
256
285
|
/**
|
|
257
286
|
* Équivalent de `GET /v1/credits`. `total_used` est la dépense cumulée de l\'organisation, calculée depuis la configuration de prix. `balance` est toujours null : Breign n\'a pas de notion de crédits prépayés.
|
|
258
287
|
* Check credit balance (AI Gateway REST API)
|
|
@@ -472,6 +501,40 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
472
501
|
const response = await this.listAiGatewayV1ModelsRaw({ organizationId: organizationId }, initOverrides);
|
|
473
502
|
return await response.value();
|
|
474
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* Organization admin can set gateway RPM and per-model token quotas.
|
|
506
|
+
* Update AI Gateway limits settings
|
|
507
|
+
*/
|
|
508
|
+
async updateAiGatewaySettingsRaw(requestParameters, initOverrides) {
|
|
509
|
+
if (requestParameters['organizationId'] == null) {
|
|
510
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateAiGatewaySettings().');
|
|
511
|
+
}
|
|
512
|
+
if (requestParameters['aiGatewaySettingsUpdateRequestUio'] == null) {
|
|
513
|
+
throw new runtime.RequiredError('aiGatewaySettingsUpdateRequestUio', 'Required parameter "aiGatewaySettingsUpdateRequestUio" was null or undefined when calling updateAiGatewaySettings().');
|
|
514
|
+
}
|
|
515
|
+
const queryParameters = {};
|
|
516
|
+
const headerParameters = {};
|
|
517
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
518
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
519
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
520
|
+
}
|
|
521
|
+
const response = await this.request({
|
|
522
|
+
path: `/organizations/{organizationId}/ai-gateway/settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
523
|
+
method: 'PUT',
|
|
524
|
+
headers: headerParameters,
|
|
525
|
+
query: queryParameters,
|
|
526
|
+
body: (0, index_1.AiGatewaySettingsUpdateRequestUioToJSON)(requestParameters['aiGatewaySettingsUpdateRequestUio']),
|
|
527
|
+
}, initOverrides);
|
|
528
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySettingsUioFromJSON)(jsonValue));
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Organization admin can set gateway RPM and per-model token quotas.
|
|
532
|
+
* Update AI Gateway limits settings
|
|
533
|
+
*/
|
|
534
|
+
async updateAiGatewaySettings(organizationId, aiGatewaySettingsUpdateRequestUio, initOverrides) {
|
|
535
|
+
const response = await this.updateAiGatewaySettingsRaw({ organizationId: organizationId, aiGatewaySettingsUpdateRequestUio: aiGatewaySettingsUpdateRequestUio }, initOverrides);
|
|
536
|
+
return await response.value();
|
|
537
|
+
}
|
|
475
538
|
}
|
|
476
539
|
exports.AiGatewayApi = AiGatewayApi;
|
|
477
540
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BodyWithIdUio, ChatMessageUio, ConversationDetailUio, MessageStatusUio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio, SetMessageReaction200ResponseUio, SetMessageReactionRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentRateLimitSettingsUio, AgentRateLimitSettingsUpdateRequestUio, BodyWithIdUio, ChatMessageUio, ConversationDetailUio, MessageStatusUio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio, PromptRateLimitResponseUio, SetMessageReaction200ResponseUio, SetMessageReactionRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateConversationRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
|
|
@@ -27,6 +27,9 @@ export interface CreatePromptRequest {
|
|
|
27
27
|
async?: boolean;
|
|
28
28
|
ephemeral?: boolean;
|
|
29
29
|
}
|
|
30
|
+
export interface GetAgentRateLimitSettingsRequest {
|
|
31
|
+
organizationId: string;
|
|
32
|
+
}
|
|
30
33
|
export interface GetConversationByIdRequest {
|
|
31
34
|
conversationId: string;
|
|
32
35
|
}
|
|
@@ -38,6 +41,9 @@ export interface GetMessageStatusRequest {
|
|
|
38
41
|
conversationId: string;
|
|
39
42
|
messageId: string;
|
|
40
43
|
}
|
|
44
|
+
export interface GetPromptRateLimitRequest {
|
|
45
|
+
agentId: string;
|
|
46
|
+
}
|
|
41
47
|
export interface SendMessageToConversationRequest {
|
|
42
48
|
conversationId: string;
|
|
43
49
|
messageUio: MessageUio;
|
|
@@ -48,6 +54,10 @@ export interface SetMessageReactionRequest {
|
|
|
48
54
|
messageId: string;
|
|
49
55
|
setMessageReactionRequestUio: SetMessageReactionRequestUio;
|
|
50
56
|
}
|
|
57
|
+
export interface UpdateAgentRateLimitSettingsRequest {
|
|
58
|
+
organizationId: string;
|
|
59
|
+
agentRateLimitSettingsUpdateRequestUio: AgentRateLimitSettingsUpdateRequestUio;
|
|
60
|
+
}
|
|
51
61
|
/**
|
|
52
62
|
*
|
|
53
63
|
*/
|
|
@@ -82,6 +92,16 @@ export declare class PromptsApi extends runtime.BaseAPI {
|
|
|
82
92
|
* Create a new prompt
|
|
83
93
|
*/
|
|
84
94
|
createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, async?: boolean, ephemeral?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
|
|
95
|
+
/**
|
|
96
|
+
* Organization admin settings for agent chat anti-abuse limits.
|
|
97
|
+
* Get agent chat rate limit settings
|
|
98
|
+
*/
|
|
99
|
+
getAgentRateLimitSettingsRaw(requestParameters: GetAgentRateLimitSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentRateLimitSettingsUio>>;
|
|
100
|
+
/**
|
|
101
|
+
* Organization admin settings for agent chat anti-abuse limits.
|
|
102
|
+
* Get agent chat rate limit settings
|
|
103
|
+
*/
|
|
104
|
+
getAgentRateLimitSettings(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentRateLimitSettingsUio>;
|
|
85
105
|
/**
|
|
86
106
|
* Retrieves details of a specific conversation including all messages
|
|
87
107
|
* Get a conversation by ID
|
|
@@ -112,6 +132,16 @@ export declare class PromptsApi extends runtime.BaseAPI {
|
|
|
112
132
|
* Get the status of a message
|
|
113
133
|
*/
|
|
114
134
|
getMessageStatus(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageStatusUio>;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the current prompt rate-limit quota for the authenticated subject on the given agent, without consuming a slot.
|
|
137
|
+
* Get prompt rate-limit usage
|
|
138
|
+
*/
|
|
139
|
+
getPromptRateLimitRaw(requestParameters: GetPromptRateLimitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PromptRateLimitResponseUio>>;
|
|
140
|
+
/**
|
|
141
|
+
* Returns the current prompt rate-limit quota for the authenticated subject on the given agent, without consuming a slot.
|
|
142
|
+
* Get prompt rate-limit usage
|
|
143
|
+
*/
|
|
144
|
+
getPromptRateLimit(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptRateLimitResponseUio>;
|
|
115
145
|
/**
|
|
116
146
|
* Adds a new message to an existing conversation and gets the AI response
|
|
117
147
|
* Send a message to an existing conversation
|
|
@@ -132,4 +162,14 @@ export declare class PromptsApi extends runtime.BaseAPI {
|
|
|
132
162
|
* Set reaction on a message
|
|
133
163
|
*/
|
|
134
164
|
setMessageReaction(conversationId: string, messageId: string, setMessageReactionRequestUio: SetMessageReactionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetMessageReaction200ResponseUio>;
|
|
165
|
+
/**
|
|
166
|
+
* Organization admin can set per-org chat agent rate limits.
|
|
167
|
+
* Update agent chat rate limit settings
|
|
168
|
+
*/
|
|
169
|
+
updateAgentRateLimitSettingsRaw(requestParameters: UpdateAgentRateLimitSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentRateLimitSettingsUio>>;
|
|
170
|
+
/**
|
|
171
|
+
* Organization admin can set per-org chat agent rate limits.
|
|
172
|
+
* Update agent chat rate limit settings
|
|
173
|
+
*/
|
|
174
|
+
updateAgentRateLimitSettings(organizationId: string, agentRateLimitSettingsUpdateRequestUio: AgentRateLimitSettingsUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentRateLimitSettingsUio>;
|
|
135
175
|
}
|
package/dist/apis/PromptsApi.js
CHANGED
|
@@ -167,6 +167,35 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
167
167
|
const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio, async: async, ephemeral: ephemeral }, initOverrides);
|
|
168
168
|
return await response.value();
|
|
169
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Organization admin settings for agent chat anti-abuse limits.
|
|
172
|
+
* Get agent chat rate limit settings
|
|
173
|
+
*/
|
|
174
|
+
async getAgentRateLimitSettingsRaw(requestParameters, initOverrides) {
|
|
175
|
+
if (requestParameters['organizationId'] == null) {
|
|
176
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAgentRateLimitSettings().');
|
|
177
|
+
}
|
|
178
|
+
const queryParameters = {};
|
|
179
|
+
const headerParameters = {};
|
|
180
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
181
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
182
|
+
}
|
|
183
|
+
const response = await this.request({
|
|
184
|
+
path: `/organizations/{organizationId}/agents/rate-limit/settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
185
|
+
method: 'GET',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
}, initOverrides);
|
|
189
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentRateLimitSettingsUioFromJSON)(jsonValue));
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Organization admin settings for agent chat anti-abuse limits.
|
|
193
|
+
* Get agent chat rate limit settings
|
|
194
|
+
*/
|
|
195
|
+
async getAgentRateLimitSettings(organizationId, initOverrides) {
|
|
196
|
+
const response = await this.getAgentRateLimitSettingsRaw({ organizationId: organizationId }, initOverrides);
|
|
197
|
+
return await response.value();
|
|
198
|
+
}
|
|
170
199
|
/**
|
|
171
200
|
* Retrieves details of a specific conversation including all messages
|
|
172
201
|
* Get a conversation by ID
|
|
@@ -260,6 +289,35 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
260
289
|
const response = await this.getMessageStatusRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
261
290
|
return await response.value();
|
|
262
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Returns the current prompt rate-limit quota for the authenticated subject on the given agent, without consuming a slot.
|
|
294
|
+
* Get prompt rate-limit usage
|
|
295
|
+
*/
|
|
296
|
+
async getPromptRateLimitRaw(requestParameters, initOverrides) {
|
|
297
|
+
if (requestParameters['agentId'] == null) {
|
|
298
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getPromptRateLimit().');
|
|
299
|
+
}
|
|
300
|
+
const queryParameters = {};
|
|
301
|
+
const headerParameters = {};
|
|
302
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
303
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
304
|
+
}
|
|
305
|
+
const response = await this.request({
|
|
306
|
+
path: `/agents/{agentId}/prompts/rate-limit`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
307
|
+
method: 'GET',
|
|
308
|
+
headers: headerParameters,
|
|
309
|
+
query: queryParameters,
|
|
310
|
+
}, initOverrides);
|
|
311
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PromptRateLimitResponseUioFromJSON)(jsonValue));
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Returns the current prompt rate-limit quota for the authenticated subject on the given agent, without consuming a slot.
|
|
315
|
+
* Get prompt rate-limit usage
|
|
316
|
+
*/
|
|
317
|
+
async getPromptRateLimit(agentId, initOverrides) {
|
|
318
|
+
const response = await this.getPromptRateLimitRaw({ agentId: agentId }, initOverrides);
|
|
319
|
+
return await response.value();
|
|
320
|
+
}
|
|
263
321
|
/**
|
|
264
322
|
* Adds a new message to an existing conversation and gets the AI response
|
|
265
323
|
* Send a message to an existing conversation
|
|
@@ -334,5 +392,39 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
334
392
|
const response = await this.setMessageReactionRaw({ conversationId: conversationId, messageId: messageId, setMessageReactionRequestUio: setMessageReactionRequestUio }, initOverrides);
|
|
335
393
|
return await response.value();
|
|
336
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* Organization admin can set per-org chat agent rate limits.
|
|
397
|
+
* Update agent chat rate limit settings
|
|
398
|
+
*/
|
|
399
|
+
async updateAgentRateLimitSettingsRaw(requestParameters, initOverrides) {
|
|
400
|
+
if (requestParameters['organizationId'] == null) {
|
|
401
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateAgentRateLimitSettings().');
|
|
402
|
+
}
|
|
403
|
+
if (requestParameters['agentRateLimitSettingsUpdateRequestUio'] == null) {
|
|
404
|
+
throw new runtime.RequiredError('agentRateLimitSettingsUpdateRequestUio', 'Required parameter "agentRateLimitSettingsUpdateRequestUio" was null or undefined when calling updateAgentRateLimitSettings().');
|
|
405
|
+
}
|
|
406
|
+
const queryParameters = {};
|
|
407
|
+
const headerParameters = {};
|
|
408
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
409
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
410
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
411
|
+
}
|
|
412
|
+
const response = await this.request({
|
|
413
|
+
path: `/organizations/{organizationId}/agents/rate-limit/settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
414
|
+
method: 'PUT',
|
|
415
|
+
headers: headerParameters,
|
|
416
|
+
query: queryParameters,
|
|
417
|
+
body: (0, index_1.AgentRateLimitSettingsUpdateRequestUioToJSON)(requestParameters['agentRateLimitSettingsUpdateRequestUio']),
|
|
418
|
+
}, initOverrides);
|
|
419
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentRateLimitSettingsUioFromJSON)(jsonValue));
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Organization admin can set per-org chat agent rate limits.
|
|
423
|
+
* Update agent chat rate limit settings
|
|
424
|
+
*/
|
|
425
|
+
async updateAgentRateLimitSettings(organizationId, agentRateLimitSettingsUpdateRequestUio, initOverrides) {
|
|
426
|
+
const response = await this.updateAgentRateLimitSettingsRaw({ organizationId: organizationId, agentRateLimitSettingsUpdateRequestUio: agentRateLimitSettingsUpdateRequestUio }, initOverrides);
|
|
427
|
+
return await response.value();
|
|
428
|
+
}
|
|
337
429
|
}
|
|
338
430
|
exports.PromptsApi = PromptsApi;
|
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, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, McpCallLogEventUio, McpCallLogStatusUio, McpCallLogsDeletedResponseUio, McpCallLogsResponseUio, McpLogsSettingsRequestUio, McpLogsSettingsResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -28,6 +28,9 @@ export interface ConvertTextToSpeechRequest {
|
|
|
28
28
|
export interface CreateToolRequest {
|
|
29
29
|
toolCreateRequestUio: ToolCreateRequestUio;
|
|
30
30
|
}
|
|
31
|
+
export interface DeleteMcpCallLogsRequest {
|
|
32
|
+
toolId: string;
|
|
33
|
+
}
|
|
31
34
|
export interface DeleteToolRequest {
|
|
32
35
|
toolId: string;
|
|
33
36
|
}
|
|
@@ -46,6 +49,14 @@ export interface GetToolSecureRequest {
|
|
|
46
49
|
export interface IntrospectMcpToolRequest {
|
|
47
50
|
toolId: string;
|
|
48
51
|
}
|
|
52
|
+
export interface ListMcpCallLogsRequest {
|
|
53
|
+
toolId: string;
|
|
54
|
+
event?: McpCallLogEventUio;
|
|
55
|
+
status?: McpCallLogStatusUio;
|
|
56
|
+
limit?: number;
|
|
57
|
+
beforeCreatedAt?: string;
|
|
58
|
+
beforeId?: string;
|
|
59
|
+
}
|
|
49
60
|
export interface RevealToolTokenRequest {
|
|
50
61
|
toolId: string;
|
|
51
62
|
revealTokenRequestUio: RevealTokenRequestUio;
|
|
@@ -69,6 +80,10 @@ export interface UpdateMcpAllowedToolsRequest {
|
|
|
69
80
|
toolId: string;
|
|
70
81
|
toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio;
|
|
71
82
|
}
|
|
83
|
+
export interface UpdateMcpLogsSettingsRequest {
|
|
84
|
+
toolId: string;
|
|
85
|
+
mcpLogsSettingsRequestUio: McpLogsSettingsRequestUio;
|
|
86
|
+
}
|
|
72
87
|
export interface UpdateToolRequest {
|
|
73
88
|
toolId: string;
|
|
74
89
|
toolUpdateRequestUio: ToolUpdateRequestUio;
|
|
@@ -121,6 +136,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
121
136
|
* Create a new tool
|
|
122
137
|
*/
|
|
123
138
|
createTool(toolCreateRequestUio: ToolCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentToolUio>;
|
|
139
|
+
/**
|
|
140
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
141
|
+
* Erase the MCP traces of a tool
|
|
142
|
+
*/
|
|
143
|
+
deleteMcpCallLogsRaw(requestParameters: DeleteMcpCallLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpCallLogsDeletedResponseUio>>;
|
|
144
|
+
/**
|
|
145
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
146
|
+
* Erase the MCP traces of a tool
|
|
147
|
+
*/
|
|
148
|
+
deleteMcpCallLogs(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpCallLogsDeletedResponseUio>;
|
|
124
149
|
/**
|
|
125
150
|
* Delete a tool
|
|
126
151
|
*/
|
|
@@ -189,6 +214,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
189
214
|
* Introspect an MCP tool server to refresh available actions
|
|
190
215
|
*/
|
|
191
216
|
introspectMcpTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntrospectMcpTool200ResponseUio>;
|
|
217
|
+
/**
|
|
218
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
219
|
+
* Read the MCP traces of a tool
|
|
220
|
+
*/
|
|
221
|
+
listMcpCallLogsRaw(requestParameters: ListMcpCallLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpCallLogsResponseUio>>;
|
|
222
|
+
/**
|
|
223
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
224
|
+
* Read the MCP traces of a tool
|
|
225
|
+
*/
|
|
226
|
+
listMcpCallLogs(toolId: string, event?: McpCallLogEventUio, status?: McpCallLogStatusUio, limit?: number, beforeCreatedAt?: string, beforeId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpCallLogsResponseUio>;
|
|
192
227
|
/**
|
|
193
228
|
* Returns the raw token if it exists and the caller is authorized.
|
|
194
229
|
* Reveal stored tool token (masked in GET)
|
|
@@ -235,6 +270,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
235
270
|
* Replace the list of allowed MCP tools for an MCP tool
|
|
236
271
|
*/
|
|
237
272
|
updateMcpAllowedTools(toolId: string, toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolAllowedToolsResponseUio>;
|
|
273
|
+
/**
|
|
274
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
275
|
+
* Turn MCP payload capture on or off for a tool
|
|
276
|
+
*/
|
|
277
|
+
updateMcpLogsSettingsRaw(requestParameters: UpdateMcpLogsSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpLogsSettingsResponseUio>>;
|
|
278
|
+
/**
|
|
279
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
280
|
+
* Turn MCP payload capture on or off for a tool
|
|
281
|
+
*/
|
|
282
|
+
updateMcpLogsSettings(toolId: string, mcpLogsSettingsRequestUio: McpLogsSettingsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpLogsSettingsResponseUio>;
|
|
238
283
|
/**
|
|
239
284
|
* Update a tool
|
|
240
285
|
*/
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -193,6 +193,35 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
193
193
|
const response = await this.createToolRaw({ toolCreateRequestUio: toolCreateRequestUio }, initOverrides);
|
|
194
194
|
return await response.value();
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
198
|
+
* Erase the MCP traces of a tool
|
|
199
|
+
*/
|
|
200
|
+
async deleteMcpCallLogsRaw(requestParameters, initOverrides) {
|
|
201
|
+
if (requestParameters['toolId'] == null) {
|
|
202
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling deleteMcpCallLogs().');
|
|
203
|
+
}
|
|
204
|
+
const queryParameters = {};
|
|
205
|
+
const headerParameters = {};
|
|
206
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
207
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
208
|
+
}
|
|
209
|
+
const response = await this.request({
|
|
210
|
+
path: `/tools/{toolId}/mcp/logs`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
211
|
+
method: 'DELETE',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
}, initOverrides);
|
|
215
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.McpCallLogsDeletedResponseUioFromJSON)(jsonValue));
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
219
|
+
* Erase the MCP traces of a tool
|
|
220
|
+
*/
|
|
221
|
+
async deleteMcpCallLogs(toolId, initOverrides) {
|
|
222
|
+
const response = await this.deleteMcpCallLogsRaw({ toolId: toolId }, initOverrides);
|
|
223
|
+
return await response.value();
|
|
224
|
+
}
|
|
196
225
|
/**
|
|
197
226
|
* Delete a tool
|
|
198
227
|
*/
|
|
@@ -384,6 +413,50 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
384
413
|
const response = await this.introspectMcpToolRaw({ toolId: toolId }, initOverrides);
|
|
385
414
|
return await response.value();
|
|
386
415
|
}
|
|
416
|
+
/**
|
|
417
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
418
|
+
* Read the MCP traces of a tool
|
|
419
|
+
*/
|
|
420
|
+
async listMcpCallLogsRaw(requestParameters, initOverrides) {
|
|
421
|
+
if (requestParameters['toolId'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling listMcpCallLogs().');
|
|
423
|
+
}
|
|
424
|
+
const queryParameters = {};
|
|
425
|
+
if (requestParameters['event'] != null) {
|
|
426
|
+
queryParameters['event'] = requestParameters['event'];
|
|
427
|
+
}
|
|
428
|
+
if (requestParameters['status'] != null) {
|
|
429
|
+
queryParameters['status'] = requestParameters['status'];
|
|
430
|
+
}
|
|
431
|
+
if (requestParameters['limit'] != null) {
|
|
432
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
433
|
+
}
|
|
434
|
+
if (requestParameters['beforeCreatedAt'] != null) {
|
|
435
|
+
queryParameters['beforeCreatedAt'] = requestParameters['beforeCreatedAt'];
|
|
436
|
+
}
|
|
437
|
+
if (requestParameters['beforeId'] != null) {
|
|
438
|
+
queryParameters['beforeId'] = requestParameters['beforeId'];
|
|
439
|
+
}
|
|
440
|
+
const headerParameters = {};
|
|
441
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
442
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
443
|
+
}
|
|
444
|
+
const response = await this.request({
|
|
445
|
+
path: `/tools/{toolId}/mcp/logs`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
446
|
+
method: 'GET',
|
|
447
|
+
headers: headerParameters,
|
|
448
|
+
query: queryParameters,
|
|
449
|
+
}, initOverrides);
|
|
450
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.McpCallLogsResponseUioFromJSON)(jsonValue));
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
454
|
+
* Read the MCP traces of a tool
|
|
455
|
+
*/
|
|
456
|
+
async listMcpCallLogs(toolId, event, status, limit, beforeCreatedAt, beforeId, initOverrides) {
|
|
457
|
+
const response = await this.listMcpCallLogsRaw({ toolId: toolId, event: event, status: status, limit: limit, beforeCreatedAt: beforeCreatedAt, beforeId: beforeId }, initOverrides);
|
|
458
|
+
return await response.value();
|
|
459
|
+
}
|
|
387
460
|
/**
|
|
388
461
|
* Returns the raw token if it exists and the caller is authorized.
|
|
389
462
|
* Reveal stored tool token (masked in GET)
|
|
@@ -555,6 +628,40 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
555
628
|
const response = await this.updateMcpAllowedToolsRaw({ toolId: toolId, toolAllowedToolsRequestUio: toolAllowedToolsRequestUio }, initOverrides);
|
|
556
629
|
return await response.value();
|
|
557
630
|
}
|
|
631
|
+
/**
|
|
632
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
633
|
+
* Turn MCP payload capture on or off for a tool
|
|
634
|
+
*/
|
|
635
|
+
async updateMcpLogsSettingsRaw(requestParameters, initOverrides) {
|
|
636
|
+
if (requestParameters['toolId'] == null) {
|
|
637
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling updateMcpLogsSettings().');
|
|
638
|
+
}
|
|
639
|
+
if (requestParameters['mcpLogsSettingsRequestUio'] == null) {
|
|
640
|
+
throw new runtime.RequiredError('mcpLogsSettingsRequestUio', 'Required parameter "mcpLogsSettingsRequestUio" was null or undefined when calling updateMcpLogsSettings().');
|
|
641
|
+
}
|
|
642
|
+
const queryParameters = {};
|
|
643
|
+
const headerParameters = {};
|
|
644
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
645
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
646
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
647
|
+
}
|
|
648
|
+
const response = await this.request({
|
|
649
|
+
path: `/tools/{toolId}/mcp/logs/settings`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
650
|
+
method: 'PUT',
|
|
651
|
+
headers: headerParameters,
|
|
652
|
+
query: queryParameters,
|
|
653
|
+
body: (0, index_1.McpLogsSettingsRequestUioToJSON)(requestParameters['mcpLogsSettingsRequestUio']),
|
|
654
|
+
}, initOverrides);
|
|
655
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.McpLogsSettingsResponseUioFromJSON)(jsonValue));
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
659
|
+
* Turn MCP payload capture on or off for a tool
|
|
660
|
+
*/
|
|
661
|
+
async updateMcpLogsSettings(toolId, mcpLogsSettingsRequestUio, initOverrides) {
|
|
662
|
+
const response = await this.updateMcpLogsSettingsRaw({ toolId: toolId, mcpLogsSettingsRequestUio: mcpLogsSettingsRequestUio }, initOverrides);
|
|
663
|
+
return await response.value();
|
|
664
|
+
}
|
|
558
665
|
/**
|
|
559
666
|
* Update a tool
|
|
560
667
|
*/
|
|
@@ -0,0 +1,80 @@
|
|
|
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 AgentRateLimitSettingsUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentRateLimitSettingsUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentRateLimitSettingsUio
|
|
22
|
+
*/
|
|
23
|
+
organizationId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Enable agent chat rate limiting for this organization
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof AgentRateLimitSettingsUio
|
|
28
|
+
*/
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Max concurrent agent turns per user (chat agent)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AgentRateLimitSettingsUio
|
|
34
|
+
*/
|
|
35
|
+
maxConcurrentTurnsPerSubject: number;
|
|
36
|
+
/**
|
|
37
|
+
* Max new conversations per user per minute
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AgentRateLimitSettingsUio
|
|
40
|
+
*/
|
|
41
|
+
maxConversationCreatesPerSubjectPerMinute: number;
|
|
42
|
+
/**
|
|
43
|
+
* Max prompts (messages) per user per agent per minute
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AgentRateLimitSettingsUio
|
|
46
|
+
*/
|
|
47
|
+
maxPromptsPerSubjectPerAgentPerMinute: number;
|
|
48
|
+
/**
|
|
49
|
+
* Platform-fixed sliding window for prompt and conversation counters (milliseconds). Not configurable per organization.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AgentRateLimitSettingsUio
|
|
52
|
+
*/
|
|
53
|
+
windowMs: number;
|
|
54
|
+
/**
|
|
55
|
+
* Platform-fixed max duration of a concurrency slot if release is never called (milliseconds). Not configurable per organization.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AgentRateLimitSettingsUio
|
|
58
|
+
*/
|
|
59
|
+
concurrencyLeaseMs: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof AgentRateLimitSettingsUio
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AgentRateLimitSettingsUio
|
|
70
|
+
*/
|
|
71
|
+
updatedBy?: string | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the AgentRateLimitSettingsUio interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfAgentRateLimitSettingsUio(value: object): value is AgentRateLimitSettingsUio;
|
|
77
|
+
export declare function AgentRateLimitSettingsUioFromJSON(json: any): AgentRateLimitSettingsUio;
|
|
78
|
+
export declare function AgentRateLimitSettingsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRateLimitSettingsUio;
|
|
79
|
+
export declare function AgentRateLimitSettingsUioToJSON(json: any): AgentRateLimitSettingsUio;
|
|
80
|
+
export declare function AgentRateLimitSettingsUioToJSONTyped(value?: AgentRateLimitSettingsUio | null, ignoreDiscriminator?: boolean): any;
|