@breign/client 1.0.179 → 1.0.180

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.
@@ -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.instanceOfAutomationRunListUio = instanceOfAutomationRunListUio;
17
+ exports.AutomationRunListUioFromJSON = AutomationRunListUioFromJSON;
18
+ exports.AutomationRunListUioFromJSONTyped = AutomationRunListUioFromJSONTyped;
19
+ exports.AutomationRunListUioToJSON = AutomationRunListUioToJSON;
20
+ exports.AutomationRunListUioToJSONTyped = AutomationRunListUioToJSONTyped;
21
+ const AutomationRunUio_1 = require("./AutomationRunUio");
22
+ /**
23
+ * Check if a given object implements the AutomationRunListUio interface.
24
+ */
25
+ function instanceOfAutomationRunListUio(value) {
26
+ if (!('runs' in value) || value['runs'] === undefined)
27
+ return false;
28
+ if (!('nextBefore' in value) || value['nextBefore'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AutomationRunListUioFromJSON(json) {
33
+ return AutomationRunListUioFromJSONTyped(json, false);
34
+ }
35
+ function AutomationRunListUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'runs': (json['runs'].map(AutomationRunUio_1.AutomationRunUioFromJSON)),
41
+ 'nextBefore': (json['nextBefore'] == null ? null : new Date(json['nextBefore'])),
42
+ };
43
+ }
44
+ function AutomationRunListUioToJSON(json) {
45
+ return AutomationRunListUioToJSONTyped(json, false);
46
+ }
47
+ function AutomationRunListUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'runs': (value['runs'].map(AutomationRunUio_1.AutomationRunUioToJSON)),
53
+ 'nextBefore': (value['nextBefore'] == null ? null : value['nextBefore'].toISOString()),
54
+ };
55
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const AutomationRunOutcomeUio: {
17
+ readonly Success: "success";
18
+ readonly Error: "error";
19
+ readonly Running: "running";
20
+ };
21
+ export type AutomationRunOutcomeUio = typeof AutomationRunOutcomeUio[keyof typeof AutomationRunOutcomeUio];
22
+ export declare function instanceOfAutomationRunOutcomeUio(value: any): boolean;
23
+ export declare function AutomationRunOutcomeUioFromJSON(json: any): AutomationRunOutcomeUio;
24
+ export declare function AutomationRunOutcomeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunOutcomeUio;
25
+ export declare function AutomationRunOutcomeUioToJSON(value?: AutomationRunOutcomeUio | null): any;
26
+ export declare function AutomationRunOutcomeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationRunOutcomeUio;
@@ -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.AutomationRunOutcomeUio = void 0;
17
+ exports.instanceOfAutomationRunOutcomeUio = instanceOfAutomationRunOutcomeUio;
18
+ exports.AutomationRunOutcomeUioFromJSON = AutomationRunOutcomeUioFromJSON;
19
+ exports.AutomationRunOutcomeUioFromJSONTyped = AutomationRunOutcomeUioFromJSONTyped;
20
+ exports.AutomationRunOutcomeUioToJSON = AutomationRunOutcomeUioToJSON;
21
+ exports.AutomationRunOutcomeUioToJSONTyped = AutomationRunOutcomeUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.AutomationRunOutcomeUio = {
27
+ Success: 'success',
28
+ Error: 'error',
29
+ Running: 'running'
30
+ };
31
+ function instanceOfAutomationRunOutcomeUio(value) {
32
+ for (const key in exports.AutomationRunOutcomeUio) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.AutomationRunOutcomeUio, key)) {
34
+ if (exports.AutomationRunOutcomeUio[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function AutomationRunOutcomeUioFromJSON(json) {
42
+ return AutomationRunOutcomeUioFromJSONTyped(json, false);
43
+ }
44
+ function AutomationRunOutcomeUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function AutomationRunOutcomeUioToJSON(value) {
48
+ return value;
49
+ }
50
+ function AutomationRunOutcomeUioToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,108 @@
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
+ import type { AutomationTriggerKindUio } from './AutomationTriggerKindUio';
14
+ /**
15
+ * What triggered the run. `schedule`: `schedule`, `timezone`, `mode`. `gitlab`: `author`, `authorUsername`, `ref`, `title`, `url`, `text` (untrusted user content). `webhook`: `thread`, `contentType`.
16
+ * @export
17
+ * @interface AutomationRunSourceUio
18
+ */
19
+ export interface AutomationRunSourceUio {
20
+ /**
21
+ *
22
+ * @type {AutomationTriggerKindUio}
23
+ * @memberof AutomationRunSourceUio
24
+ */
25
+ kind: AutomationTriggerKindUio;
26
+ /**
27
+ *
28
+ * @type {TaskScheduleUio}
29
+ * @memberof AutomationRunSourceUio
30
+ */
31
+ schedule?: TaskScheduleUio | null;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AutomationRunSourceUio
36
+ */
37
+ timezone?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AutomationRunSourceUio
42
+ */
43
+ mode?: AutomationRunSourceUioModeEnum;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof AutomationRunSourceUio
48
+ */
49
+ author?: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof AutomationRunSourceUio
54
+ */
55
+ authorUsername?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof AutomationRunSourceUio
60
+ */
61
+ ref?: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof AutomationRunSourceUio
66
+ */
67
+ title?: string | null;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof AutomationRunSourceUio
72
+ */
73
+ url?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof AutomationRunSourceUio
78
+ */
79
+ text?: string;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof AutomationRunSourceUio
84
+ */
85
+ thread?: string | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof AutomationRunSourceUio
90
+ */
91
+ contentType?: string;
92
+ }
93
+ /**
94
+ * @export
95
+ */
96
+ export declare const AutomationRunSourceUioModeEnum: {
97
+ readonly Once: "once";
98
+ readonly Recurring: "recurring";
99
+ };
100
+ export type AutomationRunSourceUioModeEnum = typeof AutomationRunSourceUioModeEnum[keyof typeof AutomationRunSourceUioModeEnum];
101
+ /**
102
+ * Check if a given object implements the AutomationRunSourceUio interface.
103
+ */
104
+ export declare function instanceOfAutomationRunSourceUio(value: object): value is AutomationRunSourceUio;
105
+ export declare function AutomationRunSourceUioFromJSON(json: any): AutomationRunSourceUio;
106
+ export declare function AutomationRunSourceUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunSourceUio;
107
+ export declare function AutomationRunSourceUioToJSON(json: any): AutomationRunSourceUio;
108
+ export declare function AutomationRunSourceUioToJSONTyped(value?: AutomationRunSourceUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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.AutomationRunSourceUioModeEnum = void 0;
17
+ exports.instanceOfAutomationRunSourceUio = instanceOfAutomationRunSourceUio;
18
+ exports.AutomationRunSourceUioFromJSON = AutomationRunSourceUioFromJSON;
19
+ exports.AutomationRunSourceUioFromJSONTyped = AutomationRunSourceUioFromJSONTyped;
20
+ exports.AutomationRunSourceUioToJSON = AutomationRunSourceUioToJSON;
21
+ exports.AutomationRunSourceUioToJSONTyped = AutomationRunSourceUioToJSONTyped;
22
+ const TaskScheduleUio_1 = require("./TaskScheduleUio");
23
+ const AutomationTriggerKindUio_1 = require("./AutomationTriggerKindUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.AutomationRunSourceUioModeEnum = {
28
+ Once: 'once',
29
+ Recurring: 'recurring'
30
+ };
31
+ /**
32
+ * Check if a given object implements the AutomationRunSourceUio interface.
33
+ */
34
+ function instanceOfAutomationRunSourceUio(value) {
35
+ if (!('kind' in value) || value['kind'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function AutomationRunSourceUioFromJSON(json) {
40
+ return AutomationRunSourceUioFromJSONTyped(json, false);
41
+ }
42
+ function AutomationRunSourceUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'kind': (0, AutomationTriggerKindUio_1.AutomationTriggerKindUioFromJSON)(json['kind']),
48
+ 'schedule': json['schedule'] == null ? undefined : (0, TaskScheduleUio_1.TaskScheduleUioFromJSON)(json['schedule']),
49
+ 'timezone': json['timezone'] == null ? undefined : json['timezone'],
50
+ 'mode': json['mode'] == null ? undefined : json['mode'],
51
+ 'author': json['author'] == null ? undefined : json['author'],
52
+ 'authorUsername': json['authorUsername'] == null ? undefined : json['authorUsername'],
53
+ 'ref': json['ref'] == null ? undefined : json['ref'],
54
+ 'title': json['title'] == null ? undefined : json['title'],
55
+ 'url': json['url'] == null ? undefined : json['url'],
56
+ 'text': json['text'] == null ? undefined : json['text'],
57
+ 'thread': json['thread'] == null ? undefined : json['thread'],
58
+ 'contentType': json['contentType'] == null ? undefined : json['contentType'],
59
+ };
60
+ }
61
+ function AutomationRunSourceUioToJSON(json) {
62
+ return AutomationRunSourceUioToJSONTyped(json, false);
63
+ }
64
+ function AutomationRunSourceUioToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'kind': (0, AutomationTriggerKindUio_1.AutomationTriggerKindUioToJSON)(value['kind']),
70
+ 'schedule': (0, TaskScheduleUio_1.TaskScheduleUioToJSON)(value['schedule']),
71
+ 'timezone': value['timezone'],
72
+ 'mode': value['mode'],
73
+ 'author': value['author'],
74
+ 'authorUsername': value['authorUsername'],
75
+ 'ref': value['ref'],
76
+ 'title': value['title'],
77
+ 'url': value['url'],
78
+ 'text': value['text'],
79
+ 'thread': value['thread'],
80
+ 'contentType': value['contentType'],
81
+ };
82
+ }
@@ -0,0 +1,126 @@
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 { AutomationRunSourceUio } from './AutomationRunSourceUio';
13
+ import type { AutomationRunOutcomeUio } from './AutomationRunOutcomeUio';
14
+ import type { AutomationTriggerKindUio } from './AutomationTriggerKindUio';
15
+ import type { AutomationRunDeliveryUio } from './AutomationRunDeliveryUio';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AutomationRunUio
20
+ */
21
+ export interface AutomationRunUio {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AutomationRunUio
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AutomationRunUio
32
+ */
33
+ taskId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AutomationRunUio
38
+ */
39
+ taskName: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AutomationRunUio
44
+ */
45
+ agentId: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AutomationRunUio
50
+ */
51
+ agentName: string | null;
52
+ /**
53
+ *
54
+ * @type {AutomationRunOutcomeUio}
55
+ * @memberof AutomationRunUio
56
+ */
57
+ status: AutomationRunOutcomeUio;
58
+ /**
59
+ *
60
+ * @type {Date}
61
+ * @memberof AutomationRunUio
62
+ */
63
+ triggeredAt: Date;
64
+ /**
65
+ *
66
+ * @type {Date}
67
+ * @memberof AutomationRunUio
68
+ */
69
+ startedAt: Date | null;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof AutomationRunUio
74
+ */
75
+ finishedAt: Date | null;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof AutomationRunUio
80
+ */
81
+ durationMs: number | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof AutomationRunUio
86
+ */
87
+ conversationId: string | null;
88
+ /**
89
+ *
90
+ * @type {AutomationTriggerKindUio}
91
+ * @memberof AutomationRunUio
92
+ */
93
+ trigger: AutomationTriggerKindUio;
94
+ /**
95
+ *
96
+ * @type {AutomationRunSourceUio}
97
+ * @memberof AutomationRunUio
98
+ */
99
+ source: AutomationRunSourceUio;
100
+ /**
101
+ *
102
+ * @type {AutomationRunDeliveryUio}
103
+ * @memberof AutomationRunUio
104
+ */
105
+ delivery: AutomationRunDeliveryUio;
106
+ /**
107
+ * Start of the agent answer (500 characters at most).
108
+ * @type {string}
109
+ * @memberof AutomationRunUio
110
+ */
111
+ reply: string | null;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof AutomationRunUio
116
+ */
117
+ error: string | null;
118
+ }
119
+ /**
120
+ * Check if a given object implements the AutomationRunUio interface.
121
+ */
122
+ export declare function instanceOfAutomationRunUio(value: object): value is AutomationRunUio;
123
+ export declare function AutomationRunUioFromJSON(json: any): AutomationRunUio;
124
+ export declare function AutomationRunUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunUio;
125
+ export declare function AutomationRunUioToJSON(json: any): AutomationRunUio;
126
+ export declare function AutomationRunUioToJSONTyped(value?: AutomationRunUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,114 @@
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.instanceOfAutomationRunUio = instanceOfAutomationRunUio;
17
+ exports.AutomationRunUioFromJSON = AutomationRunUioFromJSON;
18
+ exports.AutomationRunUioFromJSONTyped = AutomationRunUioFromJSONTyped;
19
+ exports.AutomationRunUioToJSON = AutomationRunUioToJSON;
20
+ exports.AutomationRunUioToJSONTyped = AutomationRunUioToJSONTyped;
21
+ const AutomationRunSourceUio_1 = require("./AutomationRunSourceUio");
22
+ const AutomationRunOutcomeUio_1 = require("./AutomationRunOutcomeUio");
23
+ const AutomationTriggerKindUio_1 = require("./AutomationTriggerKindUio");
24
+ const AutomationRunDeliveryUio_1 = require("./AutomationRunDeliveryUio");
25
+ /**
26
+ * Check if a given object implements the AutomationRunUio interface.
27
+ */
28
+ function instanceOfAutomationRunUio(value) {
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('taskId' in value) || value['taskId'] === undefined)
32
+ return false;
33
+ if (!('taskName' in value) || value['taskName'] === undefined)
34
+ return false;
35
+ if (!('agentId' in value) || value['agentId'] === undefined)
36
+ return false;
37
+ if (!('agentName' in value) || value['agentName'] === undefined)
38
+ return false;
39
+ if (!('status' in value) || value['status'] === undefined)
40
+ return false;
41
+ if (!('triggeredAt' in value) || value['triggeredAt'] === undefined)
42
+ return false;
43
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
44
+ return false;
45
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined)
46
+ return false;
47
+ if (!('durationMs' in value) || value['durationMs'] === undefined)
48
+ return false;
49
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
50
+ return false;
51
+ if (!('trigger' in value) || value['trigger'] === undefined)
52
+ return false;
53
+ if (!('source' in value) || value['source'] === undefined)
54
+ return false;
55
+ if (!('delivery' in value) || value['delivery'] === undefined)
56
+ return false;
57
+ if (!('reply' in value) || value['reply'] === undefined)
58
+ return false;
59
+ if (!('error' in value) || value['error'] === undefined)
60
+ return false;
61
+ return true;
62
+ }
63
+ function AutomationRunUioFromJSON(json) {
64
+ return AutomationRunUioFromJSONTyped(json, false);
65
+ }
66
+ function AutomationRunUioFromJSONTyped(json, ignoreDiscriminator) {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+ 'id': json['id'],
72
+ 'taskId': json['taskId'],
73
+ 'taskName': json['taskName'],
74
+ 'agentId': json['agentId'],
75
+ 'agentName': json['agentName'],
76
+ 'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioFromJSON)(json['status']),
77
+ 'triggeredAt': (new Date(json['triggeredAt'])),
78
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
79
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
80
+ 'durationMs': json['durationMs'],
81
+ 'conversationId': json['conversationId'],
82
+ 'trigger': (0, AutomationTriggerKindUio_1.AutomationTriggerKindUioFromJSON)(json['trigger']),
83
+ 'source': (0, AutomationRunSourceUio_1.AutomationRunSourceUioFromJSON)(json['source']),
84
+ 'delivery': (0, AutomationRunDeliveryUio_1.AutomationRunDeliveryUioFromJSON)(json['delivery']),
85
+ 'reply': json['reply'],
86
+ 'error': json['error'],
87
+ };
88
+ }
89
+ function AutomationRunUioToJSON(json) {
90
+ return AutomationRunUioToJSONTyped(json, false);
91
+ }
92
+ function AutomationRunUioToJSONTyped(value, ignoreDiscriminator = false) {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+ return {
97
+ 'id': value['id'],
98
+ 'taskId': value['taskId'],
99
+ 'taskName': value['taskName'],
100
+ 'agentId': value['agentId'],
101
+ 'agentName': value['agentName'],
102
+ 'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioToJSON)(value['status']),
103
+ 'triggeredAt': ((value['triggeredAt']).toISOString()),
104
+ 'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
105
+ 'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
106
+ 'durationMs': value['durationMs'],
107
+ 'conversationId': value['conversationId'],
108
+ 'trigger': (0, AutomationTriggerKindUio_1.AutomationTriggerKindUioToJSON)(value['trigger']),
109
+ 'source': (0, AutomationRunSourceUio_1.AutomationRunSourceUioToJSON)(value['source']),
110
+ 'delivery': (0, AutomationRunDeliveryUio_1.AutomationRunDeliveryUioToJSON)(value['delivery']),
111
+ 'reply': value['reply'],
112
+ 'error': value['error'],
113
+ };
114
+ }
@@ -0,0 +1,62 @@
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 AutomationStatsUio
16
+ */
17
+ export interface AutomationStatsUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AutomationStatsUio
22
+ */
23
+ active: number;
24
+ /**
25
+ * Active automations triggered by a GitLab mention or a webhook.
26
+ * @type {number}
27
+ * @memberof AutomationStatsUio
28
+ */
29
+ event: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AutomationStatsUio
34
+ */
35
+ runs24h: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AutomationStatsUio
40
+ */
41
+ runs7d: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AutomationStatsUio
46
+ */
47
+ failures7d: number;
48
+ /**
49
+ * Mentions and webhook calls of the organization not handled yet.
50
+ * @type {number}
51
+ * @memberof AutomationStatsUio
52
+ */
53
+ pending: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the AutomationStatsUio interface.
57
+ */
58
+ export declare function instanceOfAutomationStatsUio(value: object): value is AutomationStatsUio;
59
+ export declare function AutomationStatsUioFromJSON(json: any): AutomationStatsUio;
60
+ export declare function AutomationStatsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationStatsUio;
61
+ export declare function AutomationStatsUioToJSON(json: any): AutomationStatsUio;
62
+ export declare function AutomationStatsUioToJSONTyped(value?: AutomationStatsUio | null, ignoreDiscriminator?: boolean): any;