@sfxcode/nuxt-mongocamp-server 1.2.7 → 1.2.9
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/dist/module.json +3 -3
- package/dist/module.mjs +3 -3
- package/dist/runtime/api/.openapi-generator/FILES +50 -0
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.js +32 -12
- package/dist/runtime/api/apis/ApplicationApi.js +12 -5
- package/dist/runtime/api/apis/AuthApi.js +16 -8
- package/dist/runtime/api/apis/BucketApi.js +11 -4
- package/dist/runtime/api/apis/CollectionApi.js +30 -10
- package/dist/runtime/api/apis/DatabaseApi.js +13 -5
- package/dist/runtime/api/apis/DocumentApi.js +34 -10
- package/dist/runtime/api/apis/FileApi.js +25 -7
- package/dist/runtime/api/apis/IndexApi.js +31 -8
- package/dist/runtime/api/apis/InformationApi.js +2 -1
- package/dist/runtime/api/apis/JobsApi.js +18 -6
- package/dist/runtime/api/docs/AdminApi.md +972 -0
- package/dist/runtime/api/docs/ApplicationApi.md +387 -0
- package/dist/runtime/api/docs/AuthApi.md +577 -0
- package/dist/runtime/api/docs/BucketApi.md +312 -0
- package/dist/runtime/api/docs/BucketInformation.md +40 -0
- package/dist/runtime/api/docs/CollectionApi.md +822 -0
- package/dist/runtime/api/docs/CollectionStatus.md +58 -0
- package/dist/runtime/api/docs/DatabaseApi.md +382 -0
- package/dist/runtime/api/docs/DatabaseInfo.md +42 -0
- package/dist/runtime/api/docs/DeleteResponse.md +36 -0
- package/dist/runtime/api/docs/DocumentApi.md +850 -0
- package/dist/runtime/api/docs/ErrorDescription.md +38 -0
- package/dist/runtime/api/docs/FileApi.md +606 -0
- package/dist/runtime/api/docs/FileInformation.md +44 -0
- package/dist/runtime/api/docs/Grant.md +42 -0
- package/dist/runtime/api/docs/IndexApi.md +682 -0
- package/dist/runtime/api/docs/IndexCreateRequest.md +36 -0
- package/dist/runtime/api/docs/IndexCreateResponse.md +34 -0
- package/dist/runtime/api/docs/IndexDropResponse.md +34 -0
- package/dist/runtime/api/docs/IndexOptionsRequest.md +48 -0
- package/dist/runtime/api/docs/InformationApi.md +69 -0
- package/dist/runtime/api/docs/InsertResponse.md +36 -0
- package/dist/runtime/api/docs/JobConfig.md +44 -0
- package/dist/runtime/api/docs/JobInformation.md +50 -0
- package/dist/runtime/api/docs/JobsApi.md +474 -0
- package/dist/runtime/api/docs/JsonSchema.md +38 -0
- package/dist/runtime/api/docs/JsonSchemaDefinition.md +42 -0
- package/dist/runtime/api/docs/JsonValueAny.md +34 -0
- package/dist/runtime/api/docs/JsonValueBoolean.md +34 -0
- package/dist/runtime/api/docs/JsonValueString.md +34 -0
- package/dist/runtime/api/docs/Login.md +36 -0
- package/dist/runtime/api/docs/LoginResult.md +38 -0
- package/dist/runtime/api/docs/MongoAggregateRequest.md +36 -0
- package/dist/runtime/api/docs/MongoCampConfiguration.md +42 -0
- package/dist/runtime/api/docs/MongoFindRequest.md +38 -0
- package/dist/runtime/api/docs/MongoIndex.md +56 -0
- package/dist/runtime/api/docs/PasswordUpdateRequest.md +34 -0
- package/dist/runtime/api/docs/PipelineStage.md +36 -0
- package/dist/runtime/api/docs/Role.md +38 -0
- package/dist/runtime/api/docs/SchemaAnalysis.md +40 -0
- package/dist/runtime/api/docs/SchemaAnalysisField.md +44 -0
- package/dist/runtime/api/docs/SchemaAnalysisFieldType.md +38 -0
- package/dist/runtime/api/docs/SettingsResponse.md +40 -0
- package/dist/runtime/api/docs/UpdateFileInformationRequest.md +36 -0
- package/dist/runtime/api/docs/UpdateRequest.md +36 -0
- package/dist/runtime/api/docs/UpdateResponse.md +40 -0
- package/dist/runtime/api/docs/UpdateRoleRequest.md +36 -0
- package/dist/runtime/api/docs/UserInformation.md +40 -0
- package/dist/runtime/api/docs/UserProfile.md +42 -0
- package/dist/runtime/api/docs/Version.md +38 -0
- package/dist/runtime/api/models/JobInformation.js +2 -2
- package/dist/runtime/composables/mongocampApi.d.ts +11 -1
- package/dist/runtime/composables/mongocampApi.js +12 -14
- package/dist/runtime/composables/mongocampAuth.d.ts +3 -3
- package/package.json +14 -14
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
# AuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**generateNewApiKey**](AuthApi.md#generatenewapikey) | **PATCH** /auth/profile/apikey | Update ApiKey |
|
|
8
|
+
| [**isAuthenticated**](AuthApi.md#isauthenticated) | **GET** /auth/authenticated | Check Authentication |
|
|
9
|
+
| [**login**](AuthApi.md#login) | **POST** /auth/login | Login User |
|
|
10
|
+
| [**logout**](AuthApi.md#logout) | **POST** /auth/logout | Logout User |
|
|
11
|
+
| [**logoutByDelete**](AuthApi.md#logoutbydelete) | **DELETE** /auth/logout | Logout User |
|
|
12
|
+
| [**refreshToken**](AuthApi.md#refreshtoken) | **GET** /auth/token/refresh | Refresh User |
|
|
13
|
+
| [**updatePassword**](AuthApi.md#updatepassword) | **PATCH** /auth/profile/password | Update Password |
|
|
14
|
+
| [**userProfile**](AuthApi.md#userprofile) | **GET** /auth/profile | User Profile |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## generateNewApiKey
|
|
19
|
+
|
|
20
|
+
> JsonValueString generateNewApiKey()
|
|
21
|
+
|
|
22
|
+
Update ApiKey
|
|
23
|
+
|
|
24
|
+
Generate new ApiKey of logged in User
|
|
25
|
+
|
|
26
|
+
### Example
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import {
|
|
30
|
+
Configuration,
|
|
31
|
+
AuthApi,
|
|
32
|
+
} from '';
|
|
33
|
+
import type { GenerateNewApiKeyRequest } from '';
|
|
34
|
+
|
|
35
|
+
async function example() {
|
|
36
|
+
console.log("🚀 Testing SDK...");
|
|
37
|
+
const config = new Configuration({
|
|
38
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
39
|
+
username: "YOUR USERNAME",
|
|
40
|
+
password: "YOUR PASSWORD",
|
|
41
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
42
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
43
|
+
// To configure API key authorization: apiKeyAuth
|
|
44
|
+
apiKey: "YOUR API KEY",
|
|
45
|
+
});
|
|
46
|
+
const api = new AuthApi(config);
|
|
47
|
+
|
|
48
|
+
try {
|
|
49
|
+
const data = await api.generateNewApiKey();
|
|
50
|
+
console.log(data);
|
|
51
|
+
} catch (error) {
|
|
52
|
+
console.error(error);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Run the test
|
|
57
|
+
example().catch(console.error);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
This endpoint does not need any parameter.
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
[**JsonValueString**](JsonValueString.md)
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: Not defined
|
|
75
|
+
- **Accept**: `application/json`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
| Status code | Description | Response headers |
|
|
80
|
+
|-------------|-------------|------------------|
|
|
81
|
+
| **200** | | - |
|
|
82
|
+
| **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> |
|
|
83
|
+
|
|
84
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## isAuthenticated
|
|
88
|
+
|
|
89
|
+
> JsonValueBoolean isAuthenticated()
|
|
90
|
+
|
|
91
|
+
Check Authentication
|
|
92
|
+
|
|
93
|
+
Check a given Login for is authenticated
|
|
94
|
+
|
|
95
|
+
### Example
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
import {
|
|
99
|
+
Configuration,
|
|
100
|
+
AuthApi,
|
|
101
|
+
} from '';
|
|
102
|
+
import type { IsAuthenticatedRequest } from '';
|
|
103
|
+
|
|
104
|
+
async function example() {
|
|
105
|
+
console.log("🚀 Testing SDK...");
|
|
106
|
+
const config = new Configuration({
|
|
107
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
108
|
+
username: "YOUR USERNAME",
|
|
109
|
+
password: "YOUR PASSWORD",
|
|
110
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
111
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
112
|
+
// To configure API key authorization: apiKeyAuth
|
|
113
|
+
apiKey: "YOUR API KEY",
|
|
114
|
+
});
|
|
115
|
+
const api = new AuthApi(config);
|
|
116
|
+
|
|
117
|
+
try {
|
|
118
|
+
const data = await api.isAuthenticated();
|
|
119
|
+
console.log(data);
|
|
120
|
+
} catch (error) {
|
|
121
|
+
console.error(error);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Run the test
|
|
126
|
+
example().catch(console.error);
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Parameters
|
|
130
|
+
|
|
131
|
+
This endpoint does not need any parameter.
|
|
132
|
+
|
|
133
|
+
### Return type
|
|
134
|
+
|
|
135
|
+
[**JsonValueBoolean**](JsonValueBoolean.md)
|
|
136
|
+
|
|
137
|
+
### Authorization
|
|
138
|
+
|
|
139
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
140
|
+
|
|
141
|
+
### HTTP request headers
|
|
142
|
+
|
|
143
|
+
- **Content-Type**: Not defined
|
|
144
|
+
- **Accept**: `application/json`
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### HTTP response details
|
|
148
|
+
| Status code | Description | Response headers |
|
|
149
|
+
|-------------|-------------|------------------|
|
|
150
|
+
| **200** | | - |
|
|
151
|
+
| **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> |
|
|
152
|
+
|
|
153
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
## login
|
|
157
|
+
|
|
158
|
+
> LoginResult login(login)
|
|
159
|
+
|
|
160
|
+
Login User
|
|
161
|
+
|
|
162
|
+
Login for one user and return Login Information
|
|
163
|
+
|
|
164
|
+
### Example
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
import {
|
|
168
|
+
Configuration,
|
|
169
|
+
AuthApi,
|
|
170
|
+
} from '';
|
|
171
|
+
import type { LoginRequest } from '';
|
|
172
|
+
|
|
173
|
+
async function example() {
|
|
174
|
+
console.log("🚀 Testing SDK...");
|
|
175
|
+
const api = new AuthApi();
|
|
176
|
+
|
|
177
|
+
const body = {
|
|
178
|
+
// Login | Login Information for your Users
|
|
179
|
+
login: {"userId":"myUser","password":"privatePassword"},
|
|
180
|
+
} satisfies LoginRequest;
|
|
181
|
+
|
|
182
|
+
try {
|
|
183
|
+
const data = await api.login(body);
|
|
184
|
+
console.log(data);
|
|
185
|
+
} catch (error) {
|
|
186
|
+
console.error(error);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Run the test
|
|
191
|
+
example().catch(console.error);
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Parameters
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
| Name | Type | Description | Notes |
|
|
198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
199
|
+
| **login** | [Login](Login.md) | Login Information for your Users | |
|
|
200
|
+
|
|
201
|
+
### Return type
|
|
202
|
+
|
|
203
|
+
[**LoginResult**](LoginResult.md)
|
|
204
|
+
|
|
205
|
+
### Authorization
|
|
206
|
+
|
|
207
|
+
No authorization required
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: `application/json`
|
|
212
|
+
- **Accept**: `application/json`, `text/plain`
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### HTTP response details
|
|
216
|
+
| Status code | Description | Response headers |
|
|
217
|
+
|-------------|-------------|------------------|
|
|
218
|
+
| **200** | | - |
|
|
219
|
+
| **400** | Invalid value for: body | - |
|
|
220
|
+
| **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> |
|
|
221
|
+
|
|
222
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## logout
|
|
226
|
+
|
|
227
|
+
> JsonValueBoolean logout()
|
|
228
|
+
|
|
229
|
+
Logout User
|
|
230
|
+
|
|
231
|
+
Logout by bearer Token
|
|
232
|
+
|
|
233
|
+
### Example
|
|
234
|
+
|
|
235
|
+
```ts
|
|
236
|
+
import {
|
|
237
|
+
Configuration,
|
|
238
|
+
AuthApi,
|
|
239
|
+
} from '';
|
|
240
|
+
import type { LogoutRequest } from '';
|
|
241
|
+
|
|
242
|
+
async function example() {
|
|
243
|
+
console.log("🚀 Testing SDK...");
|
|
244
|
+
const config = new Configuration({
|
|
245
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
246
|
+
username: "YOUR USERNAME",
|
|
247
|
+
password: "YOUR PASSWORD",
|
|
248
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
249
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
250
|
+
// To configure API key authorization: apiKeyAuth
|
|
251
|
+
apiKey: "YOUR API KEY",
|
|
252
|
+
});
|
|
253
|
+
const api = new AuthApi(config);
|
|
254
|
+
|
|
255
|
+
try {
|
|
256
|
+
const data = await api.logout();
|
|
257
|
+
console.log(data);
|
|
258
|
+
} catch (error) {
|
|
259
|
+
console.error(error);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Run the test
|
|
264
|
+
example().catch(console.error);
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
This endpoint does not need any parameter.
|
|
270
|
+
|
|
271
|
+
### Return type
|
|
272
|
+
|
|
273
|
+
[**JsonValueBoolean**](JsonValueBoolean.md)
|
|
274
|
+
|
|
275
|
+
### Authorization
|
|
276
|
+
|
|
277
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
278
|
+
|
|
279
|
+
### HTTP request headers
|
|
280
|
+
|
|
281
|
+
- **Content-Type**: Not defined
|
|
282
|
+
- **Accept**: `application/json`
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### HTTP response details
|
|
286
|
+
| Status code | Description | Response headers |
|
|
287
|
+
|-------------|-------------|------------------|
|
|
288
|
+
| **200** | | - |
|
|
289
|
+
| **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> |
|
|
290
|
+
|
|
291
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## logoutByDelete
|
|
295
|
+
|
|
296
|
+
> JsonValueBoolean logoutByDelete()
|
|
297
|
+
|
|
298
|
+
Logout User
|
|
299
|
+
|
|
300
|
+
Logout by bearer Token
|
|
301
|
+
|
|
302
|
+
### Example
|
|
303
|
+
|
|
304
|
+
```ts
|
|
305
|
+
import {
|
|
306
|
+
Configuration,
|
|
307
|
+
AuthApi,
|
|
308
|
+
} from '';
|
|
309
|
+
import type { LogoutByDeleteRequest } from '';
|
|
310
|
+
|
|
311
|
+
async function example() {
|
|
312
|
+
console.log("🚀 Testing SDK...");
|
|
313
|
+
const config = new Configuration({
|
|
314
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
315
|
+
username: "YOUR USERNAME",
|
|
316
|
+
password: "YOUR PASSWORD",
|
|
317
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
318
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
319
|
+
// To configure API key authorization: apiKeyAuth
|
|
320
|
+
apiKey: "YOUR API KEY",
|
|
321
|
+
});
|
|
322
|
+
const api = new AuthApi(config);
|
|
323
|
+
|
|
324
|
+
try {
|
|
325
|
+
const data = await api.logoutByDelete();
|
|
326
|
+
console.log(data);
|
|
327
|
+
} catch (error) {
|
|
328
|
+
console.error(error);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Run the test
|
|
333
|
+
example().catch(console.error);
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Parameters
|
|
337
|
+
|
|
338
|
+
This endpoint does not need any parameter.
|
|
339
|
+
|
|
340
|
+
### Return type
|
|
341
|
+
|
|
342
|
+
[**JsonValueBoolean**](JsonValueBoolean.md)
|
|
343
|
+
|
|
344
|
+
### Authorization
|
|
345
|
+
|
|
346
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
347
|
+
|
|
348
|
+
### HTTP request headers
|
|
349
|
+
|
|
350
|
+
- **Content-Type**: Not defined
|
|
351
|
+
- **Accept**: `application/json`
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### HTTP response details
|
|
355
|
+
| Status code | Description | Response headers |
|
|
356
|
+
|-------------|-------------|------------------|
|
|
357
|
+
| **200** | | - |
|
|
358
|
+
| **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> |
|
|
359
|
+
|
|
360
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
## refreshToken
|
|
364
|
+
|
|
365
|
+
> LoginResult refreshToken()
|
|
366
|
+
|
|
367
|
+
Refresh User
|
|
368
|
+
|
|
369
|
+
Refresh Token and return Login Information
|
|
370
|
+
|
|
371
|
+
### Example
|
|
372
|
+
|
|
373
|
+
```ts
|
|
374
|
+
import {
|
|
375
|
+
Configuration,
|
|
376
|
+
AuthApi,
|
|
377
|
+
} from '';
|
|
378
|
+
import type { RefreshTokenRequest } from '';
|
|
379
|
+
|
|
380
|
+
async function example() {
|
|
381
|
+
console.log("🚀 Testing SDK...");
|
|
382
|
+
const config = new Configuration({
|
|
383
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
384
|
+
username: "YOUR USERNAME",
|
|
385
|
+
password: "YOUR PASSWORD",
|
|
386
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
387
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
388
|
+
// To configure API key authorization: apiKeyAuth
|
|
389
|
+
apiKey: "YOUR API KEY",
|
|
390
|
+
});
|
|
391
|
+
const api = new AuthApi(config);
|
|
392
|
+
|
|
393
|
+
try {
|
|
394
|
+
const data = await api.refreshToken();
|
|
395
|
+
console.log(data);
|
|
396
|
+
} catch (error) {
|
|
397
|
+
console.error(error);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
// Run the test
|
|
402
|
+
example().catch(console.error);
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
### Parameters
|
|
406
|
+
|
|
407
|
+
This endpoint does not need any parameter.
|
|
408
|
+
|
|
409
|
+
### Return type
|
|
410
|
+
|
|
411
|
+
[**LoginResult**](LoginResult.md)
|
|
412
|
+
|
|
413
|
+
### Authorization
|
|
414
|
+
|
|
415
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
416
|
+
|
|
417
|
+
### HTTP request headers
|
|
418
|
+
|
|
419
|
+
- **Content-Type**: Not defined
|
|
420
|
+
- **Accept**: `application/json`
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
### HTTP response details
|
|
424
|
+
| Status code | Description | Response headers |
|
|
425
|
+
|-------------|-------------|------------------|
|
|
426
|
+
| **200** | | - |
|
|
427
|
+
| **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> |
|
|
428
|
+
|
|
429
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
## updatePassword
|
|
433
|
+
|
|
434
|
+
> JsonValueBoolean updatePassword(passwordUpdateRequest)
|
|
435
|
+
|
|
436
|
+
Update Password
|
|
437
|
+
|
|
438
|
+
Change Password of logged in User
|
|
439
|
+
|
|
440
|
+
### Example
|
|
441
|
+
|
|
442
|
+
```ts
|
|
443
|
+
import {
|
|
444
|
+
Configuration,
|
|
445
|
+
AuthApi,
|
|
446
|
+
} from '';
|
|
447
|
+
import type { UpdatePasswordRequest } from '';
|
|
448
|
+
|
|
449
|
+
async function example() {
|
|
450
|
+
console.log("🚀 Testing SDK...");
|
|
451
|
+
const config = new Configuration({
|
|
452
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
453
|
+
username: "YOUR USERNAME",
|
|
454
|
+
password: "YOUR PASSWORD",
|
|
455
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
456
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
457
|
+
// To configure API key authorization: apiKeyAuth
|
|
458
|
+
apiKey: "YOUR API KEY",
|
|
459
|
+
});
|
|
460
|
+
const api = new AuthApi(config);
|
|
461
|
+
|
|
462
|
+
const body = {
|
|
463
|
+
// PasswordUpdateRequest
|
|
464
|
+
passwordUpdateRequest: ...,
|
|
465
|
+
} satisfies UpdatePasswordRequest;
|
|
466
|
+
|
|
467
|
+
try {
|
|
468
|
+
const data = await api.updatePassword(body);
|
|
469
|
+
console.log(data);
|
|
470
|
+
} catch (error) {
|
|
471
|
+
console.error(error);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// Run the test
|
|
476
|
+
example().catch(console.error);
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
### Parameters
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
| Name | Type | Description | Notes |
|
|
483
|
+
|------------- | ------------- | ------------- | -------------|
|
|
484
|
+
| **passwordUpdateRequest** | [PasswordUpdateRequest](PasswordUpdateRequest.md) | | |
|
|
485
|
+
|
|
486
|
+
### Return type
|
|
487
|
+
|
|
488
|
+
[**JsonValueBoolean**](JsonValueBoolean.md)
|
|
489
|
+
|
|
490
|
+
### Authorization
|
|
491
|
+
|
|
492
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
493
|
+
|
|
494
|
+
### HTTP request headers
|
|
495
|
+
|
|
496
|
+
- **Content-Type**: `application/json`
|
|
497
|
+
- **Accept**: `application/json`, `text/plain`
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
### HTTP response details
|
|
501
|
+
| Status code | Description | Response headers |
|
|
502
|
+
|-------------|-------------|------------------|
|
|
503
|
+
| **200** | | - |
|
|
504
|
+
| **400** | Invalid value for: body | - |
|
|
505
|
+
| **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> |
|
|
506
|
+
|
|
507
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
## userProfile
|
|
511
|
+
|
|
512
|
+
> UserProfile userProfile()
|
|
513
|
+
|
|
514
|
+
User Profile
|
|
515
|
+
|
|
516
|
+
Return the User Profile of loggedin user
|
|
517
|
+
|
|
518
|
+
### Example
|
|
519
|
+
|
|
520
|
+
```ts
|
|
521
|
+
import {
|
|
522
|
+
Configuration,
|
|
523
|
+
AuthApi,
|
|
524
|
+
} from '';
|
|
525
|
+
import type { UserProfileRequest } from '';
|
|
526
|
+
|
|
527
|
+
async function example() {
|
|
528
|
+
console.log("🚀 Testing SDK...");
|
|
529
|
+
const config = new Configuration({
|
|
530
|
+
// To configure HTTP basic authorization: httpAuth1
|
|
531
|
+
username: "YOUR USERNAME",
|
|
532
|
+
password: "YOUR PASSWORD",
|
|
533
|
+
// Configure HTTP bearer authorization: httpAuth
|
|
534
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
535
|
+
// To configure API key authorization: apiKeyAuth
|
|
536
|
+
apiKey: "YOUR API KEY",
|
|
537
|
+
});
|
|
538
|
+
const api = new AuthApi(config);
|
|
539
|
+
|
|
540
|
+
try {
|
|
541
|
+
const data = await api.userProfile();
|
|
542
|
+
console.log(data);
|
|
543
|
+
} catch (error) {
|
|
544
|
+
console.error(error);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
// Run the test
|
|
549
|
+
example().catch(console.error);
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
### Parameters
|
|
553
|
+
|
|
554
|
+
This endpoint does not need any parameter.
|
|
555
|
+
|
|
556
|
+
### Return type
|
|
557
|
+
|
|
558
|
+
[**UserProfile**](UserProfile.md)
|
|
559
|
+
|
|
560
|
+
### Authorization
|
|
561
|
+
|
|
562
|
+
[httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
|
|
563
|
+
|
|
564
|
+
### HTTP request headers
|
|
565
|
+
|
|
566
|
+
- **Content-Type**: Not defined
|
|
567
|
+
- **Accept**: `application/json`
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
### HTTP response details
|
|
571
|
+
| Status code | Description | Response headers |
|
|
572
|
+
|-------------|-------------|------------------|
|
|
573
|
+
| **200** | | - |
|
|
574
|
+
| **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> |
|
|
575
|
+
|
|
576
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
577
|
+
|