@sfxcode/nuxt-mongocamp-server 1.2.8 → 1.3.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.
Files changed (70) hide show
  1. package/dist/module.d.mts +1 -0
  2. package/dist/module.json +3 -3
  3. package/dist/module.mjs +4 -3
  4. package/dist/runtime/api/.openapi-generator/FILES +50 -0
  5. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  6. package/dist/runtime/api/apis/AdminApi.js +32 -12
  7. package/dist/runtime/api/apis/ApplicationApi.js +12 -5
  8. package/dist/runtime/api/apis/AuthApi.js +16 -8
  9. package/dist/runtime/api/apis/BucketApi.js +11 -4
  10. package/dist/runtime/api/apis/CollectionApi.js +30 -10
  11. package/dist/runtime/api/apis/DatabaseApi.js +13 -5
  12. package/dist/runtime/api/apis/DocumentApi.js +34 -10
  13. package/dist/runtime/api/apis/FileApi.js +25 -7
  14. package/dist/runtime/api/apis/IndexApi.js +31 -8
  15. package/dist/runtime/api/apis/InformationApi.js +2 -1
  16. package/dist/runtime/api/apis/JobsApi.js +18 -6
  17. package/dist/runtime/api/docs/AdminApi.md +972 -0
  18. package/dist/runtime/api/docs/ApplicationApi.md +387 -0
  19. package/dist/runtime/api/docs/AuthApi.md +577 -0
  20. package/dist/runtime/api/docs/BucketApi.md +312 -0
  21. package/dist/runtime/api/docs/BucketInformation.md +40 -0
  22. package/dist/runtime/api/docs/CollectionApi.md +822 -0
  23. package/dist/runtime/api/docs/CollectionStatus.md +58 -0
  24. package/dist/runtime/api/docs/DatabaseApi.md +382 -0
  25. package/dist/runtime/api/docs/DatabaseInfo.md +42 -0
  26. package/dist/runtime/api/docs/DeleteResponse.md +36 -0
  27. package/dist/runtime/api/docs/DocumentApi.md +850 -0
  28. package/dist/runtime/api/docs/ErrorDescription.md +38 -0
  29. package/dist/runtime/api/docs/FileApi.md +606 -0
  30. package/dist/runtime/api/docs/FileInformation.md +44 -0
  31. package/dist/runtime/api/docs/Grant.md +42 -0
  32. package/dist/runtime/api/docs/IndexApi.md +682 -0
  33. package/dist/runtime/api/docs/IndexCreateRequest.md +36 -0
  34. package/dist/runtime/api/docs/IndexCreateResponse.md +34 -0
  35. package/dist/runtime/api/docs/IndexDropResponse.md +34 -0
  36. package/dist/runtime/api/docs/IndexOptionsRequest.md +48 -0
  37. package/dist/runtime/api/docs/InformationApi.md +69 -0
  38. package/dist/runtime/api/docs/InsertResponse.md +36 -0
  39. package/dist/runtime/api/docs/JobConfig.md +44 -0
  40. package/dist/runtime/api/docs/JobInformation.md +50 -0
  41. package/dist/runtime/api/docs/JobsApi.md +474 -0
  42. package/dist/runtime/api/docs/JsonSchema.md +38 -0
  43. package/dist/runtime/api/docs/JsonSchemaDefinition.md +42 -0
  44. package/dist/runtime/api/docs/JsonValueAny.md +34 -0
  45. package/dist/runtime/api/docs/JsonValueBoolean.md +34 -0
  46. package/dist/runtime/api/docs/JsonValueString.md +34 -0
  47. package/dist/runtime/api/docs/Login.md +36 -0
  48. package/dist/runtime/api/docs/LoginResult.md +38 -0
  49. package/dist/runtime/api/docs/MongoAggregateRequest.md +36 -0
  50. package/dist/runtime/api/docs/MongoCampConfiguration.md +42 -0
  51. package/dist/runtime/api/docs/MongoFindRequest.md +38 -0
  52. package/dist/runtime/api/docs/MongoIndex.md +56 -0
  53. package/dist/runtime/api/docs/PasswordUpdateRequest.md +34 -0
  54. package/dist/runtime/api/docs/PipelineStage.md +36 -0
  55. package/dist/runtime/api/docs/Role.md +38 -0
  56. package/dist/runtime/api/docs/SchemaAnalysis.md +40 -0
  57. package/dist/runtime/api/docs/SchemaAnalysisField.md +44 -0
  58. package/dist/runtime/api/docs/SchemaAnalysisFieldType.md +38 -0
  59. package/dist/runtime/api/docs/SettingsResponse.md +40 -0
  60. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +36 -0
  61. package/dist/runtime/api/docs/UpdateRequest.md +36 -0
  62. package/dist/runtime/api/docs/UpdateResponse.md +40 -0
  63. package/dist/runtime/api/docs/UpdateRoleRequest.md +36 -0
  64. package/dist/runtime/api/docs/UserInformation.md +40 -0
  65. package/dist/runtime/api/docs/UserProfile.md +42 -0
  66. package/dist/runtime/api/docs/Version.md +38 -0
  67. package/dist/runtime/api/models/JobInformation.js +2 -2
  68. package/dist/runtime/composables/mongocampAuth.d.ts +3 -3
  69. package/dist/types.d.mts +2 -0
  70. package/package.json +16 -16
@@ -0,0 +1,972 @@
1
+ # AdminApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**addRole**](AdminApi.md#addrole) | **PUT** /admin/roles | Add Role |
8
+ | [**addUser**](AdminApi.md#adduser) | **PUT** /admin/users | Add User |
9
+ | [**deleteRole**](AdminApi.md#deleterole) | **DELETE** /admin/roles/{roleName} | Delete Role |
10
+ | [**deleteUser**](AdminApi.md#deleteuser) | **DELETE** /admin/users/{userId} | Delete User |
11
+ | [**getRole**](AdminApi.md#getrole) | **GET** /admin/roles/{roleName} | Get Role |
12
+ | [**getUser**](AdminApi.md#getuser) | **GET** /admin/users/{userId} | UserProfile for userId |
13
+ | [**gnerateNewApiKeyForUser**](AdminApi.md#gneratenewapikeyforuser) | **PATCH** /admin/users/{userId}/apikey | Update ApiKey |
14
+ | [**listRoles**](AdminApi.md#listroles) | **GET** /admin/roles | List Roles |
15
+ | [**listUsers**](AdminApi.md#listusers) | **GET** /admin/users | List Users |
16
+ | [**updatePasswordForUser**](AdminApi.md#updatepasswordforuser) | **PATCH** /admin/users/{userId}/password | Update Password |
17
+ | [**updateRole**](AdminApi.md#updateroleoperation) | **PATCH** /admin/roles/{roleName} | Update Role |
18
+ | [**updateRolesForUser**](AdminApi.md#updaterolesforuser) | **PATCH** /admin/users/{userId}/roles | Update User Roles |
19
+
20
+
21
+
22
+ ## addRole
23
+
24
+ > Role addRole(role)
25
+
26
+ Add Role
27
+
28
+ Add a new Role
29
+
30
+ ### Example
31
+
32
+ ```ts
33
+ import {
34
+ Configuration,
35
+ AdminApi,
36
+ } from '';
37
+ import type { AddRoleRequest } from '';
38
+
39
+ async function example() {
40
+ console.log("🚀 Testing SDK...");
41
+ const config = new Configuration({
42
+ // To configure HTTP basic authorization: httpAuth1
43
+ username: "YOUR USERNAME",
44
+ password: "YOUR PASSWORD",
45
+ // Configure HTTP bearer authorization: httpAuth
46
+ accessToken: "YOUR BEARER TOKEN",
47
+ // To configure API key authorization: apiKeyAuth
48
+ apiKey: "YOUR API KEY",
49
+ });
50
+ const api = new AdminApi(config);
51
+
52
+ const body = {
53
+ // Role
54
+ role: ...,
55
+ } satisfies AddRoleRequest;
56
+
57
+ try {
58
+ const data = await api.addRole(body);
59
+ console.log(data);
60
+ } catch (error) {
61
+ console.error(error);
62
+ }
63
+ }
64
+
65
+ // Run the test
66
+ example().catch(console.error);
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+
72
+ | Name | Type | Description | Notes |
73
+ |------------- | ------------- | ------------- | -------------|
74
+ | **role** | [Role](Role.md) | | |
75
+
76
+ ### Return type
77
+
78
+ [**Role**](Role.md)
79
+
80
+ ### Authorization
81
+
82
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: `application/json`
87
+ - **Accept**: `application/json`, `text/plain`
88
+
89
+
90
+ ### HTTP response details
91
+ | Status code | Description | Response headers |
92
+ |-------------|-------------|------------------|
93
+ | **200** | | - |
94
+ | **400** | Invalid value for: body | - |
95
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
96
+
97
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
98
+
99
+
100
+ ## addUser
101
+
102
+ > UserProfile addUser(userInformation)
103
+
104
+ Add User
105
+
106
+ Add a new User
107
+
108
+ ### Example
109
+
110
+ ```ts
111
+ import {
112
+ Configuration,
113
+ AdminApi,
114
+ } from '';
115
+ import type { AddUserRequest } from '';
116
+
117
+ async function example() {
118
+ console.log("🚀 Testing SDK...");
119
+ const config = new Configuration({
120
+ // To configure HTTP basic authorization: httpAuth1
121
+ username: "YOUR USERNAME",
122
+ password: "YOUR PASSWORD",
123
+ // Configure HTTP bearer authorization: httpAuth
124
+ accessToken: "YOUR BEARER TOKEN",
125
+ // To configure API key authorization: apiKeyAuth
126
+ apiKey: "YOUR API KEY",
127
+ });
128
+ const api = new AdminApi(config);
129
+
130
+ const body = {
131
+ // UserInformation
132
+ userInformation: ...,
133
+ } satisfies AddUserRequest;
134
+
135
+ try {
136
+ const data = await api.addUser(body);
137
+ console.log(data);
138
+ } catch (error) {
139
+ console.error(error);
140
+ }
141
+ }
142
+
143
+ // Run the test
144
+ example().catch(console.error);
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+
150
+ | Name | Type | Description | Notes |
151
+ |------------- | ------------- | ------------- | -------------|
152
+ | **userInformation** | [UserInformation](UserInformation.md) | | |
153
+
154
+ ### Return type
155
+
156
+ [**UserProfile**](UserProfile.md)
157
+
158
+ ### Authorization
159
+
160
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
161
+
162
+ ### HTTP request headers
163
+
164
+ - **Content-Type**: `application/json`
165
+ - **Accept**: `application/json`, `text/plain`
166
+
167
+
168
+ ### HTTP response details
169
+ | Status code | Description | Response headers |
170
+ |-------------|-------------|------------------|
171
+ | **200** | | - |
172
+ | **400** | Invalid value for: body | - |
173
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
174
+
175
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
176
+
177
+
178
+ ## deleteRole
179
+
180
+ > JsonValueBoolean deleteRole(roleName)
181
+
182
+ Delete Role
183
+
184
+ Delete Role
185
+
186
+ ### Example
187
+
188
+ ```ts
189
+ import {
190
+ Configuration,
191
+ AdminApi,
192
+ } from '';
193
+ import type { DeleteRoleRequest } from '';
194
+
195
+ async function example() {
196
+ console.log("🚀 Testing SDK...");
197
+ const config = new Configuration({
198
+ // To configure HTTP basic authorization: httpAuth1
199
+ username: "YOUR USERNAME",
200
+ password: "YOUR PASSWORD",
201
+ // Configure HTTP bearer authorization: httpAuth
202
+ accessToken: "YOUR BEARER TOKEN",
203
+ // To configure API key authorization: apiKeyAuth
204
+ apiKey: "YOUR API KEY",
205
+ });
206
+ const api = new AdminApi(config);
207
+
208
+ const body = {
209
+ // string | RoleKey
210
+ roleName: roleName_example,
211
+ } satisfies DeleteRoleRequest;
212
+
213
+ try {
214
+ const data = await api.deleteRole(body);
215
+ console.log(data);
216
+ } catch (error) {
217
+ console.error(error);
218
+ }
219
+ }
220
+
221
+ // Run the test
222
+ example().catch(console.error);
223
+ ```
224
+
225
+ ### Parameters
226
+
227
+
228
+ | Name | Type | Description | Notes |
229
+ |------------- | ------------- | ------------- | -------------|
230
+ | **roleName** | `string` | RoleKey | [Defaults to `undefined`] |
231
+
232
+ ### Return type
233
+
234
+ [**JsonValueBoolean**](JsonValueBoolean.md)
235
+
236
+ ### Authorization
237
+
238
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: Not defined
243
+ - **Accept**: `application/json`
244
+
245
+
246
+ ### HTTP response details
247
+ | Status code | Description | Response headers |
248
+ |-------------|-------------|------------------|
249
+ | **200** | | - |
250
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
251
+
252
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
253
+
254
+
255
+ ## deleteUser
256
+
257
+ > JsonValueBoolean deleteUser(userId)
258
+
259
+ Delete User
260
+
261
+ Delete User
262
+
263
+ ### Example
264
+
265
+ ```ts
266
+ import {
267
+ Configuration,
268
+ AdminApi,
269
+ } from '';
270
+ import type { DeleteUserRequest } from '';
271
+
272
+ async function example() {
273
+ console.log("🚀 Testing SDK...");
274
+ const config = new Configuration({
275
+ // To configure HTTP basic authorization: httpAuth1
276
+ username: "YOUR USERNAME",
277
+ password: "YOUR PASSWORD",
278
+ // Configure HTTP bearer authorization: httpAuth
279
+ accessToken: "YOUR BEARER TOKEN",
280
+ // To configure API key authorization: apiKeyAuth
281
+ apiKey: "YOUR API KEY",
282
+ });
283
+ const api = new AdminApi(config);
284
+
285
+ const body = {
286
+ // string | UserId to Delete
287
+ userId: userId_example,
288
+ } satisfies DeleteUserRequest;
289
+
290
+ try {
291
+ const data = await api.deleteUser(body);
292
+ console.log(data);
293
+ } catch (error) {
294
+ console.error(error);
295
+ }
296
+ }
297
+
298
+ // Run the test
299
+ example().catch(console.error);
300
+ ```
301
+
302
+ ### Parameters
303
+
304
+
305
+ | Name | Type | Description | Notes |
306
+ |------------- | ------------- | ------------- | -------------|
307
+ | **userId** | `string` | UserId to Delete | [Defaults to `undefined`] |
308
+
309
+ ### Return type
310
+
311
+ [**JsonValueBoolean**](JsonValueBoolean.md)
312
+
313
+ ### Authorization
314
+
315
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
316
+
317
+ ### HTTP request headers
318
+
319
+ - **Content-Type**: Not defined
320
+ - **Accept**: `application/json`
321
+
322
+
323
+ ### HTTP response details
324
+ | Status code | Description | Response headers |
325
+ |-------------|-------------|------------------|
326
+ | **200** | | - |
327
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
328
+
329
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
330
+
331
+
332
+ ## getRole
333
+
334
+ > Role getRole(roleName)
335
+
336
+ Get Role
337
+
338
+ Get Role by RoleKey
339
+
340
+ ### Example
341
+
342
+ ```ts
343
+ import {
344
+ Configuration,
345
+ AdminApi,
346
+ } from '';
347
+ import type { GetRoleRequest } from '';
348
+
349
+ async function example() {
350
+ console.log("🚀 Testing SDK...");
351
+ const config = new Configuration({
352
+ // To configure HTTP basic authorization: httpAuth1
353
+ username: "YOUR USERNAME",
354
+ password: "YOUR PASSWORD",
355
+ // Configure HTTP bearer authorization: httpAuth
356
+ accessToken: "YOUR BEARER TOKEN",
357
+ // To configure API key authorization: apiKeyAuth
358
+ apiKey: "YOUR API KEY",
359
+ });
360
+ const api = new AdminApi(config);
361
+
362
+ const body = {
363
+ // string | RoleKey to search
364
+ roleName: roleName_example,
365
+ } satisfies GetRoleRequest;
366
+
367
+ try {
368
+ const data = await api.getRole(body);
369
+ console.log(data);
370
+ } catch (error) {
371
+ console.error(error);
372
+ }
373
+ }
374
+
375
+ // Run the test
376
+ example().catch(console.error);
377
+ ```
378
+
379
+ ### Parameters
380
+
381
+
382
+ | Name | Type | Description | Notes |
383
+ |------------- | ------------- | ------------- | -------------|
384
+ | **roleName** | `string` | RoleKey to search | [Defaults to `undefined`] |
385
+
386
+ ### Return type
387
+
388
+ [**Role**](Role.md)
389
+
390
+ ### Authorization
391
+
392
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
393
+
394
+ ### HTTP request headers
395
+
396
+ - **Content-Type**: Not defined
397
+ - **Accept**: `application/json`
398
+
399
+
400
+ ### HTTP response details
401
+ | Status code | Description | Response headers |
402
+ |-------------|-------------|------------------|
403
+ | **200** | | - |
404
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
405
+
406
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
407
+
408
+
409
+ ## getUser
410
+
411
+ > UserProfile getUser(userId)
412
+
413
+ UserProfile for userId
414
+
415
+ Get UserProfile for user
416
+
417
+ ### Example
418
+
419
+ ```ts
420
+ import {
421
+ Configuration,
422
+ AdminApi,
423
+ } from '';
424
+ import type { GetUserRequest } from '';
425
+
426
+ async function example() {
427
+ console.log("🚀 Testing SDK...");
428
+ const config = new Configuration({
429
+ // To configure HTTP basic authorization: httpAuth1
430
+ username: "YOUR USERNAME",
431
+ password: "YOUR PASSWORD",
432
+ // Configure HTTP bearer authorization: httpAuth
433
+ accessToken: "YOUR BEARER TOKEN",
434
+ // To configure API key authorization: apiKeyAuth
435
+ apiKey: "YOUR API KEY",
436
+ });
437
+ const api = new AdminApi(config);
438
+
439
+ const body = {
440
+ // string | UserId to search
441
+ userId: userId_example,
442
+ } satisfies GetUserRequest;
443
+
444
+ try {
445
+ const data = await api.getUser(body);
446
+ console.log(data);
447
+ } catch (error) {
448
+ console.error(error);
449
+ }
450
+ }
451
+
452
+ // Run the test
453
+ example().catch(console.error);
454
+ ```
455
+
456
+ ### Parameters
457
+
458
+
459
+ | Name | Type | Description | Notes |
460
+ |------------- | ------------- | ------------- | -------------|
461
+ | **userId** | `string` | UserId to search | [Defaults to `undefined`] |
462
+
463
+ ### Return type
464
+
465
+ [**UserProfile**](UserProfile.md)
466
+
467
+ ### Authorization
468
+
469
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
470
+
471
+ ### HTTP request headers
472
+
473
+ - **Content-Type**: Not defined
474
+ - **Accept**: `application/json`
475
+
476
+
477
+ ### HTTP response details
478
+ | Status code | Description | Response headers |
479
+ |-------------|-------------|------------------|
480
+ | **200** | | - |
481
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
482
+
483
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
484
+
485
+
486
+ ## gnerateNewApiKeyForUser
487
+
488
+ > JsonValueString gnerateNewApiKeyForUser(userId)
489
+
490
+ Update ApiKey
491
+
492
+ Generate an new APIkey for the user
493
+
494
+ ### Example
495
+
496
+ ```ts
497
+ import {
498
+ Configuration,
499
+ AdminApi,
500
+ } from '';
501
+ import type { GnerateNewApiKeyForUserRequest } from '';
502
+
503
+ async function example() {
504
+ console.log("🚀 Testing SDK...");
505
+ const config = new Configuration({
506
+ // To configure HTTP basic authorization: httpAuth1
507
+ username: "YOUR USERNAME",
508
+ password: "YOUR PASSWORD",
509
+ // Configure HTTP bearer authorization: httpAuth
510
+ accessToken: "YOUR BEARER TOKEN",
511
+ // To configure API key authorization: apiKeyAuth
512
+ apiKey: "YOUR API KEY",
513
+ });
514
+ const api = new AdminApi(config);
515
+
516
+ const body = {
517
+ // string | UserId to Update
518
+ userId: userId_example,
519
+ } satisfies GnerateNewApiKeyForUserRequest;
520
+
521
+ try {
522
+ const data = await api.gnerateNewApiKeyForUser(body);
523
+ console.log(data);
524
+ } catch (error) {
525
+ console.error(error);
526
+ }
527
+ }
528
+
529
+ // Run the test
530
+ example().catch(console.error);
531
+ ```
532
+
533
+ ### Parameters
534
+
535
+
536
+ | Name | Type | Description | Notes |
537
+ |------------- | ------------- | ------------- | -------------|
538
+ | **userId** | `string` | UserId to Update | [Defaults to `undefined`] |
539
+
540
+ ### Return type
541
+
542
+ [**JsonValueString**](JsonValueString.md)
543
+
544
+ ### Authorization
545
+
546
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
547
+
548
+ ### HTTP request headers
549
+
550
+ - **Content-Type**: Not defined
551
+ - **Accept**: `application/json`
552
+
553
+
554
+ ### HTTP response details
555
+ | Status code | Description | Response headers |
556
+ |-------------|-------------|------------------|
557
+ | **200** | | - |
558
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
559
+
560
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
561
+
562
+
563
+ ## listRoles
564
+
565
+ > Array&lt;Role&gt; listRoles(filter, rowsPerPage, page)
566
+
567
+ List Roles
568
+
569
+ List all Roles or filtered
570
+
571
+ ### Example
572
+
573
+ ```ts
574
+ import {
575
+ Configuration,
576
+ AdminApi,
577
+ } from '';
578
+ import type { ListRolesRequest } from '';
579
+
580
+ async function example() {
581
+ console.log("🚀 Testing SDK...");
582
+ const config = new Configuration({
583
+ // To configure HTTP basic authorization: httpAuth1
584
+ username: "YOUR USERNAME",
585
+ password: "YOUR PASSWORD",
586
+ // Configure HTTP bearer authorization: httpAuth
587
+ accessToken: "YOUR BEARER TOKEN",
588
+ // To configure API key authorization: apiKeyAuth
589
+ apiKey: "YOUR API KEY",
590
+ });
591
+ const api = new AdminApi(config);
592
+
593
+ const body = {
594
+ // string | filter after userId by contains (optional)
595
+ filter: filter_example,
596
+ // number | Count elements per page (optional)
597
+ rowsPerPage: 100,
598
+ // number | Requested page of the ResultSets (optional)
599
+ page: 1,
600
+ } satisfies ListRolesRequest;
601
+
602
+ try {
603
+ const data = await api.listRoles(body);
604
+ console.log(data);
605
+ } catch (error) {
606
+ console.error(error);
607
+ }
608
+ }
609
+
610
+ // Run the test
611
+ example().catch(console.error);
612
+ ```
613
+
614
+ ### Parameters
615
+
616
+
617
+ | Name | Type | Description | Notes |
618
+ |------------- | ------------- | ------------- | -------------|
619
+ | **filter** | `string` | filter after userId by contains | [Optional] [Defaults to `undefined`] |
620
+ | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
621
+ | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
622
+
623
+ ### Return type
624
+
625
+ [**Array&lt;Role&gt;**](Role.md)
626
+
627
+ ### Authorization
628
+
629
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
630
+
631
+ ### HTTP request headers
632
+
633
+ - **Content-Type**: Not defined
634
+ - **Accept**: `application/json`, `text/plain`
635
+
636
+
637
+ ### HTTP response details
638
+ | Status code | Description | Response headers |
639
+ |-------------|-------------|------------------|
640
+ | **200** | | * x-pagination-count-rows - count all elements <br> * x-pagination-rows-per-page - Count elements per page <br> * x-pagination-current-page - Current page <br> * x-pagination-count-pages - Count pages <br> |
641
+ | **400** | Invalid value for: query parameter filter, Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page | - |
642
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
643
+
644
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
645
+
646
+
647
+ ## listUsers
648
+
649
+ > Array&lt;UserProfile&gt; listUsers(filter, rowsPerPage, page)
650
+
651
+ List Users
652
+
653
+ List all Users or filtered
654
+
655
+ ### Example
656
+
657
+ ```ts
658
+ import {
659
+ Configuration,
660
+ AdminApi,
661
+ } from '';
662
+ import type { ListUsersRequest } from '';
663
+
664
+ async function example() {
665
+ console.log("🚀 Testing SDK...");
666
+ const config = new Configuration({
667
+ // To configure HTTP basic authorization: httpAuth1
668
+ username: "YOUR USERNAME",
669
+ password: "YOUR PASSWORD",
670
+ // Configure HTTP bearer authorization: httpAuth
671
+ accessToken: "YOUR BEARER TOKEN",
672
+ // To configure API key authorization: apiKeyAuth
673
+ apiKey: "YOUR API KEY",
674
+ });
675
+ const api = new AdminApi(config);
676
+
677
+ const body = {
678
+ // string | filter after userId by contains (optional)
679
+ filter: filter_example,
680
+ // number | Count elements per page (optional)
681
+ rowsPerPage: 100,
682
+ // number | Requested page of the ResultSets (optional)
683
+ page: 1,
684
+ } satisfies ListUsersRequest;
685
+
686
+ try {
687
+ const data = await api.listUsers(body);
688
+ console.log(data);
689
+ } catch (error) {
690
+ console.error(error);
691
+ }
692
+ }
693
+
694
+ // Run the test
695
+ example().catch(console.error);
696
+ ```
697
+
698
+ ### Parameters
699
+
700
+
701
+ | Name | Type | Description | Notes |
702
+ |------------- | ------------- | ------------- | -------------|
703
+ | **filter** | `string` | filter after userId by contains | [Optional] [Defaults to `undefined`] |
704
+ | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
705
+ | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
706
+
707
+ ### Return type
708
+
709
+ [**Array&lt;UserProfile&gt;**](UserProfile.md)
710
+
711
+ ### Authorization
712
+
713
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
714
+
715
+ ### HTTP request headers
716
+
717
+ - **Content-Type**: Not defined
718
+ - **Accept**: `application/json`, `text/plain`
719
+
720
+
721
+ ### HTTP response details
722
+ | Status code | Description | Response headers |
723
+ |-------------|-------------|------------------|
724
+ | **200** | | * x-pagination-count-rows - count all elements <br> * x-pagination-rows-per-page - Count elements per page <br> * x-pagination-current-page - Current page <br> * x-pagination-count-pages - Count pages <br> |
725
+ | **400** | Invalid value for: query parameter filter, Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page | - |
726
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
727
+
728
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
729
+
730
+
731
+ ## updatePasswordForUser
732
+
733
+ > JsonValueBoolean updatePasswordForUser(userId, passwordUpdateRequest)
734
+
735
+ Update Password
736
+
737
+ Change Password of User
738
+
739
+ ### Example
740
+
741
+ ```ts
742
+ import {
743
+ Configuration,
744
+ AdminApi,
745
+ } from '';
746
+ import type { UpdatePasswordForUserRequest } from '';
747
+
748
+ async function example() {
749
+ console.log("🚀 Testing SDK...");
750
+ const config = new Configuration({
751
+ // To configure HTTP basic authorization: httpAuth1
752
+ username: "YOUR USERNAME",
753
+ password: "YOUR PASSWORD",
754
+ // Configure HTTP bearer authorization: httpAuth
755
+ accessToken: "YOUR BEARER TOKEN",
756
+ // To configure API key authorization: apiKeyAuth
757
+ apiKey: "YOUR API KEY",
758
+ });
759
+ const api = new AdminApi(config);
760
+
761
+ const body = {
762
+ // string | UserId to Update
763
+ userId: userId_example,
764
+ // PasswordUpdateRequest
765
+ passwordUpdateRequest: ...,
766
+ } satisfies UpdatePasswordForUserRequest;
767
+
768
+ try {
769
+ const data = await api.updatePasswordForUser(body);
770
+ console.log(data);
771
+ } catch (error) {
772
+ console.error(error);
773
+ }
774
+ }
775
+
776
+ // Run the test
777
+ example().catch(console.error);
778
+ ```
779
+
780
+ ### Parameters
781
+
782
+
783
+ | Name | Type | Description | Notes |
784
+ |------------- | ------------- | ------------- | -------------|
785
+ | **userId** | `string` | UserId to Update | [Defaults to `undefined`] |
786
+ | **passwordUpdateRequest** | [PasswordUpdateRequest](PasswordUpdateRequest.md) | | |
787
+
788
+ ### Return type
789
+
790
+ [**JsonValueBoolean**](JsonValueBoolean.md)
791
+
792
+ ### Authorization
793
+
794
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
795
+
796
+ ### HTTP request headers
797
+
798
+ - **Content-Type**: `application/json`
799
+ - **Accept**: `application/json`, `text/plain`
800
+
801
+
802
+ ### HTTP response details
803
+ | Status code | Description | Response headers |
804
+ |-------------|-------------|------------------|
805
+ | **200** | | - |
806
+ | **400** | Invalid value for: body | - |
807
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
808
+
809
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
810
+
811
+
812
+ ## updateRole
813
+
814
+ > Role updateRole(roleName, updateRoleRequest)
815
+
816
+ Update Role
817
+
818
+ Update Role
819
+
820
+ ### Example
821
+
822
+ ```ts
823
+ import {
824
+ Configuration,
825
+ AdminApi,
826
+ } from '';
827
+ import type { UpdateRoleOperationRequest } from '';
828
+
829
+ async function example() {
830
+ console.log("🚀 Testing SDK...");
831
+ const config = new Configuration({
832
+ // To configure HTTP basic authorization: httpAuth1
833
+ username: "YOUR USERNAME",
834
+ password: "YOUR PASSWORD",
835
+ // Configure HTTP bearer authorization: httpAuth
836
+ accessToken: "YOUR BEARER TOKEN",
837
+ // To configure API key authorization: apiKeyAuth
838
+ apiKey: "YOUR API KEY",
839
+ });
840
+ const api = new AdminApi(config);
841
+
842
+ const body = {
843
+ // string | RoleKey
844
+ roleName: roleName_example,
845
+ // UpdateRoleRequest
846
+ updateRoleRequest: ...,
847
+ } satisfies UpdateRoleOperationRequest;
848
+
849
+ try {
850
+ const data = await api.updateRole(body);
851
+ console.log(data);
852
+ } catch (error) {
853
+ console.error(error);
854
+ }
855
+ }
856
+
857
+ // Run the test
858
+ example().catch(console.error);
859
+ ```
860
+
861
+ ### Parameters
862
+
863
+
864
+ | Name | Type | Description | Notes |
865
+ |------------- | ------------- | ------------- | -------------|
866
+ | **roleName** | `string` | RoleKey | [Defaults to `undefined`] |
867
+ | **updateRoleRequest** | [UpdateRoleRequest](UpdateRoleRequest.md) | | |
868
+
869
+ ### Return type
870
+
871
+ [**Role**](Role.md)
872
+
873
+ ### Authorization
874
+
875
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
876
+
877
+ ### HTTP request headers
878
+
879
+ - **Content-Type**: `application/json`
880
+ - **Accept**: `application/json`, `text/plain`
881
+
882
+
883
+ ### HTTP response details
884
+ | Status code | Description | Response headers |
885
+ |-------------|-------------|------------------|
886
+ | **200** | | - |
887
+ | **400** | Invalid value for: body | - |
888
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
889
+
890
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
891
+
892
+
893
+ ## updateRolesForUser
894
+
895
+ > UserProfile updateRolesForUser(userId, requestBody)
896
+
897
+ Update User Roles
898
+
899
+ Update Roles of User
900
+
901
+ ### Example
902
+
903
+ ```ts
904
+ import {
905
+ Configuration,
906
+ AdminApi,
907
+ } from '';
908
+ import type { UpdateRolesForUserRequest } from '';
909
+
910
+ async function example() {
911
+ console.log("🚀 Testing SDK...");
912
+ const config = new Configuration({
913
+ // To configure HTTP basic authorization: httpAuth1
914
+ username: "YOUR USERNAME",
915
+ password: "YOUR PASSWORD",
916
+ // Configure HTTP bearer authorization: httpAuth
917
+ accessToken: "YOUR BEARER TOKEN",
918
+ // To configure API key authorization: apiKeyAuth
919
+ apiKey: "YOUR API KEY",
920
+ });
921
+ const api = new AdminApi(config);
922
+
923
+ const body = {
924
+ // string | UserId to Update
925
+ userId: userId_example,
926
+ // Array<string> (optional)
927
+ requestBody: ...,
928
+ } satisfies UpdateRolesForUserRequest;
929
+
930
+ try {
931
+ const data = await api.updateRolesForUser(body);
932
+ console.log(data);
933
+ } catch (error) {
934
+ console.error(error);
935
+ }
936
+ }
937
+
938
+ // Run the test
939
+ example().catch(console.error);
940
+ ```
941
+
942
+ ### Parameters
943
+
944
+
945
+ | Name | Type | Description | Notes |
946
+ |------------- | ------------- | ------------- | -------------|
947
+ | **userId** | `string` | UserId to Update | [Defaults to `undefined`] |
948
+ | **requestBody** | `Array<string>` | | [Optional] |
949
+
950
+ ### Return type
951
+
952
+ [**UserProfile**](UserProfile.md)
953
+
954
+ ### Authorization
955
+
956
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
957
+
958
+ ### HTTP request headers
959
+
960
+ - **Content-Type**: `application/json`
961
+ - **Accept**: `application/json`, `text/plain`
962
+
963
+
964
+ ### HTTP response details
965
+ | Status code | Description | Response headers |
966
+ |-------------|-------------|------------------|
967
+ | **200** | | - |
968
+ | **400** | Invalid value for: body | - |
969
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
970
+
971
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
972
+