@knowledge-stack/ksapi 1.61.10 → 1.62.1
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/.openapi-generator/FILES +24 -0
- package/README.md +26 -2
- package/dist/apis/FoldersApi.d.ts +4 -4
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/apis/TenantGroupsApi.d.ts +667 -0
- package/dist/apis/TenantGroupsApi.js +717 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/FoldersApi.d.ts +4 -4
- package/dist/esm/apis/FoldersApi.js +2 -2
- package/dist/esm/apis/TenantGroupsApi.d.ts +667 -0
- package/dist/esm/apis/TenantGroupsApi.js +713 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AddMemberRequest.d.ts +47 -0
- package/dist/esm/models/AddMemberRequest.js +44 -0
- package/dist/esm/models/CreateGroupPermissionRequest.d.ts +54 -0
- package/dist/esm/models/CreateGroupPermissionRequest.js +49 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +53 -0
- package/dist/esm/models/CreateGroupRequest.js +54 -0
- package/dist/esm/models/GroupPermissionResponse.d.ts +90 -0
- package/dist/esm/models/GroupPermissionResponse.js +73 -0
- package/dist/esm/models/GroupResponse.d.ts +83 -0
- package/dist/esm/models/GroupResponse.js +66 -0
- package/dist/esm/models/MembershipResponse.d.ts +77 -0
- package/dist/esm/models/MembershipResponse.js +64 -0
- package/dist/esm/models/PaginatedResponseGroupPermissionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseGroupPermissionResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseGroupResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseGroupResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseMembershipResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseMembershipResponse.js +70 -0
- package/dist/esm/models/UpdateGroupPermissionRequest.d.ts +54 -0
- package/dist/esm/models/UpdateGroupPermissionRequest.js +45 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +53 -0
- package/dist/esm/models/UpdateGroupRequest.js +49 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AddMemberRequest.d.ts +47 -0
- package/dist/models/AddMemberRequest.js +52 -0
- package/dist/models/CreateGroupPermissionRequest.d.ts +54 -0
- package/dist/models/CreateGroupPermissionRequest.js +57 -0
- package/dist/models/CreateGroupRequest.d.ts +53 -0
- package/dist/models/CreateGroupRequest.js +62 -0
- package/dist/models/GroupPermissionResponse.d.ts +90 -0
- package/dist/models/GroupPermissionResponse.js +81 -0
- package/dist/models/GroupResponse.d.ts +83 -0
- package/dist/models/GroupResponse.js +74 -0
- package/dist/models/MembershipResponse.d.ts +77 -0
- package/dist/models/MembershipResponse.js +72 -0
- package/dist/models/PaginatedResponseGroupPermissionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseGroupPermissionResponse.js +78 -0
- package/dist/models/PaginatedResponseGroupResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseGroupResponse.js +78 -0
- package/dist/models/PaginatedResponseMembershipResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseMembershipResponse.js +78 -0
- package/dist/models/UpdateGroupPermissionRequest.d.ts +54 -0
- package/dist/models/UpdateGroupPermissionRequest.js +53 -0
- package/dist/models/UpdateGroupRequest.d.ts +53 -0
- package/dist/models/UpdateGroupRequest.js +57 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AddMemberRequest.md +34 -0
- package/docs/CreateGroupPermissionRequest.md +36 -0
- package/docs/CreateGroupRequest.md +36 -0
- package/docs/FoldersApi.md +1 -1
- package/docs/GroupPermissionResponse.md +48 -0
- package/docs/GroupResponse.md +46 -0
- package/docs/MembershipResponse.md +44 -0
- package/docs/PaginatedResponseGroupPermissionResponse.md +40 -0
- package/docs/PaginatedResponseGroupResponse.md +40 -0
- package/docs/PaginatedResponseMembershipResponse.md +40 -0
- package/docs/TenantGroupsApi.md +1052 -0
- package/docs/UpdateGroupPermissionRequest.md +36 -0
- package/docs/UpdateGroupRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +4 -4
- package/src/apis/TenantGroupsApi.ts +1449 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddMemberRequest.ts +83 -0
- package/src/models/CreateGroupPermissionRequest.ts +102 -0
- package/src/models/CreateGroupRequest.ts +98 -0
- package/src/models/GroupPermissionResponse.ts +156 -0
- package/src/models/GroupResponse.ts +136 -0
- package/src/models/MembershipResponse.ts +128 -0
- package/src/models/PaginatedResponseGroupPermissionResponse.ts +130 -0
- package/src/models/PaginatedResponseGroupResponse.ts +130 -0
- package/src/models/PaginatedResponseMembershipResponse.ts +130 -0
- package/src/models/UpdateGroupPermissionRequest.ts +100 -0
- package/src/models/UpdateGroupRequest.ts +94 -0
- package/src/models/index.ts +11 -0
package/src/apis/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './InvitesApi';
|
|
|
13
13
|
export * from './PathPartsApi';
|
|
14
14
|
export * from './SectionsApi';
|
|
15
15
|
export * from './TagsApi';
|
|
16
|
+
export * from './TenantGroupsApi';
|
|
16
17
|
export * from './TenantsApi';
|
|
17
18
|
export * from './ThreadMessagesApi';
|
|
18
19
|
export * from './ThreadsApi';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AddMemberRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AddMemberRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AddMemberRequest
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AddMemberRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAddMemberRequest(value: object): value is AddMemberRequest {
|
|
34
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AddMemberRequestFromJSON(json: any): AddMemberRequest {
|
|
39
|
+
return AddMemberRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AddMemberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddMemberRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'userId': json['user_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AddMemberRequestToJSON(json: any): AddMemberRequest {
|
|
53
|
+
return AddMemberRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AddMemberRequestToJSONTyped(value?: AddMemberRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'user_id': value['userId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const AddMemberRequestPropertyValidationAttributesMap: {
|
|
68
|
+
[property: string]: {
|
|
69
|
+
maxLength?: number,
|
|
70
|
+
minLength?: number,
|
|
71
|
+
pattern?: string,
|
|
72
|
+
maximum?: number,
|
|
73
|
+
exclusiveMaximum?: boolean,
|
|
74
|
+
minimum?: number,
|
|
75
|
+
exclusiveMinimum?: boolean,
|
|
76
|
+
multipleOf?: number,
|
|
77
|
+
maxItems?: number,
|
|
78
|
+
minItems?: number,
|
|
79
|
+
uniqueItems?: boolean
|
|
80
|
+
}
|
|
81
|
+
} = {
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PermissionCapability } from './PermissionCapability';
|
|
17
|
+
import {
|
|
18
|
+
PermissionCapabilityFromJSON,
|
|
19
|
+
PermissionCapabilityFromJSONTyped,
|
|
20
|
+
PermissionCapabilityToJSON,
|
|
21
|
+
PermissionCapabilityToJSONTyped,
|
|
22
|
+
} from './PermissionCapability';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateGroupPermissionRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateGroupPermissionRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateGroupPermissionRequest
|
|
34
|
+
*/
|
|
35
|
+
pathPartId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {PermissionCapability}
|
|
39
|
+
* @memberof CreateGroupPermissionRequest
|
|
40
|
+
*/
|
|
41
|
+
capability: PermissionCapability;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the CreateGroupPermissionRequest interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfCreateGroupPermissionRequest(value: object): value is CreateGroupPermissionRequest {
|
|
50
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
51
|
+
if (!('capability' in value) || value['capability'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CreateGroupPermissionRequestFromJSON(json: any): CreateGroupPermissionRequest {
|
|
56
|
+
return CreateGroupPermissionRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CreateGroupPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGroupPermissionRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'pathPartId': json['path_part_id'],
|
|
66
|
+
'capability': PermissionCapabilityFromJSON(json['capability']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CreateGroupPermissionRequestToJSON(json: any): CreateGroupPermissionRequest {
|
|
71
|
+
return CreateGroupPermissionRequestToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CreateGroupPermissionRequestToJSONTyped(value?: CreateGroupPermissionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'path_part_id': value['pathPartId'],
|
|
82
|
+
'capability': PermissionCapabilityToJSON(value['capability']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export const CreateGroupPermissionRequestPropertyValidationAttributesMap: {
|
|
87
|
+
[property: string]: {
|
|
88
|
+
maxLength?: number,
|
|
89
|
+
minLength?: number,
|
|
90
|
+
pattern?: string,
|
|
91
|
+
maximum?: number,
|
|
92
|
+
exclusiveMaximum?: boolean,
|
|
93
|
+
minimum?: number,
|
|
94
|
+
exclusiveMinimum?: boolean,
|
|
95
|
+
multipleOf?: number,
|
|
96
|
+
maxItems?: number,
|
|
97
|
+
minItems?: number,
|
|
98
|
+
uniqueItems?: boolean
|
|
99
|
+
}
|
|
100
|
+
} = {
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateGroupRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateGroupRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateGroupRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateGroupRequest
|
|
32
|
+
*/
|
|
33
|
+
description?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateGroupRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateGroupRequest(value: object): value is CreateGroupRequest {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CreateGroupRequestFromJSON(json: any): CreateGroupRequest {
|
|
45
|
+
return CreateGroupRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function CreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGroupRequest {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CreateGroupRequestToJSON(json: any): CreateGroupRequest {
|
|
60
|
+
return CreateGroupRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CreateGroupRequestToJSONTyped(value?: CreateGroupRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'description': value['description'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const CreateGroupRequestPropertyValidationAttributesMap: {
|
|
76
|
+
[property: string]: {
|
|
77
|
+
maxLength?: number,
|
|
78
|
+
minLength?: number,
|
|
79
|
+
pattern?: string,
|
|
80
|
+
maximum?: number,
|
|
81
|
+
exclusiveMaximum?: boolean,
|
|
82
|
+
minimum?: number,
|
|
83
|
+
exclusiveMinimum?: boolean,
|
|
84
|
+
multipleOf?: number,
|
|
85
|
+
maxItems?: number,
|
|
86
|
+
minItems?: number,
|
|
87
|
+
uniqueItems?: boolean
|
|
88
|
+
}
|
|
89
|
+
} = {
|
|
90
|
+
name: {
|
|
91
|
+
maxLength: 255,
|
|
92
|
+
minLength: 1,
|
|
93
|
+
},
|
|
94
|
+
description: {
|
|
95
|
+
maxLength: 1024,
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PermissionCapability } from './PermissionCapability';
|
|
17
|
+
import {
|
|
18
|
+
PermissionCapabilityFromJSON,
|
|
19
|
+
PermissionCapabilityFromJSONTyped,
|
|
20
|
+
PermissionCapabilityToJSON,
|
|
21
|
+
PermissionCapabilityToJSONTyped,
|
|
22
|
+
} from './PermissionCapability';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GroupPermissionResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface GroupPermissionResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GroupPermissionResponse
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GroupPermissionResponse
|
|
40
|
+
*/
|
|
41
|
+
tenantId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GroupPermissionResponse
|
|
46
|
+
*/
|
|
47
|
+
groupId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GroupPermissionResponse
|
|
52
|
+
*/
|
|
53
|
+
pathPartId: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GroupPermissionResponse
|
|
58
|
+
*/
|
|
59
|
+
materializedPath: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {PermissionCapability}
|
|
63
|
+
* @memberof GroupPermissionResponse
|
|
64
|
+
*/
|
|
65
|
+
capability: PermissionCapability;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof GroupPermissionResponse
|
|
70
|
+
*/
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof GroupPermissionResponse
|
|
76
|
+
*/
|
|
77
|
+
updatedAt: Date;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the GroupPermissionResponse interface.
|
|
84
|
+
*/
|
|
85
|
+
export function instanceOfGroupPermissionResponse(value: object): value is GroupPermissionResponse {
|
|
86
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
87
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
88
|
+
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
89
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
90
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
91
|
+
if (!('capability' in value) || value['capability'] === undefined) return false;
|
|
92
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
93
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function GroupPermissionResponseFromJSON(json: any): GroupPermissionResponse {
|
|
98
|
+
return GroupPermissionResponseFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function GroupPermissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupPermissionResponse {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'id': json['id'],
|
|
108
|
+
'tenantId': json['tenant_id'],
|
|
109
|
+
'groupId': json['group_id'],
|
|
110
|
+
'pathPartId': json['path_part_id'],
|
|
111
|
+
'materializedPath': json['materialized_path'],
|
|
112
|
+
'capability': PermissionCapabilityFromJSON(json['capability']),
|
|
113
|
+
'createdAt': (new Date(json['created_at'])),
|
|
114
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function GroupPermissionResponseToJSON(json: any): GroupPermissionResponse {
|
|
119
|
+
return GroupPermissionResponseToJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function GroupPermissionResponseToJSONTyped(value?: GroupPermissionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': value['id'],
|
|
130
|
+
'tenant_id': value['tenantId'],
|
|
131
|
+
'group_id': value['groupId'],
|
|
132
|
+
'path_part_id': value['pathPartId'],
|
|
133
|
+
'materialized_path': value['materializedPath'],
|
|
134
|
+
'capability': PermissionCapabilityToJSON(value['capability']),
|
|
135
|
+
'created_at': value['createdAt'].toISOString(),
|
|
136
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export const GroupPermissionResponsePropertyValidationAttributesMap: {
|
|
141
|
+
[property: string]: {
|
|
142
|
+
maxLength?: number,
|
|
143
|
+
minLength?: number,
|
|
144
|
+
pattern?: string,
|
|
145
|
+
maximum?: number,
|
|
146
|
+
exclusiveMaximum?: boolean,
|
|
147
|
+
minimum?: number,
|
|
148
|
+
exclusiveMinimum?: boolean,
|
|
149
|
+
multipleOf?: number,
|
|
150
|
+
maxItems?: number,
|
|
151
|
+
minItems?: number,
|
|
152
|
+
uniqueItems?: boolean
|
|
153
|
+
}
|
|
154
|
+
} = {
|
|
155
|
+
}
|
|
156
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupResponse
|
|
32
|
+
*/
|
|
33
|
+
tenantId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupResponse
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GroupResponse
|
|
44
|
+
*/
|
|
45
|
+
description: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GroupResponse
|
|
50
|
+
*/
|
|
51
|
+
memberCount?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof GroupResponse
|
|
56
|
+
*/
|
|
57
|
+
createdAt: Date;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof GroupResponse
|
|
62
|
+
*/
|
|
63
|
+
updatedAt: Date;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the GroupResponse interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfGroupResponse(value: object): value is GroupResponse {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
72
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
73
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
74
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
75
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function GroupResponseFromJSON(json: any): GroupResponse {
|
|
80
|
+
return GroupResponseFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupResponse {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': json['id'],
|
|
90
|
+
'tenantId': json['tenant_id'],
|
|
91
|
+
'name': json['name'],
|
|
92
|
+
'description': json['description'],
|
|
93
|
+
'memberCount': json['member_count'] == null ? undefined : json['member_count'],
|
|
94
|
+
'createdAt': (new Date(json['created_at'])),
|
|
95
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function GroupResponseToJSON(json: any): GroupResponse {
|
|
100
|
+
return GroupResponseToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': value['id'],
|
|
111
|
+
'tenant_id': value['tenantId'],
|
|
112
|
+
'name': value['name'],
|
|
113
|
+
'description': value['description'],
|
|
114
|
+
'member_count': value['memberCount'],
|
|
115
|
+
'created_at': value['createdAt'].toISOString(),
|
|
116
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export const GroupResponsePropertyValidationAttributesMap: {
|
|
121
|
+
[property: string]: {
|
|
122
|
+
maxLength?: number,
|
|
123
|
+
minLength?: number,
|
|
124
|
+
pattern?: string,
|
|
125
|
+
maximum?: number,
|
|
126
|
+
exclusiveMaximum?: boolean,
|
|
127
|
+
minimum?: number,
|
|
128
|
+
exclusiveMinimum?: boolean,
|
|
129
|
+
multipleOf?: number,
|
|
130
|
+
maxItems?: number,
|
|
131
|
+
minItems?: number,
|
|
132
|
+
uniqueItems?: boolean
|
|
133
|
+
}
|
|
134
|
+
} = {
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MembershipResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface MembershipResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MembershipResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MembershipResponse
|
|
32
|
+
*/
|
|
33
|
+
tenantId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MembershipResponse
|
|
38
|
+
*/
|
|
39
|
+
groupId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MembershipResponse
|
|
44
|
+
*/
|
|
45
|
+
userId: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof MembershipResponse
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof MembershipResponse
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the MembershipResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfMembershipResponse(value: object): value is MembershipResponse {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
66
|
+
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
67
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
68
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
69
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MembershipResponseFromJSON(json: any): MembershipResponse {
|
|
74
|
+
return MembershipResponseFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function MembershipResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MembershipResponse {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'tenantId': json['tenant_id'],
|
|
85
|
+
'groupId': json['group_id'],
|
|
86
|
+
'userId': json['user_id'],
|
|
87
|
+
'createdAt': (new Date(json['created_at'])),
|
|
88
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function MembershipResponseToJSON(json: any): MembershipResponse {
|
|
93
|
+
return MembershipResponseToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function MembershipResponseToJSONTyped(value?: MembershipResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'tenant_id': value['tenantId'],
|
|
105
|
+
'group_id': value['groupId'],
|
|
106
|
+
'user_id': value['userId'],
|
|
107
|
+
'created_at': value['createdAt'].toISOString(),
|
|
108
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export const MembershipResponsePropertyValidationAttributesMap: {
|
|
113
|
+
[property: string]: {
|
|
114
|
+
maxLength?: number,
|
|
115
|
+
minLength?: number,
|
|
116
|
+
pattern?: string,
|
|
117
|
+
maximum?: number,
|
|
118
|
+
exclusiveMaximum?: boolean,
|
|
119
|
+
minimum?: number,
|
|
120
|
+
exclusiveMinimum?: boolean,
|
|
121
|
+
multipleOf?: number,
|
|
122
|
+
maxItems?: number,
|
|
123
|
+
minItems?: number,
|
|
124
|
+
uniqueItems?: boolean
|
|
125
|
+
}
|
|
126
|
+
} = {
|
|
127
|
+
}
|
|
128
|
+
|