@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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ScheduledTaskCreateUio, ScheduledTaskListUio, ScheduledTaskManualRunResponseUio, ScheduledTaskRunListUio, ScheduledTaskRunTriggerUio, ScheduledTaskRunUio, ScheduledTaskStatusResponseUio, ScheduledTaskStatusToggleUio, ScheduledTaskUio, WebhookEndpointUio, WebhookEndpointUpdateUio, WebhookEventListUio, WebhookTestRequestUio, WebhookTestResponseUio } from '../models/index';
13
+ import type { AutomationListUio, AutomationRunListUio, AutomationRunOutcomeUio, AutomationTriggerKindUio, ScheduledTaskCreateUio, ScheduledTaskListUio, ScheduledTaskManualRunResponseUio, ScheduledTaskRunListUio, ScheduledTaskRunTriggerUio, ScheduledTaskRunUio, ScheduledTaskStatusResponseUio, ScheduledTaskStatusToggleUio, ScheduledTaskUio, WebhookEndpointUio, WebhookEndpointUpdateUio, WebhookEventListUio, WebhookTestRequestUio, WebhookTestResponseUio } from '../models/index';
14
14
  export interface CreateScheduledTaskRequest {
15
15
  agentId: string;
16
16
  scheduledTaskCreateUio: ScheduledTaskCreateUio;
@@ -42,6 +42,24 @@ export interface ListAgentScheduledTaskRunsRequest {
42
42
  from: Date;
43
43
  to: Date;
44
44
  }
45
+ export interface ListOrganizationAutomationRunsRequest {
46
+ organizationId: string;
47
+ agentId?: string;
48
+ taskId?: string;
49
+ trigger?: AutomationTriggerKindUio;
50
+ status?: AutomationRunOutcomeUio;
51
+ before?: Date;
52
+ limit?: number;
53
+ }
54
+ export interface ListOrganizationAutomationsRequest {
55
+ organizationId: string;
56
+ agentId?: string;
57
+ trigger?: AutomationTriggerKindUio;
58
+ status?: string;
59
+ q?: string;
60
+ limit?: number;
61
+ offset?: number;
62
+ }
45
63
  export interface ListScheduledTaskRunsRequest {
46
64
  agentId: string;
47
65
  taskId: string;
@@ -152,6 +170,26 @@ export declare class ScheduledTasksApi extends runtime.BaseAPI {
152
170
  * List all runs for an agent\'s scheduled tasks within a date range
153
171
  */
154
172
  listAgentScheduledTaskRuns(agentId: string, from: Date, to: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunListUio>;
173
+ /**
174
+ * Most recent first. Every member of the organization can read them.
175
+ * The runs of the automations of the organization, or of one of its agents
176
+ */
177
+ listOrganizationAutomationRunsRaw(requestParameters: ListOrganizationAutomationRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutomationRunListUio>>;
178
+ /**
179
+ * Most recent first. Every member of the organization can read them.
180
+ * The runs of the automations of the organization, or of one of its agents
181
+ */
182
+ listOrganizationAutomationRuns(organizationId: string, agentId?: string, taskId?: string, trigger?: AutomationTriggerKindUio, status?: AutomationRunOutcomeUio, before?: Date, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutomationRunListUio>;
183
+ /**
184
+ * Every member of the organization can read them, as they can read its agents.
185
+ * The automations of the organization, or of one of its agents
186
+ */
187
+ listOrganizationAutomationsRaw(requestParameters: ListOrganizationAutomationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutomationListUio>>;
188
+ /**
189
+ * Every member of the organization can read them, as they can read its agents.
190
+ * The automations of the organization, or of one of its agents
191
+ */
192
+ listOrganizationAutomations(organizationId: string, agentId?: string, trigger?: AutomationTriggerKindUio, status?: string, q?: string, limit?: number, offset?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutomationListUio>;
155
193
  /**
156
194
  * List runs for a scheduled task
157
195
  */
@@ -279,6 +279,100 @@ class ScheduledTasksApi extends runtime.BaseAPI {
279
279
  const response = await this.listAgentScheduledTaskRunsRaw({ agentId: agentId, from: from, to: to }, initOverrides);
280
280
  return await response.value();
281
281
  }
282
+ /**
283
+ * Most recent first. Every member of the organization can read them.
284
+ * The runs of the automations of the organization, or of one of its agents
285
+ */
286
+ async listOrganizationAutomationRunsRaw(requestParameters, initOverrides) {
287
+ if (requestParameters['organizationId'] == null) {
288
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAutomationRuns().');
289
+ }
290
+ const queryParameters = {};
291
+ if (requestParameters['agentId'] != null) {
292
+ queryParameters['agentId'] = requestParameters['agentId'];
293
+ }
294
+ if (requestParameters['taskId'] != null) {
295
+ queryParameters['taskId'] = requestParameters['taskId'];
296
+ }
297
+ if (requestParameters['trigger'] != null) {
298
+ queryParameters['trigger'] = requestParameters['trigger'];
299
+ }
300
+ if (requestParameters['status'] != null) {
301
+ queryParameters['status'] = requestParameters['status'];
302
+ }
303
+ if (requestParameters['before'] != null) {
304
+ queryParameters['before'] = requestParameters['before'].toISOString();
305
+ }
306
+ if (requestParameters['limit'] != null) {
307
+ queryParameters['limit'] = requestParameters['limit'];
308
+ }
309
+ const headerParameters = {};
310
+ if (this.configuration && this.configuration.apiKey) {
311
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
312
+ }
313
+ const response = await this.request({
314
+ path: `/organizations/{organizationId}/automation-runs`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
315
+ method: 'GET',
316
+ headers: headerParameters,
317
+ query: queryParameters,
318
+ }, initOverrides);
319
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AutomationRunListUioFromJSON)(jsonValue));
320
+ }
321
+ /**
322
+ * Most recent first. Every member of the organization can read them.
323
+ * The runs of the automations of the organization, or of one of its agents
324
+ */
325
+ async listOrganizationAutomationRuns(organizationId, agentId, taskId, trigger, status, before, limit, initOverrides) {
326
+ const response = await this.listOrganizationAutomationRunsRaw({ organizationId: organizationId, agentId: agentId, taskId: taskId, trigger: trigger, status: status, before: before, limit: limit }, initOverrides);
327
+ return await response.value();
328
+ }
329
+ /**
330
+ * Every member of the organization can read them, as they can read its agents.
331
+ * The automations of the organization, or of one of its agents
332
+ */
333
+ async listOrganizationAutomationsRaw(requestParameters, initOverrides) {
334
+ if (requestParameters['organizationId'] == null) {
335
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAutomations().');
336
+ }
337
+ const queryParameters = {};
338
+ if (requestParameters['agentId'] != null) {
339
+ queryParameters['agentId'] = requestParameters['agentId'];
340
+ }
341
+ if (requestParameters['trigger'] != null) {
342
+ queryParameters['trigger'] = requestParameters['trigger'];
343
+ }
344
+ if (requestParameters['status'] != null) {
345
+ queryParameters['status'] = requestParameters['status'];
346
+ }
347
+ if (requestParameters['q'] != null) {
348
+ queryParameters['q'] = requestParameters['q'];
349
+ }
350
+ if (requestParameters['limit'] != null) {
351
+ queryParameters['limit'] = requestParameters['limit'];
352
+ }
353
+ if (requestParameters['offset'] != null) {
354
+ queryParameters['offset'] = requestParameters['offset'];
355
+ }
356
+ const headerParameters = {};
357
+ if (this.configuration && this.configuration.apiKey) {
358
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
359
+ }
360
+ const response = await this.request({
361
+ path: `/organizations/{organizationId}/automations`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
362
+ method: 'GET',
363
+ headers: headerParameters,
364
+ query: queryParameters,
365
+ }, initOverrides);
366
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AutomationListUioFromJSON)(jsonValue));
367
+ }
368
+ /**
369
+ * Every member of the organization can read them, as they can read its agents.
370
+ * The automations of the organization, or of one of its agents
371
+ */
372
+ async listOrganizationAutomations(organizationId, agentId, trigger, status, q, limit, offset, initOverrides) {
373
+ const response = await this.listOrganizationAutomationsRaw({ organizationId: organizationId, agentId: agentId, trigger: trigger, status: status, q: q, limit: limit, offset: offset }, initOverrides);
374
+ return await response.value();
375
+ }
282
376
  /**
283
377
  * List runs for a scheduled task
284
378
  */
@@ -0,0 +1,44 @@
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 AutomationDayCountUio
16
+ */
17
+ export interface AutomationDayCountUio {
18
+ /**
19
+ * UTC day, YYYY-MM-DD.
20
+ * @type {string}
21
+ * @memberof AutomationDayCountUio
22
+ */
23
+ date: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AutomationDayCountUio
28
+ */
29
+ success: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AutomationDayCountUio
34
+ */
35
+ error: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AutomationDayCountUio interface.
39
+ */
40
+ export declare function instanceOfAutomationDayCountUio(value: object): value is AutomationDayCountUio;
41
+ export declare function AutomationDayCountUioFromJSON(json: any): AutomationDayCountUio;
42
+ export declare function AutomationDayCountUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDayCountUio;
43
+ export declare function AutomationDayCountUioToJSON(json: any): AutomationDayCountUio;
44
+ export declare function AutomationDayCountUioToJSONTyped(value?: AutomationDayCountUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfAutomationDayCountUio = instanceOfAutomationDayCountUio;
17
+ exports.AutomationDayCountUioFromJSON = AutomationDayCountUioFromJSON;
18
+ exports.AutomationDayCountUioFromJSONTyped = AutomationDayCountUioFromJSONTyped;
19
+ exports.AutomationDayCountUioToJSON = AutomationDayCountUioToJSON;
20
+ exports.AutomationDayCountUioToJSONTyped = AutomationDayCountUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AutomationDayCountUio interface.
23
+ */
24
+ function instanceOfAutomationDayCountUio(value) {
25
+ if (!('date' in value) || value['date'] === undefined)
26
+ return false;
27
+ if (!('success' in value) || value['success'] === undefined)
28
+ return false;
29
+ if (!('error' in value) || value['error'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AutomationDayCountUioFromJSON(json) {
34
+ return AutomationDayCountUioFromJSONTyped(json, false);
35
+ }
36
+ function AutomationDayCountUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'date': json['date'],
42
+ 'success': json['success'],
43
+ 'error': json['error'],
44
+ };
45
+ }
46
+ function AutomationDayCountUioToJSON(json) {
47
+ return AutomationDayCountUioToJSONTyped(json, false);
48
+ }
49
+ function AutomationDayCountUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'date': value['date'],
55
+ 'success': value['success'],
56
+ 'error': value['error'],
57
+ };
58
+ }
@@ -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 { AutomationRunOutcomeUio } from './AutomationRunOutcomeUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AutomationLastRunUio
17
+ */
18
+ export interface AutomationLastRunUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AutomationLastRunUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {AutomationRunOutcomeUio}
28
+ * @memberof AutomationLastRunUio
29
+ */
30
+ status: AutomationRunOutcomeUio;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof AutomationLastRunUio
35
+ */
36
+ triggeredAt: Date;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof AutomationLastRunUio
41
+ */
42
+ finishedAt: Date | null;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AutomationLastRunUio interface.
46
+ */
47
+ export declare function instanceOfAutomationLastRunUio(value: object): value is AutomationLastRunUio;
48
+ export declare function AutomationLastRunUioFromJSON(json: any): AutomationLastRunUio;
49
+ export declare function AutomationLastRunUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationLastRunUio;
50
+ export declare function AutomationLastRunUioToJSON(json: any): AutomationLastRunUio;
51
+ export declare function AutomationLastRunUioToJSONTyped(value?: AutomationLastRunUio | 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.instanceOfAutomationLastRunUio = instanceOfAutomationLastRunUio;
17
+ exports.AutomationLastRunUioFromJSON = AutomationLastRunUioFromJSON;
18
+ exports.AutomationLastRunUioFromJSONTyped = AutomationLastRunUioFromJSONTyped;
19
+ exports.AutomationLastRunUioToJSON = AutomationLastRunUioToJSON;
20
+ exports.AutomationLastRunUioToJSONTyped = AutomationLastRunUioToJSONTyped;
21
+ const AutomationRunOutcomeUio_1 = require("./AutomationRunOutcomeUio");
22
+ /**
23
+ * Check if a given object implements the AutomationLastRunUio interface.
24
+ */
25
+ function instanceOfAutomationLastRunUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('status' in value) || value['status'] === undefined)
29
+ return false;
30
+ if (!('triggeredAt' in value) || value['triggeredAt'] === undefined)
31
+ return false;
32
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function AutomationLastRunUioFromJSON(json) {
37
+ return AutomationLastRunUioFromJSONTyped(json, false);
38
+ }
39
+ function AutomationLastRunUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioFromJSON)(json['status']),
46
+ 'triggeredAt': (new Date(json['triggeredAt'])),
47
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
48
+ };
49
+ }
50
+ function AutomationLastRunUioToJSON(json) {
51
+ return AutomationLastRunUioToJSONTyped(json, false);
52
+ }
53
+ function AutomationLastRunUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'status': (0, AutomationRunOutcomeUio_1.AutomationRunOutcomeUioToJSON)(value['status']),
60
+ 'triggeredAt': ((value['triggeredAt']).toISOString()),
61
+ 'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
62
+ };
63
+ }
@@ -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
+ import type { AutomationStatsUio } from './AutomationStatsUio';
13
+ import type { AutomationSummaryUio } from './AutomationSummaryUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AutomationListUio
18
+ */
19
+ export interface AutomationListUio {
20
+ /**
21
+ *
22
+ * @type {Array<AutomationSummaryUio>}
23
+ * @memberof AutomationListUio
24
+ */
25
+ items: Array<AutomationSummaryUio>;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof AutomationListUio
30
+ */
31
+ total: number;
32
+ /**
33
+ *
34
+ * @type {AutomationStatsUio}
35
+ * @memberof AutomationListUio
36
+ */
37
+ stats: AutomationStatsUio;
38
+ }
39
+ /**
40
+ * Check if a given object implements the AutomationListUio interface.
41
+ */
42
+ export declare function instanceOfAutomationListUio(value: object): value is AutomationListUio;
43
+ export declare function AutomationListUioFromJSON(json: any): AutomationListUio;
44
+ export declare function AutomationListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationListUio;
45
+ export declare function AutomationListUioToJSON(json: any): AutomationListUio;
46
+ export declare function AutomationListUioToJSONTyped(value?: AutomationListUio | 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.instanceOfAutomationListUio = instanceOfAutomationListUio;
17
+ exports.AutomationListUioFromJSON = AutomationListUioFromJSON;
18
+ exports.AutomationListUioFromJSONTyped = AutomationListUioFromJSONTyped;
19
+ exports.AutomationListUioToJSON = AutomationListUioToJSON;
20
+ exports.AutomationListUioToJSONTyped = AutomationListUioToJSONTyped;
21
+ const AutomationStatsUio_1 = require("./AutomationStatsUio");
22
+ const AutomationSummaryUio_1 = require("./AutomationSummaryUio");
23
+ /**
24
+ * Check if a given object implements the AutomationListUio interface.
25
+ */
26
+ function instanceOfAutomationListUio(value) {
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ if (!('total' in value) || value['total'] === undefined)
30
+ return false;
31
+ if (!('stats' in value) || value['stats'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AutomationListUioFromJSON(json) {
36
+ return AutomationListUioFromJSONTyped(json, false);
37
+ }
38
+ function AutomationListUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'items': (json['items'].map(AutomationSummaryUio_1.AutomationSummaryUioFromJSON)),
44
+ 'total': json['total'],
45
+ 'stats': (0, AutomationStatsUio_1.AutomationStatsUioFromJSON)(json['stats']),
46
+ };
47
+ }
48
+ function AutomationListUioToJSON(json) {
49
+ return AutomationListUioToJSONTyped(json, false);
50
+ }
51
+ function AutomationListUioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'items': (value['items'].map(AutomationSummaryUio_1.AutomationSummaryUioToJSON)),
57
+ 'total': value['total'],
58
+ 'stats': (0, AutomationStatsUio_1.AutomationStatsUioToJSON)(value['stats']),
59
+ };
60
+ }
@@ -0,0 +1,60 @@
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 { ExternalEventStatusUio } from './ExternalEventStatusUio';
13
+ /**
14
+ * What became of the result — the reply in the GitLab thread, the caller's callback, or nothing.
15
+ * @export
16
+ * @interface AutomationRunDeliveryUio
17
+ */
18
+ export interface AutomationRunDeliveryUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AutomationRunDeliveryUio
23
+ */
24
+ kind: AutomationRunDeliveryUioKindEnum;
25
+ /**
26
+ *
27
+ * @type {ExternalEventStatusUio}
28
+ * @memberof AutomationRunDeliveryUio
29
+ */
30
+ eventStatus: ExternalEventStatusUio | null;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AutomationRunDeliveryUio
35
+ */
36
+ url: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AutomationRunDeliveryUio
41
+ */
42
+ error: string | null;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const AutomationRunDeliveryUioKindEnum: {
48
+ readonly GitlabReply: "gitlab_reply";
49
+ readonly Callback: "callback";
50
+ readonly None: "none";
51
+ };
52
+ export type AutomationRunDeliveryUioKindEnum = typeof AutomationRunDeliveryUioKindEnum[keyof typeof AutomationRunDeliveryUioKindEnum];
53
+ /**
54
+ * Check if a given object implements the AutomationRunDeliveryUio interface.
55
+ */
56
+ export declare function instanceOfAutomationRunDeliveryUio(value: object): value is AutomationRunDeliveryUio;
57
+ export declare function AutomationRunDeliveryUioFromJSON(json: any): AutomationRunDeliveryUio;
58
+ export declare function AutomationRunDeliveryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunDeliveryUio;
59
+ export declare function AutomationRunDeliveryUioToJSON(json: any): AutomationRunDeliveryUio;
60
+ export declare function AutomationRunDeliveryUioToJSONTyped(value?: AutomationRunDeliveryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.AutomationRunDeliveryUioKindEnum = void 0;
17
+ exports.instanceOfAutomationRunDeliveryUio = instanceOfAutomationRunDeliveryUio;
18
+ exports.AutomationRunDeliveryUioFromJSON = AutomationRunDeliveryUioFromJSON;
19
+ exports.AutomationRunDeliveryUioFromJSONTyped = AutomationRunDeliveryUioFromJSONTyped;
20
+ exports.AutomationRunDeliveryUioToJSON = AutomationRunDeliveryUioToJSON;
21
+ exports.AutomationRunDeliveryUioToJSONTyped = AutomationRunDeliveryUioToJSONTyped;
22
+ const ExternalEventStatusUio_1 = require("./ExternalEventStatusUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.AutomationRunDeliveryUioKindEnum = {
27
+ GitlabReply: 'gitlab_reply',
28
+ Callback: 'callback',
29
+ None: 'none'
30
+ };
31
+ /**
32
+ * Check if a given object implements the AutomationRunDeliveryUio interface.
33
+ */
34
+ function instanceOfAutomationRunDeliveryUio(value) {
35
+ if (!('kind' in value) || value['kind'] === undefined)
36
+ return false;
37
+ if (!('eventStatus' in value) || value['eventStatus'] === undefined)
38
+ return false;
39
+ if (!('url' in value) || value['url'] === undefined)
40
+ return false;
41
+ if (!('error' in value) || value['error'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function AutomationRunDeliveryUioFromJSON(json) {
46
+ return AutomationRunDeliveryUioFromJSONTyped(json, false);
47
+ }
48
+ function AutomationRunDeliveryUioFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'kind': json['kind'],
54
+ 'eventStatus': (0, ExternalEventStatusUio_1.ExternalEventStatusUioFromJSON)(json['eventStatus']),
55
+ 'url': json['url'],
56
+ 'error': json['error'],
57
+ };
58
+ }
59
+ function AutomationRunDeliveryUioToJSON(json) {
60
+ return AutomationRunDeliveryUioToJSONTyped(json, false);
61
+ }
62
+ function AutomationRunDeliveryUioToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'kind': value['kind'],
68
+ 'eventStatus': (0, ExternalEventStatusUio_1.ExternalEventStatusUioToJSON)(value['eventStatus']),
69
+ 'url': value['url'],
70
+ 'error': value['error'],
71
+ };
72
+ }
@@ -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 { AutomationRunUio } from './AutomationRunUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AutomationRunListUio
17
+ */
18
+ export interface AutomationRunListUio {
19
+ /**
20
+ *
21
+ * @type {Array<AutomationRunUio>}
22
+ * @memberof AutomationRunListUio
23
+ */
24
+ runs: Array<AutomationRunUio>;
25
+ /**
26
+ * Pass as `before` to get the next page; null on the last one.
27
+ * @type {Date}
28
+ * @memberof AutomationRunListUio
29
+ */
30
+ nextBefore: Date | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AutomationRunListUio interface.
34
+ */
35
+ export declare function instanceOfAutomationRunListUio(value: object): value is AutomationRunListUio;
36
+ export declare function AutomationRunListUioFromJSON(json: any): AutomationRunListUio;
37
+ export declare function AutomationRunListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunListUio;
38
+ export declare function AutomationRunListUioToJSON(json: any): AutomationRunListUio;
39
+ export declare function AutomationRunListUioToJSONTyped(value?: AutomationRunListUio | null, ignoreDiscriminator?: boolean): any;