@knowledge-stack/ksapi 1.12.0 → 1.13.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.
Files changed (106) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ChunksApi.js +1 -1
  4. package/dist/apis/TagsApi.d.ts +20 -20
  5. package/dist/apis/TagsApi.js +10 -10
  6. package/dist/apis/ThreadsApi.d.ts +4 -4
  7. package/dist/apis/ThreadsApi.js +2 -2
  8. package/dist/apis/UserPermissionsApi.d.ts +154 -0
  9. package/dist/apis/UserPermissionsApi.js +192 -0
  10. package/dist/apis/index.d.ts +1 -0
  11. package/dist/apis/index.js +1 -0
  12. package/dist/esm/apis/ChunksApi.js +1 -1
  13. package/dist/esm/apis/TagsApi.d.ts +20 -20
  14. package/dist/esm/apis/TagsApi.js +10 -10
  15. package/dist/esm/apis/ThreadsApi.d.ts +4 -4
  16. package/dist/esm/apis/ThreadsApi.js +2 -2
  17. package/dist/esm/apis/UserPermissionsApi.d.ts +154 -0
  18. package/dist/esm/apis/UserPermissionsApi.js +188 -0
  19. package/dist/esm/apis/index.d.ts +1 -0
  20. package/dist/esm/apis/index.js +1 -0
  21. package/dist/esm/models/ChunkResponse.d.ts +6 -0
  22. package/dist/esm/models/ChunkResponse.js +4 -0
  23. package/dist/esm/models/CreatePermissionRequest.d.ts +66 -0
  24. package/dist/esm/models/CreatePermissionRequest.js +57 -0
  25. package/dist/esm/models/DocumentContentPathPart.d.ts +6 -0
  26. package/dist/esm/models/DocumentContentPathPart.js +4 -0
  27. package/dist/esm/models/DocumentResponse.d.ts +6 -0
  28. package/dist/esm/models/DocumentResponse.js +4 -0
  29. package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
  30. package/dist/esm/models/DocumentVersionResponse.js +4 -0
  31. package/dist/esm/models/FolderDocumentResponse.d.ts +6 -0
  32. package/dist/esm/models/FolderDocumentResponse.js +4 -0
  33. package/dist/esm/models/FolderResponse.d.ts +6 -0
  34. package/dist/esm/models/FolderResponse.js +4 -0
  35. package/dist/esm/models/PaginatedResponsePermissionResponse.d.ts +66 -0
  36. package/dist/esm/models/PaginatedResponsePermissionResponse.js +70 -0
  37. package/dist/esm/models/PathPartResponse.d.ts +6 -0
  38. package/dist/esm/models/PathPartResponse.js +4 -0
  39. package/dist/esm/models/PermissionCapability.d.ts +25 -0
  40. package/dist/esm/models/PermissionCapability.js +43 -0
  41. package/dist/esm/models/PermissionResponse.d.ts +84 -0
  42. package/dist/esm/models/PermissionResponse.js +69 -0
  43. package/dist/esm/models/SectionResponse.d.ts +6 -0
  44. package/dist/esm/models/SectionResponse.js +4 -0
  45. package/dist/esm/models/ThreadMessageResponse.d.ts +6 -0
  46. package/dist/esm/models/ThreadMessageResponse.js +4 -0
  47. package/dist/esm/models/ThreadResponse.d.ts +6 -0
  48. package/dist/esm/models/ThreadResponse.js +4 -0
  49. package/dist/esm/models/UpdatePermissionRequest.d.ts +54 -0
  50. package/dist/esm/models/UpdatePermissionRequest.js +45 -0
  51. package/dist/esm/models/index.d.ts +5 -0
  52. package/dist/esm/models/index.js +5 -0
  53. package/dist/models/ChunkResponse.d.ts +6 -0
  54. package/dist/models/ChunkResponse.js +4 -0
  55. package/dist/models/CreatePermissionRequest.d.ts +66 -0
  56. package/dist/models/CreatePermissionRequest.js +65 -0
  57. package/dist/models/DocumentContentPathPart.d.ts +6 -0
  58. package/dist/models/DocumentContentPathPart.js +4 -0
  59. package/dist/models/DocumentResponse.d.ts +6 -0
  60. package/dist/models/DocumentResponse.js +4 -0
  61. package/dist/models/DocumentVersionResponse.d.ts +6 -0
  62. package/dist/models/DocumentVersionResponse.js +4 -0
  63. package/dist/models/FolderDocumentResponse.d.ts +6 -0
  64. package/dist/models/FolderDocumentResponse.js +4 -0
  65. package/dist/models/FolderResponse.d.ts +6 -0
  66. package/dist/models/FolderResponse.js +4 -0
  67. package/dist/models/PaginatedResponsePermissionResponse.d.ts +66 -0
  68. package/dist/models/PaginatedResponsePermissionResponse.js +78 -0
  69. package/dist/models/PathPartResponse.d.ts +6 -0
  70. package/dist/models/PathPartResponse.js +4 -0
  71. package/dist/models/PermissionCapability.d.ts +25 -0
  72. package/dist/models/PermissionCapability.js +51 -0
  73. package/dist/models/PermissionResponse.d.ts +84 -0
  74. package/dist/models/PermissionResponse.js +77 -0
  75. package/dist/models/SectionResponse.d.ts +6 -0
  76. package/dist/models/SectionResponse.js +4 -0
  77. package/dist/models/ThreadMessageResponse.d.ts +6 -0
  78. package/dist/models/ThreadMessageResponse.js +4 -0
  79. package/dist/models/ThreadResponse.d.ts +6 -0
  80. package/dist/models/ThreadResponse.js +4 -0
  81. package/dist/models/UpdatePermissionRequest.d.ts +54 -0
  82. package/dist/models/UpdatePermissionRequest.js +53 -0
  83. package/dist/models/index.d.ts +5 -0
  84. package/dist/models/index.js +5 -0
  85. package/package.json +1 -1
  86. package/src/apis/ChunksApi.ts +1 -1
  87. package/src/apis/TagsApi.ts +20 -20
  88. package/src/apis/ThreadsApi.ts +4 -4
  89. package/src/apis/UserPermissionsApi.ts +362 -0
  90. package/src/apis/index.ts +1 -0
  91. package/src/models/ChunkResponse.ts +9 -0
  92. package/src/models/CreatePermissionRequest.ts +120 -0
  93. package/src/models/DocumentContentPathPart.ts +9 -0
  94. package/src/models/DocumentResponse.ts +9 -0
  95. package/src/models/DocumentVersionResponse.ts +9 -0
  96. package/src/models/FolderDocumentResponse.ts +9 -0
  97. package/src/models/FolderResponse.ts +9 -0
  98. package/src/models/PaginatedResponsePermissionResponse.ts +130 -0
  99. package/src/models/PathPartResponse.ts +9 -0
  100. package/src/models/PermissionCapability.ts +53 -0
  101. package/src/models/PermissionResponse.ts +147 -0
  102. package/src/models/SectionResponse.ts +9 -0
  103. package/src/models/ThreadMessageResponse.ts +9 -0
  104. package/src/models/ThreadResponse.ts +9 -0
  105. package/src/models/UpdatePermissionRequest.ts +100 -0
  106. package/src/models/index.ts +5 -0
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PermissionResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPermissionResponse = instanceOfPermissionResponse;
18
+ exports.PermissionResponseFromJSON = PermissionResponseFromJSON;
19
+ exports.PermissionResponseFromJSONTyped = PermissionResponseFromJSONTyped;
20
+ exports.PermissionResponseToJSON = PermissionResponseToJSON;
21
+ exports.PermissionResponseToJSONTyped = PermissionResponseToJSONTyped;
22
+ const PermissionCapability_1 = require("./PermissionCapability");
23
+ /**
24
+ * Check if a given object implements the PermissionResponse interface.
25
+ */
26
+ function instanceOfPermissionResponse(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
30
+ return false;
31
+ if (!('userId' in value) || value['userId'] === undefined)
32
+ return false;
33
+ if (!('path' in value) || value['path'] === undefined)
34
+ return false;
35
+ if (!('capability' in value) || value['capability'] === undefined)
36
+ return false;
37
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
38
+ return false;
39
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function PermissionResponseFromJSON(json) {
44
+ return PermissionResponseFromJSONTyped(json, false);
45
+ }
46
+ function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'tenantId': json['tenant_id'],
53
+ 'userId': json['user_id'],
54
+ 'path': json['path'],
55
+ 'capability': (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
56
+ 'createdAt': (new Date(json['created_at'])),
57
+ 'updatedAt': (new Date(json['updated_at'])),
58
+ };
59
+ }
60
+ function PermissionResponseToJSON(json) {
61
+ return PermissionResponseToJSONTyped(json, false);
62
+ }
63
+ function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'tenant_id': value['tenantId'],
70
+ 'user_id': value['userId'],
71
+ 'path': value['path'],
72
+ 'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
73
+ 'created_at': value['createdAt'].toISOString(),
74
+ 'updated_at': value['updatedAt'].toISOString(),
75
+ };
76
+ }
77
+ exports.PermissionResponsePropertyValidationAttributesMap = {};
@@ -57,6 +57,12 @@ export interface SectionResponse {
57
57
  * @memberof SectionResponse
58
58
  */
59
59
  nextSiblingId?: string;
60
+ /**
61
+ * Full materialized path from root
62
+ * @type {string}
63
+ * @memberof SectionResponse
64
+ */
65
+ materializedPath: string;
60
66
  /**
61
67
  * Tenant ID
62
68
  * @type {string}
@@ -31,6 +31,8 @@ function instanceOfSectionResponse(value) {
31
31
  return false;
32
32
  if (!('parentId' in value) || value['parentId'] === undefined)
33
33
  return false;
34
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
35
+ return false;
34
36
  if (!('tenantId' in value) || value['tenantId'] === undefined)
35
37
  return false;
36
38
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -54,6 +56,7 @@ function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
54
56
  'parentId': json['parent_id'],
55
57
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
56
58
  'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
59
+ 'materializedPath': json['materialized_path'],
57
60
  'tenantId': json['tenant_id'],
58
61
  'createdAt': (new Date(json['created_at'])),
59
62
  'updatedAt': (new Date(json['updated_at'])),
@@ -74,6 +77,7 @@ function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
77
  'parent_id': value['parentId'],
75
78
  'prev_sibling_path_id': value['prevSiblingPathId'],
76
79
  'next_sibling_id': value['nextSiblingId'],
80
+ 'materialized_path': value['materializedPath'],
77
81
  'tenant_id': value['tenantId'],
78
82
  'created_at': value['createdAt'].toISOString(),
79
83
  'updated_at': value['updatedAt'].toISOString(),
@@ -52,6 +52,12 @@ export interface ThreadMessageResponse {
52
52
  * @memberof ThreadMessageResponse
53
53
  */
54
54
  parentId: string;
55
+ /**
56
+ * Full materialized path from root
57
+ * @type {string}
58
+ * @memberof ThreadMessageResponse
59
+ */
60
+ materializedPath: string;
55
61
  /**
56
62
  * Tenant ID
57
63
  * @type {string}
@@ -36,6 +36,8 @@ function instanceOfThreadMessageResponse(value) {
36
36
  return false;
37
37
  if (!('parentId' in value) || value['parentId'] === undefined)
38
38
  return false;
39
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
40
+ return false;
39
41
  if (!('tenantId' in value) || value['tenantId'] === undefined)
40
42
  return false;
41
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -58,6 +60,7 @@ function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
59
61
  'content': json['content'],
60
62
  'parentId': json['parent_id'],
63
+ 'materializedPath': json['materialized_path'],
61
64
  'tenantId': json['tenant_id'],
62
65
  'createdAt': (new Date(json['created_at'])),
63
66
  'updatedAt': (new Date(json['updated_at'])),
@@ -77,6 +80,7 @@ function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
77
80
  'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
78
81
  'content': value['content'],
79
82
  'parent_id': value['parentId'],
83
+ 'materialized_path': value['materializedPath'],
80
84
  'tenant_id': value['tenantId'],
81
85
  'created_at': value['createdAt'].toISOString(),
82
86
  'updated_at': value['updatedAt'].toISOString(),
@@ -39,6 +39,12 @@ export interface ThreadResponse {
39
39
  * @memberof ThreadResponse
40
40
  */
41
41
  parentThreadId?: string;
42
+ /**
43
+ * Full materialized path from root
44
+ * @type {string}
45
+ * @memberof ThreadResponse
46
+ */
47
+ materializedPath: string;
42
48
  /**
43
49
  * Tenant ID
44
50
  * @type {string}
@@ -29,6 +29,8 @@ function instanceOfThreadResponse(value) {
29
29
  return false;
30
30
  if (!('title' in value) || value['title'] === undefined)
31
31
  return false;
32
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
33
+ return false;
32
34
  if (!('tenantId' in value) || value['tenantId'] === undefined)
33
35
  return false;
34
36
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -49,6 +51,7 @@ function ThreadResponseFromJSONTyped(json, ignoreDiscriminator) {
49
51
  'pathPartId': json['path_part_id'],
50
52
  'title': json['title'],
51
53
  'parentThreadId': json['parent_thread_id'] == null ? undefined : json['parent_thread_id'],
54
+ 'materializedPath': json['materialized_path'],
52
55
  'tenantId': json['tenant_id'],
53
56
  'createdAt': (new Date(json['created_at'])),
54
57
  'updatedAt': (new Date(json['updated_at'])),
@@ -66,6 +69,7 @@ function ThreadResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
69
  'path_part_id': value['pathPartId'],
67
70
  'title': value['title'],
68
71
  'parent_thread_id': value['parentThreadId'],
72
+ 'materialized_path': value['materializedPath'],
69
73
  'tenant_id': value['tenantId'],
70
74
  'created_at': value['createdAt'].toISOString(),
71
75
  'updated_at': value['updatedAt'].toISOString(),
@@ -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 UpdatePermissionRequest
17
+ */
18
+ export interface UpdatePermissionRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UpdatePermissionRequest
23
+ */
24
+ path?: string;
25
+ /**
26
+ *
27
+ * @type {PermissionCapability}
28
+ * @memberof UpdatePermissionRequest
29
+ */
30
+ capability?: PermissionCapability;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UpdatePermissionRequest interface.
34
+ */
35
+ export declare function instanceOfUpdatePermissionRequest(value: object): value is UpdatePermissionRequest;
36
+ export declare function UpdatePermissionRequestFromJSON(json: any): UpdatePermissionRequest;
37
+ export declare function UpdatePermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePermissionRequest;
38
+ export declare function UpdatePermissionRequestToJSON(json: any): UpdatePermissionRequest;
39
+ export declare function UpdatePermissionRequestToJSONTyped(value?: UpdatePermissionRequest | null, ignoreDiscriminator?: boolean): any;
40
+ export declare const UpdatePermissionRequestPropertyValidationAttributesMap: {
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,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdatePermissionRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfUpdatePermissionRequest = instanceOfUpdatePermissionRequest;
18
+ exports.UpdatePermissionRequestFromJSON = UpdatePermissionRequestFromJSON;
19
+ exports.UpdatePermissionRequestFromJSONTyped = UpdatePermissionRequestFromJSONTyped;
20
+ exports.UpdatePermissionRequestToJSON = UpdatePermissionRequestToJSON;
21
+ exports.UpdatePermissionRequestToJSONTyped = UpdatePermissionRequestToJSONTyped;
22
+ const PermissionCapability_1 = require("./PermissionCapability");
23
+ /**
24
+ * Check if a given object implements the UpdatePermissionRequest interface.
25
+ */
26
+ function instanceOfUpdatePermissionRequest(value) {
27
+ return true;
28
+ }
29
+ function UpdatePermissionRequestFromJSON(json) {
30
+ return UpdatePermissionRequestFromJSONTyped(json, false);
31
+ }
32
+ function UpdatePermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'path': json['path'] == null ? undefined : json['path'],
38
+ 'capability': json['capability'] == null ? undefined : (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
39
+ };
40
+ }
41
+ function UpdatePermissionRequestToJSON(json) {
42
+ return UpdatePermissionRequestToJSONTyped(json, false);
43
+ }
44
+ function UpdatePermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'path': value['path'],
50
+ 'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
51
+ };
52
+ }
53
+ exports.UpdatePermissionRequestPropertyValidationAttributesMap = {};
@@ -8,6 +8,7 @@ export * from './CreateChunkRequest';
8
8
  export * from './CreateDocumentRequest';
9
9
  export * from './CreateFolderRequest';
10
10
  export * from './CreatePasswordUserRequest';
11
+ export * from './CreatePermissionRequest';
11
12
  export * from './CreateSectionRequest';
12
13
  export * from './CreateTagRequest';
13
14
  export * from './CreateTenantRequest';
@@ -40,6 +41,7 @@ export * from './PaginatedResponseFolderDocumentResponse';
40
41
  export * from './PaginatedResponseFolderResponse';
41
42
  export * from './PaginatedResponseInviteResponse';
42
43
  export * from './PaginatedResponsePathPartResponse';
44
+ export * from './PaginatedResponsePermissionResponse';
43
45
  export * from './PaginatedResponseTagResponse';
44
46
  export * from './PaginatedResponseTenantResponse';
45
47
  export * from './PaginatedResponseTenantUserInTenantResponse';
@@ -50,6 +52,8 @@ export * from './PasswordResetRequest';
50
52
  export * from './PasswordResetWithTokenRequest';
51
53
  export * from './PathOrder';
52
54
  export * from './PathPartResponse';
55
+ export * from './PermissionCapability';
56
+ export * from './PermissionResponse';
53
57
  export * from './Polygon';
54
58
  export * from './PolygonReference';
55
59
  export * from './RootResponse';
@@ -66,6 +70,7 @@ export * from './UpdateChunkContentRequest';
66
70
  export * from './UpdateChunkMetadataRequest';
67
71
  export * from './UpdateDocumentRequest';
68
72
  export * from './UpdateFolderRequest';
73
+ export * from './UpdatePermissionRequest';
69
74
  export * from './UpdateSectionRequest';
70
75
  export * from './UpdateTagRequest';
71
76
  export * from './UpdateTenantRequest';
@@ -26,6 +26,7 @@ __exportStar(require("./CreateChunkRequest"), exports);
26
26
  __exportStar(require("./CreateDocumentRequest"), exports);
27
27
  __exportStar(require("./CreateFolderRequest"), exports);
28
28
  __exportStar(require("./CreatePasswordUserRequest"), exports);
29
+ __exportStar(require("./CreatePermissionRequest"), exports);
29
30
  __exportStar(require("./CreateSectionRequest"), exports);
30
31
  __exportStar(require("./CreateTagRequest"), exports);
31
32
  __exportStar(require("./CreateTenantRequest"), exports);
@@ -58,6 +59,7 @@ __exportStar(require("./PaginatedResponseFolderDocumentResponse"), exports);
58
59
  __exportStar(require("./PaginatedResponseFolderResponse"), exports);
59
60
  __exportStar(require("./PaginatedResponseInviteResponse"), exports);
60
61
  __exportStar(require("./PaginatedResponsePathPartResponse"), exports);
62
+ __exportStar(require("./PaginatedResponsePermissionResponse"), exports);
61
63
  __exportStar(require("./PaginatedResponseTagResponse"), exports);
62
64
  __exportStar(require("./PaginatedResponseTenantResponse"), exports);
63
65
  __exportStar(require("./PaginatedResponseTenantUserInTenantResponse"), exports);
@@ -68,6 +70,8 @@ __exportStar(require("./PasswordResetRequest"), exports);
68
70
  __exportStar(require("./PasswordResetWithTokenRequest"), exports);
69
71
  __exportStar(require("./PathOrder"), exports);
70
72
  __exportStar(require("./PathPartResponse"), exports);
73
+ __exportStar(require("./PermissionCapability"), exports);
74
+ __exportStar(require("./PermissionResponse"), exports);
71
75
  __exportStar(require("./Polygon"), exports);
72
76
  __exportStar(require("./PolygonReference"), exports);
73
77
  __exportStar(require("./RootResponse"), exports);
@@ -84,6 +88,7 @@ __exportStar(require("./UpdateChunkContentRequest"), exports);
84
88
  __exportStar(require("./UpdateChunkMetadataRequest"), exports);
85
89
  __exportStar(require("./UpdateDocumentRequest"), exports);
86
90
  __exportStar(require("./UpdateFolderRequest"), exports);
91
+ __exportStar(require("./UpdatePermissionRequest"), exports);
87
92
  __exportStar(require("./UpdateSectionRequest"), exports);
88
93
  __exportStar(require("./UpdateTagRequest"), exports);
89
94
  __exportStar(require("./UpdateTenantRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -355,7 +355,7 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
355
355
  headerParameters['Content-Type'] = 'application/json';
356
356
 
357
357
 
358
- let urlPath = `/v1/chunks/{chunk_id}/metadata`;
358
+ let urlPath = `/v1/chunks/{chunk_id}`;
359
359
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
360
360
 
361
361
  const response = await this.request({
@@ -84,7 +84,7 @@ export interface UpdateTagOperationRequest {
84
84
  */
85
85
  export interface TagsApiInterface {
86
86
  /**
87
- * Attach a tag to a path part.
87
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
88
88
  * @summary Attach Tag Handler
89
89
  * @param {string} tagId
90
90
  * @param {TagPathPartRequest} tagPathPartRequest
@@ -96,13 +96,13 @@ export interface TagsApiInterface {
96
96
  attachTagToPathPartRaw(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
97
97
 
98
98
  /**
99
- * Attach a tag to a path part.
99
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
100
100
  * Attach Tag Handler
101
101
  */
102
102
  attachTagToPathPart(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
103
103
 
104
104
  /**
105
- * Create a new tag for the current tenant.
105
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
106
106
  * @summary Create Tag Handler
107
107
  * @param {CreateTagRequest} createTagRequest
108
108
  * @param {string} [ksUat]
@@ -113,13 +113,13 @@ export interface TagsApiInterface {
113
113
  createTagRaw(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
114
114
 
115
115
  /**
116
- * Create a new tag for the current tenant.
116
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
117
117
  * Create Tag Handler
118
118
  */
119
119
  createTag(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
120
120
 
121
121
  /**
122
- * Delete a tag and all its path_part associations.
122
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
123
123
  * @summary Delete Tag Handler
124
124
  * @param {string} tagId
125
125
  * @param {string} [ksUat]
@@ -130,13 +130,13 @@ export interface TagsApiInterface {
130
130
  deleteTagRaw(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
131
131
 
132
132
  /**
133
- * Delete a tag and all its path_part associations.
133
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
134
134
  * Delete Tag Handler
135
135
  */
136
136
  deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
137
137
 
138
138
  /**
139
- * Detach a tag from a path part.
139
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
140
140
  * @summary Detach Tag Handler
141
141
  * @param {string} tagId
142
142
  * @param {string} pathPartId
@@ -148,7 +148,7 @@ export interface TagsApiInterface {
148
148
  detachTagFromPathPartRaw(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
149
149
 
150
150
  /**
151
- * Detach a tag from a path part.
151
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
152
152
  * Detach Tag Handler
153
153
  */
154
154
  detachTagFromPathPart(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -189,7 +189,7 @@ export interface TagsApiInterface {
189
189
  listTags(requestParameters: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseTagResponse>;
190
190
 
191
191
  /**
192
- * Update a tag (name, color, and/or description).
192
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
193
193
  * @summary Update Tag Handler
194
194
  * @param {string} tagId
195
195
  * @param {UpdateTagRequest} updateTagRequest
@@ -201,7 +201,7 @@ export interface TagsApiInterface {
201
201
  updateTagRaw(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
202
202
 
203
203
  /**
204
- * Update a tag (name, color, and/or description).
204
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
205
205
  * Update Tag Handler
206
206
  */
207
207
  updateTag(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
@@ -214,7 +214,7 @@ export interface TagsApiInterface {
214
214
  export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
215
215
 
216
216
  /**
217
- * Attach a tag to a path part.
217
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
218
218
  * Attach Tag Handler
219
219
  */
220
220
  async attachTagToPathPartRaw(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>> {
@@ -254,7 +254,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
254
254
  }
255
255
 
256
256
  /**
257
- * Attach a tag to a path part.
257
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
258
258
  * Attach Tag Handler
259
259
  */
260
260
  async attachTagToPathPart(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse> {
@@ -263,7 +263,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
263
263
  }
264
264
 
265
265
  /**
266
- * Create a new tag for the current tenant.
266
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
267
267
  * Create Tag Handler
268
268
  */
269
269
  async createTagRaw(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>> {
@@ -295,7 +295,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
295
295
  }
296
296
 
297
297
  /**
298
- * Create a new tag for the current tenant.
298
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
299
299
  * Create Tag Handler
300
300
  */
301
301
  async createTag(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse> {
@@ -304,7 +304,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
304
304
  }
305
305
 
306
306
  /**
307
- * Delete a tag and all its path_part associations.
307
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
308
308
  * Delete Tag Handler
309
309
  */
310
310
  async deleteTagRaw(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -334,7 +334,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
334
334
  }
335
335
 
336
336
  /**
337
- * Delete a tag and all its path_part associations.
337
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
338
338
  * Delete Tag Handler
339
339
  */
340
340
  async deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -342,7 +342,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
342
342
  }
343
343
 
344
344
  /**
345
- * Detach a tag from a path part.
345
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
346
346
  * Detach Tag Handler
347
347
  */
348
348
  async detachTagFromPathPartRaw(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -380,7 +380,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
380
380
  }
381
381
 
382
382
  /**
383
- * Detach a tag from a path part.
383
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
384
384
  * Detach Tag Handler
385
385
  */
386
386
  async detachTagFromPathPart(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -466,7 +466,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
466
466
  }
467
467
 
468
468
  /**
469
- * Update a tag (name, color, and/or description).
469
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
470
470
  * Update Tag Handler
471
471
  */
472
472
  async updateTagRaw(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>> {
@@ -506,7 +506,7 @@ export class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
506
506
  }
507
507
 
508
508
  /**
509
- * Update a tag (name, color, and/or description).
509
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
510
510
  * Update Tag Handler
511
511
  */
512
512
  async updateTag(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse> {
@@ -87,7 +87,7 @@ export interface ThreadsApiInterface {
87
87
  createThread(requestParameters: CreateThreadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ThreadResponse>;
88
88
 
89
89
  /**
90
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
90
+ * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted. Asset threads (attached to documents/sections) are never deletable via this endpoint.
91
91
  * @summary Delete Thread Handler
92
92
  * @param {string} threadId
93
93
  * @param {string} [ksUat]
@@ -98,7 +98,7 @@ export interface ThreadsApiInterface {
98
98
  deleteThreadRaw(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
99
99
 
100
100
  /**
101
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
101
+ * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted. Asset threads (attached to documents/sections) are never deletable via this endpoint.
102
102
  * Delete Thread Handler
103
103
  */
104
104
  deleteThread(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -206,7 +206,7 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
206
206
  }
207
207
 
208
208
  /**
209
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
209
+ * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted. Asset threads (attached to documents/sections) are never deletable via this endpoint.
210
210
  * Delete Thread Handler
211
211
  */
212
212
  async deleteThreadRaw(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -236,7 +236,7 @@ export class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInterface {
236
236
  }
237
237
 
238
238
  /**
239
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
239
+ * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted. Asset threads (attached to documents/sections) are never deletable via this endpoint.
240
240
  * Delete Thread Handler
241
241
  */
242
242
  async deleteThread(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {