@breign/client 1.0.101 → 1.0.103
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/OrganizationsApi.d.ts +175 -1
- package/dist/apis/OrganizationsApi.js +433 -0
- 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/AccessRoleCreateRequestUio.d.ts +45 -0
- package/dist/models/AccessRoleCreateRequestUio.js +55 -0
- package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
- package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
- package/dist/models/AccessRoleUio.d.ts +75 -0
- package/dist/models/AccessRoleUio.js +75 -0
- package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
- package/dist/models/AccessRoleUpdateRequestUio.js +52 -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/OrganizationMemberUio.d.ts +51 -0
- package/dist/models/OrganizationMemberUio.js +63 -0
- package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
- package/dist/models/OrganizationMemberUserUio.js +50 -0
- package/dist/models/OrganizationPermissionKeyUio.d.ts +59 -0
- package/dist/models/OrganizationPermissionKeyUio.js +85 -0
- package/dist/models/OrganizationUserInviteRequestUio.d.ts +38 -0
- package/dist/models/OrganizationUserInviteRequestUio.js +52 -0
- package/dist/models/OrganizationUserInviteResponseUio.d.ts +32 -0
- package/dist/models/OrganizationUserInviteResponseUio.js +50 -0
- package/dist/models/PermissionEntryUio.d.ts +39 -0
- package/dist/models/PermissionEntryUio.js +55 -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/ProviderValiationRequestUio.d.ts +6 -0
- package/dist/models/ProviderValiationRequestUio.js +4 -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/UserAccessRolesRequestUio.d.ts +32 -0
- package/dist/models/UserAccessRolesRequestUio.js +50 -0
- package/dist/models/UserAccessUio.d.ts +39 -0
- package/dist/models/UserAccessUio.js +55 -0
- package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
- package/dist/models/UserAgentAccessAgentUio.js +54 -0
- package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
- package/dist/models/UserAgentAccessRequestUio.js +54 -0
- package/dist/models/UserAgentAccessUio.d.ts +45 -0
- package/dist/models/UserAgentAccessUio.js +59 -0
- package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
- package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
- package/dist/models/UserUio.d.ts +3 -3
- package/dist/models/UserUio.js +3 -3
- package/dist/models/index.d.ts +32 -2
- package/dist/models/index.js +32 -2
- package/dist/openapi.json +2329 -617
- package/package.json +1 -1
- package/dist/models/UploadLimitsResponseUio.d.ts +0 -32
- package/dist/models/UploadLimitsResponseUio.js +0 -50
- package/dist/models/UserUserUio.d.ts +0 -32
- package/dist/models/UserUserUio.js +0 -50
|
@@ -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
|
+
}
|
|
@@ -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 ScheduledTaskManualRunResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ScheduledTaskManualRunResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScheduledTaskManualRunResponseUio
|
|
22
|
+
*/
|
|
23
|
+
runId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ScheduledTaskManualRunResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfScheduledTaskManualRunResponseUio(value: object): value is ScheduledTaskManualRunResponseUio;
|
|
29
|
+
export declare function ScheduledTaskManualRunResponseUioFromJSON(json: any): ScheduledTaskManualRunResponseUio;
|
|
30
|
+
export declare function ScheduledTaskManualRunResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskManualRunResponseUio;
|
|
31
|
+
export declare function ScheduledTaskManualRunResponseUioToJSON(json: any): ScheduledTaskManualRunResponseUio;
|
|
32
|
+
export declare function ScheduledTaskManualRunResponseUioToJSONTyped(value?: ScheduledTaskManualRunResponseUio | 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.instanceOfScheduledTaskManualRunResponseUio = instanceOfScheduledTaskManualRunResponseUio;
|
|
17
|
+
exports.ScheduledTaskManualRunResponseUioFromJSON = ScheduledTaskManualRunResponseUioFromJSON;
|
|
18
|
+
exports.ScheduledTaskManualRunResponseUioFromJSONTyped = ScheduledTaskManualRunResponseUioFromJSONTyped;
|
|
19
|
+
exports.ScheduledTaskManualRunResponseUioToJSON = ScheduledTaskManualRunResponseUioToJSON;
|
|
20
|
+
exports.ScheduledTaskManualRunResponseUioToJSONTyped = ScheduledTaskManualRunResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ScheduledTaskManualRunResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfScheduledTaskManualRunResponseUio(value) {
|
|
25
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ScheduledTaskManualRunResponseUioFromJSON(json) {
|
|
30
|
+
return ScheduledTaskManualRunResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ScheduledTaskManualRunResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'runId': json['runId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ScheduledTaskManualRunResponseUioToJSON(json) {
|
|
41
|
+
return ScheduledTaskManualRunResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ScheduledTaskManualRunResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'runId': value['runId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 { ScheduledTaskRunUio } from './ScheduledTaskRunUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScheduledTaskRunListUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ScheduledTaskRunListUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ScheduledTaskRunUio>}
|
|
22
|
+
* @memberof ScheduledTaskRunListUio
|
|
23
|
+
*/
|
|
24
|
+
runs: Array<ScheduledTaskRunUio>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof ScheduledTaskRunListUio
|
|
29
|
+
*/
|
|
30
|
+
nextRun: Date | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScheduledTaskRunListUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScheduledTaskRunListUio(value: object): value is ScheduledTaskRunListUio;
|
|
36
|
+
export declare function ScheduledTaskRunListUioFromJSON(json: any): ScheduledTaskRunListUio;
|
|
37
|
+
export declare function ScheduledTaskRunListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskRunListUio;
|
|
38
|
+
export declare function ScheduledTaskRunListUioToJSON(json: any): ScheduledTaskRunListUio;
|
|
39
|
+
export declare function ScheduledTaskRunListUioToJSONTyped(value?: ScheduledTaskRunListUio | 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.instanceOfScheduledTaskRunListUio = instanceOfScheduledTaskRunListUio;
|
|
17
|
+
exports.ScheduledTaskRunListUioFromJSON = ScheduledTaskRunListUioFromJSON;
|
|
18
|
+
exports.ScheduledTaskRunListUioFromJSONTyped = ScheduledTaskRunListUioFromJSONTyped;
|
|
19
|
+
exports.ScheduledTaskRunListUioToJSON = ScheduledTaskRunListUioToJSON;
|
|
20
|
+
exports.ScheduledTaskRunListUioToJSONTyped = ScheduledTaskRunListUioToJSONTyped;
|
|
21
|
+
const ScheduledTaskRunUio_1 = require("./ScheduledTaskRunUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScheduledTaskRunListUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfScheduledTaskRunListUio(value) {
|
|
26
|
+
if (!('runs' in value) || value['runs'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nextRun' in value) || value['nextRun'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ScheduledTaskRunListUioFromJSON(json) {
|
|
33
|
+
return ScheduledTaskRunListUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ScheduledTaskRunListUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'runs': (json['runs'].map(ScheduledTaskRunUio_1.ScheduledTaskRunUioFromJSON)),
|
|
41
|
+
'nextRun': (json['nextRun'] == null ? null : new Date(json['nextRun'])),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ScheduledTaskRunListUioToJSON(json) {
|
|
45
|
+
return ScheduledTaskRunListUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ScheduledTaskRunListUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'runs': (value['runs'].map(ScheduledTaskRunUio_1.ScheduledTaskRunUioToJSON)),
|
|
53
|
+
'nextRun': (value['nextRun'] == null ? null : value['nextRun'].toISOString()),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { RunStepUio } from './RunStepUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScheduledTaskRunUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ScheduledTaskRunUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ScheduledTaskRunUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ScheduledTaskRunUio
|
|
29
|
+
*/
|
|
30
|
+
taskId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ScheduledTaskRunUio
|
|
35
|
+
*/
|
|
36
|
+
status: ScheduledTaskRunUioStatusEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ScheduledTaskRunUio
|
|
41
|
+
*/
|
|
42
|
+
prompt: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ScheduledTaskRunUio
|
|
47
|
+
*/
|
|
48
|
+
conversationId?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof ScheduledTaskRunUio
|
|
53
|
+
*/
|
|
54
|
+
triggeredAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof ScheduledTaskRunUio
|
|
59
|
+
*/
|
|
60
|
+
startedAt?: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof ScheduledTaskRunUio
|
|
65
|
+
*/
|
|
66
|
+
finishedAt?: Date;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof ScheduledTaskRunUio
|
|
71
|
+
*/
|
|
72
|
+
claimedAt?: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof ScheduledTaskRunUio
|
|
77
|
+
*/
|
|
78
|
+
retryCount: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<RunStepUio>}
|
|
82
|
+
* @memberof ScheduledTaskRunUio
|
|
83
|
+
*/
|
|
84
|
+
steps: Array<RunStepUio>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof ScheduledTaskRunUio
|
|
89
|
+
*/
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const ScheduledTaskRunUioStatusEnum: {
|
|
96
|
+
readonly Pending: "pending";
|
|
97
|
+
readonly Running: "running";
|
|
98
|
+
readonly Success: "success";
|
|
99
|
+
readonly Error: "error";
|
|
100
|
+
readonly FailedPermanently: "failed_permanently";
|
|
101
|
+
};
|
|
102
|
+
export type ScheduledTaskRunUioStatusEnum = typeof ScheduledTaskRunUioStatusEnum[keyof typeof ScheduledTaskRunUioStatusEnum];
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the ScheduledTaskRunUio interface.
|
|
105
|
+
*/
|
|
106
|
+
export declare function instanceOfScheduledTaskRunUio(value: object): value is ScheduledTaskRunUio;
|
|
107
|
+
export declare function ScheduledTaskRunUioFromJSON(json: any): ScheduledTaskRunUio;
|
|
108
|
+
export declare function ScheduledTaskRunUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskRunUio;
|
|
109
|
+
export declare function ScheduledTaskRunUioToJSON(json: any): ScheduledTaskRunUio;
|
|
110
|
+
export declare function ScheduledTaskRunUioToJSONTyped(value?: ScheduledTaskRunUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,98 @@
|
|
|
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.ScheduledTaskRunUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfScheduledTaskRunUio = instanceOfScheduledTaskRunUio;
|
|
18
|
+
exports.ScheduledTaskRunUioFromJSON = ScheduledTaskRunUioFromJSON;
|
|
19
|
+
exports.ScheduledTaskRunUioFromJSONTyped = ScheduledTaskRunUioFromJSONTyped;
|
|
20
|
+
exports.ScheduledTaskRunUioToJSON = ScheduledTaskRunUioToJSON;
|
|
21
|
+
exports.ScheduledTaskRunUioToJSONTyped = ScheduledTaskRunUioToJSONTyped;
|
|
22
|
+
const RunStepUio_1 = require("./RunStepUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ScheduledTaskRunUioStatusEnum = {
|
|
27
|
+
Pending: 'pending',
|
|
28
|
+
Running: 'running',
|
|
29
|
+
Success: 'success',
|
|
30
|
+
Error: 'error',
|
|
31
|
+
FailedPermanently: 'failed_permanently'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ScheduledTaskRunUio interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfScheduledTaskRunUio(value) {
|
|
37
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('taskId' in value) || value['taskId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('prompt' in value) || value['prompt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('triggeredAt' in value) || value['triggeredAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('retryCount' in value) || value['retryCount'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('steps' in value) || value['steps'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function ScheduledTaskRunUioFromJSON(json) {
|
|
56
|
+
return ScheduledTaskRunUioFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ScheduledTaskRunUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'taskId': json['taskId'],
|
|
65
|
+
'status': json['status'],
|
|
66
|
+
'prompt': json['prompt'],
|
|
67
|
+
'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
|
|
68
|
+
'triggeredAt': (new Date(json['triggeredAt'])),
|
|
69
|
+
'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
|
|
70
|
+
'finishedAt': json['finishedAt'] == null ? undefined : (new Date(json['finishedAt'])),
|
|
71
|
+
'claimedAt': json['claimedAt'] == null ? undefined : (new Date(json['claimedAt'])),
|
|
72
|
+
'retryCount': json['retryCount'],
|
|
73
|
+
'steps': (json['steps'].map(RunStepUio_1.RunStepUioFromJSON)),
|
|
74
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function ScheduledTaskRunUioToJSON(json) {
|
|
78
|
+
return ScheduledTaskRunUioToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function ScheduledTaskRunUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'taskId': value['taskId'],
|
|
87
|
+
'status': value['status'],
|
|
88
|
+
'prompt': value['prompt'],
|
|
89
|
+
'conversationId': value['conversationId'],
|
|
90
|
+
'triggeredAt': ((value['triggeredAt']).toISOString()),
|
|
91
|
+
'startedAt': value['startedAt'] == null ? undefined : ((value['startedAt']).toISOString()),
|
|
92
|
+
'finishedAt': value['finishedAt'] == null ? undefined : ((value['finishedAt']).toISOString()),
|
|
93
|
+
'claimedAt': value['claimedAt'] == null ? undefined : ((value['claimedAt']).toISOString()),
|
|
94
|
+
'retryCount': value['retryCount'],
|
|
95
|
+
'steps': (value['steps'].map(RunStepUio_1.RunStepUioToJSON)),
|
|
96
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 ScheduledTaskStatusResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ScheduledTaskStatusResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScheduledTaskStatusResponseUio
|
|
22
|
+
*/
|
|
23
|
+
status: ScheduledTaskStatusResponseUioStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof ScheduledTaskStatusResponseUio
|
|
28
|
+
*/
|
|
29
|
+
nextRunAt?: Date | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ScheduledTaskStatusResponseUioStatusEnum: {
|
|
35
|
+
readonly Active: "active";
|
|
36
|
+
readonly Paused: "paused";
|
|
37
|
+
};
|
|
38
|
+
export type ScheduledTaskStatusResponseUioStatusEnum = typeof ScheduledTaskStatusResponseUioStatusEnum[keyof typeof ScheduledTaskStatusResponseUioStatusEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ScheduledTaskStatusResponseUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfScheduledTaskStatusResponseUio(value: object): value is ScheduledTaskStatusResponseUio;
|
|
43
|
+
export declare function ScheduledTaskStatusResponseUioFromJSON(json: any): ScheduledTaskStatusResponseUio;
|
|
44
|
+
export declare function ScheduledTaskStatusResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTaskStatusResponseUio;
|
|
45
|
+
export declare function ScheduledTaskStatusResponseUioToJSON(json: any): ScheduledTaskStatusResponseUio;
|
|
46
|
+
export declare function ScheduledTaskStatusResponseUioToJSONTyped(value?: ScheduledTaskStatusResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ScheduledTaskStatusResponseUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfScheduledTaskStatusResponseUio = instanceOfScheduledTaskStatusResponseUio;
|
|
18
|
+
exports.ScheduledTaskStatusResponseUioFromJSON = ScheduledTaskStatusResponseUioFromJSON;
|
|
19
|
+
exports.ScheduledTaskStatusResponseUioFromJSONTyped = ScheduledTaskStatusResponseUioFromJSONTyped;
|
|
20
|
+
exports.ScheduledTaskStatusResponseUioToJSON = ScheduledTaskStatusResponseUioToJSON;
|
|
21
|
+
exports.ScheduledTaskStatusResponseUioToJSONTyped = ScheduledTaskStatusResponseUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ScheduledTaskStatusResponseUioStatusEnum = {
|
|
26
|
+
Active: 'active',
|
|
27
|
+
Paused: 'paused'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ScheduledTaskStatusResponseUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfScheduledTaskStatusResponseUio(value) {
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ScheduledTaskStatusResponseUioFromJSON(json) {
|
|
38
|
+
return ScheduledTaskStatusResponseUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ScheduledTaskStatusResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'nextRunAt': json['nextRunAt'] == null ? undefined : (new Date(json['nextRunAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ScheduledTaskStatusResponseUioToJSON(json) {
|
|
50
|
+
return ScheduledTaskStatusResponseUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ScheduledTaskStatusResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'status': value['status'],
|
|
58
|
+
'nextRunAt': value['nextRunAt'] == null ? undefined : (value['nextRunAt'].toISOString()),
|
|
59
|
+
};
|
|
60
|
+
}
|