@gooddata/api-client-tiger 11.62.0-alpha.0 → 11.62.0-alpha.2
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/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/api-client-tiger.d.ts +774 -238
- package/esm/client.d.ts +0 -2
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +0 -3
- package/esm/endpoints/actions/index.d.ts +1 -1
- package/esm/endpoints/actions/index.d.ts.map +1 -1
- package/esm/endpoints/actions/index.js +3 -1
- package/esm/endpoints/genAI/index.d.ts +2 -2
- package/esm/endpoints/genAI/index.d.ts.map +1 -1
- package/esm/endpoints/genAI/index.js +2 -2
- package/esm/gd-tiger-model/TigerTypes.d.ts +8 -0
- package/esm/gd-tiger-model/TigerTypes.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.d.ts +1056 -8
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +894 -6
- package/esm/generated/afm-rest-api/common.d.ts.map +1 -1
- package/esm/generated/ai-json-api/api.d.ts +176 -88
- package/esm/generated/ai-json-api/api.d.ts.map +1 -1
- package/esm/generated/ai-json-api/api.js +103 -38
- package/esm/generated/ai-json-api/common.d.ts.map +1 -1
- package/esm/generated/automation-json-api/common.d.ts.map +1 -1
- package/esm/generated/export-json-api/common.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.d.ts +11 -11
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/common.d.ts.map +1 -1
- package/esm/generated/result-json-api/common.d.ts.map +1 -1
- package/esm/generated/scan-json-api/common.d.ts.map +1 -1
- package/esm/index.d.ts +4 -7
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +0 -2
- package/package.json +6 -7
- package/esm/authActions.d.ts +0 -4
- package/esm/authActions.d.ts.map +0 -1
- package/esm/authActions.js +0 -3
- package/esm/endpoints/authActions/index.d.ts +0 -2
- package/esm/endpoints/authActions/index.d.ts.map +0 -1
- package/esm/endpoints/authActions/index.js +0 -4
- package/esm/generated/auth-json-api/api.d.ts +0 -898
- package/esm/generated/auth-json-api/api.d.ts.map +0 -1
- package/esm/generated/auth-json-api/api.js +0 -934
- package/esm/generated/auth-json-api/base.d.ts +0 -43
- package/esm/generated/auth-json-api/base.d.ts.map +0 -1
- package/esm/generated/auth-json-api/base.js +0 -32
- package/esm/generated/auth-json-api/common.d.ts +0 -66
- package/esm/generated/auth-json-api/common.d.ts.map +0 -1
- package/esm/generated/auth-json-api/common.js +0 -121
- package/esm/generated/auth-json-api/configuration.d.ts +0 -75
- package/esm/generated/auth-json-api/configuration.d.ts.map +0 -1
- package/esm/generated/auth-json-api/configuration.js +0 -71
- package/esm/generated/auth-json-api/index.d.ts +0 -14
- package/esm/generated/auth-json-api/index.d.ts.map +0 -1
- package/esm/generated/auth-json-api/index.js +0 -15
- package/esm/generated/auth-json-api/template.d.ts +0 -102
- package/esm/generated/auth-json-api/template.d.ts.map +0 -1
- package/esm/generated/auth-json-api/template.js +0 -151
|
@@ -1,934 +0,0 @@
|
|
|
1
|
-
// (C) 2024-2026 GoodData Corporation
|
|
2
|
-
import globalAxios from 'axios';
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common.js';
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
import { BASE_PATH, BaseAPI } from './base.js';
|
|
7
|
-
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
8
|
-
/**
|
|
9
|
-
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
10
|
-
* @summary Invite User
|
|
11
|
-
* @param {Invitation} invitation
|
|
12
|
-
* @param {*} [options] Override http request option.
|
|
13
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
14
|
-
* @throws {RequiredError}
|
|
15
|
-
*/
|
|
16
|
-
export async function ActionsApiAxiosParamCreator_ProcessInvitation(invitation, options = {}, configuration) {
|
|
17
|
-
// verify required parameter 'invitation' is not null or undefined
|
|
18
|
-
assertParamExists('processInvitation', 'invitation', invitation);
|
|
19
|
-
const localVarPath = `/api/v1/actions/invite`;
|
|
20
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22
|
-
let baseOptions;
|
|
23
|
-
if (configuration) {
|
|
24
|
-
baseOptions = configuration.baseOptions;
|
|
25
|
-
}
|
|
26
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
27
|
-
const localVarHeaderParameter = {};
|
|
28
|
-
const localVarQueryParameter = {};
|
|
29
|
-
const consumes = [
|
|
30
|
-
'application/json'
|
|
31
|
-
];
|
|
32
|
-
// use application/json if present, otherwise fallback to the first one
|
|
33
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
34
|
-
? 'application/json'
|
|
35
|
-
: consumes[0];
|
|
36
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
38
|
-
localVarRequestOptions.headers = {
|
|
39
|
-
...localVarHeaderParameter,
|
|
40
|
-
...headersFromBaseOptions,
|
|
41
|
-
...options.headers,
|
|
42
|
-
};
|
|
43
|
-
const needsSerialization = typeof invitation !== "string" ||
|
|
44
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
45
|
-
localVarRequestOptions.data = needsSerialization
|
|
46
|
-
? JSON.stringify(invitation !== undefined ? invitation : {})
|
|
47
|
-
: invitation || "";
|
|
48
|
-
return {
|
|
49
|
-
url: toPathString(localVarUrlObj),
|
|
50
|
-
options: localVarRequestOptions,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
// ActionsApi Api FP
|
|
54
|
-
/**
|
|
55
|
-
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
56
|
-
* @summary Invite User
|
|
57
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
58
|
-
* @param {string} basePath Base path.
|
|
59
|
-
* @param {ActionsApiProcessInvitationRequest} requestParameters Request parameters.
|
|
60
|
-
* @param {*} [options] Override http request option.
|
|
61
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
*/
|
|
64
|
-
export async function ActionsApi_ProcessInvitation(axios, basePath, requestParameters, options, configuration) {
|
|
65
|
-
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ProcessInvitation(requestParameters.invitation, options || {}, configuration);
|
|
66
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* ActionsApi - object-oriented interface
|
|
70
|
-
* @export
|
|
71
|
-
* @class ActionsApi
|
|
72
|
-
* @extends {BaseAPI}
|
|
73
|
-
*/
|
|
74
|
-
export class ActionsApi extends BaseAPI {
|
|
75
|
-
/**
|
|
76
|
-
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
77
|
-
* @summary Invite User
|
|
78
|
-
* @param {ActionsApiProcessInvitationRequest} requestParameters Request parameters.
|
|
79
|
-
* @param {*} [options] Override http request option.
|
|
80
|
-
* @throws {RequiredError}
|
|
81
|
-
* @memberof ActionsApi
|
|
82
|
-
*/
|
|
83
|
-
processInvitation(requestParameters, options) {
|
|
84
|
-
return ActionsApi_ProcessInvitation(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// AuthenticationApi FP - AuthenticationApiAxiosParamCreator
|
|
88
|
-
/**
|
|
89
|
-
* Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
90
|
-
* @summary Create a user
|
|
91
|
-
* @param {AuthUser} authUser
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
94
|
-
* @throws {RequiredError}
|
|
95
|
-
*/
|
|
96
|
-
export async function AuthenticationApiAxiosParamCreator_CreateUser(authUser, options = {}, configuration) {
|
|
97
|
-
// verify required parameter 'authUser' is not null or undefined
|
|
98
|
-
assertParamExists('createUser', 'authUser', authUser);
|
|
99
|
-
const localVarPath = `/api/v1/auth/users`;
|
|
100
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
102
|
-
let baseOptions;
|
|
103
|
-
if (configuration) {
|
|
104
|
-
baseOptions = configuration.baseOptions;
|
|
105
|
-
}
|
|
106
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
107
|
-
const localVarHeaderParameter = {};
|
|
108
|
-
const localVarQueryParameter = {};
|
|
109
|
-
const consumes = [
|
|
110
|
-
'application/json'
|
|
111
|
-
];
|
|
112
|
-
// use application/json if present, otherwise fallback to the first one
|
|
113
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
114
|
-
? 'application/json'
|
|
115
|
-
: consumes[0];
|
|
116
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
118
|
-
localVarRequestOptions.headers = {
|
|
119
|
-
...localVarHeaderParameter,
|
|
120
|
-
...headersFromBaseOptions,
|
|
121
|
-
...options.headers,
|
|
122
|
-
};
|
|
123
|
-
const needsSerialization = typeof authUser !== "string" ||
|
|
124
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
125
|
-
localVarRequestOptions.data = needsSerialization
|
|
126
|
-
? JSON.stringify(authUser !== undefined ? authUser : {})
|
|
127
|
-
: authUser || "";
|
|
128
|
-
return {
|
|
129
|
-
url: toPathString(localVarUrlObj),
|
|
130
|
-
options: localVarRequestOptions,
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
// AuthenticationApi FP - AuthenticationApiAxiosParamCreator
|
|
134
|
-
/**
|
|
135
|
-
* Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
136
|
-
* @summary Delete a user
|
|
137
|
-
* @param {string} userEmail
|
|
138
|
-
* @param {*} [options] Override http request option.
|
|
139
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
140
|
-
* @throws {RequiredError}
|
|
141
|
-
*/
|
|
142
|
-
export async function AuthenticationApiAxiosParamCreator_DeleteUser(userEmail, options = {}, configuration) {
|
|
143
|
-
// verify required parameter 'userEmail' is not null or undefined
|
|
144
|
-
assertParamExists('deleteUser', 'userEmail', userEmail);
|
|
145
|
-
const localVarPath = `/api/v1/auth/users/{userEmail}`
|
|
146
|
-
.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
|
|
147
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
148
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
149
|
-
let baseOptions;
|
|
150
|
-
if (configuration) {
|
|
151
|
-
baseOptions = configuration.baseOptions;
|
|
152
|
-
}
|
|
153
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
154
|
-
const localVarHeaderParameter = {};
|
|
155
|
-
const localVarQueryParameter = {};
|
|
156
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
157
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
158
|
-
localVarRequestOptions.headers = {
|
|
159
|
-
...localVarHeaderParameter,
|
|
160
|
-
...headersFromBaseOptions,
|
|
161
|
-
...options.headers,
|
|
162
|
-
};
|
|
163
|
-
return {
|
|
164
|
-
url: toPathString(localVarUrlObj),
|
|
165
|
-
options: localVarRequestOptions,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
// AuthenticationApi FP - AuthenticationApiAxiosParamCreator
|
|
169
|
-
/**
|
|
170
|
-
* Returns a Profile including Organization and Current User Information.
|
|
171
|
-
* @summary Get Profile
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
*/
|
|
176
|
-
export async function AuthenticationApiAxiosParamCreator_GetProfile(options = {}, configuration) {
|
|
177
|
-
const localVarPath = `/api/v1/profile`;
|
|
178
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
179
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
180
|
-
let baseOptions;
|
|
181
|
-
if (configuration) {
|
|
182
|
-
baseOptions = configuration.baseOptions;
|
|
183
|
-
}
|
|
184
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
185
|
-
const localVarHeaderParameter = {};
|
|
186
|
-
const localVarQueryParameter = {};
|
|
187
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
188
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
189
|
-
localVarRequestOptions.headers = {
|
|
190
|
-
...localVarHeaderParameter,
|
|
191
|
-
...headersFromBaseOptions,
|
|
192
|
-
...options.headers,
|
|
193
|
-
};
|
|
194
|
-
return {
|
|
195
|
-
url: toPathString(localVarUrlObj),
|
|
196
|
-
options: localVarRequestOptions,
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
// AuthenticationApi FP - AuthenticationApiAxiosParamCreator
|
|
200
|
-
/**
|
|
201
|
-
* Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
202
|
-
* @summary Get a user
|
|
203
|
-
* @param {string} userEmail
|
|
204
|
-
* @param {*} [options] Override http request option.
|
|
205
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
206
|
-
* @throws {RequiredError}
|
|
207
|
-
*/
|
|
208
|
-
export async function AuthenticationApiAxiosParamCreator_GetUser(userEmail, options = {}, configuration) {
|
|
209
|
-
// verify required parameter 'userEmail' is not null or undefined
|
|
210
|
-
assertParamExists('getUser', 'userEmail', userEmail);
|
|
211
|
-
const localVarPath = `/api/v1/auth/users/{userEmail}`
|
|
212
|
-
.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
|
|
213
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
215
|
-
let baseOptions;
|
|
216
|
-
if (configuration) {
|
|
217
|
-
baseOptions = configuration.baseOptions;
|
|
218
|
-
}
|
|
219
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
220
|
-
const localVarHeaderParameter = {};
|
|
221
|
-
const localVarQueryParameter = {};
|
|
222
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
223
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
224
|
-
localVarRequestOptions.headers = {
|
|
225
|
-
...localVarHeaderParameter,
|
|
226
|
-
...headersFromBaseOptions,
|
|
227
|
-
...options.headers,
|
|
228
|
-
};
|
|
229
|
-
return {
|
|
230
|
-
url: toPathString(localVarUrlObj),
|
|
231
|
-
options: localVarRequestOptions,
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
// AuthenticationApi FP - AuthenticationApiAxiosParamCreator
|
|
235
|
-
/**
|
|
236
|
-
* Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
237
|
-
* @summary Get all users
|
|
238
|
-
* @param {*} [options] Override http request option.
|
|
239
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
240
|
-
* @throws {RequiredError}
|
|
241
|
-
*/
|
|
242
|
-
export async function AuthenticationApiAxiosParamCreator_GetUsers(options = {}, configuration) {
|
|
243
|
-
const localVarPath = `/api/v1/auth/users`;
|
|
244
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
246
|
-
let baseOptions;
|
|
247
|
-
if (configuration) {
|
|
248
|
-
baseOptions = configuration.baseOptions;
|
|
249
|
-
}
|
|
250
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
251
|
-
const localVarHeaderParameter = {};
|
|
252
|
-
const localVarQueryParameter = {};
|
|
253
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
254
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
255
|
-
localVarRequestOptions.headers = {
|
|
256
|
-
...localVarHeaderParameter,
|
|
257
|
-
...headersFromBaseOptions,
|
|
258
|
-
...options.headers,
|
|
259
|
-
};
|
|
260
|
-
return {
|
|
261
|
-
url: toPathString(localVarUrlObj),
|
|
262
|
-
options: localVarRequestOptions,
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
// AuthenticationApi FP - AuthenticationApiAxiosParamCreator
|
|
266
|
-
/**
|
|
267
|
-
* Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
268
|
-
* @summary Update a user
|
|
269
|
-
* @param {string} userEmail
|
|
270
|
-
* @param {AuthUser} authUser
|
|
271
|
-
* @param {*} [options] Override http request option.
|
|
272
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
273
|
-
* @throws {RequiredError}
|
|
274
|
-
*/
|
|
275
|
-
export async function AuthenticationApiAxiosParamCreator_UpdateUser(userEmail, authUser, options = {}, configuration) {
|
|
276
|
-
// verify required parameter 'userEmail' is not null or undefined
|
|
277
|
-
assertParamExists('updateUser', 'userEmail', userEmail);
|
|
278
|
-
// verify required parameter 'authUser' is not null or undefined
|
|
279
|
-
assertParamExists('updateUser', 'authUser', authUser);
|
|
280
|
-
const localVarPath = `/api/v1/auth/users/{userEmail}`
|
|
281
|
-
.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
|
|
282
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
283
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
284
|
-
let baseOptions;
|
|
285
|
-
if (configuration) {
|
|
286
|
-
baseOptions = configuration.baseOptions;
|
|
287
|
-
}
|
|
288
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
289
|
-
const localVarHeaderParameter = {};
|
|
290
|
-
const localVarQueryParameter = {};
|
|
291
|
-
const consumes = [
|
|
292
|
-
'application/json'
|
|
293
|
-
];
|
|
294
|
-
// use application/json if present, otherwise fallback to the first one
|
|
295
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
296
|
-
? 'application/json'
|
|
297
|
-
: consumes[0];
|
|
298
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
299
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
300
|
-
localVarRequestOptions.headers = {
|
|
301
|
-
...localVarHeaderParameter,
|
|
302
|
-
...headersFromBaseOptions,
|
|
303
|
-
...options.headers,
|
|
304
|
-
};
|
|
305
|
-
const needsSerialization = typeof authUser !== "string" ||
|
|
306
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
307
|
-
localVarRequestOptions.data = needsSerialization
|
|
308
|
-
? JSON.stringify(authUser !== undefined ? authUser : {})
|
|
309
|
-
: authUser || "";
|
|
310
|
-
return {
|
|
311
|
-
url: toPathString(localVarUrlObj),
|
|
312
|
-
options: localVarRequestOptions,
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
// AuthenticationApi Api FP
|
|
316
|
-
/**
|
|
317
|
-
* Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
318
|
-
* @summary Create a user
|
|
319
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
320
|
-
* @param {string} basePath Base path.
|
|
321
|
-
* @param {AuthenticationApiCreateUserRequest} requestParameters Request parameters.
|
|
322
|
-
* @param {*} [options] Override http request option.
|
|
323
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
324
|
-
* @throws {RequiredError}
|
|
325
|
-
*/
|
|
326
|
-
export async function AuthenticationApi_CreateUser(axios, basePath, requestParameters, options, configuration) {
|
|
327
|
-
const localVarAxiosArgs = await AuthenticationApiAxiosParamCreator_CreateUser(requestParameters.authUser, options || {}, configuration);
|
|
328
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
329
|
-
}
|
|
330
|
-
// AuthenticationApi Api FP
|
|
331
|
-
/**
|
|
332
|
-
* Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
333
|
-
* @summary Delete a user
|
|
334
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
335
|
-
* @param {string} basePath Base path.
|
|
336
|
-
* @param {AuthenticationApiDeleteUserRequest} requestParameters Request parameters.
|
|
337
|
-
* @param {*} [options] Override http request option.
|
|
338
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
339
|
-
* @throws {RequiredError}
|
|
340
|
-
*/
|
|
341
|
-
export async function AuthenticationApi_DeleteUser(axios, basePath, requestParameters, options, configuration) {
|
|
342
|
-
const localVarAxiosArgs = await AuthenticationApiAxiosParamCreator_DeleteUser(requestParameters.userEmail, options || {}, configuration);
|
|
343
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
344
|
-
}
|
|
345
|
-
// AuthenticationApi Api FP
|
|
346
|
-
/**
|
|
347
|
-
* Returns a Profile including Organization and Current User Information.
|
|
348
|
-
* @summary Get Profile
|
|
349
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
350
|
-
* @param {string} basePath Base path.
|
|
351
|
-
* @param {*} [options] Override http request option.
|
|
352
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
353
|
-
* @throws {RequiredError}
|
|
354
|
-
*/
|
|
355
|
-
export async function AuthenticationApi_GetProfile(axios, basePath, options, configuration) {
|
|
356
|
-
const localVarAxiosArgs = await AuthenticationApiAxiosParamCreator_GetProfile(options || {}, configuration);
|
|
357
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
358
|
-
}
|
|
359
|
-
// AuthenticationApi Api FP
|
|
360
|
-
/**
|
|
361
|
-
* Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
362
|
-
* @summary Get a user
|
|
363
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
364
|
-
* @param {string} basePath Base path.
|
|
365
|
-
* @param {AuthenticationApiGetUserRequest} requestParameters Request parameters.
|
|
366
|
-
* @param {*} [options] Override http request option.
|
|
367
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
368
|
-
* @throws {RequiredError}
|
|
369
|
-
*/
|
|
370
|
-
export async function AuthenticationApi_GetUser(axios, basePath, requestParameters, options, configuration) {
|
|
371
|
-
const localVarAxiosArgs = await AuthenticationApiAxiosParamCreator_GetUser(requestParameters.userEmail, options || {}, configuration);
|
|
372
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
373
|
-
}
|
|
374
|
-
// AuthenticationApi Api FP
|
|
375
|
-
/**
|
|
376
|
-
* Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
377
|
-
* @summary Get all users
|
|
378
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
379
|
-
* @param {string} basePath Base path.
|
|
380
|
-
* @param {*} [options] Override http request option.
|
|
381
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
*/
|
|
384
|
-
export async function AuthenticationApi_GetUsers(axios, basePath, options, configuration) {
|
|
385
|
-
const localVarAxiosArgs = await AuthenticationApiAxiosParamCreator_GetUsers(options || {}, configuration);
|
|
386
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
387
|
-
}
|
|
388
|
-
// AuthenticationApi Api FP
|
|
389
|
-
/**
|
|
390
|
-
* Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
391
|
-
* @summary Update a user
|
|
392
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
393
|
-
* @param {string} basePath Base path.
|
|
394
|
-
* @param {AuthenticationApiUpdateUserRequest} requestParameters Request parameters.
|
|
395
|
-
* @param {*} [options] Override http request option.
|
|
396
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
397
|
-
* @throws {RequiredError}
|
|
398
|
-
*/
|
|
399
|
-
export async function AuthenticationApi_UpdateUser(axios, basePath, requestParameters, options, configuration) {
|
|
400
|
-
const localVarAxiosArgs = await AuthenticationApiAxiosParamCreator_UpdateUser(requestParameters.userEmail, requestParameters.authUser, options || {}, configuration);
|
|
401
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* AuthenticationApi - object-oriented interface
|
|
405
|
-
* @export
|
|
406
|
-
* @class AuthenticationApi
|
|
407
|
-
* @extends {BaseAPI}
|
|
408
|
-
*/
|
|
409
|
-
export class AuthenticationApi extends BaseAPI {
|
|
410
|
-
/**
|
|
411
|
-
* Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
412
|
-
* @summary Create a user
|
|
413
|
-
* @param {AuthenticationApiCreateUserRequest} requestParameters Request parameters.
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @throws {RequiredError}
|
|
416
|
-
* @memberof AuthenticationApi
|
|
417
|
-
*/
|
|
418
|
-
createUser(requestParameters, options) {
|
|
419
|
-
return AuthenticationApi_CreateUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
423
|
-
* @summary Delete a user
|
|
424
|
-
* @param {AuthenticationApiDeleteUserRequest} requestParameters Request parameters.
|
|
425
|
-
* @param {*} [options] Override http request option.
|
|
426
|
-
* @throws {RequiredError}
|
|
427
|
-
* @memberof AuthenticationApi
|
|
428
|
-
*/
|
|
429
|
-
deleteUser(requestParameters, options) {
|
|
430
|
-
return AuthenticationApi_DeleteUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* Returns a Profile including Organization and Current User Information.
|
|
434
|
-
* @summary Get Profile
|
|
435
|
-
* @param {*} [options] Override http request option.
|
|
436
|
-
* @throws {RequiredError}
|
|
437
|
-
* @memberof AuthenticationApi
|
|
438
|
-
*/
|
|
439
|
-
getProfile(options) {
|
|
440
|
-
return AuthenticationApi_GetProfile(this.axios, this.basePath, options, this.configuration);
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
444
|
-
* @summary Get a user
|
|
445
|
-
* @param {AuthenticationApiGetUserRequest} requestParameters Request parameters.
|
|
446
|
-
* @param {*} [options] Override http request option.
|
|
447
|
-
* @throws {RequiredError}
|
|
448
|
-
* @memberof AuthenticationApi
|
|
449
|
-
*/
|
|
450
|
-
getUser(requestParameters, options) {
|
|
451
|
-
return AuthenticationApi_GetUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
452
|
-
}
|
|
453
|
-
/**
|
|
454
|
-
* Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
455
|
-
* @summary Get all users
|
|
456
|
-
* @param {*} [options] Override http request option.
|
|
457
|
-
* @throws {RequiredError}
|
|
458
|
-
* @memberof AuthenticationApi
|
|
459
|
-
*/
|
|
460
|
-
getUsers(options) {
|
|
461
|
-
return AuthenticationApi_GetUsers(this.axios, this.basePath, options, this.configuration);
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
465
|
-
* @summary Update a user
|
|
466
|
-
* @param {AuthenticationApiUpdateUserRequest} requestParameters Request parameters.
|
|
467
|
-
* @param {*} [options] Override http request option.
|
|
468
|
-
* @throws {RequiredError}
|
|
469
|
-
* @memberof AuthenticationApi
|
|
470
|
-
*/
|
|
471
|
-
updateUser(requestParameters, options) {
|
|
472
|
-
return AuthenticationApi_UpdateUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
// UserAuthorizationApi FP - UserAuthorizationApiAxiosParamCreator
|
|
476
|
-
/**
|
|
477
|
-
* Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
478
|
-
* @summary Create a user
|
|
479
|
-
* @param {AuthUser} authUser
|
|
480
|
-
* @param {*} [options] Override http request option.
|
|
481
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
482
|
-
* @throws {RequiredError}
|
|
483
|
-
*/
|
|
484
|
-
export async function UserAuthorizationApiAxiosParamCreator_CreateUser(authUser, options = {}, configuration) {
|
|
485
|
-
// verify required parameter 'authUser' is not null or undefined
|
|
486
|
-
assertParamExists('createUser', 'authUser', authUser);
|
|
487
|
-
const localVarPath = `/api/v1/auth/users`;
|
|
488
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
489
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
490
|
-
let baseOptions;
|
|
491
|
-
if (configuration) {
|
|
492
|
-
baseOptions = configuration.baseOptions;
|
|
493
|
-
}
|
|
494
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
495
|
-
const localVarHeaderParameter = {};
|
|
496
|
-
const localVarQueryParameter = {};
|
|
497
|
-
const consumes = [
|
|
498
|
-
'application/json'
|
|
499
|
-
];
|
|
500
|
-
// use application/json if present, otherwise fallback to the first one
|
|
501
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
502
|
-
? 'application/json'
|
|
503
|
-
: consumes[0];
|
|
504
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
505
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
506
|
-
localVarRequestOptions.headers = {
|
|
507
|
-
...localVarHeaderParameter,
|
|
508
|
-
...headersFromBaseOptions,
|
|
509
|
-
...options.headers,
|
|
510
|
-
};
|
|
511
|
-
const needsSerialization = typeof authUser !== "string" ||
|
|
512
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
513
|
-
localVarRequestOptions.data = needsSerialization
|
|
514
|
-
? JSON.stringify(authUser !== undefined ? authUser : {})
|
|
515
|
-
: authUser || "";
|
|
516
|
-
return {
|
|
517
|
-
url: toPathString(localVarUrlObj),
|
|
518
|
-
options: localVarRequestOptions,
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
// UserAuthorizationApi FP - UserAuthorizationApiAxiosParamCreator
|
|
522
|
-
/**
|
|
523
|
-
* Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
524
|
-
* @summary Delete a user
|
|
525
|
-
* @param {string} userEmail
|
|
526
|
-
* @param {*} [options] Override http request option.
|
|
527
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
528
|
-
* @throws {RequiredError}
|
|
529
|
-
*/
|
|
530
|
-
export async function UserAuthorizationApiAxiosParamCreator_DeleteUser(userEmail, options = {}, configuration) {
|
|
531
|
-
// verify required parameter 'userEmail' is not null or undefined
|
|
532
|
-
assertParamExists('deleteUser', 'userEmail', userEmail);
|
|
533
|
-
const localVarPath = `/api/v1/auth/users/{userEmail}`
|
|
534
|
-
.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
|
|
535
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
536
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
537
|
-
let baseOptions;
|
|
538
|
-
if (configuration) {
|
|
539
|
-
baseOptions = configuration.baseOptions;
|
|
540
|
-
}
|
|
541
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
542
|
-
const localVarHeaderParameter = {};
|
|
543
|
-
const localVarQueryParameter = {};
|
|
544
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
545
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
546
|
-
localVarRequestOptions.headers = {
|
|
547
|
-
...localVarHeaderParameter,
|
|
548
|
-
...headersFromBaseOptions,
|
|
549
|
-
...options.headers,
|
|
550
|
-
};
|
|
551
|
-
return {
|
|
552
|
-
url: toPathString(localVarUrlObj),
|
|
553
|
-
options: localVarRequestOptions,
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
// UserAuthorizationApi FP - UserAuthorizationApiAxiosParamCreator
|
|
557
|
-
/**
|
|
558
|
-
* Returns a Profile including Organization and Current User Information.
|
|
559
|
-
* @summary Get Profile
|
|
560
|
-
* @param {*} [options] Override http request option.
|
|
561
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
562
|
-
* @throws {RequiredError}
|
|
563
|
-
*/
|
|
564
|
-
export async function UserAuthorizationApiAxiosParamCreator_GetProfile(options = {}, configuration) {
|
|
565
|
-
const localVarPath = `/api/v1/profile`;
|
|
566
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
567
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
568
|
-
let baseOptions;
|
|
569
|
-
if (configuration) {
|
|
570
|
-
baseOptions = configuration.baseOptions;
|
|
571
|
-
}
|
|
572
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
573
|
-
const localVarHeaderParameter = {};
|
|
574
|
-
const localVarQueryParameter = {};
|
|
575
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
576
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
577
|
-
localVarRequestOptions.headers = {
|
|
578
|
-
...localVarHeaderParameter,
|
|
579
|
-
...headersFromBaseOptions,
|
|
580
|
-
...options.headers,
|
|
581
|
-
};
|
|
582
|
-
return {
|
|
583
|
-
url: toPathString(localVarUrlObj),
|
|
584
|
-
options: localVarRequestOptions,
|
|
585
|
-
};
|
|
586
|
-
}
|
|
587
|
-
// UserAuthorizationApi FP - UserAuthorizationApiAxiosParamCreator
|
|
588
|
-
/**
|
|
589
|
-
* Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
590
|
-
* @summary Get a user
|
|
591
|
-
* @param {string} userEmail
|
|
592
|
-
* @param {*} [options] Override http request option.
|
|
593
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
594
|
-
* @throws {RequiredError}
|
|
595
|
-
*/
|
|
596
|
-
export async function UserAuthorizationApiAxiosParamCreator_GetUser(userEmail, options = {}, configuration) {
|
|
597
|
-
// verify required parameter 'userEmail' is not null or undefined
|
|
598
|
-
assertParamExists('getUser', 'userEmail', userEmail);
|
|
599
|
-
const localVarPath = `/api/v1/auth/users/{userEmail}`
|
|
600
|
-
.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
|
|
601
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
602
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
|
-
let baseOptions;
|
|
604
|
-
if (configuration) {
|
|
605
|
-
baseOptions = configuration.baseOptions;
|
|
606
|
-
}
|
|
607
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
608
|
-
const localVarHeaderParameter = {};
|
|
609
|
-
const localVarQueryParameter = {};
|
|
610
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
611
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
612
|
-
localVarRequestOptions.headers = {
|
|
613
|
-
...localVarHeaderParameter,
|
|
614
|
-
...headersFromBaseOptions,
|
|
615
|
-
...options.headers,
|
|
616
|
-
};
|
|
617
|
-
return {
|
|
618
|
-
url: toPathString(localVarUrlObj),
|
|
619
|
-
options: localVarRequestOptions,
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
// UserAuthorizationApi FP - UserAuthorizationApiAxiosParamCreator
|
|
623
|
-
/**
|
|
624
|
-
* Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
625
|
-
* @summary Get all users
|
|
626
|
-
* @param {*} [options] Override http request option.
|
|
627
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
628
|
-
* @throws {RequiredError}
|
|
629
|
-
*/
|
|
630
|
-
export async function UserAuthorizationApiAxiosParamCreator_GetUsers(options = {}, configuration) {
|
|
631
|
-
const localVarPath = `/api/v1/auth/users`;
|
|
632
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
633
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
634
|
-
let baseOptions;
|
|
635
|
-
if (configuration) {
|
|
636
|
-
baseOptions = configuration.baseOptions;
|
|
637
|
-
}
|
|
638
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
639
|
-
const localVarHeaderParameter = {};
|
|
640
|
-
const localVarQueryParameter = {};
|
|
641
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
642
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
643
|
-
localVarRequestOptions.headers = {
|
|
644
|
-
...localVarHeaderParameter,
|
|
645
|
-
...headersFromBaseOptions,
|
|
646
|
-
...options.headers,
|
|
647
|
-
};
|
|
648
|
-
return {
|
|
649
|
-
url: toPathString(localVarUrlObj),
|
|
650
|
-
options: localVarRequestOptions,
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
// UserAuthorizationApi FP - UserAuthorizationApiAxiosParamCreator
|
|
654
|
-
/**
|
|
655
|
-
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
656
|
-
* @summary Invite User
|
|
657
|
-
* @param {Invitation} invitation
|
|
658
|
-
* @param {*} [options] Override http request option.
|
|
659
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
660
|
-
* @throws {RequiredError}
|
|
661
|
-
*/
|
|
662
|
-
export async function UserAuthorizationApiAxiosParamCreator_ProcessInvitation(invitation, options = {}, configuration) {
|
|
663
|
-
// verify required parameter 'invitation' is not null or undefined
|
|
664
|
-
assertParamExists('processInvitation', 'invitation', invitation);
|
|
665
|
-
const localVarPath = `/api/v1/actions/invite`;
|
|
666
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
667
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
668
|
-
let baseOptions;
|
|
669
|
-
if (configuration) {
|
|
670
|
-
baseOptions = configuration.baseOptions;
|
|
671
|
-
}
|
|
672
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
673
|
-
const localVarHeaderParameter = {};
|
|
674
|
-
const localVarQueryParameter = {};
|
|
675
|
-
const consumes = [
|
|
676
|
-
'application/json'
|
|
677
|
-
];
|
|
678
|
-
// use application/json if present, otherwise fallback to the first one
|
|
679
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
680
|
-
? 'application/json'
|
|
681
|
-
: consumes[0];
|
|
682
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
683
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
684
|
-
localVarRequestOptions.headers = {
|
|
685
|
-
...localVarHeaderParameter,
|
|
686
|
-
...headersFromBaseOptions,
|
|
687
|
-
...options.headers,
|
|
688
|
-
};
|
|
689
|
-
const needsSerialization = typeof invitation !== "string" ||
|
|
690
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
691
|
-
localVarRequestOptions.data = needsSerialization
|
|
692
|
-
? JSON.stringify(invitation !== undefined ? invitation : {})
|
|
693
|
-
: invitation || "";
|
|
694
|
-
return {
|
|
695
|
-
url: toPathString(localVarUrlObj),
|
|
696
|
-
options: localVarRequestOptions,
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
|
-
// UserAuthorizationApi FP - UserAuthorizationApiAxiosParamCreator
|
|
700
|
-
/**
|
|
701
|
-
* Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
702
|
-
* @summary Update a user
|
|
703
|
-
* @param {string} userEmail
|
|
704
|
-
* @param {AuthUser} authUser
|
|
705
|
-
* @param {*} [options] Override http request option.
|
|
706
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
707
|
-
* @throws {RequiredError}
|
|
708
|
-
*/
|
|
709
|
-
export async function UserAuthorizationApiAxiosParamCreator_UpdateUser(userEmail, authUser, options = {}, configuration) {
|
|
710
|
-
// verify required parameter 'userEmail' is not null or undefined
|
|
711
|
-
assertParamExists('updateUser', 'userEmail', userEmail);
|
|
712
|
-
// verify required parameter 'authUser' is not null or undefined
|
|
713
|
-
assertParamExists('updateUser', 'authUser', authUser);
|
|
714
|
-
const localVarPath = `/api/v1/auth/users/{userEmail}`
|
|
715
|
-
.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
|
|
716
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
717
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
718
|
-
let baseOptions;
|
|
719
|
-
if (configuration) {
|
|
720
|
-
baseOptions = configuration.baseOptions;
|
|
721
|
-
}
|
|
722
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
723
|
-
const localVarHeaderParameter = {};
|
|
724
|
-
const localVarQueryParameter = {};
|
|
725
|
-
const consumes = [
|
|
726
|
-
'application/json'
|
|
727
|
-
];
|
|
728
|
-
// use application/json if present, otherwise fallback to the first one
|
|
729
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
730
|
-
? 'application/json'
|
|
731
|
-
: consumes[0];
|
|
732
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
733
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
734
|
-
localVarRequestOptions.headers = {
|
|
735
|
-
...localVarHeaderParameter,
|
|
736
|
-
...headersFromBaseOptions,
|
|
737
|
-
...options.headers,
|
|
738
|
-
};
|
|
739
|
-
const needsSerialization = typeof authUser !== "string" ||
|
|
740
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
741
|
-
localVarRequestOptions.data = needsSerialization
|
|
742
|
-
? JSON.stringify(authUser !== undefined ? authUser : {})
|
|
743
|
-
: authUser || "";
|
|
744
|
-
return {
|
|
745
|
-
url: toPathString(localVarUrlObj),
|
|
746
|
-
options: localVarRequestOptions,
|
|
747
|
-
};
|
|
748
|
-
}
|
|
749
|
-
// UserAuthorizationApi Api FP
|
|
750
|
-
/**
|
|
751
|
-
* Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
752
|
-
* @summary Create a user
|
|
753
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
754
|
-
* @param {string} basePath Base path.
|
|
755
|
-
* @param {UserAuthorizationApiCreateUserRequest} requestParameters Request parameters.
|
|
756
|
-
* @param {*} [options] Override http request option.
|
|
757
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
758
|
-
* @throws {RequiredError}
|
|
759
|
-
*/
|
|
760
|
-
export async function UserAuthorizationApi_CreateUser(axios, basePath, requestParameters, options, configuration) {
|
|
761
|
-
const localVarAxiosArgs = await UserAuthorizationApiAxiosParamCreator_CreateUser(requestParameters.authUser, options || {}, configuration);
|
|
762
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
763
|
-
}
|
|
764
|
-
// UserAuthorizationApi Api FP
|
|
765
|
-
/**
|
|
766
|
-
* Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
767
|
-
* @summary Delete a user
|
|
768
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
769
|
-
* @param {string} basePath Base path.
|
|
770
|
-
* @param {UserAuthorizationApiDeleteUserRequest} requestParameters Request parameters.
|
|
771
|
-
* @param {*} [options] Override http request option.
|
|
772
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
773
|
-
* @throws {RequiredError}
|
|
774
|
-
*/
|
|
775
|
-
export async function UserAuthorizationApi_DeleteUser(axios, basePath, requestParameters, options, configuration) {
|
|
776
|
-
const localVarAxiosArgs = await UserAuthorizationApiAxiosParamCreator_DeleteUser(requestParameters.userEmail, options || {}, configuration);
|
|
777
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
778
|
-
}
|
|
779
|
-
// UserAuthorizationApi Api FP
|
|
780
|
-
/**
|
|
781
|
-
* Returns a Profile including Organization and Current User Information.
|
|
782
|
-
* @summary Get Profile
|
|
783
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
784
|
-
* @param {string} basePath Base path.
|
|
785
|
-
* @param {*} [options] Override http request option.
|
|
786
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
787
|
-
* @throws {RequiredError}
|
|
788
|
-
*/
|
|
789
|
-
export async function UserAuthorizationApi_GetProfile(axios, basePath, options, configuration) {
|
|
790
|
-
const localVarAxiosArgs = await UserAuthorizationApiAxiosParamCreator_GetProfile(options || {}, configuration);
|
|
791
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
792
|
-
}
|
|
793
|
-
// UserAuthorizationApi Api FP
|
|
794
|
-
/**
|
|
795
|
-
* Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
796
|
-
* @summary Get a user
|
|
797
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
798
|
-
* @param {string} basePath Base path.
|
|
799
|
-
* @param {UserAuthorizationApiGetUserRequest} requestParameters Request parameters.
|
|
800
|
-
* @param {*} [options] Override http request option.
|
|
801
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
802
|
-
* @throws {RequiredError}
|
|
803
|
-
*/
|
|
804
|
-
export async function UserAuthorizationApi_GetUser(axios, basePath, requestParameters, options, configuration) {
|
|
805
|
-
const localVarAxiosArgs = await UserAuthorizationApiAxiosParamCreator_GetUser(requestParameters.userEmail, options || {}, configuration);
|
|
806
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
807
|
-
}
|
|
808
|
-
// UserAuthorizationApi Api FP
|
|
809
|
-
/**
|
|
810
|
-
* Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
811
|
-
* @summary Get all users
|
|
812
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
813
|
-
* @param {string} basePath Base path.
|
|
814
|
-
* @param {*} [options] Override http request option.
|
|
815
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
816
|
-
* @throws {RequiredError}
|
|
817
|
-
*/
|
|
818
|
-
export async function UserAuthorizationApi_GetUsers(axios, basePath, options, configuration) {
|
|
819
|
-
const localVarAxiosArgs = await UserAuthorizationApiAxiosParamCreator_GetUsers(options || {}, configuration);
|
|
820
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
821
|
-
}
|
|
822
|
-
// UserAuthorizationApi Api FP
|
|
823
|
-
/**
|
|
824
|
-
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
825
|
-
* @summary Invite User
|
|
826
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
827
|
-
* @param {string} basePath Base path.
|
|
828
|
-
* @param {UserAuthorizationApiProcessInvitationRequest} requestParameters Request parameters.
|
|
829
|
-
* @param {*} [options] Override http request option.
|
|
830
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
831
|
-
* @throws {RequiredError}
|
|
832
|
-
*/
|
|
833
|
-
export async function UserAuthorizationApi_ProcessInvitation(axios, basePath, requestParameters, options, configuration) {
|
|
834
|
-
const localVarAxiosArgs = await UserAuthorizationApiAxiosParamCreator_ProcessInvitation(requestParameters.invitation, options || {}, configuration);
|
|
835
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
836
|
-
}
|
|
837
|
-
// UserAuthorizationApi Api FP
|
|
838
|
-
/**
|
|
839
|
-
* Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
840
|
-
* @summary Update a user
|
|
841
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
842
|
-
* @param {string} basePath Base path.
|
|
843
|
-
* @param {UserAuthorizationApiUpdateUserRequest} requestParameters Request parameters.
|
|
844
|
-
* @param {*} [options] Override http request option.
|
|
845
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
846
|
-
* @throws {RequiredError}
|
|
847
|
-
*/
|
|
848
|
-
export async function UserAuthorizationApi_UpdateUser(axios, basePath, requestParameters, options, configuration) {
|
|
849
|
-
const localVarAxiosArgs = await UserAuthorizationApiAxiosParamCreator_UpdateUser(requestParameters.userEmail, requestParameters.authUser, options || {}, configuration);
|
|
850
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
851
|
-
}
|
|
852
|
-
/**
|
|
853
|
-
* UserAuthorizationApi - object-oriented interface
|
|
854
|
-
* @export
|
|
855
|
-
* @class UserAuthorizationApi
|
|
856
|
-
* @extends {BaseAPI}
|
|
857
|
-
*/
|
|
858
|
-
export class UserAuthorizationApi extends BaseAPI {
|
|
859
|
-
/**
|
|
860
|
-
* Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
861
|
-
* @summary Create a user
|
|
862
|
-
* @param {UserAuthorizationApiCreateUserRequest} requestParameters Request parameters.
|
|
863
|
-
* @param {*} [options] Override http request option.
|
|
864
|
-
* @throws {RequiredError}
|
|
865
|
-
* @memberof UserAuthorizationApi
|
|
866
|
-
*/
|
|
867
|
-
createUser(requestParameters, options) {
|
|
868
|
-
return UserAuthorizationApi_CreateUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
872
|
-
* @summary Delete a user
|
|
873
|
-
* @param {UserAuthorizationApiDeleteUserRequest} requestParameters Request parameters.
|
|
874
|
-
* @param {*} [options] Override http request option.
|
|
875
|
-
* @throws {RequiredError}
|
|
876
|
-
* @memberof UserAuthorizationApi
|
|
877
|
-
*/
|
|
878
|
-
deleteUser(requestParameters, options) {
|
|
879
|
-
return UserAuthorizationApi_DeleteUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
880
|
-
}
|
|
881
|
-
/**
|
|
882
|
-
* Returns a Profile including Organization and Current User Information.
|
|
883
|
-
* @summary Get Profile
|
|
884
|
-
* @param {*} [options] Override http request option.
|
|
885
|
-
* @throws {RequiredError}
|
|
886
|
-
* @memberof UserAuthorizationApi
|
|
887
|
-
*/
|
|
888
|
-
getProfile(options) {
|
|
889
|
-
return UserAuthorizationApi_GetProfile(this.axios, this.basePath, options, this.configuration);
|
|
890
|
-
}
|
|
891
|
-
/**
|
|
892
|
-
* Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
893
|
-
* @summary Get a user
|
|
894
|
-
* @param {UserAuthorizationApiGetUserRequest} requestParameters Request parameters.
|
|
895
|
-
* @param {*} [options] Override http request option.
|
|
896
|
-
* @throws {RequiredError}
|
|
897
|
-
* @memberof UserAuthorizationApi
|
|
898
|
-
*/
|
|
899
|
-
getUser(requestParameters, options) {
|
|
900
|
-
return UserAuthorizationApi_GetUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
|
-
* Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
904
|
-
* @summary Get all users
|
|
905
|
-
* @param {*} [options] Override http request option.
|
|
906
|
-
* @throws {RequiredError}
|
|
907
|
-
* @memberof UserAuthorizationApi
|
|
908
|
-
*/
|
|
909
|
-
getUsers(options) {
|
|
910
|
-
return UserAuthorizationApi_GetUsers(this.axios, this.basePath, options, this.configuration);
|
|
911
|
-
}
|
|
912
|
-
/**
|
|
913
|
-
* Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
|
|
914
|
-
* @summary Invite User
|
|
915
|
-
* @param {UserAuthorizationApiProcessInvitationRequest} requestParameters Request parameters.
|
|
916
|
-
* @param {*} [options] Override http request option.
|
|
917
|
-
* @throws {RequiredError}
|
|
918
|
-
* @memberof UserAuthorizationApi
|
|
919
|
-
*/
|
|
920
|
-
processInvitation(requestParameters, options) {
|
|
921
|
-
return UserAuthorizationApi_ProcessInvitation(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
922
|
-
}
|
|
923
|
-
/**
|
|
924
|
-
* Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
|
|
925
|
-
* @summary Update a user
|
|
926
|
-
* @param {UserAuthorizationApiUpdateUserRequest} requestParameters Request parameters.
|
|
927
|
-
* @param {*} [options] Override http request option.
|
|
928
|
-
* @throws {RequiredError}
|
|
929
|
-
* @memberof UserAuthorizationApi
|
|
930
|
-
*/
|
|
931
|
-
updateUser(requestParameters, options) {
|
|
932
|
-
return UserAuthorizationApi_UpdateUser(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
933
|
-
}
|
|
934
|
-
}
|