gopadjs 2.8.0 → 2.9.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.
- package/.codacy.yml +3 -0
- package/.github/RELEASE +1 -1
- package/.github/settings.yml +3 -0
- package/.openapi-generator/FILES +29 -0
- package/.openapi-generator/VERSION +1 -1
- package/CHANGELOG.md +7 -0
- package/README.md +2 -2
- package/docs/AuthApi.md +366 -0
- package/docs/AuthToken.md +22 -0
- package/docs/AuthVerify.md +22 -0
- package/docs/CreateGroupRequest.md +22 -0
- package/docs/CreateUserRequest.md +30 -0
- package/docs/DeleteGroupFromUserRequest.md +20 -0
- package/docs/DeleteUserFromGroupRequest.md +20 -0
- package/docs/Group.md +29 -0
- package/docs/GroupApi.md +548 -0
- package/docs/ListGroupUsers200Response.md +28 -0
- package/docs/ListGroups200Response.md +26 -0
- package/docs/ListProviders200Response.md +22 -0
- package/docs/ListUserGroups200Response.md +28 -0
- package/docs/ListUsers200Response.md +26 -0
- package/docs/LoginAuthRequest.md +22 -0
- package/docs/Notification.md +25 -0
- package/docs/PermitGroupUserRequest.md +22 -0
- package/docs/PermitUserGroupRequest.md +22 -0
- package/docs/Profile.md +43 -0
- package/docs/ProfileApi.md +155 -0
- package/docs/Provider.md +27 -0
- package/docs/RedirectAuthRequest.md +20 -0
- package/docs/UpdateProfileRequest.md +26 -0
- package/docs/UpdateUserRequest.md +30 -0
- package/docs/User.md +41 -0
- package/docs/UserApi.md +548 -0
- package/docs/UserAuth.md +27 -0
- package/docs/UserGroup.md +33 -0
- package/docs/Validation.md +23 -0
- package/flake.lock +9 -9
- package/openapi.yml +1 -1
- package/package.json +1 -1
package/docs/GroupApi.md
ADDED
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
# GroupApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://try.gopad.eu/api/v1*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**attachGroupToUser**](#attachgrouptouser) | **POST** /groups/{group_id}/users | Attach a user to group|
|
|
8
|
+
|[**createGroup**](#creategroup) | **POST** /groups | Create a new group|
|
|
9
|
+
|[**deleteGroup**](#deletegroup) | **DELETE** /groups/{group_id} | Delete a specific group|
|
|
10
|
+
|[**deleteGroupFromUser**](#deletegroupfromuser) | **DELETE** /groups/{group_id}/users | Unlink a user from group|
|
|
11
|
+
|[**listGroupUsers**](#listgroupusers) | **GET** /groups/{group_id}/users | Fetch all users attached to group|
|
|
12
|
+
|[**listGroups**](#listgroups) | **GET** /groups | Fetch all available groups|
|
|
13
|
+
|[**permitGroupUser**](#permitgroupuser) | **PUT** /groups/{group_id}/users | Update user perms for group|
|
|
14
|
+
|[**showGroup**](#showgroup) | **GET** /groups/{group_id} | Fetch a specific group|
|
|
15
|
+
|[**updateGroup**](#updategroup) | **PUT** /groups/{group_id} | Update a specific group|
|
|
16
|
+
|
|
17
|
+
# **attachGroupToUser**
|
|
18
|
+
> Notification attachGroupToUser(permitGroupUserRequest)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
GroupApi,
|
|
26
|
+
Configuration,
|
|
27
|
+
PermitGroupUserRequest
|
|
28
|
+
} from 'gopadjs';
|
|
29
|
+
|
|
30
|
+
const configuration = new Configuration();
|
|
31
|
+
const apiInstance = new GroupApi(configuration);
|
|
32
|
+
|
|
33
|
+
let groupId: string; //A group identifier or slug (default to undefined)
|
|
34
|
+
let permitGroupUserRequest: PermitGroupUserRequest; //The group user data to permit
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.attachGroupToUser(
|
|
37
|
+
groupId,
|
|
38
|
+
permitGroupUserRequest
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
|Name | Type | Description | Notes|
|
|
45
|
+
|------------- | ------------- | ------------- | -------------|
|
|
46
|
+
| **permitGroupUserRequest** | **PermitGroupUserRequest**| The group user data to permit | |
|
|
47
|
+
| **groupId** | [**string**] | A group identifier or slug | defaults to undefined|
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Return type
|
|
51
|
+
|
|
52
|
+
**Notification**
|
|
53
|
+
|
|
54
|
+
### Authorization
|
|
55
|
+
|
|
56
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
57
|
+
|
|
58
|
+
### HTTP request headers
|
|
59
|
+
|
|
60
|
+
- **Content-Type**: application/json
|
|
61
|
+
- **Accept**: application/json
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### HTTP response details
|
|
65
|
+
| Status code | Description | Response headers |
|
|
66
|
+
|-------------|-------------|------------------|
|
|
67
|
+
|**200** | Plain success message | - |
|
|
68
|
+
|**400** | Failed to parse request | - |
|
|
69
|
+
|**403** | User is not authorized | - |
|
|
70
|
+
|**404** | Resource not found | - |
|
|
71
|
+
|**412** | Resource is already attached | - |
|
|
72
|
+
|**422** | Failed to validate request | - |
|
|
73
|
+
|**500** | Some internal server error | - |
|
|
74
|
+
|
|
75
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
76
|
+
|
|
77
|
+
# **createGroup**
|
|
78
|
+
> Group createGroup(createGroupRequest)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Example
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import {
|
|
85
|
+
GroupApi,
|
|
86
|
+
Configuration,
|
|
87
|
+
CreateGroupRequest
|
|
88
|
+
} from 'gopadjs';
|
|
89
|
+
|
|
90
|
+
const configuration = new Configuration();
|
|
91
|
+
const apiInstance = new GroupApi(configuration);
|
|
92
|
+
|
|
93
|
+
let createGroupRequest: CreateGroupRequest; //The group data to create
|
|
94
|
+
|
|
95
|
+
const { status, data } = await apiInstance.createGroup(
|
|
96
|
+
createGroupRequest
|
|
97
|
+
);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
|Name | Type | Description | Notes|
|
|
103
|
+
|------------- | ------------- | ------------- | -------------|
|
|
104
|
+
| **createGroupRequest** | **CreateGroupRequest**| The group data to create | |
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**Group**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: application/json
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
| Status code | Description | Response headers |
|
|
123
|
+
|-------------|-------------|------------------|
|
|
124
|
+
|**200** | The details for a group | - |
|
|
125
|
+
|**400** | Failed to parse request | - |
|
|
126
|
+
|**403** | User is not authorized | - |
|
|
127
|
+
|**422** | Failed to validate request | - |
|
|
128
|
+
|**500** | Some internal server error | - |
|
|
129
|
+
|
|
130
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
131
|
+
|
|
132
|
+
# **deleteGroup**
|
|
133
|
+
> Notification deleteGroup()
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Example
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
import {
|
|
140
|
+
GroupApi,
|
|
141
|
+
Configuration
|
|
142
|
+
} from 'gopadjs';
|
|
143
|
+
|
|
144
|
+
const configuration = new Configuration();
|
|
145
|
+
const apiInstance = new GroupApi(configuration);
|
|
146
|
+
|
|
147
|
+
let groupId: string; //A group identifier or slug (default to undefined)
|
|
148
|
+
|
|
149
|
+
const { status, data } = await apiInstance.deleteGroup(
|
|
150
|
+
groupId
|
|
151
|
+
);
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
|Name | Type | Description | Notes|
|
|
157
|
+
|------------- | ------------- | ------------- | -------------|
|
|
158
|
+
| **groupId** | [**string**] | A group identifier or slug | defaults to undefined|
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Return type
|
|
162
|
+
|
|
163
|
+
**Notification**
|
|
164
|
+
|
|
165
|
+
### Authorization
|
|
166
|
+
|
|
167
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
168
|
+
|
|
169
|
+
### HTTP request headers
|
|
170
|
+
|
|
171
|
+
- **Content-Type**: Not defined
|
|
172
|
+
- **Accept**: application/json
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### HTTP response details
|
|
176
|
+
| Status code | Description | Response headers |
|
|
177
|
+
|-------------|-------------|------------------|
|
|
178
|
+
|**200** | Plain success message | - |
|
|
179
|
+
|**403** | User is not authorized | - |
|
|
180
|
+
|**404** | Resource not found | - |
|
|
181
|
+
|**400** | Failed to execute action for resource | - |
|
|
182
|
+
|**500** | Some internal server error | - |
|
|
183
|
+
|
|
184
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
185
|
+
|
|
186
|
+
# **deleteGroupFromUser**
|
|
187
|
+
> Notification deleteGroupFromUser(deleteGroupFromUserRequest)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Example
|
|
191
|
+
|
|
192
|
+
```typescript
|
|
193
|
+
import {
|
|
194
|
+
GroupApi,
|
|
195
|
+
Configuration,
|
|
196
|
+
DeleteGroupFromUserRequest
|
|
197
|
+
} from 'gopadjs';
|
|
198
|
+
|
|
199
|
+
const configuration = new Configuration();
|
|
200
|
+
const apiInstance = new GroupApi(configuration);
|
|
201
|
+
|
|
202
|
+
let groupId: string; //A group identifier or slug (default to undefined)
|
|
203
|
+
let deleteGroupFromUserRequest: DeleteGroupFromUserRequest; //The group user data to unlink
|
|
204
|
+
|
|
205
|
+
const { status, data } = await apiInstance.deleteGroupFromUser(
|
|
206
|
+
groupId,
|
|
207
|
+
deleteGroupFromUserRequest
|
|
208
|
+
);
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
|Name | Type | Description | Notes|
|
|
214
|
+
|------------- | ------------- | ------------- | -------------|
|
|
215
|
+
| **deleteGroupFromUserRequest** | **DeleteGroupFromUserRequest**| The group user data to unlink | |
|
|
216
|
+
| **groupId** | [**string**] | A group identifier or slug | defaults to undefined|
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### Return type
|
|
220
|
+
|
|
221
|
+
**Notification**
|
|
222
|
+
|
|
223
|
+
### Authorization
|
|
224
|
+
|
|
225
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
226
|
+
|
|
227
|
+
### HTTP request headers
|
|
228
|
+
|
|
229
|
+
- **Content-Type**: application/json
|
|
230
|
+
- **Accept**: application/json
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### HTTP response details
|
|
234
|
+
| Status code | Description | Response headers |
|
|
235
|
+
|-------------|-------------|------------------|
|
|
236
|
+
|**200** | Plain success message | - |
|
|
237
|
+
|**400** | Failed to parse request | - |
|
|
238
|
+
|**403** | User is not authorized | - |
|
|
239
|
+
|**404** | Resource not found | - |
|
|
240
|
+
|**412** | Resource is not attached | - |
|
|
241
|
+
|**500** | Some internal server error | - |
|
|
242
|
+
|
|
243
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
244
|
+
|
|
245
|
+
# **listGroupUsers**
|
|
246
|
+
> ListGroupUsers200Response listGroupUsers()
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### Example
|
|
250
|
+
|
|
251
|
+
```typescript
|
|
252
|
+
import {
|
|
253
|
+
GroupApi,
|
|
254
|
+
Configuration
|
|
255
|
+
} from 'gopadjs';
|
|
256
|
+
|
|
257
|
+
const configuration = new Configuration();
|
|
258
|
+
const apiInstance = new GroupApi(configuration);
|
|
259
|
+
|
|
260
|
+
let groupId: string; //A group identifier or slug (default to undefined)
|
|
261
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
262
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
263
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
264
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
265
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
266
|
+
|
|
267
|
+
const { status, data } = await apiInstance.listGroupUsers(
|
|
268
|
+
groupId,
|
|
269
|
+
search,
|
|
270
|
+
sort,
|
|
271
|
+
order,
|
|
272
|
+
limit,
|
|
273
|
+
offset
|
|
274
|
+
);
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Parameters
|
|
278
|
+
|
|
279
|
+
|Name | Type | Description | Notes|
|
|
280
|
+
|------------- | ------------- | ------------- | -------------|
|
|
281
|
+
| **groupId** | [**string**] | A group identifier or slug | defaults to undefined|
|
|
282
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
283
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
284
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
285
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
286
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Return type
|
|
290
|
+
|
|
291
|
+
**ListGroupUsers200Response**
|
|
292
|
+
|
|
293
|
+
### Authorization
|
|
294
|
+
|
|
295
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
296
|
+
|
|
297
|
+
### HTTP request headers
|
|
298
|
+
|
|
299
|
+
- **Content-Type**: Not defined
|
|
300
|
+
- **Accept**: application/json
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
### HTTP response details
|
|
304
|
+
| Status code | Description | Response headers |
|
|
305
|
+
|-------------|-------------|------------------|
|
|
306
|
+
|**200** | A collection of group users | - |
|
|
307
|
+
|**403** | User is not authorized | - |
|
|
308
|
+
|**404** | Resource not found | - |
|
|
309
|
+
|**500** | Some internal server error | - |
|
|
310
|
+
|
|
311
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
312
|
+
|
|
313
|
+
# **listGroups**
|
|
314
|
+
> ListGroups200Response listGroups()
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### Example
|
|
318
|
+
|
|
319
|
+
```typescript
|
|
320
|
+
import {
|
|
321
|
+
GroupApi,
|
|
322
|
+
Configuration
|
|
323
|
+
} from 'gopadjs';
|
|
324
|
+
|
|
325
|
+
const configuration = new Configuration();
|
|
326
|
+
const apiInstance = new GroupApi(configuration);
|
|
327
|
+
|
|
328
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
329
|
+
let sort: string; //Sorting column (optional) (default to undefined)
|
|
330
|
+
let order: 'asc' | 'desc'; //Sorting order (optional) (default to 'asc')
|
|
331
|
+
let limit: number; //Paging limit (optional) (default to 100)
|
|
332
|
+
let offset: number; //Paging offset (optional) (default to 0)
|
|
333
|
+
|
|
334
|
+
const { status, data } = await apiInstance.listGroups(
|
|
335
|
+
search,
|
|
336
|
+
sort,
|
|
337
|
+
order,
|
|
338
|
+
limit,
|
|
339
|
+
offset
|
|
340
|
+
);
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
|Name | Type | Description | Notes|
|
|
346
|
+
|------------- | ------------- | ------------- | -------------|
|
|
347
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
348
|
+
| **sort** | [**string**] | Sorting column | (optional) defaults to undefined|
|
|
349
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | Sorting order | (optional) defaults to 'asc'|
|
|
350
|
+
| **limit** | [**number**] | Paging limit | (optional) defaults to 100|
|
|
351
|
+
| **offset** | [**number**] | Paging offset | (optional) defaults to 0|
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### Return type
|
|
355
|
+
|
|
356
|
+
**ListGroups200Response**
|
|
357
|
+
|
|
358
|
+
### Authorization
|
|
359
|
+
|
|
360
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
361
|
+
|
|
362
|
+
### HTTP request headers
|
|
363
|
+
|
|
364
|
+
- **Content-Type**: Not defined
|
|
365
|
+
- **Accept**: application/json
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
### HTTP response details
|
|
369
|
+
| Status code | Description | Response headers |
|
|
370
|
+
|-------------|-------------|------------------|
|
|
371
|
+
|**200** | A collection of groups | - |
|
|
372
|
+
|**403** | User is not authorized | - |
|
|
373
|
+
|**500** | Some internal server error | - |
|
|
374
|
+
|
|
375
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
376
|
+
|
|
377
|
+
# **permitGroupUser**
|
|
378
|
+
> Notification permitGroupUser(permitGroupUserRequest)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
### Example
|
|
382
|
+
|
|
383
|
+
```typescript
|
|
384
|
+
import {
|
|
385
|
+
GroupApi,
|
|
386
|
+
Configuration,
|
|
387
|
+
PermitGroupUserRequest
|
|
388
|
+
} from 'gopadjs';
|
|
389
|
+
|
|
390
|
+
const configuration = new Configuration();
|
|
391
|
+
const apiInstance = new GroupApi(configuration);
|
|
392
|
+
|
|
393
|
+
let groupId: string; //A group identifier or slug (default to undefined)
|
|
394
|
+
let permitGroupUserRequest: PermitGroupUserRequest; //The group user data to permit
|
|
395
|
+
|
|
396
|
+
const { status, data } = await apiInstance.permitGroupUser(
|
|
397
|
+
groupId,
|
|
398
|
+
permitGroupUserRequest
|
|
399
|
+
);
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Parameters
|
|
403
|
+
|
|
404
|
+
|Name | Type | Description | Notes|
|
|
405
|
+
|------------- | ------------- | ------------- | -------------|
|
|
406
|
+
| **permitGroupUserRequest** | **PermitGroupUserRequest**| The group user data to permit | |
|
|
407
|
+
| **groupId** | [**string**] | A group identifier or slug | defaults to undefined|
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
### Return type
|
|
411
|
+
|
|
412
|
+
**Notification**
|
|
413
|
+
|
|
414
|
+
### Authorization
|
|
415
|
+
|
|
416
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
417
|
+
|
|
418
|
+
### HTTP request headers
|
|
419
|
+
|
|
420
|
+
- **Content-Type**: application/json
|
|
421
|
+
- **Accept**: application/json
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
### HTTP response details
|
|
425
|
+
| Status code | Description | Response headers |
|
|
426
|
+
|-------------|-------------|------------------|
|
|
427
|
+
|**200** | Plain success message | - |
|
|
428
|
+
|**400** | Failed to parse request | - |
|
|
429
|
+
|**403** | User is not authorized | - |
|
|
430
|
+
|**404** | Resource not found | - |
|
|
431
|
+
|**412** | Resource is not attached | - |
|
|
432
|
+
|**422** | Failed to validate request | - |
|
|
433
|
+
|**500** | Some internal server error | - |
|
|
434
|
+
|
|
435
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
436
|
+
|
|
437
|
+
# **showGroup**
|
|
438
|
+
> Group showGroup()
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
### Example
|
|
442
|
+
|
|
443
|
+
```typescript
|
|
444
|
+
import {
|
|
445
|
+
GroupApi,
|
|
446
|
+
Configuration
|
|
447
|
+
} from 'gopadjs';
|
|
448
|
+
|
|
449
|
+
const configuration = new Configuration();
|
|
450
|
+
const apiInstance = new GroupApi(configuration);
|
|
451
|
+
|
|
452
|
+
let groupId: string; //A group identifier or slug (default to undefined)
|
|
453
|
+
|
|
454
|
+
const { status, data } = await apiInstance.showGroup(
|
|
455
|
+
groupId
|
|
456
|
+
);
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
### Parameters
|
|
460
|
+
|
|
461
|
+
|Name | Type | Description | Notes|
|
|
462
|
+
|------------- | ------------- | ------------- | -------------|
|
|
463
|
+
| **groupId** | [**string**] | A group identifier or slug | defaults to undefined|
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
### Return type
|
|
467
|
+
|
|
468
|
+
**Group**
|
|
469
|
+
|
|
470
|
+
### Authorization
|
|
471
|
+
|
|
472
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
473
|
+
|
|
474
|
+
### HTTP request headers
|
|
475
|
+
|
|
476
|
+
- **Content-Type**: Not defined
|
|
477
|
+
- **Accept**: application/json
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
### HTTP response details
|
|
481
|
+
| Status code | Description | Response headers |
|
|
482
|
+
|-------------|-------------|------------------|
|
|
483
|
+
|**200** | The details for a group | - |
|
|
484
|
+
|**403** | User is not authorized | - |
|
|
485
|
+
|**404** | Resource not found | - |
|
|
486
|
+
|**500** | Some internal server error | - |
|
|
487
|
+
|
|
488
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
489
|
+
|
|
490
|
+
# **updateGroup**
|
|
491
|
+
> Group updateGroup(createGroupRequest)
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
### Example
|
|
495
|
+
|
|
496
|
+
```typescript
|
|
497
|
+
import {
|
|
498
|
+
GroupApi,
|
|
499
|
+
Configuration,
|
|
500
|
+
CreateGroupRequest
|
|
501
|
+
} from 'gopadjs';
|
|
502
|
+
|
|
503
|
+
const configuration = new Configuration();
|
|
504
|
+
const apiInstance = new GroupApi(configuration);
|
|
505
|
+
|
|
506
|
+
let groupId: string; //A group identifier or slug (default to undefined)
|
|
507
|
+
let createGroupRequest: CreateGroupRequest; //The group data to update
|
|
508
|
+
|
|
509
|
+
const { status, data } = await apiInstance.updateGroup(
|
|
510
|
+
groupId,
|
|
511
|
+
createGroupRequest
|
|
512
|
+
);
|
|
513
|
+
```
|
|
514
|
+
|
|
515
|
+
### Parameters
|
|
516
|
+
|
|
517
|
+
|Name | Type | Description | Notes|
|
|
518
|
+
|------------- | ------------- | ------------- | -------------|
|
|
519
|
+
| **createGroupRequest** | **CreateGroupRequest**| The group data to update | |
|
|
520
|
+
| **groupId** | [**string**] | A group identifier or slug | defaults to undefined|
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### Return type
|
|
524
|
+
|
|
525
|
+
**Group**
|
|
526
|
+
|
|
527
|
+
### Authorization
|
|
528
|
+
|
|
529
|
+
[Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
|
|
530
|
+
|
|
531
|
+
### HTTP request headers
|
|
532
|
+
|
|
533
|
+
- **Content-Type**: application/json
|
|
534
|
+
- **Accept**: application/json
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
### HTTP response details
|
|
538
|
+
| Status code | Description | Response headers |
|
|
539
|
+
|-------------|-------------|------------------|
|
|
540
|
+
|**200** | The details for a group | - |
|
|
541
|
+
|**400** | Failed to parse request | - |
|
|
542
|
+
|**403** | User is not authorized | - |
|
|
543
|
+
|**404** | Resource not found | - |
|
|
544
|
+
|**422** | Failed to validate request | - |
|
|
545
|
+
|**500** | Some internal server error | - |
|
|
546
|
+
|
|
547
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
548
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ListGroupUsers200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [default to undefined]
|
|
9
|
+
**limit** | **number** | | [default to undefined]
|
|
10
|
+
**offset** | **number** | | [default to undefined]
|
|
11
|
+
**group** | [**Group**](Group.md) | | [optional] [default to undefined]
|
|
12
|
+
**users** | [**Array<UserGroup>**](UserGroup.md) | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ListGroupUsers200Response } from 'gopadjs';
|
|
18
|
+
|
|
19
|
+
const instance: ListGroupUsers200Response = {
|
|
20
|
+
total,
|
|
21
|
+
limit,
|
|
22
|
+
offset,
|
|
23
|
+
group,
|
|
24
|
+
users,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ListGroups200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [default to undefined]
|
|
9
|
+
**limit** | **number** | | [default to undefined]
|
|
10
|
+
**offset** | **number** | | [default to undefined]
|
|
11
|
+
**groups** | [**Array<Group>**](Group.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ListGroups200Response } from 'gopadjs';
|
|
17
|
+
|
|
18
|
+
const instance: ListGroups200Response = {
|
|
19
|
+
total,
|
|
20
|
+
limit,
|
|
21
|
+
offset,
|
|
22
|
+
groups,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ListProviders200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [default to undefined]
|
|
9
|
+
**providers** | [**Array<Provider>**](Provider.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ListProviders200Response } from 'gopadjs';
|
|
15
|
+
|
|
16
|
+
const instance: ListProviders200Response = {
|
|
17
|
+
total,
|
|
18
|
+
providers,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ListUserGroups200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [default to undefined]
|
|
9
|
+
**limit** | **number** | | [default to undefined]
|
|
10
|
+
**offset** | **number** | | [default to undefined]
|
|
11
|
+
**user** | [**User**](User.md) | | [optional] [default to undefined]
|
|
12
|
+
**groups** | [**Array<UserGroup>**](UserGroup.md) | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ListUserGroups200Response } from 'gopadjs';
|
|
18
|
+
|
|
19
|
+
const instance: ListUserGroups200Response = {
|
|
20
|
+
total,
|
|
21
|
+
limit,
|
|
22
|
+
offset,
|
|
23
|
+
user,
|
|
24
|
+
groups,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ListUsers200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [default to undefined]
|
|
9
|
+
**limit** | **number** | | [default to undefined]
|
|
10
|
+
**offset** | **number** | | [default to undefined]
|
|
11
|
+
**users** | [**Array<User>**](User.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ListUsers200Response } from 'gopadjs';
|
|
17
|
+
|
|
18
|
+
const instance: ListUsers200Response = {
|
|
19
|
+
total,
|
|
20
|
+
limit,
|
|
21
|
+
offset,
|
|
22
|
+
users,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LoginAuthRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**username** | **string** | | [default to undefined]
|
|
9
|
+
**password** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { LoginAuthRequest } from 'gopadjs';
|
|
15
|
+
|
|
16
|
+
const instance: LoginAuthRequest = {
|
|
17
|
+
username,
|
|
18
|
+
password,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|