@gooddata/api-client-tiger 11.5.0-alpha.5 → 11.5.0

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.
@@ -126,6 +126,76 @@ export class ActionsApi extends BaseAPI {
126
126
  */
127
127
  export const AuthenticationApiAxiosParamCreator = function (configuration) {
128
128
  return {
129
+ /**
130
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
131
+ * @summary Create a user
132
+ * @param {AuthUser} authUser
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ createUser: async (authUser, options = {}) => {
137
+ // verify required parameter 'authUser' is not null or undefined
138
+ assertParamExists("createUser", "authUser", authUser);
139
+ const localVarPath = `/api/v1/auth/users`;
140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
142
+ let baseOptions;
143
+ if (configuration) {
144
+ baseOptions = configuration.baseOptions;
145
+ }
146
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
147
+ const localVarHeaderParameter = {};
148
+ const localVarQueryParameter = {};
149
+ localVarHeaderParameter["Content-Type"] = "application/json";
150
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152
+ localVarRequestOptions.headers = {
153
+ ...localVarHeaderParameter,
154
+ ...headersFromBaseOptions,
155
+ ...options.headers,
156
+ };
157
+ const needsSerialization = typeof authUser !== "string" ||
158
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
159
+ localVarRequestOptions.data = needsSerialization
160
+ ? JSON.stringify(authUser !== undefined ? authUser : {})
161
+ : authUser || "";
162
+ return {
163
+ url: toPathString(localVarUrlObj),
164
+ options: localVarRequestOptions,
165
+ };
166
+ },
167
+ /**
168
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
169
+ * @summary Delete a user
170
+ * @param {string} userEmail
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ deleteUser: async (userEmail, options = {}) => {
175
+ // verify required parameter 'userEmail' is not null or undefined
176
+ assertParamExists("deleteUser", "userEmail", userEmail);
177
+ const localVarPath = `/api/v1/auth/users/{userEmail}`.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
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: "DELETE", ...baseOptions, ...options };
185
+ const localVarHeaderParameter = {};
186
+ const localVarQueryParameter = {};
187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
188
+ let headersFromBaseOptions = baseOptions && 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
+ },
129
199
  /**
130
200
  * Returns a Profile including Organization and Current User Information.
131
201
  * @summary Get Profile
@@ -155,6 +225,108 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
155
225
  options: localVarRequestOptions,
156
226
  };
157
227
  },
228
+ /**
229
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
230
+ * @summary Get a user
231
+ * @param {string} userEmail
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ getUser: async (userEmail, options = {}) => {
236
+ // verify required parameter 'userEmail' is not null or undefined
237
+ assertParamExists("getUser", "userEmail", userEmail);
238
+ const localVarPath = `/api/v1/auth/users/{userEmail}`.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
+ localVarRequestOptions.headers = {
251
+ ...localVarHeaderParameter,
252
+ ...headersFromBaseOptions,
253
+ ...options.headers,
254
+ };
255
+ return {
256
+ url: toPathString(localVarUrlObj),
257
+ options: localVarRequestOptions,
258
+ };
259
+ },
260
+ /**
261
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
262
+ * @summary Get all users
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ getUsers: async (options = {}) => {
267
+ const localVarPath = `/api/v1/auth/users`;
268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
269
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
270
+ let baseOptions;
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ }
274
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
275
+ const localVarHeaderParameter = {};
276
+ const localVarQueryParameter = {};
277
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = {
280
+ ...localVarHeaderParameter,
281
+ ...headersFromBaseOptions,
282
+ ...options.headers,
283
+ };
284
+ return {
285
+ url: toPathString(localVarUrlObj),
286
+ options: localVarRequestOptions,
287
+ };
288
+ },
289
+ /**
290
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
291
+ * @summary Update a user
292
+ * @param {string} userEmail
293
+ * @param {AuthUser} authUser
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ updateUser: async (userEmail, authUser, options = {}) => {
298
+ // verify required parameter 'userEmail' is not null or undefined
299
+ assertParamExists("updateUser", "userEmail", userEmail);
300
+ // verify required parameter 'authUser' is not null or undefined
301
+ assertParamExists("updateUser", "authUser", authUser);
302
+ const localVarPath = `/api/v1/auth/users/{userEmail}`.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
303
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
304
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
305
+ let baseOptions;
306
+ if (configuration) {
307
+ baseOptions = configuration.baseOptions;
308
+ }
309
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
310
+ const localVarHeaderParameter = {};
311
+ const localVarQueryParameter = {};
312
+ localVarHeaderParameter["Content-Type"] = "application/json";
313
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
+ localVarRequestOptions.headers = {
316
+ ...localVarHeaderParameter,
317
+ ...headersFromBaseOptions,
318
+ ...options.headers,
319
+ };
320
+ const needsSerialization = typeof authUser !== "string" ||
321
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
322
+ localVarRequestOptions.data = needsSerialization
323
+ ? JSON.stringify(authUser !== undefined ? authUser : {})
324
+ : authUser || "";
325
+ return {
326
+ url: toPathString(localVarUrlObj),
327
+ options: localVarRequestOptions,
328
+ };
329
+ },
158
330
  };
159
331
  };
160
332
  /**
@@ -164,6 +336,28 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
164
336
  export const AuthenticationApiFp = function (configuration) {
165
337
  const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration);
166
338
  return {
339
+ /**
340
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
341
+ * @summary Create a user
342
+ * @param {AuthUser} authUser
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ async createUser(authUser, options) {
347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(authUser, options);
348
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
+ },
350
+ /**
351
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
352
+ * @summary Delete a user
353
+ * @param {string} userEmail
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ async deleteUser(userEmail, options) {
358
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userEmail, options);
359
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
360
+ },
167
361
  /**
168
362
  * Returns a Profile including Organization and Current User Information.
169
363
  * @summary Get Profile
@@ -174,6 +368,39 @@ export const AuthenticationApiFp = function (configuration) {
174
368
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProfile(options);
175
369
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
176
370
  },
371
+ /**
372
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
373
+ * @summary Get a user
374
+ * @param {string} userEmail
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ async getUser(userEmail, options) {
379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(userEmail, options);
380
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
381
+ },
382
+ /**
383
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
384
+ * @summary Get all users
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ async getUsers(options) {
389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers(options);
390
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
391
+ },
392
+ /**
393
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
394
+ * @summary Update a user
395
+ * @param {string} userEmail
396
+ * @param {AuthUser} authUser
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ async updateUser(userEmail, authUser, options) {
401
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(userEmail, authUser, options);
402
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
403
+ },
177
404
  };
178
405
  };
179
406
  /**
@@ -183,6 +410,30 @@ export const AuthenticationApiFp = function (configuration) {
183
410
  export const AuthenticationApiFactory = function (configuration, basePath, axios) {
184
411
  const localVarFp = AuthenticationApiFp(configuration);
185
412
  return {
413
+ /**
414
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
415
+ * @summary Create a user
416
+ * @param {AuthenticationApiCreateUserRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ createUser(requestParameters, options) {
421
+ return localVarFp
422
+ .createUser(requestParameters.authUser, options)
423
+ .then((request) => request(axios, basePath));
424
+ },
425
+ /**
426
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
427
+ * @summary Delete a user
428
+ * @param {AuthenticationApiDeleteUserRequest} requestParameters Request parameters.
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ deleteUser(requestParameters, options) {
433
+ return localVarFp
434
+ .deleteUser(requestParameters.userEmail, options)
435
+ .then((request) => request(axios, basePath));
436
+ },
186
437
  /**
187
438
  * Returns a Profile including Organization and Current User Information.
188
439
  * @summary Get Profile
@@ -192,6 +443,39 @@ export const AuthenticationApiFactory = function (configuration, basePath, axios
192
443
  getProfile(options) {
193
444
  return localVarFp.getProfile(options).then((request) => request(axios, basePath));
194
445
  },
446
+ /**
447
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
448
+ * @summary Get a user
449
+ * @param {AuthenticationApiGetUserRequest} requestParameters Request parameters.
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ getUser(requestParameters, options) {
454
+ return localVarFp
455
+ .getUser(requestParameters.userEmail, options)
456
+ .then((request) => request(axios, basePath));
457
+ },
458
+ /**
459
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
460
+ * @summary Get all users
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ getUsers(options) {
465
+ return localVarFp.getUsers(options).then((request) => request(axios, basePath));
466
+ },
467
+ /**
468
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
469
+ * @summary Update a user
470
+ * @param {AuthenticationApiUpdateUserRequest} requestParameters Request parameters.
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ updateUser(requestParameters, options) {
475
+ return localVarFp
476
+ .updateUser(requestParameters.userEmail, requestParameters.authUser, options)
477
+ .then((request) => request(axios, basePath));
478
+ },
195
479
  };
196
480
  };
197
481
  /**
@@ -201,6 +485,32 @@ export const AuthenticationApiFactory = function (configuration, basePath, axios
201
485
  * @extends {BaseAPI}
202
486
  */
203
487
  export class AuthenticationApi extends BaseAPI {
488
+ /**
489
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
490
+ * @summary Create a user
491
+ * @param {AuthenticationApiCreateUserRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof AuthenticationApi
495
+ */
496
+ createUser(requestParameters, options) {
497
+ return AuthenticationApiFp(this.configuration)
498
+ .createUser(requestParameters.authUser, options)
499
+ .then((request) => request(this.axios, this.basePath));
500
+ }
501
+ /**
502
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
503
+ * @summary Delete a user
504
+ * @param {AuthenticationApiDeleteUserRequest} requestParameters Request parameters.
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ * @memberof AuthenticationApi
508
+ */
509
+ deleteUser(requestParameters, options) {
510
+ return AuthenticationApiFp(this.configuration)
511
+ .deleteUser(requestParameters.userEmail, options)
512
+ .then((request) => request(this.axios, this.basePath));
513
+ }
204
514
  /**
205
515
  * Returns a Profile including Organization and Current User Information.
206
516
  * @summary Get Profile
@@ -213,6 +523,44 @@ export class AuthenticationApi extends BaseAPI {
213
523
  .getProfile(options)
214
524
  .then((request) => request(this.axios, this.basePath));
215
525
  }
526
+ /**
527
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
528
+ * @summary Get a user
529
+ * @param {AuthenticationApiGetUserRequest} requestParameters Request parameters.
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ * @memberof AuthenticationApi
533
+ */
534
+ getUser(requestParameters, options) {
535
+ return AuthenticationApiFp(this.configuration)
536
+ .getUser(requestParameters.userEmail, options)
537
+ .then((request) => request(this.axios, this.basePath));
538
+ }
539
+ /**
540
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
541
+ * @summary Get all users
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ * @memberof AuthenticationApi
545
+ */
546
+ getUsers(options) {
547
+ return AuthenticationApiFp(this.configuration)
548
+ .getUsers(options)
549
+ .then((request) => request(this.axios, this.basePath));
550
+ }
551
+ /**
552
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
553
+ * @summary Update a user
554
+ * @param {AuthenticationApiUpdateUserRequest} requestParameters Request parameters.
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ * @memberof AuthenticationApi
558
+ */
559
+ updateUser(requestParameters, options) {
560
+ return AuthenticationApiFp(this.configuration)
561
+ .updateUser(requestParameters.userEmail, requestParameters.authUser, options)
562
+ .then((request) => request(this.axios, this.basePath));
563
+ }
216
564
  }
217
565
  /**
218
566
  * UserAuthorizationApi - axios parameter creator
@@ -220,6 +568,76 @@ export class AuthenticationApi extends BaseAPI {
220
568
  */
221
569
  export const UserAuthorizationApiAxiosParamCreator = function (configuration) {
222
570
  return {
571
+ /**
572
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
573
+ * @summary Create a user
574
+ * @param {AuthUser} authUser
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ createUser: async (authUser, options = {}) => {
579
+ // verify required parameter 'authUser' is not null or undefined
580
+ assertParamExists("createUser", "authUser", authUser);
581
+ const localVarPath = `/api/v1/auth/users`;
582
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
583
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
584
+ let baseOptions;
585
+ if (configuration) {
586
+ baseOptions = configuration.baseOptions;
587
+ }
588
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
589
+ const localVarHeaderParameter = {};
590
+ const localVarQueryParameter = {};
591
+ localVarHeaderParameter["Content-Type"] = "application/json";
592
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
593
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
594
+ localVarRequestOptions.headers = {
595
+ ...localVarHeaderParameter,
596
+ ...headersFromBaseOptions,
597
+ ...options.headers,
598
+ };
599
+ const needsSerialization = typeof authUser !== "string" ||
600
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
601
+ localVarRequestOptions.data = needsSerialization
602
+ ? JSON.stringify(authUser !== undefined ? authUser : {})
603
+ : authUser || "";
604
+ return {
605
+ url: toPathString(localVarUrlObj),
606
+ options: localVarRequestOptions,
607
+ };
608
+ },
609
+ /**
610
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
611
+ * @summary Delete a user
612
+ * @param {string} userEmail
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ deleteUser: async (userEmail, options = {}) => {
617
+ // verify required parameter 'userEmail' is not null or undefined
618
+ assertParamExists("deleteUser", "userEmail", userEmail);
619
+ const localVarPath = `/api/v1/auth/users/{userEmail}`.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
621
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
622
+ let baseOptions;
623
+ if (configuration) {
624
+ baseOptions = configuration.baseOptions;
625
+ }
626
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
627
+ const localVarHeaderParameter = {};
628
+ const localVarQueryParameter = {};
629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
631
+ localVarRequestOptions.headers = {
632
+ ...localVarHeaderParameter,
633
+ ...headersFromBaseOptions,
634
+ ...options.headers,
635
+ };
636
+ return {
637
+ url: toPathString(localVarUrlObj),
638
+ options: localVarRequestOptions,
639
+ };
640
+ },
223
641
  /**
224
642
  * Returns a Profile including Organization and Current User Information.
225
643
  * @summary Get Profile
@@ -249,6 +667,67 @@ export const UserAuthorizationApiAxiosParamCreator = function (configuration) {
249
667
  options: localVarRequestOptions,
250
668
  };
251
669
  },
670
+ /**
671
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
672
+ * @summary Get a user
673
+ * @param {string} userEmail
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ getUser: async (userEmail, options = {}) => {
678
+ // verify required parameter 'userEmail' is not null or undefined
679
+ assertParamExists("getUser", "userEmail", userEmail);
680
+ const localVarPath = `/api/v1/auth/users/{userEmail}`.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
681
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
682
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
683
+ let baseOptions;
684
+ if (configuration) {
685
+ baseOptions = configuration.baseOptions;
686
+ }
687
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
688
+ const localVarHeaderParameter = {};
689
+ const localVarQueryParameter = {};
690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
692
+ localVarRequestOptions.headers = {
693
+ ...localVarHeaderParameter,
694
+ ...headersFromBaseOptions,
695
+ ...options.headers,
696
+ };
697
+ return {
698
+ url: toPathString(localVarUrlObj),
699
+ options: localVarRequestOptions,
700
+ };
701
+ },
702
+ /**
703
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
704
+ * @summary Get all users
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ getUsers: async (options = {}) => {
709
+ const localVarPath = `/api/v1/auth/users`;
710
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
711
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
712
+ let baseOptions;
713
+ if (configuration) {
714
+ baseOptions = configuration.baseOptions;
715
+ }
716
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
717
+ const localVarHeaderParameter = {};
718
+ const localVarQueryParameter = {};
719
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
720
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
721
+ localVarRequestOptions.headers = {
722
+ ...localVarHeaderParameter,
723
+ ...headersFromBaseOptions,
724
+ ...options.headers,
725
+ };
726
+ return {
727
+ url: toPathString(localVarUrlObj),
728
+ options: localVarRequestOptions,
729
+ };
730
+ },
252
731
  /**
253
732
  * Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
254
733
  * @summary Invite User
@@ -287,6 +766,47 @@ export const UserAuthorizationApiAxiosParamCreator = function (configuration) {
287
766
  options: localVarRequestOptions,
288
767
  };
289
768
  },
769
+ /**
770
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
771
+ * @summary Update a user
772
+ * @param {string} userEmail
773
+ * @param {AuthUser} authUser
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ updateUser: async (userEmail, authUser, options = {}) => {
778
+ // verify required parameter 'userEmail' is not null or undefined
779
+ assertParamExists("updateUser", "userEmail", userEmail);
780
+ // verify required parameter 'authUser' is not null or undefined
781
+ assertParamExists("updateUser", "authUser", authUser);
782
+ const localVarPath = `/api/v1/auth/users/{userEmail}`.replace(`{${"userEmail"}}`, encodeURIComponent(String(userEmail)));
783
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
784
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
785
+ let baseOptions;
786
+ if (configuration) {
787
+ baseOptions = configuration.baseOptions;
788
+ }
789
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
790
+ const localVarHeaderParameter = {};
791
+ const localVarQueryParameter = {};
792
+ localVarHeaderParameter["Content-Type"] = "application/json";
793
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
794
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
795
+ localVarRequestOptions.headers = {
796
+ ...localVarHeaderParameter,
797
+ ...headersFromBaseOptions,
798
+ ...options.headers,
799
+ };
800
+ const needsSerialization = typeof authUser !== "string" ||
801
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
802
+ localVarRequestOptions.data = needsSerialization
803
+ ? JSON.stringify(authUser !== undefined ? authUser : {})
804
+ : authUser || "";
805
+ return {
806
+ url: toPathString(localVarUrlObj),
807
+ options: localVarRequestOptions,
808
+ };
809
+ },
290
810
  };
291
811
  };
292
812
  /**
@@ -296,6 +816,28 @@ export const UserAuthorizationApiAxiosParamCreator = function (configuration) {
296
816
  export const UserAuthorizationApiFp = function (configuration) {
297
817
  const localVarAxiosParamCreator = UserAuthorizationApiAxiosParamCreator(configuration);
298
818
  return {
819
+ /**
820
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
821
+ * @summary Create a user
822
+ * @param {AuthUser} authUser
823
+ * @param {*} [options] Override http request option.
824
+ * @throws {RequiredError}
825
+ */
826
+ async createUser(authUser, options) {
827
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(authUser, options);
828
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
829
+ },
830
+ /**
831
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
832
+ * @summary Delete a user
833
+ * @param {string} userEmail
834
+ * @param {*} [options] Override http request option.
835
+ * @throws {RequiredError}
836
+ */
837
+ async deleteUser(userEmail, options) {
838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userEmail, options);
839
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
840
+ },
299
841
  /**
300
842
  * Returns a Profile including Organization and Current User Information.
301
843
  * @summary Get Profile
@@ -306,6 +848,27 @@ export const UserAuthorizationApiFp = function (configuration) {
306
848
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProfile(options);
307
849
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
308
850
  },
851
+ /**
852
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
853
+ * @summary Get a user
854
+ * @param {string} userEmail
855
+ * @param {*} [options] Override http request option.
856
+ * @throws {RequiredError}
857
+ */
858
+ async getUser(userEmail, options) {
859
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(userEmail, options);
860
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
861
+ },
862
+ /**
863
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
864
+ * @summary Get all users
865
+ * @param {*} [options] Override http request option.
866
+ * @throws {RequiredError}
867
+ */
868
+ async getUsers(options) {
869
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers(options);
870
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
871
+ },
309
872
  /**
310
873
  * Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
311
874
  * @summary Invite User
@@ -317,6 +880,18 @@ export const UserAuthorizationApiFp = function (configuration) {
317
880
  const localVarAxiosArgs = await localVarAxiosParamCreator.processInvitation(invitation, options);
318
881
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
882
  },
883
+ /**
884
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
885
+ * @summary Update a user
886
+ * @param {string} userEmail
887
+ * @param {AuthUser} authUser
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ */
891
+ async updateUser(userEmail, authUser, options) {
892
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(userEmail, authUser, options);
893
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
894
+ },
320
895
  };
321
896
  };
322
897
  /**
@@ -326,6 +901,30 @@ export const UserAuthorizationApiFp = function (configuration) {
326
901
  export const UserAuthorizationApiFactory = function (configuration, basePath, axios) {
327
902
  const localVarFp = UserAuthorizationApiFp(configuration);
328
903
  return {
904
+ /**
905
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
906
+ * @summary Create a user
907
+ * @param {UserAuthorizationApiCreateUserRequest} requestParameters Request parameters.
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ createUser(requestParameters, options) {
912
+ return localVarFp
913
+ .createUser(requestParameters.authUser, options)
914
+ .then((request) => request(axios, basePath));
915
+ },
916
+ /**
917
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
918
+ * @summary Delete a user
919
+ * @param {UserAuthorizationApiDeleteUserRequest} requestParameters Request parameters.
920
+ * @param {*} [options] Override http request option.
921
+ * @throws {RequiredError}
922
+ */
923
+ deleteUser(requestParameters, options) {
924
+ return localVarFp
925
+ .deleteUser(requestParameters.userEmail, options)
926
+ .then((request) => request(axios, basePath));
927
+ },
329
928
  /**
330
929
  * Returns a Profile including Organization and Current User Information.
331
930
  * @summary Get Profile
@@ -335,6 +934,27 @@ export const UserAuthorizationApiFactory = function (configuration, basePath, ax
335
934
  getProfile(options) {
336
935
  return localVarFp.getProfile(options).then((request) => request(axios, basePath));
337
936
  },
937
+ /**
938
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
939
+ * @summary Get a user
940
+ * @param {UserAuthorizationApiGetUserRequest} requestParameters Request parameters.
941
+ * @param {*} [options] Override http request option.
942
+ * @throws {RequiredError}
943
+ */
944
+ getUser(requestParameters, options) {
945
+ return localVarFp
946
+ .getUser(requestParameters.userEmail, options)
947
+ .then((request) => request(axios, basePath));
948
+ },
949
+ /**
950
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
951
+ * @summary Get all users
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ */
955
+ getUsers(options) {
956
+ return localVarFp.getUsers(options).then((request) => request(axios, basePath));
957
+ },
338
958
  /**
339
959
  * Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
340
960
  * @summary Invite User
@@ -347,6 +967,18 @@ export const UserAuthorizationApiFactory = function (configuration, basePath, ax
347
967
  .processInvitation(requestParameters.invitation, options)
348
968
  .then((request) => request(axios, basePath));
349
969
  },
970
+ /**
971
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
972
+ * @summary Update a user
973
+ * @param {UserAuthorizationApiUpdateUserRequest} requestParameters Request parameters.
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ updateUser(requestParameters, options) {
978
+ return localVarFp
979
+ .updateUser(requestParameters.userEmail, requestParameters.authUser, options)
980
+ .then((request) => request(axios, basePath));
981
+ },
350
982
  };
351
983
  };
352
984
  /**
@@ -356,6 +988,32 @@ export const UserAuthorizationApiFactory = function (configuration, basePath, ax
356
988
  * @extends {BaseAPI}
357
989
  */
358
990
  export class UserAuthorizationApi extends BaseAPI {
991
+ /**
992
+ * Create a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
993
+ * @summary Create a user
994
+ * @param {UserAuthorizationApiCreateUserRequest} requestParameters Request parameters.
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ * @memberof UserAuthorizationApi
998
+ */
999
+ createUser(requestParameters, options) {
1000
+ return UserAuthorizationApiFp(this.configuration)
1001
+ .createUser(requestParameters.authUser, options)
1002
+ .then((request) => request(this.axios, this.basePath));
1003
+ }
1004
+ /**
1005
+ * Delete a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
1006
+ * @summary Delete a user
1007
+ * @param {UserAuthorizationApiDeleteUserRequest} requestParameters Request parameters.
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ * @memberof UserAuthorizationApi
1011
+ */
1012
+ deleteUser(requestParameters, options) {
1013
+ return UserAuthorizationApiFp(this.configuration)
1014
+ .deleteUser(requestParameters.userEmail, options)
1015
+ .then((request) => request(this.axios, this.basePath));
1016
+ }
359
1017
  /**
360
1018
  * Returns a Profile including Organization and Current User Information.
361
1019
  * @summary Get Profile
@@ -368,6 +1026,31 @@ export class UserAuthorizationApi extends BaseAPI {
368
1026
  .getProfile(options)
369
1027
  .then((request) => request(this.axios, this.basePath));
370
1028
  }
1029
+ /**
1030
+ * Get a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
1031
+ * @summary Get a user
1032
+ * @param {UserAuthorizationApiGetUserRequest} requestParameters Request parameters.
1033
+ * @param {*} [options] Override http request option.
1034
+ * @throws {RequiredError}
1035
+ * @memberof UserAuthorizationApi
1036
+ */
1037
+ getUser(requestParameters, options) {
1038
+ return UserAuthorizationApiFp(this.configuration)
1039
+ .getUser(requestParameters.userEmail, options)
1040
+ .then((request) => request(this.axios, this.basePath));
1041
+ }
1042
+ /**
1043
+ * Get all users - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
1044
+ * @summary Get all users
1045
+ * @param {*} [options] Override http request option.
1046
+ * @throws {RequiredError}
1047
+ * @memberof UserAuthorizationApi
1048
+ */
1049
+ getUsers(options) {
1050
+ return UserAuthorizationApiFp(this.configuration)
1051
+ .getUsers(options)
1052
+ .then((request) => request(this.axios, this.basePath));
1053
+ }
371
1054
  /**
372
1055
  * Puts a new invitation requirement into the invitation generator queue. This is a GoodData Cloud specific endpoint.
373
1056
  * @summary Invite User
@@ -381,5 +1064,18 @@ export class UserAuthorizationApi extends BaseAPI {
381
1064
  .processInvitation(requestParameters.invitation, options)
382
1065
  .then((request) => request(this.axios, this.basePath));
383
1066
  }
1067
+ /**
1068
+ * Update a user - dedicated endpoint for user management in the internal OIDC provider. GoodData.CN specific
1069
+ * @summary Update a user
1070
+ * @param {UserAuthorizationApiUpdateUserRequest} requestParameters Request parameters.
1071
+ * @param {*} [options] Override http request option.
1072
+ * @throws {RequiredError}
1073
+ * @memberof UserAuthorizationApi
1074
+ */
1075
+ updateUser(requestParameters, options) {
1076
+ return UserAuthorizationApiFp(this.configuration)
1077
+ .updateUser(requestParameters.userEmail, requestParameters.authUser, options)
1078
+ .then((request) => request(this.axios, this.basePath));
1079
+ }
384
1080
  }
385
1081
  //# sourceMappingURL=api.js.map