@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
@@ -17,6 +17,7 @@ src/apis/TagsApi.ts
17
17
  src/apis/TenantsApi.ts
18
18
  src/apis/ThreadMessagesApi.ts
19
19
  src/apis/ThreadsApi.ts
20
+ src/apis/UserPermissionsApi.ts
20
21
  src/apis/UsersApi.ts
21
22
  src/apis/index.ts
22
23
  src/index.ts
@@ -30,6 +31,7 @@ src/models/CreateChunkRequest.ts
30
31
  src/models/CreateDocumentRequest.ts
31
32
  src/models/CreateFolderRequest.ts
32
33
  src/models/CreatePasswordUserRequest.ts
34
+ src/models/CreatePermissionRequest.ts
33
35
  src/models/CreateSectionRequest.ts
34
36
  src/models/CreateTagRequest.ts
35
37
  src/models/CreateTenantRequest.ts
@@ -62,6 +64,7 @@ src/models/PaginatedResponseFolderDocumentResponse.ts
62
64
  src/models/PaginatedResponseFolderResponse.ts
63
65
  src/models/PaginatedResponseInviteResponse.ts
64
66
  src/models/PaginatedResponsePathPartResponse.ts
67
+ src/models/PaginatedResponsePermissionResponse.ts
65
68
  src/models/PaginatedResponseTagResponse.ts
66
69
  src/models/PaginatedResponseTenantResponse.ts
67
70
  src/models/PaginatedResponseTenantUserInTenantResponse.ts
@@ -72,6 +75,8 @@ src/models/PasswordResetRequest.ts
72
75
  src/models/PasswordResetWithTokenRequest.ts
73
76
  src/models/PathOrder.ts
74
77
  src/models/PathPartResponse.ts
78
+ src/models/PermissionCapability.ts
79
+ src/models/PermissionResponse.ts
75
80
  src/models/Polygon.ts
76
81
  src/models/PolygonReference.ts
77
82
  src/models/RootResponse.ts
@@ -88,6 +93,7 @@ src/models/UpdateChunkContentRequest.ts
88
93
  src/models/UpdateChunkMetadataRequest.ts
89
94
  src/models/UpdateDocumentRequest.ts
90
95
  src/models/UpdateFolderRequest.ts
96
+ src/models/UpdatePermissionRequest.ts
91
97
  src/models/UpdateSectionRequest.ts
92
98
  src/models/UpdateTagRequest.ts
93
99
  src/models/UpdateTenantRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @knowledge-stack/ksapi@1.12.0
1
+ ## @knowledge-stack/ksapi@1.13.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @knowledge-stack/ksapi@1.12.0 --save
39
+ npm install @knowledge-stack/ksapi@1.13.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -177,7 +177,7 @@ class ChunksApi extends runtime.BaseAPI {
177
177
  const queryParameters = {};
178
178
  const headerParameters = {};
179
179
  headerParameters['Content-Type'] = 'application/json';
180
- let urlPath = `/v1/chunks/{chunk_id}/metadata`;
180
+ let urlPath = `/v1/chunks/{chunk_id}`;
181
181
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
182
182
  const response = yield this.request({
183
183
  path: urlPath,
@@ -51,7 +51,7 @@ export interface UpdateTagOperationRequest {
51
51
  */
52
52
  export interface TagsApiInterface {
53
53
  /**
54
- * Attach a tag to a path part.
54
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
55
55
  * @summary Attach Tag Handler
56
56
  * @param {string} tagId
57
57
  * @param {TagPathPartRequest} tagPathPartRequest
@@ -62,12 +62,12 @@ export interface TagsApiInterface {
62
62
  */
63
63
  attachTagToPathPartRaw(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
64
64
  /**
65
- * Attach a tag to a path part.
65
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
66
66
  * Attach Tag Handler
67
67
  */
68
68
  attachTagToPathPart(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
69
69
  /**
70
- * Create a new tag for the current tenant.
70
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
71
71
  * @summary Create Tag Handler
72
72
  * @param {CreateTagRequest} createTagRequest
73
73
  * @param {string} [ksUat]
@@ -77,12 +77,12 @@ export interface TagsApiInterface {
77
77
  */
78
78
  createTagRaw(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
79
79
  /**
80
- * Create a new tag for the current tenant.
80
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
81
81
  * Create Tag Handler
82
82
  */
83
83
  createTag(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
84
84
  /**
85
- * Delete a tag and all its path_part associations.
85
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
86
86
  * @summary Delete Tag Handler
87
87
  * @param {string} tagId
88
88
  * @param {string} [ksUat]
@@ -92,12 +92,12 @@ export interface TagsApiInterface {
92
92
  */
93
93
  deleteTagRaw(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
94
94
  /**
95
- * Delete a tag and all its path_part associations.
95
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
96
96
  * Delete Tag Handler
97
97
  */
98
98
  deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
99
99
  /**
100
- * Detach a tag from a path part.
100
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
101
101
  * @summary Detach Tag Handler
102
102
  * @param {string} tagId
103
103
  * @param {string} pathPartId
@@ -108,7 +108,7 @@ export interface TagsApiInterface {
108
108
  */
109
109
  detachTagFromPathPartRaw(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
110
110
  /**
111
- * Detach a tag from a path part.
111
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
112
112
  * Detach Tag Handler
113
113
  */
114
114
  detachTagFromPathPart(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -144,7 +144,7 @@ export interface TagsApiInterface {
144
144
  */
145
145
  listTags(requestParameters: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseTagResponse>;
146
146
  /**
147
- * Update a tag (name, color, and/or description).
147
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
148
148
  * @summary Update Tag Handler
149
149
  * @param {string} tagId
150
150
  * @param {UpdateTagRequest} updateTagRequest
@@ -155,7 +155,7 @@ export interface TagsApiInterface {
155
155
  */
156
156
  updateTagRaw(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
157
157
  /**
158
- * Update a tag (name, color, and/or description).
158
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
159
159
  * Update Tag Handler
160
160
  */
161
161
  updateTag(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
@@ -165,42 +165,42 @@ export interface TagsApiInterface {
165
165
  */
166
166
  export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
167
167
  /**
168
- * Attach a tag to a path part.
168
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
169
169
  * Attach Tag Handler
170
170
  */
171
171
  attachTagToPathPartRaw(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
172
172
  /**
173
- * Attach a tag to a path part.
173
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
174
174
  * Attach Tag Handler
175
175
  */
176
176
  attachTagToPathPart(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
177
177
  /**
178
- * Create a new tag for the current tenant.
178
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
179
179
  * Create Tag Handler
180
180
  */
181
181
  createTagRaw(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
182
182
  /**
183
- * Create a new tag for the current tenant.
183
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
184
184
  * Create Tag Handler
185
185
  */
186
186
  createTag(requestParameters: CreateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
187
187
  /**
188
- * Delete a tag and all its path_part associations.
188
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
189
189
  * Delete Tag Handler
190
190
  */
191
191
  deleteTagRaw(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
192
192
  /**
193
- * Delete a tag and all its path_part associations.
193
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
194
194
  * Delete Tag Handler
195
195
  */
196
196
  deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
197
197
  /**
198
- * Detach a tag from a path part.
198
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
199
199
  * Detach Tag Handler
200
200
  */
201
201
  detachTagFromPathPartRaw(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
202
202
  /**
203
- * Detach a tag from a path part.
203
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
204
204
  * Detach Tag Handler
205
205
  */
206
206
  detachTagFromPathPart(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -225,12 +225,12 @@ export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface
225
225
  */
226
226
  listTags(requestParameters?: ListTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseTagResponse>;
227
227
  /**
228
- * Update a tag (name, color, and/or description).
228
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
229
229
  * Update Tag Handler
230
230
  */
231
231
  updateTagRaw(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
232
232
  /**
233
- * Update a tag (name, color, and/or description).
233
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
234
234
  * Update Tag Handler
235
235
  */
236
236
  updateTag(requestParameters: UpdateTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
@@ -30,7 +30,7 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class TagsApi extends runtime.BaseAPI {
32
32
  /**
33
- * Attach a tag to a path part.
33
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
34
34
  * Attach Tag Handler
35
35
  */
36
36
  attachTagToPathPartRaw(requestParameters, initOverrides) {
@@ -57,7 +57,7 @@ class TagsApi extends runtime.BaseAPI {
57
57
  });
58
58
  }
59
59
  /**
60
- * Attach a tag to a path part.
60
+ * Attach a tag to a path part. Requires ADMIN or OWNER role.
61
61
  * Attach Tag Handler
62
62
  */
63
63
  attachTagToPathPart(requestParameters, initOverrides) {
@@ -67,7 +67,7 @@ class TagsApi extends runtime.BaseAPI {
67
67
  });
68
68
  }
69
69
  /**
70
- * Create a new tag for the current tenant.
70
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
71
71
  * Create Tag Handler
72
72
  */
73
73
  createTagRaw(requestParameters, initOverrides) {
@@ -90,7 +90,7 @@ class TagsApi extends runtime.BaseAPI {
90
90
  });
91
91
  }
92
92
  /**
93
- * Create a new tag for the current tenant.
93
+ * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
94
94
  * Create Tag Handler
95
95
  */
96
96
  createTag(requestParameters, initOverrides) {
@@ -100,7 +100,7 @@ class TagsApi extends runtime.BaseAPI {
100
100
  });
101
101
  }
102
102
  /**
103
- * Delete a tag and all its path_part associations.
103
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
104
104
  * Delete Tag Handler
105
105
  */
106
106
  deleteTagRaw(requestParameters, initOverrides) {
@@ -122,7 +122,7 @@ class TagsApi extends runtime.BaseAPI {
122
122
  });
123
123
  }
124
124
  /**
125
- * Delete a tag and all its path_part associations.
125
+ * Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
126
126
  * Delete Tag Handler
127
127
  */
128
128
  deleteTag(requestParameters, initOverrides) {
@@ -131,7 +131,7 @@ class TagsApi extends runtime.BaseAPI {
131
131
  });
132
132
  }
133
133
  /**
134
- * Detach a tag from a path part.
134
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
135
135
  * Detach Tag Handler
136
136
  */
137
137
  detachTagFromPathPartRaw(requestParameters, initOverrides) {
@@ -157,7 +157,7 @@ class TagsApi extends runtime.BaseAPI {
157
157
  });
158
158
  }
159
159
  /**
160
- * Detach a tag from a path part.
160
+ * Detach a tag from a path part. Requires ADMIN or OWNER role.
161
161
  * Detach Tag Handler
162
162
  */
163
163
  detachTagFromPathPart(requestParameters, initOverrides) {
@@ -232,7 +232,7 @@ class TagsApi extends runtime.BaseAPI {
232
232
  });
233
233
  }
234
234
  /**
235
- * Update a tag (name, color, and/or description).
235
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
236
236
  * Update Tag Handler
237
237
  */
238
238
  updateTagRaw(requestParameters, initOverrides) {
@@ -259,7 +259,7 @@ class TagsApi extends runtime.BaseAPI {
259
259
  });
260
260
  }
261
261
  /**
262
- * Update a tag (name, color, and/or description).
262
+ * Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
263
263
  * Update Tag Handler
264
264
  */
265
265
  updateTag(requestParameters, initOverrides) {
@@ -57,7 +57,7 @@ export interface ThreadsApiInterface {
57
57
  */
58
58
  createThread(requestParameters: CreateThreadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ThreadResponse>;
59
59
  /**
60
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
60
+ * 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.
61
61
  * @summary Delete Thread Handler
62
62
  * @param {string} threadId
63
63
  * @param {string} [ksUat]
@@ -67,7 +67,7 @@ export interface ThreadsApiInterface {
67
67
  */
68
68
  deleteThreadRaw(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
69
69
  /**
70
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
70
+ * 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.
71
71
  * Delete Thread Handler
72
72
  */
73
73
  deleteThread(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -135,12 +135,12 @@ export declare class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInt
135
135
  */
136
136
  createThread(requestParameters: CreateThreadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ThreadResponse>;
137
137
  /**
138
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
138
+ * 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.
139
139
  * Delete Thread Handler
140
140
  */
141
141
  deleteThreadRaw(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
142
142
  /**
143
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
143
+ * 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.
144
144
  * Delete Thread Handler
145
145
  */
146
146
  deleteThread(requestParameters: DeleteThreadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -63,7 +63,7 @@ class ThreadsApi extends runtime.BaseAPI {
63
63
  });
64
64
  }
65
65
  /**
66
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
66
+ * 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.
67
67
  * Delete Thread Handler
68
68
  */
69
69
  deleteThreadRaw(requestParameters, initOverrides) {
@@ -85,7 +85,7 @@ class ThreadsApi extends runtime.BaseAPI {
85
85
  });
86
86
  }
87
87
  /**
88
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
88
+ * 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.
89
89
  * Delete Thread Handler
90
90
  */
91
91
  deleteThread(requestParameters, initOverrides) {
@@ -0,0 +1,154 @@
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 * as runtime from '../runtime';
13
+ import type { CreatePermissionRequest, PaginatedResponsePermissionResponse, PermissionResponse, UpdatePermissionRequest } from '../models/index';
14
+ export interface CreateUserPermissionRequest {
15
+ createPermissionRequest: CreatePermissionRequest;
16
+ ksUat?: string;
17
+ }
18
+ export interface DeleteUserPermissionRequest {
19
+ permissionId: string;
20
+ tenantId: string;
21
+ ksUat?: string;
22
+ }
23
+ export interface ListUserPermissionsRequest {
24
+ tenantId: string;
25
+ userId: string;
26
+ limit?: number;
27
+ offset?: number;
28
+ ksUat?: string;
29
+ }
30
+ export interface UpdateUserPermissionRequest {
31
+ permissionId: string;
32
+ tenantId: string;
33
+ updatePermissionRequest: UpdatePermissionRequest;
34
+ ksUat?: string;
35
+ }
36
+ /**
37
+ * UserPermissionsApi - interface
38
+ *
39
+ * @export
40
+ * @interface UserPermissionsApiInterface
41
+ */
42
+ export interface UserPermissionsApiInterface {
43
+ /**
44
+ * Create a path permission for a user in a tenant (admin/owner only).
45
+ * @summary Create User Permission Handler
46
+ * @param {CreatePermissionRequest} createPermissionRequest
47
+ * @param {string} [ksUat]
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ * @memberof UserPermissionsApiInterface
51
+ */
52
+ createUserPermissionRaw(requestParameters: CreateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PermissionResponse>>;
53
+ /**
54
+ * Create a path permission for a user in a tenant (admin/owner only).
55
+ * Create User Permission Handler
56
+ */
57
+ createUserPermission(requestParameters: CreateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionResponse>;
58
+ /**
59
+ * Delete a path permission (admin/owner only).
60
+ * @summary Delete User Permission Handler
61
+ * @param {string} permissionId
62
+ * @param {string} tenantId Tenant ID the permission belongs to
63
+ * @param {string} [ksUat]
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ * @memberof UserPermissionsApiInterface
67
+ */
68
+ deleteUserPermissionRaw(requestParameters: DeleteUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
69
+ /**
70
+ * Delete a path permission (admin/owner only).
71
+ * Delete User Permission Handler
72
+ */
73
+ deleteUserPermission(requestParameters: DeleteUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
74
+ /**
75
+ * List path permissions for a user in a tenant (admin/owner only).
76
+ * @summary List User Permissions Handler
77
+ * @param {string} tenantId Tenant ID to list permissions for
78
+ * @param {string} userId User ID to list permissions for
79
+ * @param {number} [limit] Number of items per page
80
+ * @param {number} [offset] Number of items to skip
81
+ * @param {string} [ksUat]
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ * @memberof UserPermissionsApiInterface
85
+ */
86
+ listUserPermissionsRaw(requestParameters: ListUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePermissionResponse>>;
87
+ /**
88
+ * List path permissions for a user in a tenant (admin/owner only).
89
+ * List User Permissions Handler
90
+ */
91
+ listUserPermissions(requestParameters: ListUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePermissionResponse>;
92
+ /**
93
+ * Update a path permission (admin/owner only).
94
+ * @summary Update User Permission Handler
95
+ * @param {string} permissionId
96
+ * @param {string} tenantId Tenant ID the permission belongs to
97
+ * @param {UpdatePermissionRequest} updatePermissionRequest
98
+ * @param {string} [ksUat]
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ * @memberof UserPermissionsApiInterface
102
+ */
103
+ updateUserPermissionRaw(requestParameters: UpdateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PermissionResponse>>;
104
+ /**
105
+ * Update a path permission (admin/owner only).
106
+ * Update User Permission Handler
107
+ */
108
+ updateUserPermission(requestParameters: UpdateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionResponse>;
109
+ }
110
+ /**
111
+ *
112
+ */
113
+ export declare class UserPermissionsApi extends runtime.BaseAPI implements UserPermissionsApiInterface {
114
+ /**
115
+ * Create a path permission for a user in a tenant (admin/owner only).
116
+ * Create User Permission Handler
117
+ */
118
+ createUserPermissionRaw(requestParameters: CreateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PermissionResponse>>;
119
+ /**
120
+ * Create a path permission for a user in a tenant (admin/owner only).
121
+ * Create User Permission Handler
122
+ */
123
+ createUserPermission(requestParameters: CreateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionResponse>;
124
+ /**
125
+ * Delete a path permission (admin/owner only).
126
+ * Delete User Permission Handler
127
+ */
128
+ deleteUserPermissionRaw(requestParameters: DeleteUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
129
+ /**
130
+ * Delete a path permission (admin/owner only).
131
+ * Delete User Permission Handler
132
+ */
133
+ deleteUserPermission(requestParameters: DeleteUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
134
+ /**
135
+ * List path permissions for a user in a tenant (admin/owner only).
136
+ * List User Permissions Handler
137
+ */
138
+ listUserPermissionsRaw(requestParameters: ListUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePermissionResponse>>;
139
+ /**
140
+ * List path permissions for a user in a tenant (admin/owner only).
141
+ * List User Permissions Handler
142
+ */
143
+ listUserPermissions(requestParameters: ListUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePermissionResponse>;
144
+ /**
145
+ * Update a path permission (admin/owner only).
146
+ * Update User Permission Handler
147
+ */
148
+ updateUserPermissionRaw(requestParameters: UpdateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PermissionResponse>>;
149
+ /**
150
+ * Update a path permission (admin/owner only).
151
+ * Update User Permission Handler
152
+ */
153
+ updateUserPermission(requestParameters: UpdateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionResponse>;
154
+ }