@breign/client 1.0.212 → 1.0.214
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.
- package/README.md +1 -5
- package/dist/apis/GitApi.d.ts +166 -0
- package/dist/apis/GitApi.js +406 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentExecutionGroupChoiceUio.d.ts +6 -0
- package/dist/models/AgentExecutionGroupChoiceUio.js +2 -0
- package/dist/models/AgentExecutionNodeChoiceUio.d.ts +6 -0
- package/dist/models/AgentExecutionNodeChoiceUio.js +2 -0
- package/dist/models/AgentExecutionUio.d.ts +7 -0
- package/dist/models/AgentExecutionUio.js +3 -0
- package/dist/models/AgentPatchUio.d.ts +7 -0
- package/dist/models/AgentPatchUio.js +3 -0
- package/dist/models/AgentSubtaskConfigurationUio.d.ts +39 -0
- package/dist/models/AgentSubtaskConfigurationUio.js +51 -0
- package/dist/models/AgentSubtaskModelUio.d.ts +38 -0
- package/dist/models/AgentSubtaskModelUio.js +54 -0
- package/dist/models/AgentUio.d.ts +7 -0
- package/dist/models/AgentUio.js +3 -0
- package/dist/models/AppUio.d.ts +3 -3
- package/dist/models/AppUio.js +2 -2
- package/dist/models/AppUpdateRequestUio.d.ts +1 -1
- package/dist/models/GitBotConnectionCreateUio.d.ts +38 -0
- package/dist/models/GitBotConnectionCreateUio.js +52 -0
- package/dist/models/GitConnectionKindUio.d.ts +26 -0
- package/dist/models/GitConnectionKindUio.js +52 -0
- package/dist/models/GitConnectionUio.d.ts +115 -0
- package/dist/models/GitConnectionUio.js +101 -0
- package/dist/models/GitGithubAppConnectionCreateUio.d.ts +56 -0
- package/dist/models/GitGithubAppConnectionCreateUio.js +62 -0
- package/dist/models/GitOAuthAppCreateUio.d.ts +51 -0
- package/dist/models/GitOAuthAppCreateUio.js +63 -0
- package/dist/models/GitOAuthAppUio.d.ts +81 -0
- package/dist/models/GitOAuthAppUio.js +77 -0
- package/dist/models/GitOAuthAppUpdateUio.d.ts +38 -0
- package/dist/models/GitOAuthAppUpdateUio.js +50 -0
- package/dist/models/GitOAuthAuthorizeRequestUio.d.ts +32 -0
- package/dist/models/GitOAuthAuthorizeRequestUio.js +48 -0
- package/dist/models/GitOAuthAuthorizeResponseUio.d.ts +32 -0
- package/dist/models/GitOAuthAuthorizeResponseUio.js +50 -0
- package/dist/models/GitOAuthCompleteRequestUio.d.ts +38 -0
- package/dist/models/GitOAuthCompleteRequestUio.js +54 -0
- package/dist/models/GitOAuthCompleteResponseUio.d.ts +39 -0
- package/dist/models/GitOAuthCompleteResponseUio.js +55 -0
- package/dist/models/GitOAuthConfigUio.d.ts +32 -0
- package/dist/models/GitOAuthConfigUio.js +50 -0
- package/dist/models/GitProviderUio.d.ts +25 -0
- package/dist/models/GitProviderUio.js +51 -0
- package/dist/models/NodeAgentGitConfigAuthorUio.d.ts +38 -0
- package/dist/models/NodeAgentGitConfigAuthorUio.js +54 -0
- package/dist/models/NodeAgentGitConfigUio.d.ts +46 -0
- package/dist/models/NodeAgentGitConfigUio.js +56 -0
- package/dist/models/NodeGitRepositoryConnectionUio.d.ts +46 -0
- package/dist/models/NodeGitRepositoryConnectionUio.js +60 -0
- package/dist/models/NodeGitRepositoryUio.d.ts +79 -0
- package/dist/models/NodeGitRepositoryUio.js +82 -0
- package/dist/models/SetAgentExecutionRequestUio.d.ts +8 -1
- package/dist/models/SetAgentExecutionRequestUio.js +3 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/dist/openapi.json +824 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @breign/client
|
|
1
|
+
# Breign Client SDK @breign/client
|
|
2
2
|
|
|
3
3
|
TypeScript client library for interacting with the Brain API. This package provides a strongly-typed interface generated from OpenAPI specifications.
|
|
4
4
|
|
|
@@ -45,7 +45,3 @@ import { ... } from '@breign/client';
|
|
|
45
45
|
- `src/resources/openapi/` - OpenAPI specifications
|
|
46
46
|
- `dist/` - Compiled output
|
|
47
47
|
- `target/` - Generated source files
|
|
48
|
-
|
|
49
|
-
## TODO
|
|
50
|
-
- [ ] Generate API for mobile development (Swift, Kotlin)?
|
|
51
|
-
- [ ] Decide if we should use date-time format for dates or strings?
|
|
@@ -0,0 +1,166 @@
|
|
|
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 { GitBotConnectionCreateUio, GitConnectionUio, GitGithubAppConnectionCreateUio, GitOAuthAppCreateUio, GitOAuthAppUio, GitOAuthAppUpdateUio, GitOAuthAuthorizeRequestUio, GitOAuthAuthorizeResponseUio, GitOAuthCompleteRequestUio, GitOAuthCompleteResponseUio, GitOAuthConfigUio } from '../models/index';
|
|
14
|
+
export interface AuthorizeGitOAuthAppRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
appId: string;
|
|
17
|
+
gitOAuthAuthorizeRequestUio?: GitOAuthAuthorizeRequestUio;
|
|
18
|
+
}
|
|
19
|
+
export interface CompleteGitOAuthRequest {
|
|
20
|
+
gitOAuthCompleteRequestUio: GitOAuthCompleteRequestUio;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateGitBotConnectionRequest {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
gitBotConnectionCreateUio: GitBotConnectionCreateUio;
|
|
25
|
+
}
|
|
26
|
+
export interface CreateGitGithubAppConnectionRequest {
|
|
27
|
+
organizationId: string;
|
|
28
|
+
gitGithubAppConnectionCreateUio: GitGithubAppConnectionCreateUio;
|
|
29
|
+
}
|
|
30
|
+
export interface CreateGitOAuthAppRequest {
|
|
31
|
+
organizationId: string;
|
|
32
|
+
gitOAuthAppCreateUio: GitOAuthAppCreateUio;
|
|
33
|
+
}
|
|
34
|
+
export interface DeleteGitConnectionRequest {
|
|
35
|
+
organizationId: string;
|
|
36
|
+
connectionId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface DeleteGitOAuthAppRequest {
|
|
39
|
+
organizationId: string;
|
|
40
|
+
appId: string;
|
|
41
|
+
}
|
|
42
|
+
export interface GetGitOAuthConfigRequest {
|
|
43
|
+
organizationId: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ListGitConnectionsRequest {
|
|
46
|
+
organizationId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ListGitOAuthAppsRequest {
|
|
49
|
+
organizationId: string;
|
|
50
|
+
}
|
|
51
|
+
export interface UpdateGitOAuthAppRequest {
|
|
52
|
+
organizationId: string;
|
|
53
|
+
appId: string;
|
|
54
|
+
gitOAuthAppUpdateUio: GitOAuthAppUpdateUio;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export declare class GitApi extends runtime.BaseAPI {
|
|
60
|
+
/**
|
|
61
|
+
* Rend l\'adresse de la forge où envoyer le membre (OAuth avec PKCE). La forge le renvoie vers Breign App, qui relaie le code à `POST /git/oauth/complete`.
|
|
62
|
+
* Start connecting the current member\'s Git account
|
|
63
|
+
*/
|
|
64
|
+
authorizeGitOAuthAppRaw(requestParameters: AuthorizeGitOAuthAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitOAuthAuthorizeResponseUio>>;
|
|
65
|
+
/**
|
|
66
|
+
* Rend l\'adresse de la forge où envoyer le membre (OAuth avec PKCE). La forge le renvoie vers Breign App, qui relaie le code à `POST /git/oauth/complete`.
|
|
67
|
+
* Start connecting the current member\'s Git account
|
|
68
|
+
*/
|
|
69
|
+
authorizeGitOAuthApp(organizationId: string, appId: string, gitOAuthAuthorizeRequestUio?: GitOAuthAuthorizeRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitOAuthAuthorizeResponseUio>;
|
|
70
|
+
/**
|
|
71
|
+
* Relaie le retour de la forge (`code`, `state`) : la connexion du membre à cette forge est créée, ou remplacée.
|
|
72
|
+
* Finish connecting the current member\'s Git account
|
|
73
|
+
*/
|
|
74
|
+
completeGitOAuthRaw(requestParameters: CompleteGitOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitOAuthCompleteResponseUio>>;
|
|
75
|
+
/**
|
|
76
|
+
* Relaie le retour de la forge (`code`, `state`) : la connexion du membre à cette forge est créée, ou remplacée.
|
|
77
|
+
* Finish connecting the current member\'s Git account
|
|
78
|
+
*/
|
|
79
|
+
completeGitOAuth(gitOAuthCompleteRequestUio: GitOAuthCompleteRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitOAuthCompleteResponseUio>;
|
|
80
|
+
/**
|
|
81
|
+
* Use a GitLab bot account as a Git connection of the organization
|
|
82
|
+
*/
|
|
83
|
+
createGitBotConnectionRaw(requestParameters: CreateGitBotConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitConnectionUio>>;
|
|
84
|
+
/**
|
|
85
|
+
* Use a GitLab bot account as a Git connection of the organization
|
|
86
|
+
*/
|
|
87
|
+
createGitBotConnection(organizationId: string, gitBotConnectionCreateUio: GitBotConnectionCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitConnectionUio>;
|
|
88
|
+
/**
|
|
89
|
+
* Réservé aux admins. L\'installation est vérifiée avec la clé de l\'App ; les agents reçoivent ensuite des jetons d\'installation restreints au dépôt sur lequel ils travaillent.
|
|
90
|
+
* Use an installed GitHub App as a Git connection of the organization
|
|
91
|
+
*/
|
|
92
|
+
createGitGithubAppConnectionRaw(requestParameters: CreateGitGithubAppConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitConnectionUio>>;
|
|
93
|
+
/**
|
|
94
|
+
* Réservé aux admins. L\'installation est vérifiée avec la clé de l\'App ; les agents reçoivent ensuite des jetons d\'installation restreints au dépôt sur lequel ils travaillent.
|
|
95
|
+
* Use an installed GitHub App as a Git connection of the organization
|
|
96
|
+
*/
|
|
97
|
+
createGitGithubAppConnection(organizationId: string, gitGithubAppConnectionCreateUio: GitGithubAppConnectionCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitConnectionUio>;
|
|
98
|
+
/**
|
|
99
|
+
* Réservé aux admins. Une application par forge et par organisation.
|
|
100
|
+
* Declare the OAuth application of a Git forge
|
|
101
|
+
*/
|
|
102
|
+
createGitOAuthAppRaw(requestParameters: CreateGitOAuthAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitOAuthAppUio>>;
|
|
103
|
+
/**
|
|
104
|
+
* Réservé aux admins. Une application par forge et par organisation.
|
|
105
|
+
* Declare the OAuth application of a Git forge
|
|
106
|
+
*/
|
|
107
|
+
createGitOAuthApp(organizationId: string, gitOAuthAppCreateUio: GitOAuthAppCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitOAuthAppUio>;
|
|
108
|
+
/**
|
|
109
|
+
* Un membre retire la sienne ; un admin, n\'importe laquelle.
|
|
110
|
+
* Delete a Git connection
|
|
111
|
+
*/
|
|
112
|
+
deleteGitConnectionRaw(requestParameters: DeleteGitConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
113
|
+
/**
|
|
114
|
+
* Un membre retire la sienne ; un admin, n\'importe laquelle.
|
|
115
|
+
* Delete a Git connection
|
|
116
|
+
*/
|
|
117
|
+
deleteGitConnection(organizationId: string, connectionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Supprime aussi les comptes que les membres y ont connectés.
|
|
120
|
+
* Delete the OAuth application of a Git forge
|
|
121
|
+
*/
|
|
122
|
+
deleteGitOAuthAppRaw(requestParameters: DeleteGitOAuthAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
123
|
+
/**
|
|
124
|
+
* Supprime aussi les comptes que les membres y ont connectés.
|
|
125
|
+
* Delete the OAuth application of a Git forge
|
|
126
|
+
*/
|
|
127
|
+
deleteGitOAuthApp(organizationId: string, appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
128
|
+
/**
|
|
129
|
+
* L\'adresse de retour configurée côté serveur (`git.oauthRedirectUrl`), à déclarer dans l\'application OAuth de chaque forge.
|
|
130
|
+
* Get the OAuth redirect address of the Git forges
|
|
131
|
+
*/
|
|
132
|
+
getGitOAuthConfigRaw(requestParameters: GetGitOAuthConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitOAuthConfigUio>>;
|
|
133
|
+
/**
|
|
134
|
+
* L\'adresse de retour configurée côté serveur (`git.oauthRedirectUrl`), à déclarer dans l\'application OAuth de chaque forge.
|
|
135
|
+
* Get the OAuth redirect address of the Git forges
|
|
136
|
+
*/
|
|
137
|
+
getGitOAuthConfig(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitOAuthConfigUio>;
|
|
138
|
+
/**
|
|
139
|
+
* Pour un admin, toutes les connexions de l\'organisation ; pour un membre, les siennes et les connexions d\'organisation (à choisir pour un dépôt).
|
|
140
|
+
* List the Git connections
|
|
141
|
+
*/
|
|
142
|
+
listGitConnectionsRaw(requestParameters: ListGitConnectionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GitConnectionUio>>>;
|
|
143
|
+
/**
|
|
144
|
+
* Pour un admin, toutes les connexions de l\'organisation ; pour un membre, les siennes et les connexions d\'organisation (à choisir pour un dépôt).
|
|
145
|
+
* List the Git connections
|
|
146
|
+
*/
|
|
147
|
+
listGitConnections(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GitConnectionUio>>;
|
|
148
|
+
/**
|
|
149
|
+
* Les forges où les membres peuvent connecter leur compte Git. L\'identifiant de l\'application n\'est rendu qu\'aux admins ; le secret jamais.
|
|
150
|
+
* List the OAuth applications of the Git forges
|
|
151
|
+
*/
|
|
152
|
+
listGitOAuthAppsRaw(requestParameters: ListGitOAuthAppsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GitOAuthAppUio>>>;
|
|
153
|
+
/**
|
|
154
|
+
* Les forges où les membres peuvent connecter leur compte Git. L\'identifiant de l\'application n\'est rendu qu\'aux admins ; le secret jamais.
|
|
155
|
+
* List the OAuth applications of the Git forges
|
|
156
|
+
*/
|
|
157
|
+
listGitOAuthApps(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GitOAuthAppUio>>;
|
|
158
|
+
/**
|
|
159
|
+
* Update the OAuth application of a Git forge
|
|
160
|
+
*/
|
|
161
|
+
updateGitOAuthAppRaw(requestParameters: UpdateGitOAuthAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GitOAuthAppUio>>;
|
|
162
|
+
/**
|
|
163
|
+
* Update the OAuth application of a Git forge
|
|
164
|
+
*/
|
|
165
|
+
updateGitOAuthApp(organizationId: string, appId: string, gitOAuthAppUpdateUio: GitOAuthAppUpdateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GitOAuthAppUio>;
|
|
166
|
+
}
|
|
@@ -0,0 +1,406 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.GitApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class GitApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Rend l\'adresse de la forge où envoyer le membre (OAuth avec PKCE). La forge le renvoie vers Breign App, qui relaie le code à `POST /git/oauth/complete`.
|
|
58
|
+
* Start connecting the current member\'s Git account
|
|
59
|
+
*/
|
|
60
|
+
async authorizeGitOAuthAppRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling authorizeGitOAuthApp().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['appId'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling authorizeGitOAuthApp().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/organizations/{organizationId}/git/oauth-apps/{appId}/authorize`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.GitOAuthAuthorizeRequestUioToJSON)(requestParameters['gitOAuthAuthorizeRequestUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GitOAuthAuthorizeResponseUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Rend l\'adresse de la forge où envoyer le membre (OAuth avec PKCE). La forge le renvoie vers Breign App, qui relaie le code à `POST /git/oauth/complete`.
|
|
84
|
+
* Start connecting the current member\'s Git account
|
|
85
|
+
*/
|
|
86
|
+
async authorizeGitOAuthApp(organizationId, appId, gitOAuthAuthorizeRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.authorizeGitOAuthAppRaw({ organizationId: organizationId, appId: appId, gitOAuthAuthorizeRequestUio: gitOAuthAuthorizeRequestUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Relaie le retour de la forge (`code`, `state`) : la connexion du membre à cette forge est créée, ou remplacée.
|
|
92
|
+
* Finish connecting the current member\'s Git account
|
|
93
|
+
*/
|
|
94
|
+
async completeGitOAuthRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['gitOAuthCompleteRequestUio'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('gitOAuthCompleteRequestUio', 'Required parameter "gitOAuthCompleteRequestUio" was null or undefined when calling completeGitOAuth().');
|
|
97
|
+
}
|
|
98
|
+
const queryParameters = {};
|
|
99
|
+
const headerParameters = {};
|
|
100
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
103
|
+
}
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/git/oauth/complete`,
|
|
106
|
+
method: 'POST',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
body: (0, index_1.GitOAuthCompleteRequestUioToJSON)(requestParameters['gitOAuthCompleteRequestUio']),
|
|
110
|
+
}, initOverrides);
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GitOAuthCompleteResponseUioFromJSON)(jsonValue));
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Relaie le retour de la forge (`code`, `state`) : la connexion du membre à cette forge est créée, ou remplacée.
|
|
115
|
+
* Finish connecting the current member\'s Git account
|
|
116
|
+
*/
|
|
117
|
+
async completeGitOAuth(gitOAuthCompleteRequestUio, initOverrides) {
|
|
118
|
+
const response = await this.completeGitOAuthRaw({ gitOAuthCompleteRequestUio: gitOAuthCompleteRequestUio }, initOverrides);
|
|
119
|
+
return await response.value();
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Use a GitLab bot account as a Git connection of the organization
|
|
123
|
+
*/
|
|
124
|
+
async createGitBotConnectionRaw(requestParameters, initOverrides) {
|
|
125
|
+
if (requestParameters['organizationId'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createGitBotConnection().');
|
|
127
|
+
}
|
|
128
|
+
if (requestParameters['gitBotConnectionCreateUio'] == null) {
|
|
129
|
+
throw new runtime.RequiredError('gitBotConnectionCreateUio', 'Required parameter "gitBotConnectionCreateUio" was null or undefined when calling createGitBotConnection().');
|
|
130
|
+
}
|
|
131
|
+
const queryParameters = {};
|
|
132
|
+
const headerParameters = {};
|
|
133
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
134
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
135
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
136
|
+
}
|
|
137
|
+
const response = await this.request({
|
|
138
|
+
path: `/organizations/{organizationId}/git/connections/gitlab-bot`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
139
|
+
method: 'POST',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
body: (0, index_1.GitBotConnectionCreateUioToJSON)(requestParameters['gitBotConnectionCreateUio']),
|
|
143
|
+
}, initOverrides);
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GitConnectionUioFromJSON)(jsonValue));
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Use a GitLab bot account as a Git connection of the organization
|
|
148
|
+
*/
|
|
149
|
+
async createGitBotConnection(organizationId, gitBotConnectionCreateUio, initOverrides) {
|
|
150
|
+
const response = await this.createGitBotConnectionRaw({ organizationId: organizationId, gitBotConnectionCreateUio: gitBotConnectionCreateUio }, initOverrides);
|
|
151
|
+
return await response.value();
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Réservé aux admins. L\'installation est vérifiée avec la clé de l\'App ; les agents reçoivent ensuite des jetons d\'installation restreints au dépôt sur lequel ils travaillent.
|
|
155
|
+
* Use an installed GitHub App as a Git connection of the organization
|
|
156
|
+
*/
|
|
157
|
+
async createGitGithubAppConnectionRaw(requestParameters, initOverrides) {
|
|
158
|
+
if (requestParameters['organizationId'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createGitGithubAppConnection().');
|
|
160
|
+
}
|
|
161
|
+
if (requestParameters['gitGithubAppConnectionCreateUio'] == null) {
|
|
162
|
+
throw new runtime.RequiredError('gitGithubAppConnectionCreateUio', 'Required parameter "gitGithubAppConnectionCreateUio" was null or undefined when calling createGitGithubAppConnection().');
|
|
163
|
+
}
|
|
164
|
+
const queryParameters = {};
|
|
165
|
+
const headerParameters = {};
|
|
166
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
167
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
168
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
169
|
+
}
|
|
170
|
+
const response = await this.request({
|
|
171
|
+
path: `/organizations/{organizationId}/git/connections/github-app`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
172
|
+
method: 'POST',
|
|
173
|
+
headers: headerParameters,
|
|
174
|
+
query: queryParameters,
|
|
175
|
+
body: (0, index_1.GitGithubAppConnectionCreateUioToJSON)(requestParameters['gitGithubAppConnectionCreateUio']),
|
|
176
|
+
}, initOverrides);
|
|
177
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GitConnectionUioFromJSON)(jsonValue));
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Réservé aux admins. L\'installation est vérifiée avec la clé de l\'App ; les agents reçoivent ensuite des jetons d\'installation restreints au dépôt sur lequel ils travaillent.
|
|
181
|
+
* Use an installed GitHub App as a Git connection of the organization
|
|
182
|
+
*/
|
|
183
|
+
async createGitGithubAppConnection(organizationId, gitGithubAppConnectionCreateUio, initOverrides) {
|
|
184
|
+
const response = await this.createGitGithubAppConnectionRaw({ organizationId: organizationId, gitGithubAppConnectionCreateUio: gitGithubAppConnectionCreateUio }, initOverrides);
|
|
185
|
+
return await response.value();
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Réservé aux admins. Une application par forge et par organisation.
|
|
189
|
+
* Declare the OAuth application of a Git forge
|
|
190
|
+
*/
|
|
191
|
+
async createGitOAuthAppRaw(requestParameters, initOverrides) {
|
|
192
|
+
if (requestParameters['organizationId'] == null) {
|
|
193
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createGitOAuthApp().');
|
|
194
|
+
}
|
|
195
|
+
if (requestParameters['gitOAuthAppCreateUio'] == null) {
|
|
196
|
+
throw new runtime.RequiredError('gitOAuthAppCreateUio', 'Required parameter "gitOAuthAppCreateUio" was null or undefined when calling createGitOAuthApp().');
|
|
197
|
+
}
|
|
198
|
+
const queryParameters = {};
|
|
199
|
+
const headerParameters = {};
|
|
200
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
201
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
202
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
203
|
+
}
|
|
204
|
+
const response = await this.request({
|
|
205
|
+
path: `/organizations/{organizationId}/git/oauth-apps`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
206
|
+
method: 'POST',
|
|
207
|
+
headers: headerParameters,
|
|
208
|
+
query: queryParameters,
|
|
209
|
+
body: (0, index_1.GitOAuthAppCreateUioToJSON)(requestParameters['gitOAuthAppCreateUio']),
|
|
210
|
+
}, initOverrides);
|
|
211
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GitOAuthAppUioFromJSON)(jsonValue));
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Réservé aux admins. Une application par forge et par organisation.
|
|
215
|
+
* Declare the OAuth application of a Git forge
|
|
216
|
+
*/
|
|
217
|
+
async createGitOAuthApp(organizationId, gitOAuthAppCreateUio, initOverrides) {
|
|
218
|
+
const response = await this.createGitOAuthAppRaw({ organizationId: organizationId, gitOAuthAppCreateUio: gitOAuthAppCreateUio }, initOverrides);
|
|
219
|
+
return await response.value();
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Un membre retire la sienne ; un admin, n\'importe laquelle.
|
|
223
|
+
* Delete a Git connection
|
|
224
|
+
*/
|
|
225
|
+
async deleteGitConnectionRaw(requestParameters, initOverrides) {
|
|
226
|
+
if (requestParameters['organizationId'] == null) {
|
|
227
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteGitConnection().');
|
|
228
|
+
}
|
|
229
|
+
if (requestParameters['connectionId'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('connectionId', 'Required parameter "connectionId" was null or undefined when calling deleteGitConnection().');
|
|
231
|
+
}
|
|
232
|
+
const queryParameters = {};
|
|
233
|
+
const headerParameters = {};
|
|
234
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
235
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
236
|
+
}
|
|
237
|
+
const response = await this.request({
|
|
238
|
+
path: `/organizations/{organizationId}/git/connections/{connectionId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"connectionId"}}`, encodeURIComponent(String(requestParameters['connectionId']))),
|
|
239
|
+
method: 'DELETE',
|
|
240
|
+
headers: headerParameters,
|
|
241
|
+
query: queryParameters,
|
|
242
|
+
}, initOverrides);
|
|
243
|
+
return new runtime.VoidApiResponse(response);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Un membre retire la sienne ; un admin, n\'importe laquelle.
|
|
247
|
+
* Delete a Git connection
|
|
248
|
+
*/
|
|
249
|
+
async deleteGitConnection(organizationId, connectionId, initOverrides) {
|
|
250
|
+
await this.deleteGitConnectionRaw({ organizationId: organizationId, connectionId: connectionId }, initOverrides);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Supprime aussi les comptes que les membres y ont connectés.
|
|
254
|
+
* Delete the OAuth application of a Git forge
|
|
255
|
+
*/
|
|
256
|
+
async deleteGitOAuthAppRaw(requestParameters, initOverrides) {
|
|
257
|
+
if (requestParameters['organizationId'] == null) {
|
|
258
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteGitOAuthApp().');
|
|
259
|
+
}
|
|
260
|
+
if (requestParameters['appId'] == null) {
|
|
261
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling deleteGitOAuthApp().');
|
|
262
|
+
}
|
|
263
|
+
const queryParameters = {};
|
|
264
|
+
const headerParameters = {};
|
|
265
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
266
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
267
|
+
}
|
|
268
|
+
const response = await this.request({
|
|
269
|
+
path: `/organizations/{organizationId}/git/oauth-apps/{appId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
270
|
+
method: 'DELETE',
|
|
271
|
+
headers: headerParameters,
|
|
272
|
+
query: queryParameters,
|
|
273
|
+
}, initOverrides);
|
|
274
|
+
return new runtime.VoidApiResponse(response);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Supprime aussi les comptes que les membres y ont connectés.
|
|
278
|
+
* Delete the OAuth application of a Git forge
|
|
279
|
+
*/
|
|
280
|
+
async deleteGitOAuthApp(organizationId, appId, initOverrides) {
|
|
281
|
+
await this.deleteGitOAuthAppRaw({ organizationId: organizationId, appId: appId }, initOverrides);
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* L\'adresse de retour configurée côté serveur (`git.oauthRedirectUrl`), à déclarer dans l\'application OAuth de chaque forge.
|
|
285
|
+
* Get the OAuth redirect address of the Git forges
|
|
286
|
+
*/
|
|
287
|
+
async getGitOAuthConfigRaw(requestParameters, initOverrides) {
|
|
288
|
+
if (requestParameters['organizationId'] == null) {
|
|
289
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getGitOAuthConfig().');
|
|
290
|
+
}
|
|
291
|
+
const queryParameters = {};
|
|
292
|
+
const headerParameters = {};
|
|
293
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
294
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
295
|
+
}
|
|
296
|
+
const response = await this.request({
|
|
297
|
+
path: `/organizations/{organizationId}/git/oauth-config`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
298
|
+
method: 'GET',
|
|
299
|
+
headers: headerParameters,
|
|
300
|
+
query: queryParameters,
|
|
301
|
+
}, initOverrides);
|
|
302
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GitOAuthConfigUioFromJSON)(jsonValue));
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* L\'adresse de retour configurée côté serveur (`git.oauthRedirectUrl`), à déclarer dans l\'application OAuth de chaque forge.
|
|
306
|
+
* Get the OAuth redirect address of the Git forges
|
|
307
|
+
*/
|
|
308
|
+
async getGitOAuthConfig(organizationId, initOverrides) {
|
|
309
|
+
const response = await this.getGitOAuthConfigRaw({ organizationId: organizationId }, initOverrides);
|
|
310
|
+
return await response.value();
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Pour un admin, toutes les connexions de l\'organisation ; pour un membre, les siennes et les connexions d\'organisation (à choisir pour un dépôt).
|
|
314
|
+
* List the Git connections
|
|
315
|
+
*/
|
|
316
|
+
async listGitConnectionsRaw(requestParameters, initOverrides) {
|
|
317
|
+
if (requestParameters['organizationId'] == null) {
|
|
318
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listGitConnections().');
|
|
319
|
+
}
|
|
320
|
+
const queryParameters = {};
|
|
321
|
+
const headerParameters = {};
|
|
322
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
323
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
324
|
+
}
|
|
325
|
+
const response = await this.request({
|
|
326
|
+
path: `/organizations/{organizationId}/git/connections`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
327
|
+
method: 'GET',
|
|
328
|
+
headers: headerParameters,
|
|
329
|
+
query: queryParameters,
|
|
330
|
+
}, initOverrides);
|
|
331
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GitConnectionUioFromJSON));
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Pour un admin, toutes les connexions de l\'organisation ; pour un membre, les siennes et les connexions d\'organisation (à choisir pour un dépôt).
|
|
335
|
+
* List the Git connections
|
|
336
|
+
*/
|
|
337
|
+
async listGitConnections(organizationId, initOverrides) {
|
|
338
|
+
const response = await this.listGitConnectionsRaw({ organizationId: organizationId }, initOverrides);
|
|
339
|
+
return await response.value();
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Les forges où les membres peuvent connecter leur compte Git. L\'identifiant de l\'application n\'est rendu qu\'aux admins ; le secret jamais.
|
|
343
|
+
* List the OAuth applications of the Git forges
|
|
344
|
+
*/
|
|
345
|
+
async listGitOAuthAppsRaw(requestParameters, initOverrides) {
|
|
346
|
+
if (requestParameters['organizationId'] == null) {
|
|
347
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listGitOAuthApps().');
|
|
348
|
+
}
|
|
349
|
+
const queryParameters = {};
|
|
350
|
+
const headerParameters = {};
|
|
351
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
352
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
353
|
+
}
|
|
354
|
+
const response = await this.request({
|
|
355
|
+
path: `/organizations/{organizationId}/git/oauth-apps`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
356
|
+
method: 'GET',
|
|
357
|
+
headers: headerParameters,
|
|
358
|
+
query: queryParameters,
|
|
359
|
+
}, initOverrides);
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GitOAuthAppUioFromJSON));
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Les forges où les membres peuvent connecter leur compte Git. L\'identifiant de l\'application n\'est rendu qu\'aux admins ; le secret jamais.
|
|
364
|
+
* List the OAuth applications of the Git forges
|
|
365
|
+
*/
|
|
366
|
+
async listGitOAuthApps(organizationId, initOverrides) {
|
|
367
|
+
const response = await this.listGitOAuthAppsRaw({ organizationId: organizationId }, initOverrides);
|
|
368
|
+
return await response.value();
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Update the OAuth application of a Git forge
|
|
372
|
+
*/
|
|
373
|
+
async updateGitOAuthAppRaw(requestParameters, initOverrides) {
|
|
374
|
+
if (requestParameters['organizationId'] == null) {
|
|
375
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateGitOAuthApp().');
|
|
376
|
+
}
|
|
377
|
+
if (requestParameters['appId'] == null) {
|
|
378
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling updateGitOAuthApp().');
|
|
379
|
+
}
|
|
380
|
+
if (requestParameters['gitOAuthAppUpdateUio'] == null) {
|
|
381
|
+
throw new runtime.RequiredError('gitOAuthAppUpdateUio', 'Required parameter "gitOAuthAppUpdateUio" was null or undefined when calling updateGitOAuthApp().');
|
|
382
|
+
}
|
|
383
|
+
const queryParameters = {};
|
|
384
|
+
const headerParameters = {};
|
|
385
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
386
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
387
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
388
|
+
}
|
|
389
|
+
const response = await this.request({
|
|
390
|
+
path: `/organizations/{organizationId}/git/oauth-apps/{appId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
391
|
+
method: 'PATCH',
|
|
392
|
+
headers: headerParameters,
|
|
393
|
+
query: queryParameters,
|
|
394
|
+
body: (0, index_1.GitOAuthAppUpdateUioToJSON)(requestParameters['gitOAuthAppUpdateUio']),
|
|
395
|
+
}, initOverrides);
|
|
396
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GitOAuthAppUioFromJSON)(jsonValue));
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Update the OAuth application of a Git forge
|
|
400
|
+
*/
|
|
401
|
+
async updateGitOAuthApp(organizationId, appId, gitOAuthAppUpdateUio, initOverrides) {
|
|
402
|
+
const response = await this.updateGitOAuthAppRaw({ organizationId: organizationId, appId: appId, gitOAuthAppUpdateUio: gitOAuthAppUpdateUio }, initOverrides);
|
|
403
|
+
return await response.value();
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
exports.GitApi = GitApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './ExecutionNodesApi';
|
|
|
13
13
|
export * from './FilesApi';
|
|
14
14
|
export * from './FleetsApi';
|
|
15
15
|
export * from './GeneralApi';
|
|
16
|
+
export * from './GitApi';
|
|
16
17
|
export * from './GuardiansApi';
|
|
17
18
|
export * from './InboxApi';
|
|
18
19
|
export * from './InstancesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./ExecutionNodesApi"), exports);
|
|
|
31
31
|
__exportStar(require("./FilesApi"), exports);
|
|
32
32
|
__exportStar(require("./FleetsApi"), exports);
|
|
33
33
|
__exportStar(require("./GeneralApi"), exports);
|
|
34
|
+
__exportStar(require("./GitApi"), exports);
|
|
34
35
|
__exportStar(require("./GuardiansApi"), exports);
|
|
35
36
|
__exportStar(require("./InboxApi"), exports);
|
|
36
37
|
__exportStar(require("./InstancesApi"), exports);
|
|
@@ -41,6 +41,12 @@ export interface AgentExecutionGroupChoiceUio {
|
|
|
41
41
|
* @memberof AgentExecutionGroupChoiceUio
|
|
42
42
|
*/
|
|
43
43
|
onlineNodeCount: number;
|
|
44
|
+
/**
|
|
45
|
+
* Les nœuds du groupe qui savent cloner des dépôts Git (contrat v3).
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof AgentExecutionGroupChoiceUio
|
|
48
|
+
*/
|
|
49
|
+
gitNodeCount?: number;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {number}
|
|
@@ -52,6 +52,7 @@ function AgentExecutionGroupChoiceUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'name': json['name'],
|
|
53
53
|
'nodeCount': json['nodeCount'],
|
|
54
54
|
'onlineNodeCount': json['onlineNodeCount'],
|
|
55
|
+
'gitNodeCount': json['gitNodeCount'] == null ? undefined : json['gitNodeCount'],
|
|
55
56
|
'envWaitMs': json['envWaitMs'],
|
|
56
57
|
'runtimes': (json['runtimes'].map(AgentExecutionGroupChoiceRuntimesInnerUio_1.AgentExecutionGroupChoiceRuntimesInnerUioFromJSON)),
|
|
57
58
|
'workspaces': (json['workspaces'].map(AgentExecutionGroupChoiceWorkspacesInnerUio_1.AgentExecutionGroupChoiceWorkspacesInnerUioFromJSON)),
|
|
@@ -69,6 +70,7 @@ function AgentExecutionGroupChoiceUioToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
69
70
|
'name': value['name'],
|
|
70
71
|
'nodeCount': value['nodeCount'],
|
|
71
72
|
'onlineNodeCount': value['onlineNodeCount'],
|
|
73
|
+
'gitNodeCount': value['gitNodeCount'],
|
|
72
74
|
'envWaitMs': value['envWaitMs'],
|
|
73
75
|
'runtimes': (value['runtimes'].map(AgentExecutionGroupChoiceRuntimesInnerUio_1.AgentExecutionGroupChoiceRuntimesInnerUioToJSON)),
|
|
74
76
|
'workspaces': (value['workspaces'].map(AgentExecutionGroupChoiceWorkspacesInnerUio_1.AgentExecutionGroupChoiceWorkspacesInnerUioToJSON)),
|
|
@@ -47,6 +47,12 @@ export interface AgentExecutionNodeChoiceUio {
|
|
|
47
47
|
* @memberof AgentExecutionNodeChoiceUio
|
|
48
48
|
*/
|
|
49
49
|
workspaces: Array<ExecutionNodeWorkspaceUio>;
|
|
50
|
+
/**
|
|
51
|
+
* Le nœud sait cloner des dépôts Git (contrat v3).
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
54
|
+
*/
|
|
55
|
+
git?: boolean;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* Check if a given object implements the AgentExecutionNodeChoiceUio interface.
|