@breign/client 1.0.192 → 1.0.194
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 -2
- package/dist/apis/OrganizationsApi.js +32 -2
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ConversationMessageQuestionnaireUio.d.ts +67 -0
- package/dist/models/ConversationMessageQuestionnaireUio.js +75 -0
- package/dist/models/ConversationMessagesInnerUio.d.ts +7 -0
- package/dist/models/ConversationMessagesInnerUio.js +3 -0
- package/dist/models/MemberAccessRolesUio.d.ts +38 -0
- package/dist/models/MemberAccessRolesUio.js +54 -0
- package/dist/models/ToolCallResultRequestUio.d.ts +7 -0
- package/dist/models/ToolCallResultRequestUio.js +3 -0
- package/dist/models/ToolCallUio.d.ts +1 -1
- package/dist/models/UserQuestionAnswerUio.d.ts +38 -0
- package/dist/models/UserQuestionAnswerUio.js +52 -0
- package/dist/models/UserQuestionOptionUio.d.ts +38 -0
- package/dist/models/UserQuestionOptionUio.js +54 -0
- package/dist/models/UserQuestionUio.d.ts +51 -0
- package/dist/models/UserQuestionUio.js +63 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/openapi.json +177 -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 { AccessRoleCreateRequestUio, AccessRolePermissionsRequestUio, AccessRoleUio, AccessRoleUpdateRequestUio, CreateToolApprovalRequestUio, DeleteOrganizationUser200ResponseUio, EditToolApprovalRequestUio, OrganizationEngineUio, OrganizationMemberUio, OrganizationOcrConfigUio, OrganizationOcrConfigUpdateRequestUio, OrganizationUio, OrganizationUserInviteRequestUio, OrganizationUserInviteResponseUio, RoleCreateRequestUio, RoleUio, ToolApprovalUio, ToolApprovalsResponseUio, UserAccessRolesRequestUio, UserAccessUio, UserAgentAccessRequestUio, UserAgentAccessUio, UserDirectPermissionsRequestUio } from '../models/index';
|
|
13
|
+
import type { AccessRoleCreateRequestUio, AccessRolePermissionsRequestUio, AccessRoleUio, AccessRoleUpdateRequestUio, CreateToolApprovalRequestUio, DeleteOrganizationUser200ResponseUio, EditToolApprovalRequestUio, MemberAccessRolesUio, OrganizationEngineUio, OrganizationMemberUio, OrganizationOcrConfigUio, OrganizationOcrConfigUpdateRequestUio, OrganizationUio, OrganizationUserInviteRequestUio, OrganizationUserInviteResponseUio, RoleCreateRequestUio, RoleUio, ToolApprovalUio, ToolApprovalsResponseUio, UserAccessRolesRequestUio, UserAccessUio, UserAgentAccessRequestUio, UserAgentAccessUio, UserDirectPermissionsRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateOrganizationAccessRoleRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
accessRoleCreateRequestUio: AccessRoleCreateRequestUio;
|
|
@@ -54,6 +54,7 @@ export interface GetOrganizationEngineRequest {
|
|
|
54
54
|
}
|
|
55
55
|
export interface GetOrganizationMemberPermissionsRequest {
|
|
56
56
|
organizationId: string;
|
|
57
|
+
agentId?: string;
|
|
57
58
|
}
|
|
58
59
|
export interface GetOrganizationOcrConfigRequest {
|
|
59
60
|
organizationId: string;
|
|
@@ -73,6 +74,9 @@ export interface InviteOrganizationUserRequest {
|
|
|
73
74
|
export interface ListOrganizationAccessRolesRequest {
|
|
74
75
|
organizationId: string;
|
|
75
76
|
}
|
|
77
|
+
export interface ListOrganizationMemberAccessRolesRequest {
|
|
78
|
+
organizationId: string;
|
|
79
|
+
}
|
|
76
80
|
export interface ListOrganizationRolesRequest {
|
|
77
81
|
organizationId: string;
|
|
78
82
|
}
|
|
@@ -238,7 +242,7 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
238
242
|
/**
|
|
239
243
|
* Get current member resolved permissions
|
|
240
244
|
*/
|
|
241
|
-
getOrganizationMemberPermissions(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
245
|
+
getOrganizationMemberPermissions(organizationId: string, agentId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
242
246
|
[key: string]: boolean;
|
|
243
247
|
}>;
|
|
244
248
|
/**
|
|
@@ -283,6 +287,14 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
283
287
|
* List access roles of an organization
|
|
284
288
|
*/
|
|
285
289
|
listOrganizationAccessRoles(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccessRoleUio>>;
|
|
290
|
+
/**
|
|
291
|
+
* List access roles of every organization member
|
|
292
|
+
*/
|
|
293
|
+
listOrganizationMemberAccessRolesRaw(requestParameters: ListOrganizationMemberAccessRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MemberAccessRolesUio>>>;
|
|
294
|
+
/**
|
|
295
|
+
* List access roles of every organization member
|
|
296
|
+
*/
|
|
297
|
+
listOrganizationMemberAccessRoles(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MemberAccessRolesUio>>;
|
|
286
298
|
/**
|
|
287
299
|
* Retrieves all roles configured for the given organization
|
|
288
300
|
* List roles of an organization
|
|
@@ -403,6 +403,9 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
403
403
|
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationMemberPermissions().');
|
|
404
404
|
}
|
|
405
405
|
const queryParameters = {};
|
|
406
|
+
if (requestParameters['agentId'] != null) {
|
|
407
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
408
|
+
}
|
|
406
409
|
const headerParameters = {};
|
|
407
410
|
if (this.configuration && this.configuration.apiKey) {
|
|
408
411
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -418,8 +421,8 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
418
421
|
/**
|
|
419
422
|
* Get current member resolved permissions
|
|
420
423
|
*/
|
|
421
|
-
async getOrganizationMemberPermissions(organizationId, initOverrides) {
|
|
422
|
-
const response = await this.getOrganizationMemberPermissionsRaw({ organizationId: organizationId }, initOverrides);
|
|
424
|
+
async getOrganizationMemberPermissions(organizationId, agentId, initOverrides) {
|
|
425
|
+
const response = await this.getOrganizationMemberPermissionsRaw({ organizationId: organizationId, agentId: agentId }, initOverrides);
|
|
423
426
|
return await response.value();
|
|
424
427
|
}
|
|
425
428
|
/**
|
|
@@ -570,6 +573,33 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
570
573
|
const response = await this.listOrganizationAccessRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
571
574
|
return await response.value();
|
|
572
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* List access roles of every organization member
|
|
578
|
+
*/
|
|
579
|
+
async listOrganizationMemberAccessRolesRaw(requestParameters, initOverrides) {
|
|
580
|
+
if (requestParameters['organizationId'] == null) {
|
|
581
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationMemberAccessRoles().');
|
|
582
|
+
}
|
|
583
|
+
const queryParameters = {};
|
|
584
|
+
const headerParameters = {};
|
|
585
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
586
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
587
|
+
}
|
|
588
|
+
const response = await this.request({
|
|
589
|
+
path: `/organizations/{organizationId}/member-access-roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
590
|
+
method: 'GET',
|
|
591
|
+
headers: headerParameters,
|
|
592
|
+
query: queryParameters,
|
|
593
|
+
}, initOverrides);
|
|
594
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MemberAccessRolesUioFromJSON));
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* List access roles of every organization member
|
|
598
|
+
*/
|
|
599
|
+
async listOrganizationMemberAccessRoles(organizationId, initOverrides) {
|
|
600
|
+
const response = await this.listOrganizationMemberAccessRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
601
|
+
return await response.value();
|
|
602
|
+
}
|
|
573
603
|
/**
|
|
574
604
|
* Retrieves all roles configured for the given organization
|
|
575
605
|
* List roles of an organization
|
|
@@ -20,6 +20,7 @@ import type { ConversationHumanRequestUio } from './ConversationHumanRequestUio'
|
|
|
20
20
|
import type { ToolResultsUio } from './ToolResultsUio';
|
|
21
21
|
import type { TokenUsageUio } from './TokenUsageUio';
|
|
22
22
|
import type { ConversationTicketProposalUio } from './ConversationTicketProposalUio';
|
|
23
|
+
import type { ConversationMessageQuestionnaireUio } from './ConversationMessageQuestionnaireUio';
|
|
23
24
|
/**
|
|
24
25
|
*
|
|
25
26
|
* @export
|
|
@@ -80,6 +81,12 @@ export interface ChatMessageUio {
|
|
|
80
81
|
* @memberof ChatMessageUio
|
|
81
82
|
*/
|
|
82
83
|
approvals?: Array<ConversationMessageApprovalUio>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<ConversationMessageQuestionnaireUio>}
|
|
87
|
+
* @memberof ChatMessageUio
|
|
88
|
+
*/
|
|
89
|
+
questionnaires?: Array<ConversationMessageQuestionnaireUio>;
|
|
83
90
|
/**
|
|
84
91
|
*
|
|
85
92
|
* @type {ConversationHumanRequestUio}
|
|
@@ -30,6 +30,7 @@ const ConversationHumanRequestUio_1 = require("./ConversationHumanRequestUio");
|
|
|
30
30
|
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
31
31
|
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
32
32
|
const ConversationTicketProposalUio_1 = require("./ConversationTicketProposalUio");
|
|
33
|
+
const ConversationMessageQuestionnaireUio_1 = require("./ConversationMessageQuestionnaireUio");
|
|
33
34
|
/**
|
|
34
35
|
* @export
|
|
35
36
|
*/
|
|
@@ -68,6 +69,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
69
|
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
69
70
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
70
71
|
'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
|
|
72
|
+
'questionnaires': json['questionnaires'] == null ? undefined : (json['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioFromJSON)),
|
|
71
73
|
'humanRequest': json['humanRequest'] == null ? undefined : (0, ConversationHumanRequestUio_1.ConversationHumanRequestUioFromJSON)(json['humanRequest']),
|
|
72
74
|
'ticketProposal': json['ticketProposal'] == null ? undefined : (0, ConversationTicketProposalUio_1.ConversationTicketProposalUioFromJSON)(json['ticketProposal']),
|
|
73
75
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
|
|
@@ -104,6 +106,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
104
106
|
'confirmationLink': value['confirmationLink'],
|
|
105
107
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
106
108
|
'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
|
|
109
|
+
'questionnaires': value['questionnaires'] == null ? undefined : (value['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioToJSON)),
|
|
107
110
|
'humanRequest': (0, ConversationHumanRequestUio_1.ConversationHumanRequestUioToJSON)(value['humanRequest']),
|
|
108
111
|
'ticketProposal': (0, ConversationTicketProposalUio_1.ConversationTicketProposalUioToJSON)(value['ticketProposal']),
|
|
109
112
|
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
|
|
@@ -0,0 +1,67 @@
|
|
|
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 { UserQuestionAnswerUio } from './UserQuestionAnswerUio';
|
|
13
|
+
import type { UserQuestionUio } from './UserQuestionUio';
|
|
14
|
+
/**
|
|
15
|
+
* An ask_user questionnaire closed during this message, carried by the message so the history shows the card as it was answered. answered — the user submitted answers; skipped — they declined; ignored — they wrote a new message instead.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ConversationMessageQuestionnaireUio
|
|
18
|
+
*/
|
|
19
|
+
export interface ConversationMessageQuestionnaireUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ConversationMessageQuestionnaireUio
|
|
24
|
+
*/
|
|
25
|
+
callId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<UserQuestionUio>}
|
|
29
|
+
* @memberof ConversationMessageQuestionnaireUio
|
|
30
|
+
*/
|
|
31
|
+
questions: Array<UserQuestionUio>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ConversationMessageQuestionnaireUio
|
|
36
|
+
*/
|
|
37
|
+
status: ConversationMessageQuestionnaireUioStatusEnum;
|
|
38
|
+
/**
|
|
39
|
+
* Present when answered, aligned with questions.
|
|
40
|
+
* @type {Array<UserQuestionAnswerUio>}
|
|
41
|
+
* @memberof ConversationMessageQuestionnaireUio
|
|
42
|
+
*/
|
|
43
|
+
answers?: Array<UserQuestionAnswerUio>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ConversationMessageQuestionnaireUio
|
|
48
|
+
*/
|
|
49
|
+
at: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const ConversationMessageQuestionnaireUioStatusEnum: {
|
|
55
|
+
readonly Answered: "answered";
|
|
56
|
+
readonly Skipped: "skipped";
|
|
57
|
+
readonly Ignored: "ignored";
|
|
58
|
+
};
|
|
59
|
+
export type ConversationMessageQuestionnaireUioStatusEnum = typeof ConversationMessageQuestionnaireUioStatusEnum[keyof typeof ConversationMessageQuestionnaireUioStatusEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ConversationMessageQuestionnaireUio interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfConversationMessageQuestionnaireUio(value: object): value is ConversationMessageQuestionnaireUio;
|
|
64
|
+
export declare function ConversationMessageQuestionnaireUioFromJSON(json: any): ConversationMessageQuestionnaireUio;
|
|
65
|
+
export declare function ConversationMessageQuestionnaireUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageQuestionnaireUio;
|
|
66
|
+
export declare function ConversationMessageQuestionnaireUioToJSON(json: any): ConversationMessageQuestionnaireUio;
|
|
67
|
+
export declare function ConversationMessageQuestionnaireUioToJSONTyped(value?: ConversationMessageQuestionnaireUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.ConversationMessageQuestionnaireUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfConversationMessageQuestionnaireUio = instanceOfConversationMessageQuestionnaireUio;
|
|
18
|
+
exports.ConversationMessageQuestionnaireUioFromJSON = ConversationMessageQuestionnaireUioFromJSON;
|
|
19
|
+
exports.ConversationMessageQuestionnaireUioFromJSONTyped = ConversationMessageQuestionnaireUioFromJSONTyped;
|
|
20
|
+
exports.ConversationMessageQuestionnaireUioToJSON = ConversationMessageQuestionnaireUioToJSON;
|
|
21
|
+
exports.ConversationMessageQuestionnaireUioToJSONTyped = ConversationMessageQuestionnaireUioToJSONTyped;
|
|
22
|
+
const UserQuestionAnswerUio_1 = require("./UserQuestionAnswerUio");
|
|
23
|
+
const UserQuestionUio_1 = require("./UserQuestionUio");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ConversationMessageQuestionnaireUioStatusEnum = {
|
|
28
|
+
Answered: 'answered',
|
|
29
|
+
Skipped: 'skipped',
|
|
30
|
+
Ignored: 'ignored'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ConversationMessageQuestionnaireUio interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfConversationMessageQuestionnaireUio(value) {
|
|
36
|
+
if (!('callId' in value) || value['callId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('at' in value) || value['at'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function ConversationMessageQuestionnaireUioFromJSON(json) {
|
|
47
|
+
return ConversationMessageQuestionnaireUioFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ConversationMessageQuestionnaireUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'callId': json['callId'],
|
|
55
|
+
'questions': (json['questions'].map(UserQuestionUio_1.UserQuestionUioFromJSON)),
|
|
56
|
+
'status': json['status'],
|
|
57
|
+
'answers': json['answers'] == null ? undefined : (json['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioFromJSON)),
|
|
58
|
+
'at': json['at'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function ConversationMessageQuestionnaireUioToJSON(json) {
|
|
62
|
+
return ConversationMessageQuestionnaireUioToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function ConversationMessageQuestionnaireUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'callId': value['callId'],
|
|
70
|
+
'questions': (value['questions'].map(UserQuestionUio_1.UserQuestionUioToJSON)),
|
|
71
|
+
'status': value['status'],
|
|
72
|
+
'answers': value['answers'] == null ? undefined : (value['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioToJSON)),
|
|
73
|
+
'at': value['at'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -15,6 +15,7 @@ import type { ConversationMessageApprovalUio } from './ConversationMessageApprov
|
|
|
15
15
|
import type { ConversationMessagesInnerFlowNodeUio } from './ConversationMessagesInnerFlowNodeUio';
|
|
16
16
|
import type { ToolResultsUio } from './ToolResultsUio';
|
|
17
17
|
import type { TokenUsageUio } from './TokenUsageUio';
|
|
18
|
+
import type { ConversationMessageQuestionnaireUio } from './ConversationMessageQuestionnaireUio';
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
21
|
* @export
|
|
@@ -89,6 +90,12 @@ export interface ConversationMessagesInnerUio {
|
|
|
89
90
|
* @memberof ConversationMessagesInnerUio
|
|
90
91
|
*/
|
|
91
92
|
approvals?: Array<ConversationMessageApprovalUio>;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Array<ConversationMessageQuestionnaireUio>}
|
|
96
|
+
* @memberof ConversationMessagesInnerUio
|
|
97
|
+
*/
|
|
98
|
+
questionnaires?: Array<ConversationMessageQuestionnaireUio>;
|
|
92
99
|
/**
|
|
93
100
|
*
|
|
94
101
|
* @type {Array<string>}
|
|
@@ -24,6 +24,7 @@ const ConversationMessageApprovalUio_1 = require("./ConversationMessageApprovalU
|
|
|
24
24
|
const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
|
|
25
25
|
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
26
26
|
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
27
|
+
const ConversationMessageQuestionnaireUio_1 = require("./ConversationMessageQuestionnaireUio");
|
|
27
28
|
/**
|
|
28
29
|
* Check if a given object implements the ConversationMessagesInnerUio interface.
|
|
29
30
|
*/
|
|
@@ -57,6 +58,7 @@ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
'usage': json['usage'] == null ? undefined : (0, TokenUsageUio_1.TokenUsageUioFromJSON)(json['usage']),
|
|
58
59
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
59
60
|
'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
|
|
61
|
+
'questionnaires': json['questionnaires'] == null ? undefined : (json['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioFromJSON)),
|
|
60
62
|
'workspaceFiles': json['workspaceFiles'] == null ? undefined : json['workspaceFiles'],
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -79,6 +81,7 @@ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
79
81
|
'usage': (0, TokenUsageUio_1.TokenUsageUioToJSON)(value['usage']),
|
|
80
82
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
81
83
|
'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
|
|
84
|
+
'questionnaires': value['questionnaires'] == null ? undefined : (value['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioToJSON)),
|
|
82
85
|
'workspaceFiles': value['workspaceFiles'],
|
|
83
86
|
};
|
|
84
87
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Explicit access roles of one member (none means the default role for their legacy role).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MemberAccessRolesUio
|
|
16
|
+
*/
|
|
17
|
+
export interface MemberAccessRolesUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MemberAccessRolesUio
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof MemberAccessRolesUio
|
|
28
|
+
*/
|
|
29
|
+
roleIds: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MemberAccessRolesUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMemberAccessRolesUio(value: object): value is MemberAccessRolesUio;
|
|
35
|
+
export declare function MemberAccessRolesUioFromJSON(json: any): MemberAccessRolesUio;
|
|
36
|
+
export declare function MemberAccessRolesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberAccessRolesUio;
|
|
37
|
+
export declare function MemberAccessRolesUioToJSON(json: any): MemberAccessRolesUio;
|
|
38
|
+
export declare function MemberAccessRolesUioToJSONTyped(value?: MemberAccessRolesUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfMemberAccessRolesUio = instanceOfMemberAccessRolesUio;
|
|
17
|
+
exports.MemberAccessRolesUioFromJSON = MemberAccessRolesUioFromJSON;
|
|
18
|
+
exports.MemberAccessRolesUioFromJSONTyped = MemberAccessRolesUioFromJSONTyped;
|
|
19
|
+
exports.MemberAccessRolesUioToJSON = MemberAccessRolesUioToJSON;
|
|
20
|
+
exports.MemberAccessRolesUioToJSONTyped = MemberAccessRolesUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MemberAccessRolesUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMemberAccessRolesUio(value) {
|
|
25
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('roleIds' in value) || value['roleIds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function MemberAccessRolesUioFromJSON(json) {
|
|
32
|
+
return MemberAccessRolesUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function MemberAccessRolesUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'userId': json['userId'],
|
|
40
|
+
'roleIds': json['roleIds'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function MemberAccessRolesUioToJSON(json) {
|
|
44
|
+
return MemberAccessRolesUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MemberAccessRolesUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'userId': value['userId'],
|
|
52
|
+
'roleIds': value['roleIds'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolCallAttachmentUio } from './ToolCallAttachmentUio';
|
|
13
|
+
import type { UserQuestionAnswerUio } from './UserQuestionAnswerUio';
|
|
13
14
|
/**
|
|
14
15
|
* Result of a tool call, whatever the tool. output is handed to the model as the tool result; attachments are stored and added to the conversation context so the model can see them.
|
|
15
16
|
* @export
|
|
@@ -52,6 +53,12 @@ export interface ToolCallResultRequestUio {
|
|
|
52
53
|
* @memberof ToolCallResultRequestUio
|
|
53
54
|
*/
|
|
54
55
|
approvalWidth?: ToolCallResultRequestUioApprovalWidthEnum;
|
|
56
|
+
/**
|
|
57
|
+
* Only read when resolving an ask_user call with status completed, and required there: one answer per question, in the order of arguments.questions. selected holds labels of the options offered, at least one unless other is filled, a single one when the question is not multiSelect. Any other shape is refused with a 400. To skip the questionnaire, post status refused without answers.
|
|
58
|
+
* @type {Array<UserQuestionAnswerUio>}
|
|
59
|
+
* @memberof ToolCallResultRequestUio
|
|
60
|
+
*/
|
|
61
|
+
answers?: Array<UserQuestionAnswerUio>;
|
|
55
62
|
}
|
|
56
63
|
/**
|
|
57
64
|
* @export
|
|
@@ -20,6 +20,7 @@ exports.ToolCallResultRequestUioFromJSONTyped = ToolCallResultRequestUioFromJSON
|
|
|
20
20
|
exports.ToolCallResultRequestUioToJSON = ToolCallResultRequestUioToJSON;
|
|
21
21
|
exports.ToolCallResultRequestUioToJSONTyped = ToolCallResultRequestUioToJSONTyped;
|
|
22
22
|
const ToolCallAttachmentUio_1 = require("./ToolCallAttachmentUio");
|
|
23
|
+
const UserQuestionAnswerUio_1 = require("./UserQuestionAnswerUio");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -64,6 +65,7 @@ function ToolCallResultRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
65
|
'error': json['error'] == null ? undefined : json['error'],
|
|
65
66
|
'approvalScope': json['approvalScope'] == null ? undefined : json['approvalScope'],
|
|
66
67
|
'approvalWidth': json['approvalWidth'] == null ? undefined : json['approvalWidth'],
|
|
68
|
+
'answers': json['answers'] == null ? undefined : (json['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioFromJSON)),
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
function ToolCallResultRequestUioToJSON(json) {
|
|
@@ -80,5 +82,6 @@ function ToolCallResultRequestUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
80
82
|
'error': value['error'],
|
|
81
83
|
'approvalScope': value['approvalScope'],
|
|
82
84
|
'approvalWidth': value['approvalWidth'],
|
|
85
|
+
'answers': value['answers'] == null ? undefined : (value['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioToJSON)),
|
|
83
86
|
};
|
|
84
87
|
}
|
|
@@ -22,7 +22,7 @@ export interface ToolCallUio {
|
|
|
22
22
|
*/
|
|
23
23
|
callId: string;
|
|
24
24
|
/**
|
|
25
|
-
* Name of the tool the model called. Four values are produced by the server today. mcp_tool_approval asks permission to run an MCP tool: a write of the builder server, which creates and edits agents, or a tool of an MCP server configured in the organisation, by its approval mode (see Tool.mcp.approvalModes). arguments carries server (builder, or the id of the organisation's tool), serverName (the name to show), tool and arguments (the exact call the model wants to make), and — builder only — preview — what the call changes, for display only: tool, agentName, changes (field, before when something existed, after, with names instead of ids, unchanged fields left out) and warnings (deactivates, rewritesInstructions, changesEngine); null when it could not be built. Allow once covers exactly these arguments; agentUser covers the tool whatever its arguments. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way.
|
|
25
|
+
* Name of the tool the model called. Four values are produced by the server today. mcp_tool_approval asks permission to run an MCP tool: a write of the builder server, which creates and edits agents, or a tool of an MCP server configured in the organisation, by its approval mode (see Tool.mcp.approvalModes). arguments carries server (builder, or the id of the organisation's tool), serverName (the name to show), tool and arguments (the exact call the model wants to make), and — builder only — preview — what the call changes, for display only: tool, agentName, changes (field, before when something existed, after, with names instead of ids, unchanged fields left out) and warnings (deactivates, rewritesInstructions, changesEngine); null when it could not be built. Allow once covers exactly these arguments; agentUser covers the tool whatever its arguments. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way. ask_user is the agent asking the user to pick among options: arguments carries questions (1 to 4, each with question, header, multiSelect and 2 to 4 options of label and description); the client also offers a free-text other answer.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ToolCallUio
|
|
28
28
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserQuestionAnswerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface UserQuestionAnswerUio {
|
|
18
|
+
/**
|
|
19
|
+
* Labels of the chosen options.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof UserQuestionAnswerUio
|
|
22
|
+
*/
|
|
23
|
+
selected: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Free text typed in the other answer, when filled.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserQuestionAnswerUio
|
|
28
|
+
*/
|
|
29
|
+
other?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UserQuestionAnswerUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUserQuestionAnswerUio(value: object): value is UserQuestionAnswerUio;
|
|
35
|
+
export declare function UserQuestionAnswerUioFromJSON(json: any): UserQuestionAnswerUio;
|
|
36
|
+
export declare function UserQuestionAnswerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserQuestionAnswerUio;
|
|
37
|
+
export declare function UserQuestionAnswerUioToJSON(json: any): UserQuestionAnswerUio;
|
|
38
|
+
export declare function UserQuestionAnswerUioToJSONTyped(value?: UserQuestionAnswerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfUserQuestionAnswerUio = instanceOfUserQuestionAnswerUio;
|
|
17
|
+
exports.UserQuestionAnswerUioFromJSON = UserQuestionAnswerUioFromJSON;
|
|
18
|
+
exports.UserQuestionAnswerUioFromJSONTyped = UserQuestionAnswerUioFromJSONTyped;
|
|
19
|
+
exports.UserQuestionAnswerUioToJSON = UserQuestionAnswerUioToJSON;
|
|
20
|
+
exports.UserQuestionAnswerUioToJSONTyped = UserQuestionAnswerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UserQuestionAnswerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUserQuestionAnswerUio(value) {
|
|
25
|
+
if (!('selected' in value) || value['selected'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UserQuestionAnswerUioFromJSON(json) {
|
|
30
|
+
return UserQuestionAnswerUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UserQuestionAnswerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'selected': json['selected'],
|
|
38
|
+
'other': json['other'] == null ? undefined : json['other'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UserQuestionAnswerUioToJSON(json) {
|
|
42
|
+
return UserQuestionAnswerUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UserQuestionAnswerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'selected': value['selected'],
|
|
50
|
+
'other': value['other'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserQuestionOptionUio
|
|
16
|
+
*/
|
|
17
|
+
export interface UserQuestionOptionUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserQuestionOptionUio
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserQuestionOptionUio
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UserQuestionOptionUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUserQuestionOptionUio(value: object): value is UserQuestionOptionUio;
|
|
35
|
+
export declare function UserQuestionOptionUioFromJSON(json: any): UserQuestionOptionUio;
|
|
36
|
+
export declare function UserQuestionOptionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserQuestionOptionUio;
|
|
37
|
+
export declare function UserQuestionOptionUioToJSON(json: any): UserQuestionOptionUio;
|
|
38
|
+
export declare function UserQuestionOptionUioToJSONTyped(value?: UserQuestionOptionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfUserQuestionOptionUio = instanceOfUserQuestionOptionUio;
|
|
17
|
+
exports.UserQuestionOptionUioFromJSON = UserQuestionOptionUioFromJSON;
|
|
18
|
+
exports.UserQuestionOptionUioFromJSONTyped = UserQuestionOptionUioFromJSONTyped;
|
|
19
|
+
exports.UserQuestionOptionUioToJSON = UserQuestionOptionUioToJSON;
|
|
20
|
+
exports.UserQuestionOptionUioToJSONTyped = UserQuestionOptionUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UserQuestionOptionUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUserQuestionOptionUio(value) {
|
|
25
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UserQuestionOptionUioFromJSON(json) {
|
|
32
|
+
return UserQuestionOptionUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UserQuestionOptionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'label': json['label'],
|
|
40
|
+
'description': json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UserQuestionOptionUioToJSON(json) {
|
|
44
|
+
return UserQuestionOptionUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UserQuestionOptionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'label': value['label'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { UserQuestionOptionUio } from './UserQuestionOptionUio';
|
|
13
|
+
/**
|
|
14
|
+
* A multiple-choice question the agent asks the chat user through the ask_user tool.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UserQuestionUio
|
|
17
|
+
*/
|
|
18
|
+
export interface UserQuestionUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UserQuestionUio
|
|
23
|
+
*/
|
|
24
|
+
question: string;
|
|
25
|
+
/**
|
|
26
|
+
* Short label shown as a chip.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UserQuestionUio
|
|
29
|
+
*/
|
|
30
|
+
header: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof UserQuestionUio
|
|
35
|
+
*/
|
|
36
|
+
multiSelect: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<UserQuestionOptionUio>}
|
|
40
|
+
* @memberof UserQuestionUio
|
|
41
|
+
*/
|
|
42
|
+
options: Array<UserQuestionOptionUio>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the UserQuestionUio interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfUserQuestionUio(value: object): value is UserQuestionUio;
|
|
48
|
+
export declare function UserQuestionUioFromJSON(json: any): UserQuestionUio;
|
|
49
|
+
export declare function UserQuestionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserQuestionUio;
|
|
50
|
+
export declare function UserQuestionUioToJSON(json: any): UserQuestionUio;
|
|
51
|
+
export declare function UserQuestionUioToJSONTyped(value?: UserQuestionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfUserQuestionUio = instanceOfUserQuestionUio;
|
|
17
|
+
exports.UserQuestionUioFromJSON = UserQuestionUioFromJSON;
|
|
18
|
+
exports.UserQuestionUioFromJSONTyped = UserQuestionUioFromJSONTyped;
|
|
19
|
+
exports.UserQuestionUioToJSON = UserQuestionUioToJSON;
|
|
20
|
+
exports.UserQuestionUioToJSONTyped = UserQuestionUioToJSONTyped;
|
|
21
|
+
const UserQuestionOptionUio_1 = require("./UserQuestionOptionUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UserQuestionUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUserQuestionUio(value) {
|
|
26
|
+
if (!('question' in value) || value['question'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('header' in value) || value['header'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('multiSelect' in value) || value['multiSelect'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function UserQuestionUioFromJSON(json) {
|
|
37
|
+
return UserQuestionUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function UserQuestionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'question': json['question'],
|
|
45
|
+
'header': json['header'],
|
|
46
|
+
'multiSelect': json['multiSelect'],
|
|
47
|
+
'options': (json['options'].map(UserQuestionOptionUio_1.UserQuestionOptionUioFromJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function UserQuestionUioToJSON(json) {
|
|
51
|
+
return UserQuestionUioToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function UserQuestionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'question': value['question'],
|
|
59
|
+
'header': value['header'],
|
|
60
|
+
'multiSelect': value['multiSelect'],
|
|
61
|
+
'options': (value['options'].map(UserQuestionOptionUio_1.UserQuestionOptionUioToJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -236,6 +236,7 @@ export * from './ConversationHumanRequestUio';
|
|
|
236
236
|
export * from './ConversationMessageApprovalUio';
|
|
237
237
|
export * from './ConversationMessageImageUio';
|
|
238
238
|
export * from './ConversationMessageImagesUio';
|
|
239
|
+
export * from './ConversationMessageQuestionnaireUio';
|
|
239
240
|
export * from './ConversationMessagesInnerFlowNodeEntrypointsUio';
|
|
240
241
|
export * from './ConversationMessagesInnerFlowNodeUio';
|
|
241
242
|
export * from './ConversationMessagesInnerSuggestionsInnerUio';
|
|
@@ -457,6 +458,7 @@ export * from './McpLogsSettingsRequestUio';
|
|
|
457
458
|
export * from './McpLogsSettingsResponseUio';
|
|
458
459
|
export * from './McpTextContentUio';
|
|
459
460
|
export * from './McpTicketViewUio';
|
|
461
|
+
export * from './MemberAccessRolesUio';
|
|
460
462
|
export * from './MemberRefUio';
|
|
461
463
|
export * from './MemberTypeUio';
|
|
462
464
|
export * from './MessageAnonymizationUio';
|
|
@@ -728,6 +730,9 @@ export * from './UserDirectPermissionsRequestUio';
|
|
|
728
730
|
export * from './UserIdentifierRequestUio';
|
|
729
731
|
export * from './UserIdentifierUio';
|
|
730
732
|
export * from './UserLockRequestUio';
|
|
733
|
+
export * from './UserQuestionAnswerUio';
|
|
734
|
+
export * from './UserQuestionOptionUio';
|
|
735
|
+
export * from './UserQuestionUio';
|
|
731
736
|
export * from './UserUpdateRequestUio';
|
|
732
737
|
export * from './WebhookEndpointUio';
|
|
733
738
|
export * from './WebhookEndpointUpdateUio';
|
package/dist/models/index.js
CHANGED
|
@@ -254,6 +254,7 @@ __exportStar(require("./ConversationHumanRequestUio"), exports);
|
|
|
254
254
|
__exportStar(require("./ConversationMessageApprovalUio"), exports);
|
|
255
255
|
__exportStar(require("./ConversationMessageImageUio"), exports);
|
|
256
256
|
__exportStar(require("./ConversationMessageImagesUio"), exports);
|
|
257
|
+
__exportStar(require("./ConversationMessageQuestionnaireUio"), exports);
|
|
257
258
|
__exportStar(require("./ConversationMessagesInnerFlowNodeEntrypointsUio"), exports);
|
|
258
259
|
__exportStar(require("./ConversationMessagesInnerFlowNodeUio"), exports);
|
|
259
260
|
__exportStar(require("./ConversationMessagesInnerSuggestionsInnerUio"), exports);
|
|
@@ -475,6 +476,7 @@ __exportStar(require("./McpLogsSettingsRequestUio"), exports);
|
|
|
475
476
|
__exportStar(require("./McpLogsSettingsResponseUio"), exports);
|
|
476
477
|
__exportStar(require("./McpTextContentUio"), exports);
|
|
477
478
|
__exportStar(require("./McpTicketViewUio"), exports);
|
|
479
|
+
__exportStar(require("./MemberAccessRolesUio"), exports);
|
|
478
480
|
__exportStar(require("./MemberRefUio"), exports);
|
|
479
481
|
__exportStar(require("./MemberTypeUio"), exports);
|
|
480
482
|
__exportStar(require("./MessageAnonymizationUio"), exports);
|
|
@@ -746,6 +748,9 @@ __exportStar(require("./UserDirectPermissionsRequestUio"), exports);
|
|
|
746
748
|
__exportStar(require("./UserIdentifierRequestUio"), exports);
|
|
747
749
|
__exportStar(require("./UserIdentifierUio"), exports);
|
|
748
750
|
__exportStar(require("./UserLockRequestUio"), exports);
|
|
751
|
+
__exportStar(require("./UserQuestionAnswerUio"), exports);
|
|
752
|
+
__exportStar(require("./UserQuestionOptionUio"), exports);
|
|
753
|
+
__exportStar(require("./UserQuestionUio"), exports);
|
|
749
754
|
__exportStar(require("./UserUpdateRequestUio"), exports);
|
|
750
755
|
__exportStar(require("./WebhookEndpointUio"), exports);
|
|
751
756
|
__exportStar(require("./WebhookEndpointUpdateUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -10260,6 +10260,14 @@
|
|
|
10260
10260
|
"schema" : {
|
|
10261
10261
|
"type" : "string"
|
|
10262
10262
|
}
|
|
10263
|
+
}, {
|
|
10264
|
+
"description" : "Recalcule agent.read, agent.update, agent.delete et agent.chat pour cet agent. Sans ce paramètre, la réponse est celle de l'organisation.\n",
|
|
10265
|
+
"in" : "query",
|
|
10266
|
+
"name" : "agentId",
|
|
10267
|
+
"required" : false,
|
|
10268
|
+
"schema" : {
|
|
10269
|
+
"type" : "string"
|
|
10270
|
+
}
|
|
10263
10271
|
} ],
|
|
10264
10272
|
"responses" : {
|
|
10265
10273
|
"200" : {
|
|
@@ -10283,6 +10291,46 @@
|
|
|
10283
10291
|
"tags" : [ "organizations" ]
|
|
10284
10292
|
}
|
|
10285
10293
|
},
|
|
10294
|
+
"/organizations/{organizationId}/member-access-roles" : {
|
|
10295
|
+
"get" : {
|
|
10296
|
+
"operationId" : "listOrganizationMemberAccessRoles",
|
|
10297
|
+
"parameters" : [ {
|
|
10298
|
+
"description" : "ID of the organization",
|
|
10299
|
+
"in" : "path",
|
|
10300
|
+
"name" : "organizationId",
|
|
10301
|
+
"required" : true,
|
|
10302
|
+
"schema" : {
|
|
10303
|
+
"type" : "string"
|
|
10304
|
+
}
|
|
10305
|
+
} ],
|
|
10306
|
+
"responses" : {
|
|
10307
|
+
"200" : {
|
|
10308
|
+
"content" : {
|
|
10309
|
+
"application/json" : {
|
|
10310
|
+
"schema" : {
|
|
10311
|
+
"items" : {
|
|
10312
|
+
"$ref" : "#/components/schemas/MemberAccessRoles"
|
|
10313
|
+
},
|
|
10314
|
+
"type" : "array"
|
|
10315
|
+
}
|
|
10316
|
+
}
|
|
10317
|
+
},
|
|
10318
|
+
"description" : "Access role ids grouped by member"
|
|
10319
|
+
},
|
|
10320
|
+
"401" : {
|
|
10321
|
+
"description" : "Unauthorized"
|
|
10322
|
+
},
|
|
10323
|
+
"403" : {
|
|
10324
|
+
"description" : "Forbidden"
|
|
10325
|
+
},
|
|
10326
|
+
"404" : {
|
|
10327
|
+
"description" : "Organization not found"
|
|
10328
|
+
}
|
|
10329
|
+
},
|
|
10330
|
+
"summary" : "List access roles of every organization member",
|
|
10331
|
+
"tags" : [ "organizations" ]
|
|
10332
|
+
}
|
|
10333
|
+
},
|
|
10286
10334
|
"/organizations/{organizationId}/users/{userId}/access" : {
|
|
10287
10335
|
"get" : {
|
|
10288
10336
|
"operationId" : "getOrganizationUserAccess",
|
|
@@ -25042,6 +25090,12 @@
|
|
|
25042
25090
|
},
|
|
25043
25091
|
"type" : "array"
|
|
25044
25092
|
},
|
|
25093
|
+
"questionnaires" : {
|
|
25094
|
+
"items" : {
|
|
25095
|
+
"$ref" : "#/components/schemas/ConversationMessageQuestionnaire"
|
|
25096
|
+
},
|
|
25097
|
+
"type" : "array"
|
|
25098
|
+
},
|
|
25045
25099
|
"humanRequest" : {
|
|
25046
25100
|
"$ref" : "#/components/schemas/ConversationHumanRequest"
|
|
25047
25101
|
},
|
|
@@ -25198,6 +25252,98 @@
|
|
|
25198
25252
|
"title" : "ConversationMessageApproval",
|
|
25199
25253
|
"type" : "object"
|
|
25200
25254
|
},
|
|
25255
|
+
"ConversationMessageQuestionnaire" : {
|
|
25256
|
+
"additionalProperties" : false,
|
|
25257
|
+
"description" : "An ask_user questionnaire closed during this message, carried by the message so the history shows the card as it was answered. answered — the user submitted answers; skipped — they declined; ignored — they wrote a new message instead.",
|
|
25258
|
+
"properties" : {
|
|
25259
|
+
"callId" : {
|
|
25260
|
+
"type" : "string"
|
|
25261
|
+
},
|
|
25262
|
+
"questions" : {
|
|
25263
|
+
"items" : {
|
|
25264
|
+
"$ref" : "#/components/schemas/UserQuestion"
|
|
25265
|
+
},
|
|
25266
|
+
"type" : "array"
|
|
25267
|
+
},
|
|
25268
|
+
"status" : {
|
|
25269
|
+
"enum" : [ "answered", "skipped", "ignored" ],
|
|
25270
|
+
"type" : "string"
|
|
25271
|
+
},
|
|
25272
|
+
"answers" : {
|
|
25273
|
+
"description" : "Present when answered, aligned with questions.",
|
|
25274
|
+
"items" : {
|
|
25275
|
+
"$ref" : "#/components/schemas/UserQuestionAnswer"
|
|
25276
|
+
},
|
|
25277
|
+
"type" : "array"
|
|
25278
|
+
},
|
|
25279
|
+
"at" : {
|
|
25280
|
+
"type" : "string"
|
|
25281
|
+
}
|
|
25282
|
+
},
|
|
25283
|
+
"required" : [ "at", "callId", "questions", "status" ],
|
|
25284
|
+
"title" : "ConversationMessageQuestionnaire",
|
|
25285
|
+
"type" : "object"
|
|
25286
|
+
},
|
|
25287
|
+
"UserQuestion" : {
|
|
25288
|
+
"additionalProperties" : false,
|
|
25289
|
+
"description" : "A multiple-choice question the agent asks the chat user through the ask_user tool.",
|
|
25290
|
+
"properties" : {
|
|
25291
|
+
"question" : {
|
|
25292
|
+
"type" : "string"
|
|
25293
|
+
},
|
|
25294
|
+
"header" : {
|
|
25295
|
+
"description" : "Short label shown as a chip.",
|
|
25296
|
+
"type" : "string"
|
|
25297
|
+
},
|
|
25298
|
+
"multiSelect" : {
|
|
25299
|
+
"type" : "boolean"
|
|
25300
|
+
},
|
|
25301
|
+
"options" : {
|
|
25302
|
+
"items" : {
|
|
25303
|
+
"$ref" : "#/components/schemas/UserQuestionOption"
|
|
25304
|
+
},
|
|
25305
|
+
"maxItems" : 4,
|
|
25306
|
+
"minItems" : 2,
|
|
25307
|
+
"type" : "array"
|
|
25308
|
+
}
|
|
25309
|
+
},
|
|
25310
|
+
"required" : [ "header", "multiSelect", "options", "question" ],
|
|
25311
|
+
"title" : "UserQuestion",
|
|
25312
|
+
"type" : "object"
|
|
25313
|
+
},
|
|
25314
|
+
"UserQuestionOption" : {
|
|
25315
|
+
"additionalProperties" : false,
|
|
25316
|
+
"properties" : {
|
|
25317
|
+
"label" : {
|
|
25318
|
+
"type" : "string"
|
|
25319
|
+
},
|
|
25320
|
+
"description" : {
|
|
25321
|
+
"type" : "string"
|
|
25322
|
+
}
|
|
25323
|
+
},
|
|
25324
|
+
"required" : [ "description", "label" ],
|
|
25325
|
+
"title" : "UserQuestionOption",
|
|
25326
|
+
"type" : "object"
|
|
25327
|
+
},
|
|
25328
|
+
"UserQuestionAnswer" : {
|
|
25329
|
+
"additionalProperties" : false,
|
|
25330
|
+
"properties" : {
|
|
25331
|
+
"selected" : {
|
|
25332
|
+
"description" : "Labels of the chosen options.",
|
|
25333
|
+
"items" : {
|
|
25334
|
+
"type" : "string"
|
|
25335
|
+
},
|
|
25336
|
+
"type" : "array"
|
|
25337
|
+
},
|
|
25338
|
+
"other" : {
|
|
25339
|
+
"description" : "Free text typed in the other answer, when filled.",
|
|
25340
|
+
"type" : "string"
|
|
25341
|
+
}
|
|
25342
|
+
},
|
|
25343
|
+
"required" : [ "selected" ],
|
|
25344
|
+
"title" : "UserQuestionAnswer",
|
|
25345
|
+
"type" : "object"
|
|
25346
|
+
},
|
|
25201
25347
|
"ConversationHumanRequest" : {
|
|
25202
25348
|
"description" : "A question an agent asks a human from a task conversation (Human_ask tool). Carried by a mirror message in the human's chat conversation with that agent, which is where they see and answer it. The task stays suspended on the pending call callId until the answer resumes it.",
|
|
25203
25349
|
"properties" : {
|
|
@@ -29255,6 +29401,22 @@
|
|
|
29255
29401
|
},
|
|
29256
29402
|
"type" : "object"
|
|
29257
29403
|
},
|
|
29404
|
+
"MemberAccessRoles" : {
|
|
29405
|
+
"description" : "Explicit access roles of one member (none means the default role for their legacy role).",
|
|
29406
|
+
"properties" : {
|
|
29407
|
+
"userId" : {
|
|
29408
|
+
"type" : "string"
|
|
29409
|
+
},
|
|
29410
|
+
"roleIds" : {
|
|
29411
|
+
"items" : {
|
|
29412
|
+
"type" : "string"
|
|
29413
|
+
},
|
|
29414
|
+
"type" : "array"
|
|
29415
|
+
}
|
|
29416
|
+
},
|
|
29417
|
+
"required" : [ "roleIds", "userId" ],
|
|
29418
|
+
"type" : "object"
|
|
29419
|
+
},
|
|
29258
29420
|
"UserAccess" : {
|
|
29259
29421
|
"properties" : {
|
|
29260
29422
|
"roleIds" : {
|
|
@@ -31652,7 +31814,7 @@
|
|
|
31652
31814
|
"type" : "string"
|
|
31653
31815
|
},
|
|
31654
31816
|
"tool" : {
|
|
31655
|
-
"description" : "Name of the tool the model called. Four values are produced by the server today. mcp_tool_approval asks permission to run an MCP tool: a write of the builder server, which creates and edits agents, or a tool of an MCP server configured in the organisation, by its approval mode (see Tool.mcp.approvalModes). arguments carries server (builder, or the id of the organisation's tool), serverName (the name to show), tool and arguments (the exact call the model wants to make), and — builder only — preview — what the call changes, for display only: tool, agentName, changes (field, before when something existed, after, with names instead of ids, unchanged fields left out) and warnings (deactivates, rewritesInstructions, changesEngine); null when it could not be built. Allow once covers exactly these arguments; agentUser covers the tool whatever its arguments. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way.",
|
|
31817
|
+
"description" : "Name of the tool the model called. Four values are produced by the server today. mcp_tool_approval asks permission to run an MCP tool: a write of the builder server, which creates and edits agents, or a tool of an MCP server configured in the organisation, by its approval mode (see Tool.mcp.approvalModes). arguments carries server (builder, or the id of the organisation's tool), serverName (the name to show), tool and arguments (the exact call the model wants to make), and — builder only — preview — what the call changes, for display only: tool, agentName, changes (field, before when something existed, after, with names instead of ids, unchanged fields left out) and warnings (deactivates, rewritesInstructions, changesEngine); null when it could not be built. Allow once covers exactly these arguments; agentUser covers the tool whatever its arguments. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way. ask_user is the agent asking the user to pick among options: arguments carries questions (1 to 4, each with question, header, multiSelect and 2 to 4 options of label and description); the client also offers a free-text other answer.",
|
|
31656
31818
|
"type" : "string"
|
|
31657
31819
|
},
|
|
31658
31820
|
"status" : {
|
|
@@ -31723,6 +31885,14 @@
|
|
|
31723
31885
|
"description" : "Only read when resolving a bash_network_approval call with status completed: how wide the approval is. prefix (the default) grants the prefix shown in the request — origin plus first path segment; origin grants the whole domain. Nothing narrower is offered: nobody can predict the paths an API will serve, and an approval that is too fine is paid for in repeated questions. The server recomputes both from the URL it recorded, so a client cannot submit a prefix of its own. Ignored on a bash_command_approval call, which has a single width: the exact command the server already recorded.",
|
|
31724
31886
|
"enum" : [ "prefix", "origin" ],
|
|
31725
31887
|
"type" : "string"
|
|
31888
|
+
},
|
|
31889
|
+
"answers" : {
|
|
31890
|
+
"description" : "Only read when resolving an ask_user call with status completed, and required there: one answer per question, in the order of arguments.questions. selected holds labels of the options offered, at least one unless other is filled, a single one when the question is not multiSelect. Any other shape is refused with a 400. To skip the questionnaire, post status refused without answers.",
|
|
31891
|
+
"items" : {
|
|
31892
|
+
"$ref" : "#/components/schemas/UserQuestionAnswer"
|
|
31893
|
+
},
|
|
31894
|
+
"maxItems" : 4,
|
|
31895
|
+
"type" : "array"
|
|
31726
31896
|
}
|
|
31727
31897
|
},
|
|
31728
31898
|
"required" : [ "status" ],
|
|
@@ -38247,6 +38417,12 @@
|
|
|
38247
38417
|
},
|
|
38248
38418
|
"type" : "array"
|
|
38249
38419
|
},
|
|
38420
|
+
"questionnaires" : {
|
|
38421
|
+
"items" : {
|
|
38422
|
+
"$ref" : "#/components/schemas/ConversationMessageQuestionnaire"
|
|
38423
|
+
},
|
|
38424
|
+
"type" : "array"
|
|
38425
|
+
},
|
|
38250
38426
|
"workspaceFiles" : {
|
|
38251
38427
|
"items" : {
|
|
38252
38428
|
"type" : "string"
|