@breign/client 1.0.175 → 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 (76) hide show
  1. package/dist/apis/AuthApi.d.ts +60 -1
  2. package/dist/apis/AuthApi.js +130 -1
  3. package/dist/apis/IntegrationsApi.d.ts +174 -0
  4. package/dist/apis/IntegrationsApi.js +445 -0
  5. package/dist/apis/ScheduledTasksApi.d.ts +14 -1
  6. package/dist/apis/ScheduledTasksApi.js +33 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/ApplicationAuthorizationErrorUio.d.ts +32 -0
  10. package/dist/models/ApplicationAuthorizationErrorUio.js +50 -0
  11. package/dist/models/ApplicationAuthorizationRequestUio.d.ts +63 -0
  12. package/dist/models/ApplicationAuthorizationRequestUio.js +71 -0
  13. package/dist/models/ApplicationAuthorizationResponseUio.d.ts +38 -0
  14. package/dist/models/ApplicationAuthorizationResponseUio.js +54 -0
  15. package/dist/models/ApplicationTokenErrorUio.d.ts +38 -0
  16. package/dist/models/ApplicationTokenErrorUio.js +52 -0
  17. package/dist/models/ApplicationTokenRequestUio.d.ts +63 -0
  18. package/dist/models/ApplicationTokenRequestUio.js +73 -0
  19. package/dist/models/ApplicationTokenResponseUio.d.ts +63 -0
  20. package/dist/models/ApplicationTokenResponseUio.js +71 -0
  21. package/dist/models/ExternalEventRoutingUio.d.ts +53 -0
  22. package/dist/models/ExternalEventRoutingUio.js +67 -0
  23. package/dist/models/ExternalEventStatusUio.d.ts +33 -0
  24. package/dist/models/ExternalEventStatusUio.js +59 -0
  25. package/dist/models/ExternalEventUio.d.ts +135 -0
  26. package/dist/models/ExternalEventUio.js +123 -0
  27. package/dist/models/GitlabAccessLevelUio.d.ts +28 -0
  28. package/dist/models/GitlabAccessLevelUio.js +54 -0
  29. package/dist/models/GitlabBotAccountCreateUio.d.ts +50 -0
  30. package/dist/models/GitlabBotAccountCreateUio.js +58 -0
  31. package/dist/models/GitlabBotAccountSummaryUio.d.ts +77 -0
  32. package/dist/models/GitlabBotAccountSummaryUio.js +83 -0
  33. package/dist/models/GitlabBotAccountUio.d.ts +125 -0
  34. package/dist/models/GitlabBotAccountUio.js +115 -0
  35. package/dist/models/GitlabBotAccountUpdateUio.d.ts +64 -0
  36. package/dist/models/GitlabBotAccountUpdateUio.js +64 -0
  37. package/dist/models/GitlabConnectionTestResultUio.d.ts +50 -0
  38. package/dist/models/GitlabConnectionTestResultUio.js +62 -0
  39. package/dist/models/GitlabIntegrationCreateUio.d.ts +45 -0
  40. package/dist/models/GitlabIntegrationCreateUio.js +57 -0
  41. package/dist/models/GitlabIntegrationDetailUio.d.ts +120 -0
  42. package/dist/models/GitlabIntegrationDetailUio.js +112 -0
  43. package/dist/models/GitlabIntegrationUio.d.ts +107 -0
  44. package/dist/models/GitlabIntegrationUio.js +103 -0
  45. package/dist/models/GitlabIntegrationUpdateUio.d.ts +65 -0
  46. package/dist/models/GitlabIntegrationUpdateUio.js +65 -0
  47. package/dist/models/GitlabRoutingTestResultAgentUio.d.ts +38 -0
  48. package/dist/models/GitlabRoutingTestResultAgentUio.js +54 -0
  49. package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.d.ts +38 -0
  50. package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.js +54 -0
  51. package/dist/models/GitlabRoutingTestResultBotAccountUio.d.ts +38 -0
  52. package/dist/models/GitlabRoutingTestResultBotAccountUio.js +54 -0
  53. package/dist/models/GitlabRoutingTestResultRunAsUserUio.d.ts +38 -0
  54. package/dist/models/GitlabRoutingTestResultRunAsUserUio.js +54 -0
  55. package/dist/models/GitlabRoutingTestResultUio.d.ts +77 -0
  56. package/dist/models/GitlabRoutingTestResultUio.js +85 -0
  57. package/dist/models/GitlabRoutingTestUio.d.ts +32 -0
  58. package/dist/models/GitlabRoutingTestUio.js +50 -0
  59. package/dist/models/ScheduledTaskCreateUio.d.ts +9 -2
  60. package/dist/models/ScheduledTaskCreateUio.js +4 -3
  61. package/dist/models/ScheduledTaskRunTriggerAuthorUio.d.ts +38 -0
  62. package/dist/models/ScheduledTaskRunTriggerAuthorUio.js +54 -0
  63. package/dist/models/ScheduledTaskRunTriggerUio.d.ts +142 -0
  64. package/dist/models/ScheduledTaskRunTriggerUio.js +129 -0
  65. package/dist/models/ScheduledTaskRunUio.d.ts +20 -0
  66. package/dist/models/ScheduledTaskRunUio.js +12 -1
  67. package/dist/models/ScheduledTaskUio.d.ts +9 -2
  68. package/dist/models/ScheduledTaskUio.js +3 -0
  69. package/dist/models/TaskTriggerReplyUio.d.ts +38 -0
  70. package/dist/models/TaskTriggerReplyUio.js +54 -0
  71. package/dist/models/TaskTriggerUio.d.ts +88 -0
  72. package/dist/models/TaskTriggerUio.js +84 -0
  73. package/dist/models/index.d.ts +29 -0
  74. package/dist/models/index.js +29 -0
  75. package/dist/openapi.json +1558 -34
  76. package/package.json +1 -1
@@ -0,0 +1,120 @@
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 { GitlabBotAccountUio } from './GitlabBotAccountUio';
13
+ import type { GitlabAccessLevelUio } from './GitlabAccessLevelUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GitlabIntegrationDetailUio
18
+ */
19
+ export interface GitlabIntegrationDetailUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof GitlabIntegrationDetailUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof GitlabIntegrationDetailUio
30
+ */
31
+ organizationId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof GitlabIntegrationDetailUio
36
+ */
37
+ name: string;
38
+ /**
39
+ * The instance URL, without a trailing slash.
40
+ * @type {string}
41
+ * @memberof GitlabIntegrationDetailUio
42
+ */
43
+ baseUrl: string;
44
+ /**
45
+ *
46
+ * @type {GitlabAccessLevelUio}
47
+ * @memberof GitlabIntegrationDetailUio
48
+ */
49
+ minAccessLevel: GitlabAccessLevelUio;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof GitlabIntegrationDetailUio
54
+ */
55
+ status: GitlabIntegrationDetailUioStatusEnum;
56
+ /**
57
+ * The URL to declare in GitLab, Settings › Webhooks.
58
+ * @type {string}
59
+ * @memberof GitlabIntegrationDetailUio
60
+ */
61
+ webhookUrl: string;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof GitlabIntegrationDetailUio
66
+ */
67
+ lastEventAt: Date | null;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof GitlabIntegrationDetailUio
72
+ */
73
+ botAccountCount: number;
74
+ /**
75
+ * Mentions answered over the last 7 days.
76
+ * @type {number}
77
+ * @memberof GitlabIntegrationDetailUio
78
+ */
79
+ handledLast7Days: number;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof GitlabIntegrationDetailUio
84
+ */
85
+ createdAt: Date;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof GitlabIntegrationDetailUio
90
+ */
91
+ updatedAt: Date;
92
+ /**
93
+ * The webhook "Secret token" to copy into GitLab. Only organization admins read it.
94
+ * @type {string}
95
+ * @memberof GitlabIntegrationDetailUio
96
+ */
97
+ webhookSecret: string;
98
+ /**
99
+ *
100
+ * @type {Array<GitlabBotAccountUio>}
101
+ * @memberof GitlabIntegrationDetailUio
102
+ */
103
+ botAccounts: Array<GitlabBotAccountUio>;
104
+ }
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const GitlabIntegrationDetailUioStatusEnum: {
109
+ readonly Active: "active";
110
+ readonly Disabled: "disabled";
111
+ };
112
+ export type GitlabIntegrationDetailUioStatusEnum = typeof GitlabIntegrationDetailUioStatusEnum[keyof typeof GitlabIntegrationDetailUioStatusEnum];
113
+ /**
114
+ * Check if a given object implements the GitlabIntegrationDetailUio interface.
115
+ */
116
+ export declare function instanceOfGitlabIntegrationDetailUio(value: object): value is GitlabIntegrationDetailUio;
117
+ export declare function GitlabIntegrationDetailUioFromJSON(json: any): GitlabIntegrationDetailUio;
118
+ export declare function GitlabIntegrationDetailUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabIntegrationDetailUio;
119
+ export declare function GitlabIntegrationDetailUioToJSON(json: any): GitlabIntegrationDetailUio;
120
+ export declare function GitlabIntegrationDetailUioToJSONTyped(value?: GitlabIntegrationDetailUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,112 @@
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.GitlabIntegrationDetailUioStatusEnum = void 0;
17
+ exports.instanceOfGitlabIntegrationDetailUio = instanceOfGitlabIntegrationDetailUio;
18
+ exports.GitlabIntegrationDetailUioFromJSON = GitlabIntegrationDetailUioFromJSON;
19
+ exports.GitlabIntegrationDetailUioFromJSONTyped = GitlabIntegrationDetailUioFromJSONTyped;
20
+ exports.GitlabIntegrationDetailUioToJSON = GitlabIntegrationDetailUioToJSON;
21
+ exports.GitlabIntegrationDetailUioToJSONTyped = GitlabIntegrationDetailUioToJSONTyped;
22
+ const GitlabBotAccountUio_1 = require("./GitlabBotAccountUio");
23
+ const GitlabAccessLevelUio_1 = require("./GitlabAccessLevelUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.GitlabIntegrationDetailUioStatusEnum = {
28
+ Active: 'active',
29
+ Disabled: 'disabled'
30
+ };
31
+ /**
32
+ * Check if a given object implements the GitlabIntegrationDetailUio interface.
33
+ */
34
+ function instanceOfGitlabIntegrationDetailUio(value) {
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
38
+ return false;
39
+ if (!('name' in value) || value['name'] === undefined)
40
+ return false;
41
+ if (!('baseUrl' in value) || value['baseUrl'] === undefined)
42
+ return false;
43
+ if (!('minAccessLevel' in value) || value['minAccessLevel'] === undefined)
44
+ return false;
45
+ if (!('status' in value) || value['status'] === undefined)
46
+ return false;
47
+ if (!('webhookUrl' in value) || value['webhookUrl'] === undefined)
48
+ return false;
49
+ if (!('lastEventAt' in value) || value['lastEventAt'] === undefined)
50
+ return false;
51
+ if (!('botAccountCount' in value) || value['botAccountCount'] === undefined)
52
+ return false;
53
+ if (!('handledLast7Days' in value) || value['handledLast7Days'] === undefined)
54
+ return false;
55
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
56
+ return false;
57
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
58
+ return false;
59
+ if (!('webhookSecret' in value) || value['webhookSecret'] === undefined)
60
+ return false;
61
+ if (!('botAccounts' in value) || value['botAccounts'] === undefined)
62
+ return false;
63
+ return true;
64
+ }
65
+ function GitlabIntegrationDetailUioFromJSON(json) {
66
+ return GitlabIntegrationDetailUioFromJSONTyped(json, false);
67
+ }
68
+ function GitlabIntegrationDetailUioFromJSONTyped(json, ignoreDiscriminator) {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+ 'id': json['id'],
74
+ 'organizationId': json['organizationId'],
75
+ 'name': json['name'],
76
+ 'baseUrl': json['baseUrl'],
77
+ 'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioFromJSON)(json['minAccessLevel']),
78
+ 'status': json['status'],
79
+ 'webhookUrl': json['webhookUrl'],
80
+ 'lastEventAt': (json['lastEventAt'] == null ? null : new Date(json['lastEventAt'])),
81
+ 'botAccountCount': json['botAccountCount'],
82
+ 'handledLast7Days': json['handledLast7Days'],
83
+ 'createdAt': (new Date(json['createdAt'])),
84
+ 'updatedAt': (new Date(json['updatedAt'])),
85
+ 'webhookSecret': json['webhookSecret'],
86
+ 'botAccounts': (json['botAccounts'].map(GitlabBotAccountUio_1.GitlabBotAccountUioFromJSON)),
87
+ };
88
+ }
89
+ function GitlabIntegrationDetailUioToJSON(json) {
90
+ return GitlabIntegrationDetailUioToJSONTyped(json, false);
91
+ }
92
+ function GitlabIntegrationDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+ return {
97
+ 'id': value['id'],
98
+ 'organizationId': value['organizationId'],
99
+ 'name': value['name'],
100
+ 'baseUrl': value['baseUrl'],
101
+ 'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioToJSON)(value['minAccessLevel']),
102
+ 'status': value['status'],
103
+ 'webhookUrl': value['webhookUrl'],
104
+ 'lastEventAt': (value['lastEventAt'] == null ? null : value['lastEventAt'].toISOString()),
105
+ 'botAccountCount': value['botAccountCount'],
106
+ 'handledLast7Days': value['handledLast7Days'],
107
+ 'createdAt': ((value['createdAt']).toISOString()),
108
+ 'updatedAt': ((value['updatedAt']).toISOString()),
109
+ 'webhookSecret': value['webhookSecret'],
110
+ 'botAccounts': (value['botAccounts'].map(GitlabBotAccountUio_1.GitlabBotAccountUioToJSON)),
111
+ };
112
+ }
@@ -0,0 +1,107 @@
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 { GitlabAccessLevelUio } from './GitlabAccessLevelUio';
13
+ /**
14
+ * A GitLab instance linked to an organization. Its projects send webhooks to `webhookUrl`.
15
+ * @export
16
+ * @interface GitlabIntegrationUio
17
+ */
18
+ export interface GitlabIntegrationUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GitlabIntegrationUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GitlabIntegrationUio
29
+ */
30
+ organizationId: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof GitlabIntegrationUio
35
+ */
36
+ name: string;
37
+ /**
38
+ * The instance URL, without a trailing slash.
39
+ * @type {string}
40
+ * @memberof GitlabIntegrationUio
41
+ */
42
+ baseUrl: string;
43
+ /**
44
+ *
45
+ * @type {GitlabAccessLevelUio}
46
+ * @memberof GitlabIntegrationUio
47
+ */
48
+ minAccessLevel: GitlabAccessLevelUio;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof GitlabIntegrationUio
53
+ */
54
+ status: GitlabIntegrationUioStatusEnum;
55
+ /**
56
+ * The URL to declare in GitLab, Settings › Webhooks.
57
+ * @type {string}
58
+ * @memberof GitlabIntegrationUio
59
+ */
60
+ webhookUrl: string;
61
+ /**
62
+ *
63
+ * @type {Date}
64
+ * @memberof GitlabIntegrationUio
65
+ */
66
+ lastEventAt: Date | null;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof GitlabIntegrationUio
71
+ */
72
+ botAccountCount: number;
73
+ /**
74
+ * Mentions answered over the last 7 days.
75
+ * @type {number}
76
+ * @memberof GitlabIntegrationUio
77
+ */
78
+ handledLast7Days: number;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof GitlabIntegrationUio
83
+ */
84
+ createdAt: Date;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof GitlabIntegrationUio
89
+ */
90
+ updatedAt: Date;
91
+ }
92
+ /**
93
+ * @export
94
+ */
95
+ export declare const GitlabIntegrationUioStatusEnum: {
96
+ readonly Active: "active";
97
+ readonly Disabled: "disabled";
98
+ };
99
+ export type GitlabIntegrationUioStatusEnum = typeof GitlabIntegrationUioStatusEnum[keyof typeof GitlabIntegrationUioStatusEnum];
100
+ /**
101
+ * Check if a given object implements the GitlabIntegrationUio interface.
102
+ */
103
+ export declare function instanceOfGitlabIntegrationUio(value: object): value is GitlabIntegrationUio;
104
+ export declare function GitlabIntegrationUioFromJSON(json: any): GitlabIntegrationUio;
105
+ export declare function GitlabIntegrationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabIntegrationUio;
106
+ export declare function GitlabIntegrationUioToJSON(json: any): GitlabIntegrationUio;
107
+ export declare function GitlabIntegrationUioToJSONTyped(value?: GitlabIntegrationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,103 @@
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.GitlabIntegrationUioStatusEnum = void 0;
17
+ exports.instanceOfGitlabIntegrationUio = instanceOfGitlabIntegrationUio;
18
+ exports.GitlabIntegrationUioFromJSON = GitlabIntegrationUioFromJSON;
19
+ exports.GitlabIntegrationUioFromJSONTyped = GitlabIntegrationUioFromJSONTyped;
20
+ exports.GitlabIntegrationUioToJSON = GitlabIntegrationUioToJSON;
21
+ exports.GitlabIntegrationUioToJSONTyped = GitlabIntegrationUioToJSONTyped;
22
+ const GitlabAccessLevelUio_1 = require("./GitlabAccessLevelUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.GitlabIntegrationUioStatusEnum = {
27
+ Active: 'active',
28
+ Disabled: 'disabled'
29
+ };
30
+ /**
31
+ * Check if a given object implements the GitlabIntegrationUio interface.
32
+ */
33
+ function instanceOfGitlabIntegrationUio(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('baseUrl' in value) || value['baseUrl'] === undefined)
41
+ return false;
42
+ if (!('minAccessLevel' in value) || value['minAccessLevel'] === undefined)
43
+ return false;
44
+ if (!('status' in value) || value['status'] === undefined)
45
+ return false;
46
+ if (!('webhookUrl' in value) || value['webhookUrl'] === undefined)
47
+ return false;
48
+ if (!('lastEventAt' in value) || value['lastEventAt'] === undefined)
49
+ return false;
50
+ if (!('botAccountCount' in value) || value['botAccountCount'] === undefined)
51
+ return false;
52
+ if (!('handledLast7Days' in value) || value['handledLast7Days'] === undefined)
53
+ return false;
54
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
55
+ return false;
56
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
57
+ return false;
58
+ return true;
59
+ }
60
+ function GitlabIntegrationUioFromJSON(json) {
61
+ return GitlabIntegrationUioFromJSONTyped(json, false);
62
+ }
63
+ function GitlabIntegrationUioFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'id': json['id'],
69
+ 'organizationId': json['organizationId'],
70
+ 'name': json['name'],
71
+ 'baseUrl': json['baseUrl'],
72
+ 'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioFromJSON)(json['minAccessLevel']),
73
+ 'status': json['status'],
74
+ 'webhookUrl': json['webhookUrl'],
75
+ 'lastEventAt': (json['lastEventAt'] == null ? null : new Date(json['lastEventAt'])),
76
+ 'botAccountCount': json['botAccountCount'],
77
+ 'handledLast7Days': json['handledLast7Days'],
78
+ 'createdAt': (new Date(json['createdAt'])),
79
+ 'updatedAt': (new Date(json['updatedAt'])),
80
+ };
81
+ }
82
+ function GitlabIntegrationUioToJSON(json) {
83
+ return GitlabIntegrationUioToJSONTyped(json, false);
84
+ }
85
+ function GitlabIntegrationUioToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'id': value['id'],
91
+ 'organizationId': value['organizationId'],
92
+ 'name': value['name'],
93
+ 'baseUrl': value['baseUrl'],
94
+ 'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioToJSON)(value['minAccessLevel']),
95
+ 'status': value['status'],
96
+ 'webhookUrl': value['webhookUrl'],
97
+ 'lastEventAt': (value['lastEventAt'] == null ? null : value['lastEventAt'].toISOString()),
98
+ 'botAccountCount': value['botAccountCount'],
99
+ 'handledLast7Days': value['handledLast7Days'],
100
+ 'createdAt': ((value['createdAt']).toISOString()),
101
+ 'updatedAt': ((value['updatedAt']).toISOString()),
102
+ };
103
+ }
@@ -0,0 +1,65 @@
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 { GitlabAccessLevelUio } from './GitlabAccessLevelUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GitlabIntegrationUpdateUio
17
+ */
18
+ export interface GitlabIntegrationUpdateUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GitlabIntegrationUpdateUio
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GitlabIntegrationUpdateUio
29
+ */
30
+ baseUrl?: string;
31
+ /**
32
+ *
33
+ * @type {GitlabAccessLevelUio}
34
+ * @memberof GitlabIntegrationUpdateUio
35
+ */
36
+ minAccessLevel?: GitlabAccessLevelUio;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GitlabIntegrationUpdateUio
41
+ */
42
+ status?: GitlabIntegrationUpdateUioStatusEnum;
43
+ /**
44
+ * Generate a new webhook secret; GitLab must then be given the new one.
45
+ * @type {boolean}
46
+ * @memberof GitlabIntegrationUpdateUio
47
+ */
48
+ regenerateSecret?: boolean;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const GitlabIntegrationUpdateUioStatusEnum: {
54
+ readonly Active: "active";
55
+ readonly Disabled: "disabled";
56
+ };
57
+ export type GitlabIntegrationUpdateUioStatusEnum = typeof GitlabIntegrationUpdateUioStatusEnum[keyof typeof GitlabIntegrationUpdateUioStatusEnum];
58
+ /**
59
+ * Check if a given object implements the GitlabIntegrationUpdateUio interface.
60
+ */
61
+ export declare function instanceOfGitlabIntegrationUpdateUio(value: object): value is GitlabIntegrationUpdateUio;
62
+ export declare function GitlabIntegrationUpdateUioFromJSON(json: any): GitlabIntegrationUpdateUio;
63
+ export declare function GitlabIntegrationUpdateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabIntegrationUpdateUio;
64
+ export declare function GitlabIntegrationUpdateUioToJSON(json: any): GitlabIntegrationUpdateUio;
65
+ export declare function GitlabIntegrationUpdateUioToJSONTyped(value?: GitlabIntegrationUpdateUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.GitlabIntegrationUpdateUioStatusEnum = void 0;
17
+ exports.instanceOfGitlabIntegrationUpdateUio = instanceOfGitlabIntegrationUpdateUio;
18
+ exports.GitlabIntegrationUpdateUioFromJSON = GitlabIntegrationUpdateUioFromJSON;
19
+ exports.GitlabIntegrationUpdateUioFromJSONTyped = GitlabIntegrationUpdateUioFromJSONTyped;
20
+ exports.GitlabIntegrationUpdateUioToJSON = GitlabIntegrationUpdateUioToJSON;
21
+ exports.GitlabIntegrationUpdateUioToJSONTyped = GitlabIntegrationUpdateUioToJSONTyped;
22
+ const GitlabAccessLevelUio_1 = require("./GitlabAccessLevelUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.GitlabIntegrationUpdateUioStatusEnum = {
27
+ Active: 'active',
28
+ Disabled: 'disabled'
29
+ };
30
+ /**
31
+ * Check if a given object implements the GitlabIntegrationUpdateUio interface.
32
+ */
33
+ function instanceOfGitlabIntegrationUpdateUio(value) {
34
+ return true;
35
+ }
36
+ function GitlabIntegrationUpdateUioFromJSON(json) {
37
+ return GitlabIntegrationUpdateUioFromJSONTyped(json, false);
38
+ }
39
+ function GitlabIntegrationUpdateUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'] == null ? undefined : json['name'],
45
+ 'baseUrl': json['baseUrl'] == null ? undefined : json['baseUrl'],
46
+ 'minAccessLevel': json['minAccessLevel'] == null ? undefined : (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioFromJSON)(json['minAccessLevel']),
47
+ 'status': json['status'] == null ? undefined : json['status'],
48
+ 'regenerateSecret': json['regenerateSecret'] == null ? undefined : json['regenerateSecret'],
49
+ };
50
+ }
51
+ function GitlabIntegrationUpdateUioToJSON(json) {
52
+ return GitlabIntegrationUpdateUioToJSONTyped(json, false);
53
+ }
54
+ function GitlabIntegrationUpdateUioToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'name': value['name'],
60
+ 'baseUrl': value['baseUrl'],
61
+ 'minAccessLevel': (0, GitlabAccessLevelUio_1.GitlabAccessLevelUioToJSON)(value['minAccessLevel']),
62
+ 'status': value['status'],
63
+ 'regenerateSecret': value['regenerateSecret'],
64
+ };
65
+ }
@@ -0,0 +1,38 @@
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 GitlabRoutingTestResultAgentUio
16
+ */
17
+ export interface GitlabRoutingTestResultAgentUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GitlabRoutingTestResultAgentUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GitlabRoutingTestResultAgentUio
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GitlabRoutingTestResultAgentUio interface.
33
+ */
34
+ export declare function instanceOfGitlabRoutingTestResultAgentUio(value: object): value is GitlabRoutingTestResultAgentUio;
35
+ export declare function GitlabRoutingTestResultAgentUioFromJSON(json: any): GitlabRoutingTestResultAgentUio;
36
+ export declare function GitlabRoutingTestResultAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitlabRoutingTestResultAgentUio;
37
+ export declare function GitlabRoutingTestResultAgentUioToJSON(json: any): GitlabRoutingTestResultAgentUio;
38
+ export declare function GitlabRoutingTestResultAgentUioToJSONTyped(value?: GitlabRoutingTestResultAgentUio | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfGitlabRoutingTestResultAgentUio = instanceOfGitlabRoutingTestResultAgentUio;
17
+ exports.GitlabRoutingTestResultAgentUioFromJSON = GitlabRoutingTestResultAgentUioFromJSON;
18
+ exports.GitlabRoutingTestResultAgentUioFromJSONTyped = GitlabRoutingTestResultAgentUioFromJSONTyped;
19
+ exports.GitlabRoutingTestResultAgentUioToJSON = GitlabRoutingTestResultAgentUioToJSON;
20
+ exports.GitlabRoutingTestResultAgentUioToJSONTyped = GitlabRoutingTestResultAgentUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GitlabRoutingTestResultAgentUio interface.
23
+ */
24
+ function instanceOfGitlabRoutingTestResultAgentUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GitlabRoutingTestResultAgentUioFromJSON(json) {
32
+ return GitlabRoutingTestResultAgentUioFromJSONTyped(json, false);
33
+ }
34
+ function GitlabRoutingTestResultAgentUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function GitlabRoutingTestResultAgentUioToJSON(json) {
44
+ return GitlabRoutingTestResultAgentUioToJSONTyped(json, false);
45
+ }
46
+ function GitlabRoutingTestResultAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }