@breign/client 1.0.213 → 1.0.215
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/AiGatewayApi.d.ts +15 -1
- package/dist/apis/AiGatewayApi.js +34 -0
- package/dist/apis/GitApi.d.ts +166 -0
- package/dist/apis/GitApi.js +406 -0
- package/dist/apis/MeetingsApi.d.ts +136 -0
- package/dist/apis/MeetingsApi.js +329 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -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/AgentMeetingConfigurationUio.d.ts +62 -0
- package/dist/models/AgentMeetingConfigurationUio.js +58 -0
- package/dist/models/AgentPatchUio.d.ts +14 -0
- package/dist/models/AgentPatchUio.js +6 -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 +14 -0
- package/dist/models/AgentUio.js +6 -0
- 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/MeetingCreateRequestUio.d.ts +38 -0
- package/dist/models/MeetingCreateRequestUio.js +50 -0
- package/dist/models/MeetingHighlightKindUio.d.ts +28 -0
- package/dist/models/MeetingHighlightKindUio.js +54 -0
- package/dist/models/MeetingHighlightUio.d.ts +69 -0
- package/dist/models/MeetingHighlightUio.js +69 -0
- package/dist/models/MeetingMessageRequestUio.d.ts +32 -0
- package/dist/models/MeetingMessageRequestUio.js +50 -0
- package/dist/models/MeetingMessageResponseUio.d.ts +38 -0
- package/dist/models/MeetingMessageResponseUio.js +54 -0
- package/dist/models/MeetingNotesUio.d.ts +50 -0
- package/dist/models/MeetingNotesUio.js +62 -0
- package/dist/models/MeetingSegmentUio.d.ts +82 -0
- package/dist/models/MeetingSegmentUio.js +84 -0
- package/dist/models/MeetingSessionResponseUio.d.ts +40 -0
- package/dist/models/MeetingSessionResponseUio.js +56 -0
- package/dist/models/MeetingSettingsUio.d.ts +38 -0
- package/dist/models/MeetingSettingsUio.js +54 -0
- package/dist/models/MeetingSpeechToTextUio.d.ts +45 -0
- package/dist/models/MeetingSpeechToTextUio.js +59 -0
- package/dist/models/MeetingUio.d.ts +134 -0
- package/dist/models/MeetingUio.js +120 -0
- package/dist/models/ModelDefinitionUio.d.ts +12 -0
- package/dist/models/ModelDefinitionUio.js +4 -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/RealtimeTranscriptionModeUio.d.ts +25 -0
- package/dist/models/RealtimeTranscriptionModeUio.js +51 -0
- package/dist/models/RealtimeTranscriptionPurposeUio.d.ts +26 -0
- package/dist/models/RealtimeTranscriptionPurposeUio.js +52 -0
- package/dist/models/SetAgentExecutionRequestUio.d.ts +8 -1
- package/dist/models/SetAgentExecutionRequestUio.js +3 -0
- package/dist/models/SpeechToTextProviderModelsInnerUio.d.ts +6 -0
- package/dist/models/SpeechToTextProviderModelsInnerUio.js +2 -0
- package/dist/models/TranscriptionSessionRequestUio.d.ts +51 -0
- package/dist/models/TranscriptionSessionRequestUio.js +57 -0
- package/dist/models/TranscriptionSessionUio.d.ts +63 -0
- package/dist/models/TranscriptionSessionUio.js +71 -0
- package/dist/models/index.d.ts +35 -0
- package/dist/models/index.js +35 -0
- package/dist/openapi.json +1681 -43
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -0,0 +1,136 @@
|
|
|
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 { MeetingCreateRequestUio, MeetingMessageRequestUio, MeetingMessageResponseUio, MeetingSegmentUio, MeetingSessionResponseUio, MeetingUio } from '../models/index';
|
|
14
|
+
export interface DeleteMeetingRequest {
|
|
15
|
+
meetingId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface EndMeetingRequest {
|
|
18
|
+
meetingId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetMeetingRequest {
|
|
21
|
+
meetingId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ListAgentMeetingsRequest {
|
|
24
|
+
agentId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ListMeetingSegmentsRequest {
|
|
27
|
+
meetingId: string;
|
|
28
|
+
fromSeq?: number;
|
|
29
|
+
limit?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface ListMeetingsRequest {
|
|
32
|
+
organizationId: string;
|
|
33
|
+
limit?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface ResumeMeetingTranscriptionRequest {
|
|
36
|
+
meetingId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface SendMeetingMessageRequest {
|
|
39
|
+
meetingId: string;
|
|
40
|
+
meetingMessageRequestUio: MeetingMessageRequestUio;
|
|
41
|
+
}
|
|
42
|
+
export interface StartMeetingRequest {
|
|
43
|
+
agentId: string;
|
|
44
|
+
meetingCreateRequestUio?: MeetingCreateRequestUio;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export declare class MeetingsApi extends runtime.BaseAPI {
|
|
50
|
+
/**
|
|
51
|
+
* Supprime la réunion, sa transcription et ses notes.
|
|
52
|
+
* Delete a meeting
|
|
53
|
+
*/
|
|
54
|
+
deleteMeetingRaw(requestParameters: DeleteMeetingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
55
|
+
/**
|
|
56
|
+
* Supprime la réunion, sa transcription et ses notes.
|
|
57
|
+
* Delete a meeting
|
|
58
|
+
*/
|
|
59
|
+
deleteMeeting(meetingId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Termine la réunion ; l\'agent rédige ensuite le compte rendu final.
|
|
62
|
+
* End a meeting
|
|
63
|
+
*/
|
|
64
|
+
endMeetingRaw(requestParameters: EndMeetingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeetingUio>>;
|
|
65
|
+
/**
|
|
66
|
+
* Termine la réunion ; l\'agent rédige ensuite le compte rendu final.
|
|
67
|
+
* End a meeting
|
|
68
|
+
*/
|
|
69
|
+
endMeeting(meetingId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeetingUio>;
|
|
70
|
+
/**
|
|
71
|
+
* Notes, éléments importants et état de la réunion.
|
|
72
|
+
* Get a meeting
|
|
73
|
+
*/
|
|
74
|
+
getMeetingRaw(requestParameters: GetMeetingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeetingUio>>;
|
|
75
|
+
/**
|
|
76
|
+
* Notes, éléments importants et état de la réunion.
|
|
77
|
+
* Get a meeting
|
|
78
|
+
*/
|
|
79
|
+
getMeeting(meetingId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeetingUio>;
|
|
80
|
+
/**
|
|
81
|
+
* List the current user\'s meetings with an agent
|
|
82
|
+
*/
|
|
83
|
+
listAgentMeetingsRaw(requestParameters: ListAgentMeetingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MeetingUio>>>;
|
|
84
|
+
/**
|
|
85
|
+
* List the current user\'s meetings with an agent
|
|
86
|
+
*/
|
|
87
|
+
listAgentMeetings(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MeetingUio>>;
|
|
88
|
+
/**
|
|
89
|
+
* Read a meeting transcript
|
|
90
|
+
*/
|
|
91
|
+
listMeetingSegmentsRaw(requestParameters: ListMeetingSegmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MeetingSegmentUio>>>;
|
|
92
|
+
/**
|
|
93
|
+
* Read a meeting transcript
|
|
94
|
+
*/
|
|
95
|
+
listMeetingSegments(meetingId: string, fromSeq?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MeetingSegmentUio>>;
|
|
96
|
+
/**
|
|
97
|
+
* Les réunions dont l\'utilisateur est l\'hôte, les plus récentes d\'abord.
|
|
98
|
+
* List the current user\'s meetings in an organization
|
|
99
|
+
*/
|
|
100
|
+
listMeetingsRaw(requestParameters: ListMeetingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MeetingUio>>>;
|
|
101
|
+
/**
|
|
102
|
+
* Les réunions dont l\'utilisateur est l\'hôte, les plus récentes d\'abord.
|
|
103
|
+
* List the current user\'s meetings in an organization
|
|
104
|
+
*/
|
|
105
|
+
listMeetings(organizationId: string, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MeetingUio>>;
|
|
106
|
+
/**
|
|
107
|
+
* Après une coupure, ouvre une nouvelle session de transcription rattachée à la réunion ; les segments reprennent après le dernier segment enregistré.
|
|
108
|
+
* Reopen the transcription session of an active meeting
|
|
109
|
+
*/
|
|
110
|
+
resumeMeetingTranscriptionRaw(requestParameters: ResumeMeetingTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeetingSessionResponseUio>>;
|
|
111
|
+
/**
|
|
112
|
+
* Après une coupure, ouvre une nouvelle session de transcription rattachée à la réunion ; les segments reprennent après le dernier segment enregistré.
|
|
113
|
+
* Reopen the transcription session of an active meeting
|
|
114
|
+
*/
|
|
115
|
+
resumeMeetingTranscription(meetingId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeetingSessionResponseUio>;
|
|
116
|
+
/**
|
|
117
|
+
* Message écrit de l\'hôte à l\'agent : ajouté à la transcription et traité comme une interpellation orale.
|
|
118
|
+
* Write to the agent during a meeting
|
|
119
|
+
*/
|
|
120
|
+
sendMeetingMessageRaw(requestParameters: SendMeetingMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeetingMessageResponseUio>>;
|
|
121
|
+
/**
|
|
122
|
+
* Message écrit de l\'hôte à l\'agent : ajouté à la transcription et traité comme une interpellation orale.
|
|
123
|
+
* Write to the agent during a meeting
|
|
124
|
+
*/
|
|
125
|
+
sendMeetingMessage(meetingId: string, meetingMessageRequestUio: MeetingMessageRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeetingMessageResponseUio>;
|
|
126
|
+
/**
|
|
127
|
+
* Démarre une réunion transcrite avec l\'agent (mode réunion activé et `speechToText` configuré) et ouvre la session de transcription associée.
|
|
128
|
+
* Start a meeting with an agent
|
|
129
|
+
*/
|
|
130
|
+
startMeetingRaw(requestParameters: StartMeetingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeetingSessionResponseUio>>;
|
|
131
|
+
/**
|
|
132
|
+
* Démarre une réunion transcrite avec l\'agent (mode réunion activé et `speechToText` configuré) et ouvre la session de transcription associée.
|
|
133
|
+
* Start a meeting with an agent
|
|
134
|
+
*/
|
|
135
|
+
startMeeting(agentId: string, meetingCreateRequestUio?: MeetingCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeetingSessionResponseUio>;
|
|
136
|
+
}
|