gopadjs 2.4.0 → 2.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.
- package/.github/RELEASE +1 -1
- package/.github/renovate.json +1 -1
- package/.github/workflows/automerge.yml +1 -0
- package/.openapi-generator/FILES +18 -10
- package/CHANGELOG.md +21 -0
- package/README.md +2 -2
- package/api/auth-api.ts +179 -114
- package/api/{team-api.ts → group-api.ts} +466 -472
- package/api/profile-api.ts +33 -18
- package/api/user-api.ts +220 -236
- package/api.ts +1 -1
- package/flake.lock +93 -19
- package/flake.nix +46 -23
- package/hack/openapi/templates/gitignore +7 -5
- package/model/create-group-request.ts +33 -0
- package/model/create-user-request.ts +57 -0
- package/model/delete-group-from-user-request.ts +27 -0
- package/model/delete-user-from-group-request.ts +27 -0
- package/model/{team.ts → group.ts} +8 -18
- package/model/index.ts +17 -9
- package/model/list-group-users200-response.ts +58 -0
- package/model/{team-users.ts → list-groups200-response.ts} +18 -15
- package/model/{teams.ts → list-providers200-response.ts} +9 -9
- package/model/{user-teams.ts → list-user-groups200-response.ts} +24 -12
- package/model/{users.ts → list-users200-response.ts} +19 -7
- package/model/{auth-login.ts → login-auth-request.ts} +4 -4
- package/model/{team-user-params.ts → permit-group-user-request.ts} +6 -15
- package/model/{user-team-params.ts → permit-user-group-request.ts} +7 -16
- package/model/profile.ts +3 -3
- package/model/provider.ts +45 -0
- package/model/update-profile-request.ts +45 -0
- package/model/update-user-request.ts +57 -0
- package/model/{user-team.ts → user-group.ts} +19 -19
- package/model/user.ts +0 -9
- package/openapi.yml +1 -1
- package/package.json +1 -1
|
@@ -17,30 +17,42 @@
|
|
|
17
17
|
import type { User } from "./user";
|
|
18
18
|
// May contain unused imports in some cases
|
|
19
19
|
// @ts-ignore
|
|
20
|
-
import type {
|
|
20
|
+
import type { UserGroup } from "./user-group";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
*
|
|
24
24
|
* @export
|
|
25
|
-
* @interface
|
|
25
|
+
* @interface ListUserGroups200Response
|
|
26
26
|
*/
|
|
27
|
-
export interface
|
|
27
|
+
export interface ListUserGroups200Response {
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
31
|
-
* @memberof
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ListUserGroups200Response
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
total: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof ListUserGroups200Response
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
limit: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ListUserGroups200Response
|
|
44
|
+
*/
|
|
45
|
+
offset: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {User}
|
|
49
|
+
* @memberof ListUserGroups200Response
|
|
50
|
+
*/
|
|
51
|
+
user?: User;
|
|
40
52
|
/**
|
|
41
53
|
*
|
|
42
|
-
* @type {Array<
|
|
43
|
-
* @memberof
|
|
54
|
+
* @type {Array<UserGroup>}
|
|
55
|
+
* @memberof ListUserGroups200Response
|
|
44
56
|
*/
|
|
45
|
-
|
|
57
|
+
groups: Array<UserGroup>;
|
|
46
58
|
}
|
|
@@ -17,21 +17,33 @@
|
|
|
17
17
|
import type { User } from "./user";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
*
|
|
21
21
|
* @export
|
|
22
|
-
* @interface
|
|
22
|
+
* @interface ListUsers200Response
|
|
23
23
|
*/
|
|
24
|
-
export interface
|
|
24
|
+
export interface ListUsers200Response {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListUsers200Response
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListUsers200Response
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
25
37
|
/**
|
|
26
38
|
*
|
|
27
39
|
* @type {number}
|
|
28
|
-
* @memberof
|
|
40
|
+
* @memberof ListUsers200Response
|
|
29
41
|
*/
|
|
30
|
-
|
|
42
|
+
offset: number;
|
|
31
43
|
/**
|
|
32
44
|
*
|
|
33
45
|
* @type {Array<User>}
|
|
34
|
-
* @memberof
|
|
46
|
+
* @memberof ListUsers200Response
|
|
35
47
|
*/
|
|
36
|
-
users
|
|
48
|
+
users: Array<User>;
|
|
37
49
|
}
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface LoginAuthRequest
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface LoginAuthRequest {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @type {string}
|
|
24
|
-
* @memberof
|
|
24
|
+
* @memberof LoginAuthRequest
|
|
25
25
|
*/
|
|
26
26
|
username: string;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {string}
|
|
30
|
-
* @memberof
|
|
30
|
+
* @memberof LoginAuthRequest
|
|
31
31
|
*/
|
|
32
32
|
password: string;
|
|
33
33
|
}
|
|
@@ -13,30 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface PermitGroupUserRequest
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface PermitGroupUserRequest {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @type {string}
|
|
24
|
-
* @memberof
|
|
24
|
+
* @memberof PermitGroupUserRequest
|
|
25
25
|
*/
|
|
26
26
|
user: string;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {string}
|
|
30
|
-
* @memberof
|
|
30
|
+
* @memberof PermitGroupUserRequest
|
|
31
31
|
*/
|
|
32
|
-
perm
|
|
32
|
+
perm: string;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
export const TeamUserParamsPermEnum = {
|
|
36
|
-
User: "user",
|
|
37
|
-
Admin: "admin",
|
|
38
|
-
Owner: "owner",
|
|
39
|
-
} as const;
|
|
40
|
-
|
|
41
|
-
export type TeamUserParamsPermEnum =
|
|
42
|
-
(typeof TeamUserParamsPermEnum)[keyof typeof TeamUserParamsPermEnum];
|
|
@@ -13,30 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface PermitUserGroupRequest
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface PermitUserGroupRequest {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @type {string}
|
|
24
|
-
* @memberof
|
|
24
|
+
* @memberof PermitUserGroupRequest
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
group: string;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {string}
|
|
30
|
-
* @memberof
|
|
30
|
+
* @memberof PermitUserGroupRequest
|
|
31
31
|
*/
|
|
32
|
-
perm
|
|
32
|
+
perm: string;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
export const UserTeamParamsPermEnum = {
|
|
36
|
-
User: "user",
|
|
37
|
-
Admin: "admin",
|
|
38
|
-
Owner: "owner",
|
|
39
|
-
} as const;
|
|
40
|
-
|
|
41
|
-
export type UserTeamParamsPermEnum =
|
|
42
|
-
(typeof UserTeamParamsPermEnum)[keyof typeof UserTeamParamsPermEnum];
|
package/model/profile.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import type { UserAuth } from "./user-auth";
|
|
18
18
|
// May contain unused imports in some cases
|
|
19
19
|
// @ts-ignore
|
|
20
|
-
import type {
|
|
20
|
+
import type { UserGroup } from "./user-group";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Model to represent profile
|
|
@@ -93,8 +93,8 @@ export interface Profile {
|
|
|
93
93
|
auths?: Array<UserAuth> | null;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
|
-
* @type {Array<
|
|
96
|
+
* @type {Array<UserGroup>}
|
|
97
97
|
* @memberof Profile
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
groups?: Array<UserGroup> | null;
|
|
100
100
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Gopad OpenAPI
|
|
5
|
+
* API definition for Gopad, Etherpad for markdown with go
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0-alpha1
|
|
8
|
+
* Contact: gopad@webhippie.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model to represent auth provider
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Provider
|
|
19
|
+
*/
|
|
20
|
+
export interface Provider {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Provider
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Provider
|
|
31
|
+
*/
|
|
32
|
+
driver?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof Provider
|
|
37
|
+
*/
|
|
38
|
+
display?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof Provider
|
|
43
|
+
*/
|
|
44
|
+
icon?: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Gopad OpenAPI
|
|
5
|
+
* API definition for Gopad, Etherpad for markdown with go
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0-alpha1
|
|
8
|
+
* Contact: gopad@webhippie.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UpdateProfileRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface UpdateProfileRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof UpdateProfileRequest
|
|
25
|
+
*/
|
|
26
|
+
username?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof UpdateProfileRequest
|
|
31
|
+
*/
|
|
32
|
+
password?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof UpdateProfileRequest
|
|
37
|
+
*/
|
|
38
|
+
email?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof UpdateProfileRequest
|
|
43
|
+
*/
|
|
44
|
+
fullname?: string | null;
|
|
45
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Gopad OpenAPI
|
|
5
|
+
* API definition for Gopad, Etherpad for markdown with go
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0-alpha1
|
|
8
|
+
* Contact: gopad@webhippie.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UpdateUserRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface UpdateUserRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof UpdateUserRequest
|
|
25
|
+
*/
|
|
26
|
+
username?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof UpdateUserRequest
|
|
31
|
+
*/
|
|
32
|
+
password?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof UpdateUserRequest
|
|
37
|
+
*/
|
|
38
|
+
email?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof UpdateUserRequest
|
|
43
|
+
*/
|
|
44
|
+
fullname?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof UpdateUserRequest
|
|
49
|
+
*/
|
|
50
|
+
admin?: boolean | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof UpdateUserRequest
|
|
55
|
+
*/
|
|
56
|
+
active?: boolean | null;
|
|
57
|
+
}
|
|
@@ -14,66 +14,66 @@
|
|
|
14
14
|
|
|
15
15
|
// May contain unused imports in some cases
|
|
16
16
|
// @ts-ignore
|
|
17
|
-
import type {
|
|
17
|
+
import type { Group } from "./group";
|
|
18
18
|
// May contain unused imports in some cases
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
import type { User } from "./user";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Model to represent user
|
|
23
|
+
* Model to represent user group
|
|
24
24
|
* @export
|
|
25
|
-
* @interface
|
|
25
|
+
* @interface UserGroup
|
|
26
26
|
*/
|
|
27
|
-
export interface
|
|
27
|
+
export interface UserGroup {
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof UserGroup
|
|
32
32
|
*/
|
|
33
33
|
user_id: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {User}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof UserGroup
|
|
38
38
|
*/
|
|
39
39
|
user?: User;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof UserGroup
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
group_id: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
|
-
* @type {
|
|
49
|
-
* @memberof
|
|
48
|
+
* @type {Group}
|
|
49
|
+
* @memberof UserGroup
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
group?: Group;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof UserGroup
|
|
56
56
|
*/
|
|
57
|
-
perm?:
|
|
57
|
+
perm?: UserGroupPermEnum;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof UserGroup
|
|
62
62
|
*/
|
|
63
63
|
created_at?: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof UserGroup
|
|
68
68
|
*/
|
|
69
69
|
updated_at?: string;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export const
|
|
72
|
+
export const UserGroupPermEnum = {
|
|
73
|
+
Owner: "owner",
|
|
73
74
|
User: "user",
|
|
74
75
|
Admin: "admin",
|
|
75
|
-
Owner: "owner",
|
|
76
76
|
} as const;
|
|
77
77
|
|
|
78
|
-
export type
|
|
79
|
-
(typeof
|
|
78
|
+
export type UserGroupPermEnum =
|
|
79
|
+
(typeof UserGroupPermEnum)[keyof typeof UserGroupPermEnum];
|
package/model/user.ts
CHANGED
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
// May contain unused imports in some cases
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import type { UserAuth } from "./user-auth";
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import type { UserTeam } from "./user-team";
|
|
21
18
|
|
|
22
19
|
/**
|
|
23
20
|
* Model to represent user
|
|
@@ -91,10 +88,4 @@ export interface User {
|
|
|
91
88
|
* @memberof User
|
|
92
89
|
*/
|
|
93
90
|
auths?: Array<UserAuth> | null;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {Array<UserTeam>}
|
|
97
|
-
* @memberof User
|
|
98
|
-
*/
|
|
99
|
-
teams?: Array<UserTeam> | null;
|
|
100
91
|
}
|
package/openapi.yml
CHANGED