@breign/client 1.0.101 → 1.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AgentApi.d.ts +14 -0
- package/dist/apis/AgentApi.js +32 -0
- package/dist/apis/ConfigurationApi.d.ts +7 -7
- package/dist/apis/ConfigurationApi.js +5 -5
- package/dist/apis/ScheduledTasksApi.d.ts +143 -0
- package/dist/apis/ScheduledTasksApi.js +364 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ChatUio.d.ts +14 -0
- package/dist/models/ChatUio.js +10 -0
- package/dist/models/GetUploadLimits200ResponseUio.d.ts +32 -0
- package/dist/models/GetUploadLimits200ResponseUio.js +50 -0
- package/dist/models/PromptCreateRequestUio.d.ts +14 -0
- package/dist/models/PromptCreateRequestUio.js +10 -0
- package/dist/models/PromptFlowCreateRequestUio.d.ts +14 -0
- package/dist/models/PromptFlowCreateRequestUio.js +10 -0
- package/dist/models/RunStepUio.d.ts +78 -0
- package/dist/models/RunStepUio.js +74 -0
- package/dist/models/ScheduledTaskCreateUio.d.ts +77 -0
- package/dist/models/ScheduledTaskCreateUio.js +75 -0
- package/dist/models/ScheduledTaskListUio.d.ts +39 -0
- package/dist/models/ScheduledTaskListUio.js +55 -0
- package/dist/models/ScheduledTaskManualRunResponseUio.d.ts +32 -0
- package/dist/models/ScheduledTaskManualRunResponseUio.js +50 -0
- package/dist/models/ScheduledTaskRunListUio.d.ts +39 -0
- package/dist/models/ScheduledTaskRunListUio.js +55 -0
- package/dist/models/ScheduledTaskRunUio.d.ts +110 -0
- package/dist/models/ScheduledTaskRunUio.js +98 -0
- package/dist/models/ScheduledTaskStatusResponseUio.d.ts +46 -0
- package/dist/models/ScheduledTaskStatusResponseUio.js +60 -0
- package/dist/models/ScheduledTaskStatusToggleUio.d.ts +40 -0
- package/dist/models/ScheduledTaskStatusToggleUio.js +58 -0
- package/dist/models/ScheduledTaskUio.d.ts +146 -0
- package/dist/models/ScheduledTaskUio.js +123 -0
- package/dist/models/TaskScheduleEndOneOf1Uio.d.ts +45 -0
- package/dist/models/TaskScheduleEndOneOf1Uio.js +61 -0
- package/dist/models/TaskScheduleEndOneOf2Uio.d.ts +45 -0
- package/dist/models/TaskScheduleEndOneOf2Uio.js +61 -0
- package/dist/models/TaskScheduleEndOneOfUio.d.ts +39 -0
- package/dist/models/TaskScheduleEndOneOfUio.js +57 -0
- package/dist/models/TaskScheduleEndUio.d.ts +24 -0
- package/dist/models/TaskScheduleEndUio.js +64 -0
- package/dist/models/TaskScheduleIntervalUio.d.ts +47 -0
- package/dist/models/TaskScheduleIntervalUio.js +63 -0
- package/dist/models/TaskScheduleUio.d.ts +94 -0
- package/dist/models/TaskScheduleUio.js +78 -0
- package/dist/models/index.d.ts +16 -1
- package/dist/models/index.js +16 -1
- package/dist/openapi.json +1426 -527
- package/package.json +1 -1
- package/dist/models/UploadLimitsResponseUio.d.ts +0 -32
- package/dist/models/UploadLimitsResponseUio.js +0 -50
package/dist/models/ChatUio.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ export interface ChatUio {
|
|
|
24
24
|
* @memberof ChatUio
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ChatUio
|
|
31
|
+
*/
|
|
32
|
+
type?: ChatUioTypeEnum | null;
|
|
27
33
|
/**
|
|
28
34
|
*
|
|
29
35
|
* @type {string}
|
|
@@ -109,6 +115,14 @@ export interface ChatUio {
|
|
|
109
115
|
*/
|
|
110
116
|
context: ChatContextUio;
|
|
111
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const ChatUioTypeEnum: {
|
|
122
|
+
readonly Chat: "chat";
|
|
123
|
+
readonly Task: "task";
|
|
124
|
+
};
|
|
125
|
+
export type ChatUioTypeEnum = typeof ChatUioTypeEnum[keyof typeof ChatUioTypeEnum];
|
|
112
126
|
/**
|
|
113
127
|
* Check if a given object implements the ChatUio interface.
|
|
114
128
|
*/
|
package/dist/models/ChatUio.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ChatUioTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfChatUio = instanceOfChatUio;
|
|
17
18
|
exports.ChatUioFromJSON = ChatUioFromJSON;
|
|
18
19
|
exports.ChatUioFromJSONTyped = ChatUioFromJSONTyped;
|
|
@@ -21,6 +22,13 @@ exports.ChatUioToJSONTyped = ChatUioToJSONTyped;
|
|
|
21
22
|
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
22
23
|
const ChatContextUio_1 = require("./ChatContextUio");
|
|
23
24
|
const ChatMessageUio_1 = require("./ChatMessageUio");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.ChatUioTypeEnum = {
|
|
29
|
+
Chat: 'chat',
|
|
30
|
+
Task: 'task'
|
|
31
|
+
};
|
|
24
32
|
/**
|
|
25
33
|
* Check if a given object implements the ChatUio interface.
|
|
26
34
|
*/
|
|
@@ -50,6 +58,7 @@ function ChatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
58
|
}
|
|
51
59
|
return {
|
|
52
60
|
'id': json['id'],
|
|
61
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
53
62
|
'title': json['title'] == null ? undefined : json['title'],
|
|
54
63
|
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
55
64
|
'lang': json['lang'],
|
|
@@ -75,6 +84,7 @@ function ChatUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
84
|
}
|
|
76
85
|
return {
|
|
77
86
|
'id': value['id'],
|
|
87
|
+
'type': value['type'],
|
|
78
88
|
'title': value['title'],
|
|
79
89
|
'appId': value['appId'],
|
|
80
90
|
'lang': value['lang'],
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GetUploadLimits200ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUploadLimits200ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
* Maximum size in bytes for conversation attachments
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetUploadLimits200ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
conversationAttachmentMaxBytes: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetUploadLimits200ResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetUploadLimits200ResponseUio(value: object): value is GetUploadLimits200ResponseUio;
|
|
29
|
+
export declare function GetUploadLimits200ResponseUioFromJSON(json: any): GetUploadLimits200ResponseUio;
|
|
30
|
+
export declare function GetUploadLimits200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadLimits200ResponseUio;
|
|
31
|
+
export declare function GetUploadLimits200ResponseUioToJSON(json: any): GetUploadLimits200ResponseUio;
|
|
32
|
+
export declare function GetUploadLimits200ResponseUioToJSONTyped(value?: GetUploadLimits200ResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfGetUploadLimits200ResponseUio = instanceOfGetUploadLimits200ResponseUio;
|
|
17
|
+
exports.GetUploadLimits200ResponseUioFromJSON = GetUploadLimits200ResponseUioFromJSON;
|
|
18
|
+
exports.GetUploadLimits200ResponseUioFromJSONTyped = GetUploadLimits200ResponseUioFromJSONTyped;
|
|
19
|
+
exports.GetUploadLimits200ResponseUioToJSON = GetUploadLimits200ResponseUioToJSON;
|
|
20
|
+
exports.GetUploadLimits200ResponseUioToJSONTyped = GetUploadLimits200ResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetUploadLimits200ResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetUploadLimits200ResponseUio(value) {
|
|
25
|
+
if (!('conversationAttachmentMaxBytes' in value) || value['conversationAttachmentMaxBytes'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetUploadLimits200ResponseUioFromJSON(json) {
|
|
30
|
+
return GetUploadLimits200ResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetUploadLimits200ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'conversationAttachmentMaxBytes': json['conversationAttachmentMaxBytes'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetUploadLimits200ResponseUioToJSON(json) {
|
|
41
|
+
return GetUploadLimits200ResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetUploadLimits200ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'conversationAttachmentMaxBytes': value['conversationAttachmentMaxBytes'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface PromptCreateRequestUio {
|
|
|
27
27
|
* @memberof PromptCreateRequestUio
|
|
28
28
|
*/
|
|
29
29
|
customUserId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Type of conversation (defaults to 'chat')
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PromptCreateRequestUio
|
|
34
|
+
*/
|
|
35
|
+
type?: PromptCreateRequestUioTypeEnum;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -40,6 +46,14 @@ export interface PromptCreateRequestUio {
|
|
|
40
46
|
*/
|
|
41
47
|
stream?: boolean;
|
|
42
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const PromptCreateRequestUioTypeEnum: {
|
|
53
|
+
readonly Chat: "chat";
|
|
54
|
+
readonly Task: "task";
|
|
55
|
+
};
|
|
56
|
+
export type PromptCreateRequestUioTypeEnum = typeof PromptCreateRequestUioTypeEnum[keyof typeof PromptCreateRequestUioTypeEnum];
|
|
43
57
|
/**
|
|
44
58
|
* Check if a given object implements the PromptCreateRequestUio interface.
|
|
45
59
|
*/
|
|
@@ -13,11 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PromptCreateRequestUioTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfPromptCreateRequestUio = instanceOfPromptCreateRequestUio;
|
|
17
18
|
exports.PromptCreateRequestUioFromJSON = PromptCreateRequestUioFromJSON;
|
|
18
19
|
exports.PromptCreateRequestUioFromJSONTyped = PromptCreateRequestUioFromJSONTyped;
|
|
19
20
|
exports.PromptCreateRequestUioToJSON = PromptCreateRequestUioToJSON;
|
|
20
21
|
exports.PromptCreateRequestUioToJSONTyped = PromptCreateRequestUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PromptCreateRequestUioTypeEnum = {
|
|
26
|
+
Chat: 'chat',
|
|
27
|
+
Task: 'task'
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Check if a given object implements the PromptCreateRequestUio interface.
|
|
23
31
|
*/
|
|
@@ -38,6 +46,7 @@ function PromptCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
46
|
return {
|
|
39
47
|
'lang': json['lang'],
|
|
40
48
|
'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
|
|
49
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
41
50
|
'message': json['message'],
|
|
42
51
|
'stream': json['stream'] == null ? undefined : json['stream'],
|
|
43
52
|
};
|
|
@@ -52,6 +61,7 @@ function PromptCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
61
|
return {
|
|
53
62
|
'lang': value['lang'],
|
|
54
63
|
'customUserId': value['customUserId'],
|
|
64
|
+
'type': value['type'],
|
|
55
65
|
'message': value['message'],
|
|
56
66
|
'stream': value['stream'],
|
|
57
67
|
};
|
|
@@ -27,7 +27,21 @@ export interface PromptFlowCreateRequestUio {
|
|
|
27
27
|
* @memberof PromptFlowCreateRequestUio
|
|
28
28
|
*/
|
|
29
29
|
customUserId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Type of conversation (defaults to 'chat')
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PromptFlowCreateRequestUio
|
|
34
|
+
*/
|
|
35
|
+
type?: PromptFlowCreateRequestUioTypeEnum;
|
|
30
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const PromptFlowCreateRequestUioTypeEnum: {
|
|
41
|
+
readonly Chat: "chat";
|
|
42
|
+
readonly Task: "task";
|
|
43
|
+
};
|
|
44
|
+
export type PromptFlowCreateRequestUioTypeEnum = typeof PromptFlowCreateRequestUioTypeEnum[keyof typeof PromptFlowCreateRequestUioTypeEnum];
|
|
31
45
|
/**
|
|
32
46
|
* Check if a given object implements the PromptFlowCreateRequestUio interface.
|
|
33
47
|
*/
|
|
@@ -13,11 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PromptFlowCreateRequestUioTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfPromptFlowCreateRequestUio = instanceOfPromptFlowCreateRequestUio;
|
|
17
18
|
exports.PromptFlowCreateRequestUioFromJSON = PromptFlowCreateRequestUioFromJSON;
|
|
18
19
|
exports.PromptFlowCreateRequestUioFromJSONTyped = PromptFlowCreateRequestUioFromJSONTyped;
|
|
19
20
|
exports.PromptFlowCreateRequestUioToJSON = PromptFlowCreateRequestUioToJSON;
|
|
20
21
|
exports.PromptFlowCreateRequestUioToJSONTyped = PromptFlowCreateRequestUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PromptFlowCreateRequestUioTypeEnum = {
|
|
26
|
+
Chat: 'chat',
|
|
27
|
+
Task: 'task'
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Check if a given object implements the PromptFlowCreateRequestUio interface.
|
|
23
31
|
*/
|
|
@@ -36,6 +44,7 @@ function PromptFlowCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
44
|
return {
|
|
37
45
|
'lang': json['lang'],
|
|
38
46
|
'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
|
|
47
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
39
48
|
};
|
|
40
49
|
}
|
|
41
50
|
function PromptFlowCreateRequestUioToJSON(json) {
|
|
@@ -48,5 +57,6 @@ function PromptFlowCreateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
48
57
|
return {
|
|
49
58
|
'lang': value['lang'],
|
|
50
59
|
'customUserId': value['customUserId'],
|
|
60
|
+
'type': value['type'],
|
|
51
61
|
};
|
|
52
62
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 RunStepUio
|
|
16
|
+
*/
|
|
17
|
+
export interface RunStepUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RunStepUio
|
|
22
|
+
*/
|
|
23
|
+
type: RunStepUioTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof RunStepUio
|
|
28
|
+
*/
|
|
29
|
+
at: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RunStepUio
|
|
34
|
+
*/
|
|
35
|
+
tool?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {any}
|
|
39
|
+
* @memberof RunStepUio
|
|
40
|
+
*/
|
|
41
|
+
input?: any | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {any}
|
|
45
|
+
* @memberof RunStepUio
|
|
46
|
+
*/
|
|
47
|
+
output?: any | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RunStepUio
|
|
52
|
+
*/
|
|
53
|
+
tokens?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof RunStepUio
|
|
58
|
+
*/
|
|
59
|
+
error?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const RunStepUioTypeEnum: {
|
|
65
|
+
readonly LlmCall: "llm_call";
|
|
66
|
+
readonly ToolCall: "tool_call";
|
|
67
|
+
readonly ToolResult: "tool_result";
|
|
68
|
+
readonly LlmResponse: "llm_response";
|
|
69
|
+
};
|
|
70
|
+
export type RunStepUioTypeEnum = typeof RunStepUioTypeEnum[keyof typeof RunStepUioTypeEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the RunStepUio interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfRunStepUio(value: object): value is RunStepUio;
|
|
75
|
+
export declare function RunStepUioFromJSON(json: any): RunStepUio;
|
|
76
|
+
export declare function RunStepUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunStepUio;
|
|
77
|
+
export declare function RunStepUioToJSON(json: any): RunStepUio;
|
|
78
|
+
export declare function RunStepUioToJSONTyped(value?: RunStepUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.RunStepUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfRunStepUio = instanceOfRunStepUio;
|
|
18
|
+
exports.RunStepUioFromJSON = RunStepUioFromJSON;
|
|
19
|
+
exports.RunStepUioFromJSONTyped = RunStepUioFromJSONTyped;
|
|
20
|
+
exports.RunStepUioToJSON = RunStepUioToJSON;
|
|
21
|
+
exports.RunStepUioToJSONTyped = RunStepUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RunStepUioTypeEnum = {
|
|
26
|
+
LlmCall: 'llm_call',
|
|
27
|
+
ToolCall: 'tool_call',
|
|
28
|
+
ToolResult: 'tool_result',
|
|
29
|
+
LlmResponse: 'llm_response'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RunStepUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfRunStepUio(value) {
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('at' in value) || value['at'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function RunStepUioFromJSON(json) {
|
|
42
|
+
return RunStepUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function RunStepUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'type': json['type'],
|
|
50
|
+
'at': (new Date(json['at'])),
|
|
51
|
+
'tool': json['tool'] == null ? undefined : json['tool'],
|
|
52
|
+
'input': json['input'] == null ? undefined : json['input'],
|
|
53
|
+
'output': json['output'] == null ? undefined : json['output'],
|
|
54
|
+
'tokens': json['tokens'] == null ? undefined : json['tokens'],
|
|
55
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function RunStepUioToJSON(json) {
|
|
59
|
+
return RunStepUioToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function RunStepUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'at': ((value['at']).toISOString()),
|
|
68
|
+
'tool': value['tool'],
|
|
69
|
+
'input': value['input'],
|
|
70
|
+
'output': value['output'],
|
|
71
|
+
'tokens': value['tokens'],
|
|
72
|
+
'error': value['error'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { TaskScheduleUio } from './TaskScheduleUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScheduledTaskCreateUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ScheduledTaskCreateUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ScheduledTaskCreateUio
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ScheduledTaskCreateUio
|
|
29
|
+
*/
|
|
30
|
+
mode: ScheduledTaskCreateUioModeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {TaskScheduleUio}
|
|
34
|
+
* @memberof ScheduledTaskCreateUio
|
|
35
|
+
*/
|
|
36
|
+
schedule: TaskScheduleUio;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ScheduledTaskCreateUio
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ScheduledTaskCreateUio
|
|
47
|
+
*/
|
|
48
|
+
timezone?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ScheduledTaskCreateUio
|
|
53
|
+
*/
|
|
54
|
+
callbackUrl?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ScheduledTaskCreateUio
|
|
59
|
+
*/
|
|
60
|
+
lang?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const ScheduledTaskCreateUioModeEnum: {
|
|
66
|
+
readonly Once: "once";
|
|
67
|
+
readonly Recurring: "recurring";
|
|
68
|
+
};
|
|
69
|
+
export type ScheduledTaskCreateUioModeEnum = typeof ScheduledTaskCreateUioModeEnum[keyof typeof ScheduledTaskCreateUioModeEnum];
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the ScheduledTaskCreateUio interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfScheduledTaskCreateUio(value: object): value is ScheduledTaskCreateUio;
|
|
74
|
+
export declare function ScheduledTaskCreateUioFromJSON(json: any): ScheduledTaskCreateUio;
|
|
75
|
+
export declare function ScheduledTaskCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskCreateUio;
|
|
76
|
+
export declare function ScheduledTaskCreateUioToJSON(json: any): ScheduledTaskCreateUio;
|
|
77
|
+
export declare function ScheduledTaskCreateUioToJSONTyped(value?: ScheduledTaskCreateUio | 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.ScheduledTaskCreateUioModeEnum = void 0;
|
|
17
|
+
exports.instanceOfScheduledTaskCreateUio = instanceOfScheduledTaskCreateUio;
|
|
18
|
+
exports.ScheduledTaskCreateUioFromJSON = ScheduledTaskCreateUioFromJSON;
|
|
19
|
+
exports.ScheduledTaskCreateUioFromJSONTyped = ScheduledTaskCreateUioFromJSONTyped;
|
|
20
|
+
exports.ScheduledTaskCreateUioToJSON = ScheduledTaskCreateUioToJSON;
|
|
21
|
+
exports.ScheduledTaskCreateUioToJSONTyped = ScheduledTaskCreateUioToJSONTyped;
|
|
22
|
+
const TaskScheduleUio_1 = require("./TaskScheduleUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ScheduledTaskCreateUioModeEnum = {
|
|
27
|
+
Once: 'once',
|
|
28
|
+
Recurring: 'recurring'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ScheduledTaskCreateUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfScheduledTaskCreateUio(value) {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('schedule' in value) || value['schedule'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ScheduledTaskCreateUioFromJSON(json) {
|
|
43
|
+
return ScheduledTaskCreateUioFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ScheduledTaskCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'message': json['message'],
|
|
51
|
+
'mode': json['mode'],
|
|
52
|
+
'schedule': (0, TaskScheduleUio_1.TaskScheduleUioFromJSON)(json['schedule']),
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'timezone': json['timezone'] == null ? undefined : json['timezone'],
|
|
55
|
+
'callbackUrl': json['callbackUrl'] == null ? undefined : json['callbackUrl'],
|
|
56
|
+
'lang': json['lang'] == null ? undefined : json['lang'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ScheduledTaskCreateUioToJSON(json) {
|
|
60
|
+
return ScheduledTaskCreateUioToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function ScheduledTaskCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'message': value['message'],
|
|
68
|
+
'mode': value['mode'],
|
|
69
|
+
'schedule': (0, TaskScheduleUio_1.TaskScheduleUioToJSON)(value['schedule']),
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'timezone': value['timezone'],
|
|
72
|
+
'callbackUrl': value['callbackUrl'],
|
|
73
|
+
'lang': value['lang'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { ScheduledTaskUio } from './ScheduledTaskUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScheduledTaskListUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ScheduledTaskListUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ScheduledTaskUio>}
|
|
22
|
+
* @memberof ScheduledTaskListUio
|
|
23
|
+
*/
|
|
24
|
+
tasks: Array<ScheduledTaskUio>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ScheduledTaskListUio
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScheduledTaskListUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScheduledTaskListUio(value: object): value is ScheduledTaskListUio;
|
|
36
|
+
export declare function ScheduledTaskListUioFromJSON(json: any): ScheduledTaskListUio;
|
|
37
|
+
export declare function ScheduledTaskListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskListUio;
|
|
38
|
+
export declare function ScheduledTaskListUioToJSON(json: any): ScheduledTaskListUio;
|
|
39
|
+
export declare function ScheduledTaskListUioToJSONTyped(value?: ScheduledTaskListUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfScheduledTaskListUio = instanceOfScheduledTaskListUio;
|
|
17
|
+
exports.ScheduledTaskListUioFromJSON = ScheduledTaskListUioFromJSON;
|
|
18
|
+
exports.ScheduledTaskListUioFromJSONTyped = ScheduledTaskListUioFromJSONTyped;
|
|
19
|
+
exports.ScheduledTaskListUioToJSON = ScheduledTaskListUioToJSON;
|
|
20
|
+
exports.ScheduledTaskListUioToJSONTyped = ScheduledTaskListUioToJSONTyped;
|
|
21
|
+
const ScheduledTaskUio_1 = require("./ScheduledTaskUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScheduledTaskListUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfScheduledTaskListUio(value) {
|
|
26
|
+
if (!('tasks' in value) || value['tasks'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ScheduledTaskListUioFromJSON(json) {
|
|
33
|
+
return ScheduledTaskListUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ScheduledTaskListUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'tasks': (json['tasks'].map(ScheduledTaskUio_1.ScheduledTaskUioFromJSON)),
|
|
41
|
+
'total': json['total'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ScheduledTaskListUioToJSON(json) {
|
|
45
|
+
return ScheduledTaskListUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ScheduledTaskListUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'tasks': (value['tasks'].map(ScheduledTaskUio_1.ScheduledTaskUioToJSON)),
|
|
53
|
+
'total': value['total'],
|
|
54
|
+
};
|
|
55
|
+
}
|