@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/dist/esm/apis/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './InvitesApi';
|
|
|
11
11
|
export * from './PathPartsApi';
|
|
12
12
|
export * from './SectionsApi';
|
|
13
13
|
export * from './TagsApi';
|
|
14
|
+
export * from './TenantGroupsApi';
|
|
14
15
|
export * from './TenantsApi';
|
|
15
16
|
export * from './ThreadMessagesApi';
|
|
16
17
|
export * from './ThreadsApi';
|
package/dist/esm/apis/index.js
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,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AddMemberRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AddMemberRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddMemberRequest
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AddMemberRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAddMemberRequest(value: object): value is AddMemberRequest;
|
|
29
|
+
export declare function AddMemberRequestFromJSON(json: any): AddMemberRequest;
|
|
30
|
+
export declare function AddMemberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddMemberRequest;
|
|
31
|
+
export declare function AddMemberRequestToJSON(json: any): AddMemberRequest;
|
|
32
|
+
export declare function AddMemberRequestToJSONTyped(value?: AddMemberRequest | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const AddMemberRequestPropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Check if a given object implements the AddMemberRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAddMemberRequest(value) {
|
|
18
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AddMemberRequestFromJSON(json) {
|
|
23
|
+
return AddMemberRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AddMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'userId': json['user_id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function AddMemberRequestToJSON(json) {
|
|
34
|
+
return AddMemberRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AddMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'user_id': value['userId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export const AddMemberRequestPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PermissionCapability } from './PermissionCapability';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateGroupPermissionRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateGroupPermissionRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateGroupPermissionRequest
|
|
23
|
+
*/
|
|
24
|
+
pathPartId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {PermissionCapability}
|
|
28
|
+
* @memberof CreateGroupPermissionRequest
|
|
29
|
+
*/
|
|
30
|
+
capability: PermissionCapability;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CreateGroupPermissionRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCreateGroupPermissionRequest(value: object): value is CreateGroupPermissionRequest;
|
|
36
|
+
export declare function CreateGroupPermissionRequestFromJSON(json: any): CreateGroupPermissionRequest;
|
|
37
|
+
export declare function CreateGroupPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGroupPermissionRequest;
|
|
38
|
+
export declare function CreateGroupPermissionRequestToJSON(json: any): CreateGroupPermissionRequest;
|
|
39
|
+
export declare function CreateGroupPermissionRequestToJSONTyped(value?: CreateGroupPermissionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const CreateGroupPermissionRequestPropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { PermissionCapabilityFromJSON, PermissionCapabilityToJSON, } from './PermissionCapability';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CreateGroupPermissionRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCreateGroupPermissionRequest(value) {
|
|
19
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('capability' in value) || value['capability'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function CreateGroupPermissionRequestFromJSON(json) {
|
|
26
|
+
return CreateGroupPermissionRequestFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function CreateGroupPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'pathPartId': json['path_part_id'],
|
|
34
|
+
'capability': PermissionCapabilityFromJSON(json['capability']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function CreateGroupPermissionRequestToJSON(json) {
|
|
38
|
+
return CreateGroupPermissionRequestToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function CreateGroupPermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'path_part_id': value['pathPartId'],
|
|
46
|
+
'capability': PermissionCapabilityToJSON(value['capability']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export const CreateGroupPermissionRequestPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateGroupRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateGroupRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateGroupRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateGroupRequest
|
|
28
|
+
*/
|
|
29
|
+
description?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateGroupRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateGroupRequest(value: object): value is CreateGroupRequest;
|
|
35
|
+
export declare function CreateGroupRequestFromJSON(json: any): CreateGroupRequest;
|
|
36
|
+
export declare function CreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGroupRequest;
|
|
37
|
+
export declare function CreateGroupRequestToJSON(json: any): CreateGroupRequest;
|
|
38
|
+
export declare function CreateGroupRequestToJSONTyped(value?: CreateGroupRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const CreateGroupRequestPropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* Check if a given object implements the CreateGroupRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateGroupRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CreateGroupRequestFromJSON(json) {
|
|
23
|
+
return CreateGroupRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function CreateGroupRequestToJSON(json) {
|
|
35
|
+
return CreateGroupRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CreateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': value['name'],
|
|
43
|
+
'description': value['description'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export const CreateGroupRequestPropertyValidationAttributesMap = {
|
|
47
|
+
name: {
|
|
48
|
+
maxLength: 255,
|
|
49
|
+
minLength: 1,
|
|
50
|
+
},
|
|
51
|
+
description: {
|
|
52
|
+
maxLength: 1024,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PermissionCapability } from './PermissionCapability';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GroupPermissionResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GroupPermissionResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GroupPermissionResponse
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GroupPermissionResponse
|
|
29
|
+
*/
|
|
30
|
+
tenantId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GroupPermissionResponse
|
|
35
|
+
*/
|
|
36
|
+
groupId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GroupPermissionResponse
|
|
41
|
+
*/
|
|
42
|
+
pathPartId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GroupPermissionResponse
|
|
47
|
+
*/
|
|
48
|
+
materializedPath: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {PermissionCapability}
|
|
52
|
+
* @memberof GroupPermissionResponse
|
|
53
|
+
*/
|
|
54
|
+
capability: PermissionCapability;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof GroupPermissionResponse
|
|
59
|
+
*/
|
|
60
|
+
createdAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GroupPermissionResponse
|
|
65
|
+
*/
|
|
66
|
+
updatedAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the GroupPermissionResponse interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfGroupPermissionResponse(value: object): value is GroupPermissionResponse;
|
|
72
|
+
export declare function GroupPermissionResponseFromJSON(json: any): GroupPermissionResponse;
|
|
73
|
+
export declare function GroupPermissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupPermissionResponse;
|
|
74
|
+
export declare function GroupPermissionResponseToJSON(json: any): GroupPermissionResponse;
|
|
75
|
+
export declare function GroupPermissionResponseToJSONTyped(value?: GroupPermissionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
76
|
+
export declare const GroupPermissionResponsePropertyValidationAttributesMap: {
|
|
77
|
+
[property: string]: {
|
|
78
|
+
maxLength?: number;
|
|
79
|
+
minLength?: number;
|
|
80
|
+
pattern?: string;
|
|
81
|
+
maximum?: number;
|
|
82
|
+
exclusiveMaximum?: boolean;
|
|
83
|
+
minimum?: number;
|
|
84
|
+
exclusiveMinimum?: boolean;
|
|
85
|
+
multipleOf?: number;
|
|
86
|
+
maxItems?: number;
|
|
87
|
+
minItems?: number;
|
|
88
|
+
uniqueItems?: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import { PermissionCapabilityFromJSON, PermissionCapabilityToJSON, } from './PermissionCapability';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GroupPermissionResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGroupPermissionResponse(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('capability' in value) || value['capability'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function GroupPermissionResponseFromJSON(json) {
|
|
38
|
+
return GroupPermissionResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function GroupPermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'tenantId': json['tenant_id'],
|
|
47
|
+
'groupId': json['group_id'],
|
|
48
|
+
'pathPartId': json['path_part_id'],
|
|
49
|
+
'materializedPath': json['materialized_path'],
|
|
50
|
+
'capability': PermissionCapabilityFromJSON(json['capability']),
|
|
51
|
+
'createdAt': (new Date(json['created_at'])),
|
|
52
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function GroupPermissionResponseToJSON(json) {
|
|
56
|
+
return GroupPermissionResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function GroupPermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'tenant_id': value['tenantId'],
|
|
65
|
+
'group_id': value['groupId'],
|
|
66
|
+
'path_part_id': value['pathPartId'],
|
|
67
|
+
'materialized_path': value['materializedPath'],
|
|
68
|
+
'capability': PermissionCapabilityToJSON(value['capability']),
|
|
69
|
+
'created_at': value['createdAt'].toISOString(),
|
|
70
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export const GroupPermissionResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GroupResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface GroupResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GroupResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GroupResponse
|
|
28
|
+
*/
|
|
29
|
+
tenantId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GroupResponse
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GroupResponse
|
|
40
|
+
*/
|
|
41
|
+
description: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GroupResponse
|
|
46
|
+
*/
|
|
47
|
+
memberCount?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof GroupResponse
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof GroupResponse
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the GroupResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfGroupResponse(value: object): value is GroupResponse;
|
|
65
|
+
export declare function GroupResponseFromJSON(json: any): GroupResponse;
|
|
66
|
+
export declare function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupResponse;
|
|
67
|
+
export declare function GroupResponseToJSON(json: any): GroupResponse;
|
|
68
|
+
export declare function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDiscriminator?: boolean): any;
|
|
69
|
+
export declare const GroupResponsePropertyValidationAttributesMap: {
|
|
70
|
+
[property: string]: {
|
|
71
|
+
maxLength?: number;
|
|
72
|
+
minLength?: number;
|
|
73
|
+
pattern?: string;
|
|
74
|
+
maximum?: number;
|
|
75
|
+
exclusiveMaximum?: boolean;
|
|
76
|
+
minimum?: number;
|
|
77
|
+
exclusiveMinimum?: boolean;
|
|
78
|
+
multipleOf?: number;
|
|
79
|
+
maxItems?: number;
|
|
80
|
+
minItems?: number;
|
|
81
|
+
uniqueItems?: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* Check if a given object implements the GroupResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGroupResponse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function GroupResponseFromJSON(json) {
|
|
33
|
+
return GroupResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'tenantId': json['tenant_id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'description': json['description'],
|
|
44
|
+
'memberCount': json['member_count'] == null ? undefined : json['member_count'],
|
|
45
|
+
'createdAt': (new Date(json['created_at'])),
|
|
46
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function GroupResponseToJSON(json) {
|
|
50
|
+
return GroupResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'tenant_id': value['tenantId'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'member_count': value['memberCount'],
|
|
62
|
+
'created_at': value['createdAt'].toISOString(),
|
|
63
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export const GroupResponsePropertyValidationAttributesMap = {};
|