@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
@@ -10,11 +10,26 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AuthCodeConfirmRequestUio, AuthCodeConfirmResponseUio, AuthCodeRequestUio, AuthCodeResponseUio, GetJwks200ResponseUio } from '../models/index';
13
+ import type { ApplicationAuthorizationRequestUio, ApplicationAuthorizationResponseUio, ApplicationTokenRequestUio, ApplicationTokenResponseUio, AuthCodeConfirmRequestUio, AuthCodeConfirmResponseUio, AuthCodeRequestUio, AuthCodeResponseUio, GetJwks200ResponseUio } from '../models/index';
14
+ export interface AuthorizeApplicationRequest {
15
+ responseType: AuthorizeApplicationResponseTypeEnum;
16
+ clientId: string;
17
+ redirectUri: string;
18
+ codeChallenge: string;
19
+ codeChallengeMethod: AuthorizeApplicationCodeChallengeMethodEnum;
20
+ state?: string;
21
+ deviceName?: string;
22
+ }
14
23
  export interface ConfirmAuthCodeRequest {
15
24
  authFlowId: string;
16
25
  authCodeConfirmRequestUio: AuthCodeConfirmRequestUio;
17
26
  }
27
+ export interface CreateApplicationAuthorizationRequest {
28
+ applicationAuthorizationRequestUio: ApplicationAuthorizationRequestUio;
29
+ }
30
+ export interface ExchangeApplicationAuthorizationCodeRequest {
31
+ applicationTokenRequestUio: ApplicationTokenRequestUio;
32
+ }
18
33
  export interface GetAuthCodeRequest {
19
34
  authCodeRequestUio: AuthCodeRequestUio;
20
35
  }
@@ -31,6 +46,16 @@ export interface ToolOauthCallbackRequest {
31
46
  *
32
47
  */
33
48
  export declare class AuthApi extends runtime.BaseAPI {
49
+ /**
50
+ * Entry point of the browser authorization of a desktop application (OAuth2 authorization code with PKCE, loopback redirect per RFC 8252). The request is checked, then the browser is redirected to the consent page of Breign App, which issues the code through `POST /auth/authorizations`.
51
+ * Start an application authorization
52
+ */
53
+ authorizeApplicationRaw(requestParameters: AuthorizeApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
54
+ /**
55
+ * Entry point of the browser authorization of a desktop application (OAuth2 authorization code with PKCE, loopback redirect per RFC 8252). The request is checked, then the browser is redirected to the consent page of Breign App, which issues the code through `POST /auth/authorizations`.
56
+ * Start an application authorization
57
+ */
58
+ authorizeApplication(responseType: AuthorizeApplicationResponseTypeEnum, clientId: string, redirectUri: string, codeChallenge: string, codeChallengeMethod: AuthorizeApplicationCodeChallengeMethodEnum, state?: string, deviceName?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
34
59
  /**
35
60
  * Confirm auth code
36
61
  * Confirm auth code
@@ -41,6 +66,26 @@ export declare class AuthApi extends runtime.BaseAPI {
41
66
  * Confirm auth code
42
67
  */
43
68
  confirmAuthCode(authFlowId: string, authCodeConfirmRequestUio: AuthCodeConfirmRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthCodeConfirmResponseUio>;
69
+ /**
70
+ * Called on behalf of the signed-in user once they consented to the application. Returns a single-use code, valid 5 minutes, bound to the redirect address and the PKCE challenge.
71
+ * Issue an application authorization code
72
+ */
73
+ createApplicationAuthorizationRaw(requestParameters: CreateApplicationAuthorizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationAuthorizationResponseUio>>;
74
+ /**
75
+ * Called on behalf of the signed-in user once they consented to the application. Returns a single-use code, valid 5 minutes, bound to the redirect address and the PKCE challenge.
76
+ * Issue an application authorization code
77
+ */
78
+ createApplicationAuthorization(applicationAuthorizationRequestUio: ApplicationAuthorizationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationAuthorizationResponseUio>;
79
+ /**
80
+ * Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
81
+ * Exchange an application authorization code
82
+ */
83
+ exchangeApplicationAuthorizationCodeRaw(requestParameters: ExchangeApplicationAuthorizationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationTokenResponseUio>>;
84
+ /**
85
+ * Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
86
+ * Exchange an application authorization code
87
+ */
88
+ exchangeApplicationAuthorizationCode(applicationTokenRequestUio: ApplicationTokenRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationTokenResponseUio>;
44
89
  /**
45
90
  * Get auth code
46
91
  * Get auth code
@@ -82,3 +127,17 @@ export declare class AuthApi extends runtime.BaseAPI {
82
127
  */
83
128
  toolOauthCallback(toolId: string, code?: string, state?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
84
129
  }
130
+ /**
131
+ * @export
132
+ */
133
+ export declare const AuthorizeApplicationResponseTypeEnum: {
134
+ readonly Code: "code";
135
+ };
136
+ export type AuthorizeApplicationResponseTypeEnum = typeof AuthorizeApplicationResponseTypeEnum[keyof typeof AuthorizeApplicationResponseTypeEnum];
137
+ /**
138
+ * @export
139
+ */
140
+ export declare const AuthorizeApplicationCodeChallengeMethodEnum: {
141
+ readonly S256: "S256";
142
+ };
143
+ export type AuthorizeApplicationCodeChallengeMethodEnum = typeof AuthorizeApplicationCodeChallengeMethodEnum[keyof typeof AuthorizeApplicationCodeChallengeMethodEnum];
@@ -46,13 +46,71 @@ var __importStar = (this && this.__importStar) || (function () {
46
46
  };
47
47
  })();
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.AuthApi = void 0;
49
+ exports.AuthorizeApplicationCodeChallengeMethodEnum = exports.AuthorizeApplicationResponseTypeEnum = exports.AuthApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
51
  const index_1 = require("../models/index");
52
52
  /**
53
53
  *
54
54
  */
55
55
  class AuthApi extends runtime.BaseAPI {
56
+ /**
57
+ * Entry point of the browser authorization of a desktop application (OAuth2 authorization code with PKCE, loopback redirect per RFC 8252). The request is checked, then the browser is redirected to the consent page of Breign App, which issues the code through `POST /auth/authorizations`.
58
+ * Start an application authorization
59
+ */
60
+ async authorizeApplicationRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['responseType'] == null) {
62
+ throw new runtime.RequiredError('responseType', 'Required parameter "responseType" was null or undefined when calling authorizeApplication().');
63
+ }
64
+ if (requestParameters['clientId'] == null) {
65
+ throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling authorizeApplication().');
66
+ }
67
+ if (requestParameters['redirectUri'] == null) {
68
+ throw new runtime.RequiredError('redirectUri', 'Required parameter "redirectUri" was null or undefined when calling authorizeApplication().');
69
+ }
70
+ if (requestParameters['codeChallenge'] == null) {
71
+ throw new runtime.RequiredError('codeChallenge', 'Required parameter "codeChallenge" was null or undefined when calling authorizeApplication().');
72
+ }
73
+ if (requestParameters['codeChallengeMethod'] == null) {
74
+ throw new runtime.RequiredError('codeChallengeMethod', 'Required parameter "codeChallengeMethod" was null or undefined when calling authorizeApplication().');
75
+ }
76
+ const queryParameters = {};
77
+ if (requestParameters['responseType'] != null) {
78
+ queryParameters['response_type'] = requestParameters['responseType'];
79
+ }
80
+ if (requestParameters['clientId'] != null) {
81
+ queryParameters['client_id'] = requestParameters['clientId'];
82
+ }
83
+ if (requestParameters['redirectUri'] != null) {
84
+ queryParameters['redirect_uri'] = requestParameters['redirectUri'];
85
+ }
86
+ if (requestParameters['codeChallenge'] != null) {
87
+ queryParameters['code_challenge'] = requestParameters['codeChallenge'];
88
+ }
89
+ if (requestParameters['codeChallengeMethod'] != null) {
90
+ queryParameters['code_challenge_method'] = requestParameters['codeChallengeMethod'];
91
+ }
92
+ if (requestParameters['state'] != null) {
93
+ queryParameters['state'] = requestParameters['state'];
94
+ }
95
+ if (requestParameters['deviceName'] != null) {
96
+ queryParameters['device_name'] = requestParameters['deviceName'];
97
+ }
98
+ const headerParameters = {};
99
+ const response = await this.request({
100
+ path: `/auth/authorize`,
101
+ method: 'GET',
102
+ headers: headerParameters,
103
+ query: queryParameters,
104
+ }, initOverrides);
105
+ return new runtime.VoidApiResponse(response);
106
+ }
107
+ /**
108
+ * Entry point of the browser authorization of a desktop application (OAuth2 authorization code with PKCE, loopback redirect per RFC 8252). The request is checked, then the browser is redirected to the consent page of Breign App, which issues the code through `POST /auth/authorizations`.
109
+ * Start an application authorization
110
+ */
111
+ async authorizeApplication(responseType, clientId, redirectUri, codeChallenge, codeChallengeMethod, state, deviceName, initOverrides) {
112
+ await this.authorizeApplicationRaw({ responseType: responseType, clientId: clientId, redirectUri: redirectUri, codeChallenge: codeChallenge, codeChallengeMethod: codeChallengeMethod, state: state, deviceName: deviceName }, initOverrides);
113
+ }
56
114
  /**
57
115
  * Confirm auth code
58
116
  * Confirm auth code
@@ -87,6 +145,65 @@ class AuthApi extends runtime.BaseAPI {
87
145
  const response = await this.confirmAuthCodeRaw({ authFlowId: authFlowId, authCodeConfirmRequestUio: authCodeConfirmRequestUio }, initOverrides);
88
146
  return await response.value();
89
147
  }
148
+ /**
149
+ * Called on behalf of the signed-in user once they consented to the application. Returns a single-use code, valid 5 minutes, bound to the redirect address and the PKCE challenge.
150
+ * Issue an application authorization code
151
+ */
152
+ async createApplicationAuthorizationRaw(requestParameters, initOverrides) {
153
+ if (requestParameters['applicationAuthorizationRequestUio'] == null) {
154
+ throw new runtime.RequiredError('applicationAuthorizationRequestUio', 'Required parameter "applicationAuthorizationRequestUio" was null or undefined when calling createApplicationAuthorization().');
155
+ }
156
+ const queryParameters = {};
157
+ const headerParameters = {};
158
+ headerParameters['Content-Type'] = 'application/json';
159
+ if (this.configuration && this.configuration.apiKey) {
160
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
161
+ }
162
+ const response = await this.request({
163
+ path: `/auth/authorizations`,
164
+ method: 'POST',
165
+ headers: headerParameters,
166
+ query: queryParameters,
167
+ body: (0, index_1.ApplicationAuthorizationRequestUioToJSON)(requestParameters['applicationAuthorizationRequestUio']),
168
+ }, initOverrides);
169
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationAuthorizationResponseUioFromJSON)(jsonValue));
170
+ }
171
+ /**
172
+ * Called on behalf of the signed-in user once they consented to the application. Returns a single-use code, valid 5 minutes, bound to the redirect address and the PKCE challenge.
173
+ * Issue an application authorization code
174
+ */
175
+ async createApplicationAuthorization(applicationAuthorizationRequestUio, initOverrides) {
176
+ const response = await this.createApplicationAuthorizationRaw({ applicationAuthorizationRequestUio: applicationAuthorizationRequestUio }, initOverrides);
177
+ return await response.value();
178
+ }
179
+ /**
180
+ * Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
181
+ * Exchange an application authorization code
182
+ */
183
+ async exchangeApplicationAuthorizationCodeRaw(requestParameters, initOverrides) {
184
+ if (requestParameters['applicationTokenRequestUio'] == null) {
185
+ throw new runtime.RequiredError('applicationTokenRequestUio', 'Required parameter "applicationTokenRequestUio" was null or undefined when calling exchangeApplicationAuthorizationCode().');
186
+ }
187
+ const queryParameters = {};
188
+ const headerParameters = {};
189
+ headerParameters['Content-Type'] = 'application/json';
190
+ const response = await this.request({
191
+ path: `/auth/token`,
192
+ method: 'POST',
193
+ headers: headerParameters,
194
+ query: queryParameters,
195
+ body: (0, index_1.ApplicationTokenRequestUioToJSON)(requestParameters['applicationTokenRequestUio']),
196
+ }, initOverrides);
197
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationTokenResponseUioFromJSON)(jsonValue));
198
+ }
199
+ /**
200
+ * Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
201
+ * Exchange an application authorization code
202
+ */
203
+ async exchangeApplicationAuthorizationCode(applicationTokenRequestUio, initOverrides) {
204
+ const response = await this.exchangeApplicationAuthorizationCodeRaw({ applicationTokenRequestUio: applicationTokenRequestUio }, initOverrides);
205
+ return await response.value();
206
+ }
90
207
  /**
91
208
  * Get auth code
92
209
  * Get auth code
@@ -202,3 +319,15 @@ class AuthApi extends runtime.BaseAPI {
202
319
  }
203
320
  }
204
321
  exports.AuthApi = AuthApi;
322
+ /**
323
+ * @export
324
+ */
325
+ exports.AuthorizeApplicationResponseTypeEnum = {
326
+ Code: 'code'
327
+ };
328
+ /**
329
+ * @export
330
+ */
331
+ exports.AuthorizeApplicationCodeChallengeMethodEnum = {
332
+ S256: 'S256'
333
+ };
@@ -0,0 +1,174 @@
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 * as runtime from '../runtime';
13
+ import type { ExternalEventUio, GitlabBotAccountCreateUio, GitlabBotAccountSummaryUio, GitlabBotAccountUio, GitlabBotAccountUpdateUio, GitlabConnectionTestResultUio, GitlabIntegrationCreateUio, GitlabIntegrationDetailUio, GitlabIntegrationUio, GitlabIntegrationUpdateUio, GitlabRoutingTestResultUio, GitlabRoutingTestUio } from '../models/index';
14
+ export interface CreateGitlabBotAccountRequest {
15
+ organizationId: string;
16
+ integrationId: string;
17
+ gitlabBotAccountCreateUio: GitlabBotAccountCreateUio;
18
+ }
19
+ export interface CreateGitlabIntegrationRequest {
20
+ organizationId: string;
21
+ gitlabIntegrationCreateUio: GitlabIntegrationCreateUio;
22
+ }
23
+ export interface DeleteGitlabBotAccountRequest {
24
+ organizationId: string;
25
+ integrationId: string;
26
+ accountId: string;
27
+ }
28
+ export interface DeleteGitlabIntegrationRequest {
29
+ organizationId: string;
30
+ integrationId: string;
31
+ }
32
+ export interface GetGitlabIntegrationRequest {
33
+ organizationId: string;
34
+ integrationId: string;
35
+ }
36
+ export interface ListGitlabIntegrationEventsRequest {
37
+ organizationId: string;
38
+ integrationId: string;
39
+ }
40
+ export interface ListGitlabIntegrationsRequest {
41
+ organizationId: string;
42
+ }
43
+ export interface ListOrganizationGitlabBotAccountsRequest {
44
+ organizationId: string;
45
+ }
46
+ export interface TestGitlabConnectionRequest {
47
+ organizationId: string;
48
+ integrationId: string;
49
+ }
50
+ export interface TestGitlabRoutingRequest {
51
+ organizationId: string;
52
+ integrationId: string;
53
+ gitlabRoutingTestUio: GitlabRoutingTestUio;
54
+ }
55
+ export interface UpdateGitlabBotAccountRequest {
56
+ organizationId: string;
57
+ integrationId: string;
58
+ accountId: string;
59
+ gitlabBotAccountUpdateUio: GitlabBotAccountUpdateUio;
60
+ }
61
+ export interface UpdateGitlabIntegrationRequest {
62
+ organizationId: string;
63
+ integrationId: string;
64
+ gitlabIntegrationUpdateUio: GitlabIntegrationUpdateUio;
65
+ }
66
+ /**
67
+ *
68
+ */
69
+ export declare class IntegrationsApi extends runtime.BaseAPI {
70
+ /**
71
+ * The token is checked against GitLab (GET /user). The service user must be a member of the organization, the named agents must belong to it, and no two callable agents may share a name once normalized (409 DUPLICATE_AGENT_NAMES, with the duplicates).
72
+ * Add a bot account to a GitLab integration
73
+ */
74
+ createGitlabBotAccountRaw(requestParameters: CreateGitlabBotAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitlabBotAccountUio>>;
75
+ /**
76
+ * The token is checked against GitLab (GET /user). The service user must be a member of the organization, the named agents must belong to it, and no two callable agents may share a name once normalized (409 DUPLICATE_AGENT_NAMES, with the duplicates).
77
+ * Add a bot account to a GitLab integration
78
+ */
79
+ createGitlabBotAccount(organizationId: string, integrationId: string, gitlabBotAccountCreateUio: GitlabBotAccountCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitlabBotAccountUio>;
80
+ /**
81
+ * A webhook secret is generated; it is returned with the integration.
82
+ * Link a GitLab instance to the organization
83
+ */
84
+ createGitlabIntegrationRaw(requestParameters: CreateGitlabIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitlabIntegrationDetailUio>>;
85
+ /**
86
+ * A webhook secret is generated; it is returned with the integration.
87
+ * Link a GitLab instance to the organization
88
+ */
89
+ createGitlabIntegration(organizationId: string, gitlabIntegrationCreateUio: GitlabIntegrationCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitlabIntegrationDetailUio>;
90
+ /**
91
+ * Remove a bot account
92
+ */
93
+ deleteGitlabBotAccountRaw(requestParameters: DeleteGitlabBotAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
94
+ /**
95
+ * Remove a bot account
96
+ */
97
+ deleteGitlabBotAccount(organizationId: string, integrationId: string, accountId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
98
+ /**
99
+ * Delete a GitLab integration, its bot accounts and its events
100
+ */
101
+ deleteGitlabIntegrationRaw(requestParameters: DeleteGitlabIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
102
+ /**
103
+ * Delete a GitLab integration, its bot accounts and its events
104
+ */
105
+ deleteGitlabIntegration(organizationId: string, integrationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
106
+ /**
107
+ * Get a GitLab integration, its webhook secret and its bot accounts
108
+ */
109
+ getGitlabIntegrationRaw(requestParameters: GetGitlabIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitlabIntegrationDetailUio>>;
110
+ /**
111
+ * Get a GitLab integration, its webhook secret and its bot accounts
112
+ */
113
+ getGitlabIntegration(organizationId: string, integrationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitlabIntegrationDetailUio>;
114
+ /**
115
+ * The latest mentions received by a GitLab integration
116
+ */
117
+ listGitlabIntegrationEventsRaw(requestParameters: ListGitlabIntegrationEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ExternalEventUio>>>;
118
+ /**
119
+ * The latest mentions received by a GitLab integration
120
+ */
121
+ listGitlabIntegrationEvents(organizationId: string, integrationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ExternalEventUio>>;
122
+ /**
123
+ * List the GitLab integrations of an organization
124
+ */
125
+ listGitlabIntegrationsRaw(requestParameters: ListGitlabIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GitlabIntegrationUio>>>;
126
+ /**
127
+ * List the GitLab integrations of an organization
128
+ */
129
+ listGitlabIntegrations(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GitlabIntegrationUio>>;
130
+ /**
131
+ * The GitLab bot accounts of the organization, to pick one in an automation
132
+ */
133
+ listOrganizationGitlabBotAccountsRaw(requestParameters: ListOrganizationGitlabBotAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GitlabBotAccountSummaryUio>>>;
134
+ /**
135
+ * The GitLab bot accounts of the organization, to pick one in an automation
136
+ */
137
+ listOrganizationGitlabBotAccounts(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GitlabBotAccountSummaryUio>>;
138
+ /**
139
+ * An accepted token puts its account back in service; a rejected one marks it token_invalid.
140
+ * Test the connection of every bot account (GET /user with its token)
141
+ */
142
+ testGitlabConnectionRaw(requestParameters: TestGitlabConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GitlabConnectionTestResultUio>>>;
143
+ /**
144
+ * An accepted token puts its account back in service; a rejected one marks it token_invalid.
145
+ * Test the connection of every bot account (GET /user with its token)
146
+ */
147
+ testGitlabConnection(organizationId: string, integrationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GitlabConnectionTestResultUio>>;
148
+ /**
149
+ * Preview what a GitLab comment would trigger
150
+ */
151
+ testGitlabRoutingRaw(requestParameters: TestGitlabRoutingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitlabRoutingTestResultUio>>;
152
+ /**
153
+ * Preview what a GitLab comment would trigger
154
+ */
155
+ testGitlabRouting(organizationId: string, integrationId: string, gitlabRoutingTestUio: GitlabRoutingTestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitlabRoutingTestResultUio>;
156
+ /**
157
+ * Update a bot account (agents, service user, token, status)
158
+ */
159
+ updateGitlabBotAccountRaw(requestParameters: UpdateGitlabBotAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitlabBotAccountUio>>;
160
+ /**
161
+ * Update a bot account (agents, service user, token, status)
162
+ */
163
+ updateGitlabBotAccount(organizationId: string, integrationId: string, accountId: string, gitlabBotAccountUpdateUio: GitlabBotAccountUpdateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitlabBotAccountUio>;
164
+ /**
165
+ * Changing `baseUrl` wipes the token of every bot account (status token_invalid, lastError BASE_URL_CHANGED): a token is never sent to another host than the one it was given for.
166
+ * Update a GitLab integration
167
+ */
168
+ updateGitlabIntegrationRaw(requestParameters: UpdateGitlabIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitlabIntegrationDetailUio>>;
169
+ /**
170
+ * Changing `baseUrl` wipes the token of every bot account (status token_invalid, lastError BASE_URL_CHANGED): a token is never sent to another host than the one it was given for.
171
+ * Update a GitLab integration
172
+ */
173
+ updateGitlabIntegration(organizationId: string, integrationId: string, gitlabIntegrationUpdateUio: GitlabIntegrationUpdateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitlabIntegrationDetailUio>;
174
+ }