@breign/client 1.0.176 → 1.0.177

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.
Files changed (62) hide show
  1. package/dist/apis/IntegrationsApi.d.ts +174 -0
  2. package/dist/apis/IntegrationsApi.js +445 -0
  3. package/dist/apis/ScheduledTasksApi.d.ts +14 -1
  4. package/dist/apis/ScheduledTasksApi.js +33 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/ExternalEventRoutingUio.d.ts +53 -0
  8. package/dist/models/ExternalEventRoutingUio.js +67 -0
  9. package/dist/models/ExternalEventStatusUio.d.ts +33 -0
  10. package/dist/models/ExternalEventStatusUio.js +59 -0
  11. package/dist/models/ExternalEventUio.d.ts +135 -0
  12. package/dist/models/ExternalEventUio.js +123 -0
  13. package/dist/models/GitlabAccessLevelUio.d.ts +28 -0
  14. package/dist/models/GitlabAccessLevelUio.js +54 -0
  15. package/dist/models/GitlabBotAccountCreateUio.d.ts +50 -0
  16. package/dist/models/GitlabBotAccountCreateUio.js +58 -0
  17. package/dist/models/GitlabBotAccountSummaryUio.d.ts +77 -0
  18. package/dist/models/GitlabBotAccountSummaryUio.js +83 -0
  19. package/dist/models/GitlabBotAccountUio.d.ts +125 -0
  20. package/dist/models/GitlabBotAccountUio.js +115 -0
  21. package/dist/models/GitlabBotAccountUpdateUio.d.ts +64 -0
  22. package/dist/models/GitlabBotAccountUpdateUio.js +64 -0
  23. package/dist/models/GitlabConnectionTestResultUio.d.ts +50 -0
  24. package/dist/models/GitlabConnectionTestResultUio.js +62 -0
  25. package/dist/models/GitlabIntegrationCreateUio.d.ts +45 -0
  26. package/dist/models/GitlabIntegrationCreateUio.js +57 -0
  27. package/dist/models/GitlabIntegrationDetailUio.d.ts +120 -0
  28. package/dist/models/GitlabIntegrationDetailUio.js +112 -0
  29. package/dist/models/GitlabIntegrationUio.d.ts +107 -0
  30. package/dist/models/GitlabIntegrationUio.js +103 -0
  31. package/dist/models/GitlabIntegrationUpdateUio.d.ts +65 -0
  32. package/dist/models/GitlabIntegrationUpdateUio.js +65 -0
  33. package/dist/models/GitlabRoutingTestResultAgentUio.d.ts +38 -0
  34. package/dist/models/GitlabRoutingTestResultAgentUio.js +54 -0
  35. package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.d.ts +38 -0
  36. package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.js +54 -0
  37. package/dist/models/GitlabRoutingTestResultBotAccountUio.d.ts +38 -0
  38. package/dist/models/GitlabRoutingTestResultBotAccountUio.js +54 -0
  39. package/dist/models/GitlabRoutingTestResultRunAsUserUio.d.ts +38 -0
  40. package/dist/models/GitlabRoutingTestResultRunAsUserUio.js +54 -0
  41. package/dist/models/GitlabRoutingTestResultUio.d.ts +77 -0
  42. package/dist/models/GitlabRoutingTestResultUio.js +85 -0
  43. package/dist/models/GitlabRoutingTestUio.d.ts +32 -0
  44. package/dist/models/GitlabRoutingTestUio.js +50 -0
  45. package/dist/models/ScheduledTaskCreateUio.d.ts +9 -2
  46. package/dist/models/ScheduledTaskCreateUio.js +4 -3
  47. package/dist/models/ScheduledTaskRunTriggerAuthorUio.d.ts +38 -0
  48. package/dist/models/ScheduledTaskRunTriggerAuthorUio.js +54 -0
  49. package/dist/models/ScheduledTaskRunTriggerUio.d.ts +142 -0
  50. package/dist/models/ScheduledTaskRunTriggerUio.js +129 -0
  51. package/dist/models/ScheduledTaskRunUio.d.ts +20 -0
  52. package/dist/models/ScheduledTaskRunUio.js +12 -1
  53. package/dist/models/ScheduledTaskUio.d.ts +9 -2
  54. package/dist/models/ScheduledTaskUio.js +3 -0
  55. package/dist/models/TaskTriggerReplyUio.d.ts +38 -0
  56. package/dist/models/TaskTriggerReplyUio.js +54 -0
  57. package/dist/models/TaskTriggerUio.d.ts +88 -0
  58. package/dist/models/TaskTriggerUio.js +84 -0
  59. package/dist/models/index.d.ts +23 -0
  60. package/dist/models/index.js +23 -0
  61. package/dist/openapi.json +1272 -34
  62. package/package.json +1 -1
@@ -177,6 +177,39 @@ class ScheduledTasksApi extends runtime.BaseAPI {
177
177
  const response = await this.getScheduledTaskRunRaw({ agentId: agentId, taskId: taskId, runId: runId }, initOverrides);
178
178
  return await response.value();
179
179
  }
180
+ /**
181
+ * The external event that triggered a run (« Déclenché par »)
182
+ */
183
+ async getScheduledTaskRunTriggerRaw(requestParameters, initOverrides) {
184
+ if (requestParameters['agentId'] == null) {
185
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getScheduledTaskRunTrigger().');
186
+ }
187
+ if (requestParameters['taskId'] == null) {
188
+ throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling getScheduledTaskRunTrigger().');
189
+ }
190
+ if (requestParameters['runId'] == null) {
191
+ throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling getScheduledTaskRunTrigger().');
192
+ }
193
+ const queryParameters = {};
194
+ const headerParameters = {};
195
+ if (this.configuration && this.configuration.apiKey) {
196
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
197
+ }
198
+ const response = await this.request({
199
+ path: `/agents/{agentId}/scheduled-tasks/{taskId}/runs/{runId}/trigger`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))).replace(`{${"runId"}}`, encodeURIComponent(String(requestParameters['runId']))),
200
+ method: 'GET',
201
+ headers: headerParameters,
202
+ query: queryParameters,
203
+ }, initOverrides);
204
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScheduledTaskRunTriggerUioFromJSON)(jsonValue));
205
+ }
206
+ /**
207
+ * The external event that triggered a run (« Déclenché par »)
208
+ */
209
+ async getScheduledTaskRunTrigger(agentId, taskId, runId, initOverrides) {
210
+ const response = await this.getScheduledTaskRunTriggerRaw({ agentId: agentId, taskId: taskId, runId: runId }, initOverrides);
211
+ return await response.value();
212
+ }
180
213
  /**
181
214
  * List all runs for an agent\'s scheduled tasks within a date range
182
215
  */
@@ -15,6 +15,7 @@ export * from './GeneralApi';
15
15
  export * from './GuardiansApi';
16
16
  export * from './InboxApi';
17
17
  export * from './InstancesApi';
18
+ export * from './IntegrationsApi';
18
19
  export * from './KnowledgeApi';
19
20
  export * from './LibraryAgentsApi';
20
21
  export * from './ManifestsApi';
@@ -33,6 +33,7 @@ __exportStar(require("./GeneralApi"), exports);
33
33
  __exportStar(require("./GuardiansApi"), exports);
34
34
  __exportStar(require("./InboxApi"), exports);
35
35
  __exportStar(require("./InstancesApi"), exports);
36
+ __exportStar(require("./IntegrationsApi"), exports);
36
37
  __exportStar(require("./KnowledgeApi"), exports);
37
38
  __exportStar(require("./LibraryAgentsApi"), exports);
38
39
  __exportStar(require("./ManifestsApi"), exports);
@@ -0,0 +1,53 @@
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 ExternalEventRoutingUio
16
+ */
17
+ export interface ExternalEventRoutingUio {
18
+ /**
19
+ * named — the first word was a callable agent; default — the whole text went to the default agent.
20
+ * @type {string}
21
+ * @memberof ExternalEventRoutingUio
22
+ */
23
+ mode: ExternalEventRoutingUioModeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExternalEventRoutingUio
28
+ */
29
+ agentName: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExternalEventRoutingUio
34
+ */
35
+ instruction: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ExternalEventRoutingUioModeEnum: {
41
+ readonly Named: "named";
42
+ readonly Default: "default";
43
+ readonly Help: "help";
44
+ };
45
+ export type ExternalEventRoutingUioModeEnum = typeof ExternalEventRoutingUioModeEnum[keyof typeof ExternalEventRoutingUioModeEnum];
46
+ /**
47
+ * Check if a given object implements the ExternalEventRoutingUio interface.
48
+ */
49
+ export declare function instanceOfExternalEventRoutingUio(value: object): value is ExternalEventRoutingUio;
50
+ export declare function ExternalEventRoutingUioFromJSON(json: any): ExternalEventRoutingUio;
51
+ export declare function ExternalEventRoutingUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalEventRoutingUio;
52
+ export declare function ExternalEventRoutingUioToJSON(json: any): ExternalEventRoutingUio;
53
+ export declare function ExternalEventRoutingUioToJSONTyped(value?: ExternalEventRoutingUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.ExternalEventRoutingUioModeEnum = void 0;
17
+ exports.instanceOfExternalEventRoutingUio = instanceOfExternalEventRoutingUio;
18
+ exports.ExternalEventRoutingUioFromJSON = ExternalEventRoutingUioFromJSON;
19
+ exports.ExternalEventRoutingUioFromJSONTyped = ExternalEventRoutingUioFromJSONTyped;
20
+ exports.ExternalEventRoutingUioToJSON = ExternalEventRoutingUioToJSON;
21
+ exports.ExternalEventRoutingUioToJSONTyped = ExternalEventRoutingUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ExternalEventRoutingUioModeEnum = {
26
+ Named: 'named',
27
+ Default: 'default',
28
+ Help: 'help'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ExternalEventRoutingUio interface.
32
+ */
33
+ function instanceOfExternalEventRoutingUio(value) {
34
+ if (!('mode' in value) || value['mode'] === undefined)
35
+ return false;
36
+ if (!('agentName' in value) || value['agentName'] === undefined)
37
+ return false;
38
+ if (!('instruction' in value) || value['instruction'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function ExternalEventRoutingUioFromJSON(json) {
43
+ return ExternalEventRoutingUioFromJSONTyped(json, false);
44
+ }
45
+ function ExternalEventRoutingUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'mode': json['mode'],
51
+ 'agentName': json['agentName'],
52
+ 'instruction': json['instruction'],
53
+ };
54
+ }
55
+ function ExternalEventRoutingUioToJSON(json) {
56
+ return ExternalEventRoutingUioToJSONTyped(json, false);
57
+ }
58
+ function ExternalEventRoutingUioToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'mode': value['mode'],
64
+ 'agentName': value['agentName'],
65
+ 'instruction': value['instruction'],
66
+ };
67
+ }
@@ -0,0 +1,33 @@
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 ExternalEventStatusUio: {
17
+ readonly Received: "received";
18
+ readonly Queued: "queued";
19
+ readonly Running: "running";
20
+ readonly Replying: "replying";
21
+ readonly Done: "done";
22
+ readonly Ignored: "ignored";
23
+ readonly NoAutomation: "no_automation";
24
+ readonly Expired: "expired";
25
+ readonly Dead: "dead";
26
+ readonly DroppedOverload: "dropped_overload";
27
+ };
28
+ export type ExternalEventStatusUio = typeof ExternalEventStatusUio[keyof typeof ExternalEventStatusUio];
29
+ export declare function instanceOfExternalEventStatusUio(value: any): boolean;
30
+ export declare function ExternalEventStatusUioFromJSON(json: any): ExternalEventStatusUio;
31
+ export declare function ExternalEventStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalEventStatusUio;
32
+ export declare function ExternalEventStatusUioToJSON(value?: ExternalEventStatusUio | null): any;
33
+ export declare function ExternalEventStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): ExternalEventStatusUio;
@@ -0,0 +1,59 @@
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.ExternalEventStatusUio = void 0;
17
+ exports.instanceOfExternalEventStatusUio = instanceOfExternalEventStatusUio;
18
+ exports.ExternalEventStatusUioFromJSON = ExternalEventStatusUioFromJSON;
19
+ exports.ExternalEventStatusUioFromJSONTyped = ExternalEventStatusUioFromJSONTyped;
20
+ exports.ExternalEventStatusUioToJSON = ExternalEventStatusUioToJSON;
21
+ exports.ExternalEventStatusUioToJSONTyped = ExternalEventStatusUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ExternalEventStatusUio = {
27
+ Received: 'received',
28
+ Queued: 'queued',
29
+ Running: 'running',
30
+ Replying: 'replying',
31
+ Done: 'done',
32
+ Ignored: 'ignored',
33
+ NoAutomation: 'no_automation',
34
+ Expired: 'expired',
35
+ Dead: 'dead',
36
+ DroppedOverload: 'dropped_overload'
37
+ };
38
+ function instanceOfExternalEventStatusUio(value) {
39
+ for (const key in exports.ExternalEventStatusUio) {
40
+ if (Object.prototype.hasOwnProperty.call(exports.ExternalEventStatusUio, key)) {
41
+ if (exports.ExternalEventStatusUio[key] === value) {
42
+ return true;
43
+ }
44
+ }
45
+ }
46
+ return false;
47
+ }
48
+ function ExternalEventStatusUioFromJSON(json) {
49
+ return ExternalEventStatusUioFromJSONTyped(json, false);
50
+ }
51
+ function ExternalEventStatusUioFromJSONTyped(json, ignoreDiscriminator) {
52
+ return json;
53
+ }
54
+ function ExternalEventStatusUioToJSON(value) {
55
+ return value;
56
+ }
57
+ function ExternalEventStatusUioToJSONTyped(value, ignoreDiscriminator) {
58
+ return value;
59
+ }
@@ -0,0 +1,135 @@
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 { ExternalEventRoutingUio } from './ExternalEventRoutingUio';
13
+ import type { ScheduledTaskRunTriggerAuthorUio } from './ScheduledTaskRunTriggerAuthorUio';
14
+ import type { ExternalEventStatusUio } from './ExternalEventStatusUio';
15
+ /**
16
+ * A mention received from GitLab and its way through the queue.
17
+ * @export
18
+ * @interface ExternalEventUio
19
+ */
20
+ export interface ExternalEventUio {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof ExternalEventUio
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {ExternalEventStatusUio}
30
+ * @memberof ExternalEventUio
31
+ */
32
+ status: ExternalEventStatusUio;
33
+ /**
34
+ *
35
+ * @type {Date}
36
+ * @memberof ExternalEventUio
37
+ */
38
+ receivedAt: Date;
39
+ /**
40
+ * groupe/projet!142, groupe/projet#88…
41
+ * @type {string}
42
+ * @memberof ExternalEventUio
43
+ */
44
+ ref: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof ExternalEventUio
49
+ */
50
+ targetType: ExternalEventUioTargetTypeEnum;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof ExternalEventUio
55
+ */
56
+ targetTitle: string | null;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof ExternalEventUio
61
+ */
62
+ url: string | null;
63
+ /**
64
+ *
65
+ * @type {ScheduledTaskRunTriggerAuthorUio}
66
+ * @memberof ExternalEventUio
67
+ */
68
+ author: ScheduledTaskRunTriggerAuthorUio;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof ExternalEventUio
73
+ */
74
+ botAccountId: string | null;
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof ExternalEventUio
79
+ */
80
+ agentId: string | null;
81
+ /**
82
+ *
83
+ * @type {string}
84
+ * @memberof ExternalEventUio
85
+ */
86
+ agentName: string | null;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof ExternalEventUio
91
+ */
92
+ taskId: string | null;
93
+ /**
94
+ *
95
+ * @type {string}
96
+ * @memberof ExternalEventUio
97
+ */
98
+ runId: string | null;
99
+ /**
100
+ *
101
+ * @type {ExternalEventRoutingUio}
102
+ * @memberof ExternalEventUio
103
+ */
104
+ routing: ExternalEventRoutingUio | null;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof ExternalEventUio
109
+ */
110
+ lastError: string | null;
111
+ /**
112
+ *
113
+ * @type {string}
114
+ * @memberof ExternalEventUio
115
+ */
116
+ replyUrl: string | null;
117
+ }
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const ExternalEventUioTargetTypeEnum: {
122
+ readonly MergeRequest: "merge_request";
123
+ readonly Issue: "issue";
124
+ readonly WorkItem: "work_item";
125
+ readonly Commit: "commit";
126
+ };
127
+ export type ExternalEventUioTargetTypeEnum = typeof ExternalEventUioTargetTypeEnum[keyof typeof ExternalEventUioTargetTypeEnum];
128
+ /**
129
+ * Check if a given object implements the ExternalEventUio interface.
130
+ */
131
+ export declare function instanceOfExternalEventUio(value: object): value is ExternalEventUio;
132
+ export declare function ExternalEventUioFromJSON(json: any): ExternalEventUio;
133
+ export declare function ExternalEventUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalEventUio;
134
+ export declare function ExternalEventUioToJSON(json: any): ExternalEventUio;
135
+ export declare function ExternalEventUioToJSONTyped(value?: ExternalEventUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,123 @@
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.ExternalEventUioTargetTypeEnum = void 0;
17
+ exports.instanceOfExternalEventUio = instanceOfExternalEventUio;
18
+ exports.ExternalEventUioFromJSON = ExternalEventUioFromJSON;
19
+ exports.ExternalEventUioFromJSONTyped = ExternalEventUioFromJSONTyped;
20
+ exports.ExternalEventUioToJSON = ExternalEventUioToJSON;
21
+ exports.ExternalEventUioToJSONTyped = ExternalEventUioToJSONTyped;
22
+ const ExternalEventRoutingUio_1 = require("./ExternalEventRoutingUio");
23
+ const ScheduledTaskRunTriggerAuthorUio_1 = require("./ScheduledTaskRunTriggerAuthorUio");
24
+ const ExternalEventStatusUio_1 = require("./ExternalEventStatusUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.ExternalEventUioTargetTypeEnum = {
29
+ MergeRequest: 'merge_request',
30
+ Issue: 'issue',
31
+ WorkItem: 'work_item',
32
+ Commit: 'commit'
33
+ };
34
+ /**
35
+ * Check if a given object implements the ExternalEventUio interface.
36
+ */
37
+ function instanceOfExternalEventUio(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('status' in value) || value['status'] === undefined)
41
+ return false;
42
+ if (!('receivedAt' in value) || value['receivedAt'] === undefined)
43
+ return false;
44
+ if (!('ref' in value) || value['ref'] === undefined)
45
+ return false;
46
+ if (!('targetType' in value) || value['targetType'] === undefined)
47
+ return false;
48
+ if (!('targetTitle' in value) || value['targetTitle'] === undefined)
49
+ return false;
50
+ if (!('url' in value) || value['url'] === undefined)
51
+ return false;
52
+ if (!('author' in value) || value['author'] === undefined)
53
+ return false;
54
+ if (!('botAccountId' in value) || value['botAccountId'] === undefined)
55
+ return false;
56
+ if (!('agentId' in value) || value['agentId'] === undefined)
57
+ return false;
58
+ if (!('agentName' in value) || value['agentName'] === undefined)
59
+ return false;
60
+ if (!('taskId' in value) || value['taskId'] === undefined)
61
+ return false;
62
+ if (!('runId' in value) || value['runId'] === undefined)
63
+ return false;
64
+ if (!('routing' in value) || value['routing'] === undefined)
65
+ return false;
66
+ if (!('lastError' in value) || value['lastError'] === undefined)
67
+ return false;
68
+ if (!('replyUrl' in value) || value['replyUrl'] === undefined)
69
+ return false;
70
+ return true;
71
+ }
72
+ function ExternalEventUioFromJSON(json) {
73
+ return ExternalEventUioFromJSONTyped(json, false);
74
+ }
75
+ function ExternalEventUioFromJSONTyped(json, ignoreDiscriminator) {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+ 'id': json['id'],
81
+ 'status': (0, ExternalEventStatusUio_1.ExternalEventStatusUioFromJSON)(json['status']),
82
+ 'receivedAt': (new Date(json['receivedAt'])),
83
+ 'ref': json['ref'],
84
+ 'targetType': json['targetType'],
85
+ 'targetTitle': json['targetTitle'],
86
+ 'url': json['url'],
87
+ 'author': (0, ScheduledTaskRunTriggerAuthorUio_1.ScheduledTaskRunTriggerAuthorUioFromJSON)(json['author']),
88
+ 'botAccountId': json['botAccountId'],
89
+ 'agentId': json['agentId'],
90
+ 'agentName': json['agentName'],
91
+ 'taskId': json['taskId'],
92
+ 'runId': json['runId'],
93
+ 'routing': (0, ExternalEventRoutingUio_1.ExternalEventRoutingUioFromJSON)(json['routing']),
94
+ 'lastError': json['lastError'],
95
+ 'replyUrl': json['replyUrl'],
96
+ };
97
+ }
98
+ function ExternalEventUioToJSON(json) {
99
+ return ExternalEventUioToJSONTyped(json, false);
100
+ }
101
+ function ExternalEventUioToJSONTyped(value, ignoreDiscriminator = false) {
102
+ if (value == null) {
103
+ return value;
104
+ }
105
+ return {
106
+ 'id': value['id'],
107
+ 'status': (0, ExternalEventStatusUio_1.ExternalEventStatusUioToJSON)(value['status']),
108
+ 'receivedAt': ((value['receivedAt']).toISOString()),
109
+ 'ref': value['ref'],
110
+ 'targetType': value['targetType'],
111
+ 'targetTitle': value['targetTitle'],
112
+ 'url': value['url'],
113
+ 'author': (0, ScheduledTaskRunTriggerAuthorUio_1.ScheduledTaskRunTriggerAuthorUioToJSON)(value['author']),
114
+ 'botAccountId': value['botAccountId'],
115
+ 'agentId': value['agentId'],
116
+ 'agentName': value['agentName'],
117
+ 'taskId': value['taskId'],
118
+ 'runId': value['runId'],
119
+ 'routing': (0, ExternalEventRoutingUio_1.ExternalEventRoutingUioToJSON)(value['routing']),
120
+ 'lastError': value['lastError'],
121
+ 'replyUrl': value['replyUrl'],
122
+ };
123
+ }
@@ -0,0 +1,28 @@
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
+ * GitLab access level — Guest (10), Reporter (20), Developer (30), Maintainer (40), Owner (50).
14
+ * @export
15
+ */
16
+ export declare const GitlabAccessLevelUio: {
17
+ readonly NUMBER_10: 10;
18
+ readonly NUMBER_20: 20;
19
+ readonly NUMBER_30: 30;
20
+ readonly NUMBER_40: 40;
21
+ readonly NUMBER_50: 50;
22
+ };
23
+ export type GitlabAccessLevelUio = typeof GitlabAccessLevelUio[keyof typeof GitlabAccessLevelUio];
24
+ export declare function instanceOfGitlabAccessLevelUio(value: any): boolean;
25
+ export declare function GitlabAccessLevelUioFromJSON(json: any): GitlabAccessLevelUio;
26
+ export declare function GitlabAccessLevelUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabAccessLevelUio;
27
+ export declare function GitlabAccessLevelUioToJSON(value?: GitlabAccessLevelUio | null): any;
28
+ export declare function GitlabAccessLevelUioToJSONTyped(value: any, ignoreDiscriminator: boolean): GitlabAccessLevelUio;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GitlabAccessLevelUio = void 0;
17
+ exports.instanceOfGitlabAccessLevelUio = instanceOfGitlabAccessLevelUio;
18
+ exports.GitlabAccessLevelUioFromJSON = GitlabAccessLevelUioFromJSON;
19
+ exports.GitlabAccessLevelUioFromJSONTyped = GitlabAccessLevelUioFromJSONTyped;
20
+ exports.GitlabAccessLevelUioToJSON = GitlabAccessLevelUioToJSON;
21
+ exports.GitlabAccessLevelUioToJSONTyped = GitlabAccessLevelUioToJSONTyped;
22
+ /**
23
+ * GitLab access level — Guest (10), Reporter (20), Developer (30), Maintainer (40), Owner (50).
24
+ * @export
25
+ */
26
+ exports.GitlabAccessLevelUio = {
27
+ NUMBER_10: 10,
28
+ NUMBER_20: 20,
29
+ NUMBER_30: 30,
30
+ NUMBER_40: 40,
31
+ NUMBER_50: 50
32
+ };
33
+ function instanceOfGitlabAccessLevelUio(value) {
34
+ for (const key in exports.GitlabAccessLevelUio) {
35
+ if (Object.prototype.hasOwnProperty.call(exports.GitlabAccessLevelUio, key)) {
36
+ if (exports.GitlabAccessLevelUio[key] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ function GitlabAccessLevelUioFromJSON(json) {
44
+ return GitlabAccessLevelUioFromJSONTyped(json, false);
45
+ }
46
+ function GitlabAccessLevelUioFromJSONTyped(json, ignoreDiscriminator) {
47
+ return json;
48
+ }
49
+ function GitlabAccessLevelUioToJSON(value) {
50
+ return value;
51
+ }
52
+ function GitlabAccessLevelUioToJSONTyped(value, ignoreDiscriminator) {
53
+ return value;
54
+ }
@@ -0,0 +1,50 @@
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 GitlabBotAccountCreateUio
16
+ */
17
+ export interface GitlabBotAccountCreateUio {
18
+ /**
19
+ * A personal access token of the bot account (scope `api`). Checked against GitLab.
20
+ * @type {string}
21
+ * @memberof GitlabBotAccountCreateUio
22
+ */
23
+ token: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GitlabBotAccountCreateUio
28
+ */
29
+ defaultAgentId?: string | null;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof GitlabBotAccountCreateUio
34
+ */
35
+ callableAgentIds?: Array<string> | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GitlabBotAccountCreateUio
40
+ */
41
+ runAsUserId: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the GitlabBotAccountCreateUio interface.
45
+ */
46
+ export declare function instanceOfGitlabBotAccountCreateUio(value: object): value is GitlabBotAccountCreateUio;
47
+ export declare function GitlabBotAccountCreateUioFromJSON(json: any): GitlabBotAccountCreateUio;
48
+ export declare function GitlabBotAccountCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabBotAccountCreateUio;
49
+ export declare function GitlabBotAccountCreateUioToJSON(json: any): GitlabBotAccountCreateUio;
50
+ export declare function GitlabBotAccountCreateUioToJSONTyped(value?: GitlabBotAccountCreateUio | null, ignoreDiscriminator?: boolean): any;