@knowledge-stack/ksapi 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -0
- package/README.md +2 -2
- package/dist/apis/ChunksApi.d.ts +30 -1
- package/dist/apis/ChunksApi.js +34 -1
- package/dist/apis/TagsApi.d.ts +20 -20
- package/dist/apis/TagsApi.js +10 -10
- package/dist/apis/ThreadsApi.d.ts +4 -4
- package/dist/apis/ThreadsApi.js +2 -2
- package/dist/apis/UserPermissionsApi.d.ts +154 -0
- package/dist/apis/UserPermissionsApi.js +192 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChunksApi.d.ts +30 -1
- package/dist/esm/apis/ChunksApi.js +35 -2
- package/dist/esm/apis/TagsApi.d.ts +20 -20
- package/dist/esm/apis/TagsApi.js +10 -10
- package/dist/esm/apis/ThreadsApi.d.ts +4 -4
- package/dist/esm/apis/ThreadsApi.js +2 -2
- package/dist/esm/apis/UserPermissionsApi.d.ts +154 -0
- package/dist/esm/apis/UserPermissionsApi.js +188 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkResponse.d.ts +6 -0
- package/dist/esm/models/ChunkResponse.js +4 -0
- package/dist/esm/models/ChunkSearchRequest.d.ts +89 -0
- package/dist/esm/models/ChunkSearchRequest.js +69 -0
- package/dist/esm/models/CreatePermissionRequest.d.ts +66 -0
- package/dist/esm/models/CreatePermissionRequest.js +57 -0
- package/dist/esm/models/DocumentContentPathPart.d.ts +6 -0
- package/dist/esm/models/DocumentContentPathPart.js +4 -0
- package/dist/esm/models/DocumentResponse.d.ts +6 -0
- package/dist/esm/models/DocumentResponse.js +4 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
- package/dist/esm/models/DocumentVersionResponse.js +4 -0
- package/dist/esm/models/EmbeddingModel.d.ts +24 -0
- package/dist/esm/models/EmbeddingModel.js +42 -0
- package/dist/esm/models/FolderDocumentResponse.d.ts +6 -0
- package/dist/esm/models/FolderDocumentResponse.js +4 -0
- package/dist/esm/models/FolderResponse.d.ts +6 -0
- package/dist/esm/models/FolderResponse.js +4 -0
- package/dist/esm/models/PaginatedResponsePermissionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponsePermissionResponse.js +70 -0
- package/dist/esm/models/PathPartResponse.d.ts +6 -0
- package/dist/esm/models/PathPartResponse.js +4 -0
- package/dist/esm/models/PermissionCapability.d.ts +25 -0
- package/dist/esm/models/PermissionCapability.js +43 -0
- package/dist/esm/models/PermissionResponse.d.ts +84 -0
- package/dist/esm/models/PermissionResponse.js +69 -0
- package/dist/esm/models/ScoredChunkResponse.d.ts +127 -0
- package/dist/esm/models/ScoredChunkResponse.js +94 -0
- package/dist/esm/models/SectionResponse.d.ts +6 -0
- package/dist/esm/models/SectionResponse.js +4 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +6 -0
- package/dist/esm/models/ThreadMessageResponse.js +4 -0
- package/dist/esm/models/ThreadResponse.d.ts +6 -0
- package/dist/esm/models/ThreadResponse.js +4 -0
- package/dist/esm/models/UpdatePermissionRequest.d.ts +54 -0
- package/dist/esm/models/UpdatePermissionRequest.js +45 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/ChunkResponse.d.ts +6 -0
- package/dist/models/ChunkResponse.js +4 -0
- package/dist/models/ChunkSearchRequest.d.ts +89 -0
- package/dist/models/ChunkSearchRequest.js +77 -0
- package/dist/models/CreatePermissionRequest.d.ts +66 -0
- package/dist/models/CreatePermissionRequest.js +65 -0
- package/dist/models/DocumentContentPathPart.d.ts +6 -0
- package/dist/models/DocumentContentPathPart.js +4 -0
- package/dist/models/DocumentResponse.d.ts +6 -0
- package/dist/models/DocumentResponse.js +4 -0
- package/dist/models/DocumentVersionResponse.d.ts +6 -0
- package/dist/models/DocumentVersionResponse.js +4 -0
- package/dist/models/EmbeddingModel.d.ts +24 -0
- package/dist/models/EmbeddingModel.js +50 -0
- package/dist/models/FolderDocumentResponse.d.ts +6 -0
- package/dist/models/FolderDocumentResponse.js +4 -0
- package/dist/models/FolderResponse.d.ts +6 -0
- package/dist/models/FolderResponse.js +4 -0
- package/dist/models/PaginatedResponsePermissionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponsePermissionResponse.js +78 -0
- package/dist/models/PathPartResponse.d.ts +6 -0
- package/dist/models/PathPartResponse.js +4 -0
- package/dist/models/PermissionCapability.d.ts +25 -0
- package/dist/models/PermissionCapability.js +51 -0
- package/dist/models/PermissionResponse.d.ts +84 -0
- package/dist/models/PermissionResponse.js +77 -0
- package/dist/models/ScoredChunkResponse.d.ts +127 -0
- package/dist/models/ScoredChunkResponse.js +102 -0
- package/dist/models/SectionResponse.d.ts +6 -0
- package/dist/models/SectionResponse.js +4 -0
- package/dist/models/ThreadMessageResponse.d.ts +6 -0
- package/dist/models/ThreadMessageResponse.js +4 -0
- package/dist/models/ThreadResponse.d.ts +6 -0
- package/dist/models/ThreadResponse.js +4 -0
- package/dist/models/UpdatePermissionRequest.d.ts +54 -0
- package/dist/models/UpdatePermissionRequest.js +53 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +70 -1
- package/src/apis/TagsApi.ts +20 -20
- package/src/apis/ThreadsApi.ts +4 -4
- package/src/apis/UserPermissionsApi.ts +362 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkResponse.ts +9 -0
- package/src/models/ChunkSearchRequest.ts +160 -0
- package/src/models/CreatePermissionRequest.ts +120 -0
- package/src/models/DocumentContentPathPart.ts +9 -0
- package/src/models/DocumentResponse.ts +9 -0
- package/src/models/DocumentVersionResponse.ts +9 -0
- package/src/models/EmbeddingModel.ts +52 -0
- package/src/models/FolderDocumentResponse.ts +9 -0
- package/src/models/FolderResponse.ts +9 -0
- package/src/models/PaginatedResponsePermissionResponse.ts +130 -0
- package/src/models/PathPartResponse.ts +9 -0
- package/src/models/PermissionCapability.ts +53 -0
- package/src/models/PermissionResponse.ts +147 -0
- package/src/models/ScoredChunkResponse.ts +215 -0
- package/src/models/SectionResponse.ts +9 -0
- package/src/models/ThreadMessageResponse.ts +9 -0
- package/src/models/ThreadResponse.ts +9 -0
- package/src/models/UpdatePermissionRequest.ts +100 -0
- package/src/models/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
|
@@ -24,12 +25,14 @@ src/models/ChunkLineageResponse.ts
|
|
|
24
25
|
src/models/ChunkMetadataInput.ts
|
|
25
26
|
src/models/ChunkMetadataOutput.ts
|
|
26
27
|
src/models/ChunkResponse.ts
|
|
28
|
+
src/models/ChunkSearchRequest.ts
|
|
27
29
|
src/models/ChunkType.ts
|
|
28
30
|
src/models/CreateChunkLineageRequest.ts
|
|
29
31
|
src/models/CreateChunkRequest.ts
|
|
30
32
|
src/models/CreateDocumentRequest.ts
|
|
31
33
|
src/models/CreateFolderRequest.ts
|
|
32
34
|
src/models/CreatePasswordUserRequest.ts
|
|
35
|
+
src/models/CreatePermissionRequest.ts
|
|
33
36
|
src/models/CreateSectionRequest.ts
|
|
34
37
|
src/models/CreateTagRequest.ts
|
|
35
38
|
src/models/CreateTenantRequest.ts
|
|
@@ -42,6 +45,7 @@ src/models/DocumentType.ts
|
|
|
42
45
|
src/models/DocumentVersionResponse.ts
|
|
43
46
|
src/models/EmailSentResponse.ts
|
|
44
47
|
src/models/EmailVerificationRequest.ts
|
|
48
|
+
src/models/EmbeddingModel.ts
|
|
45
49
|
src/models/FolderDocumentResponse.ts
|
|
46
50
|
src/models/FolderResponse.ts
|
|
47
51
|
src/models/HTTPValidationError.ts
|
|
@@ -62,6 +66,7 @@ src/models/PaginatedResponseFolderDocumentResponse.ts
|
|
|
62
66
|
src/models/PaginatedResponseFolderResponse.ts
|
|
63
67
|
src/models/PaginatedResponseInviteResponse.ts
|
|
64
68
|
src/models/PaginatedResponsePathPartResponse.ts
|
|
69
|
+
src/models/PaginatedResponsePermissionResponse.ts
|
|
65
70
|
src/models/PaginatedResponseTagResponse.ts
|
|
66
71
|
src/models/PaginatedResponseTenantResponse.ts
|
|
67
72
|
src/models/PaginatedResponseTenantUserInTenantResponse.ts
|
|
@@ -72,9 +77,12 @@ src/models/PasswordResetRequest.ts
|
|
|
72
77
|
src/models/PasswordResetWithTokenRequest.ts
|
|
73
78
|
src/models/PathOrder.ts
|
|
74
79
|
src/models/PathPartResponse.ts
|
|
80
|
+
src/models/PermissionCapability.ts
|
|
81
|
+
src/models/PermissionResponse.ts
|
|
75
82
|
src/models/Polygon.ts
|
|
76
83
|
src/models/PolygonReference.ts
|
|
77
84
|
src/models/RootResponse.ts
|
|
85
|
+
src/models/ScoredChunkResponse.ts
|
|
78
86
|
src/models/SectionResponse.ts
|
|
79
87
|
src/models/SignInRequest.ts
|
|
80
88
|
src/models/TagPathPartRequest.ts
|
|
@@ -88,6 +96,7 @@ src/models/UpdateChunkContentRequest.ts
|
|
|
88
96
|
src/models/UpdateChunkMetadataRequest.ts
|
|
89
97
|
src/models/UpdateDocumentRequest.ts
|
|
90
98
|
src/models/UpdateFolderRequest.ts
|
|
99
|
+
src/models/UpdatePermissionRequest.ts
|
|
91
100
|
src/models/UpdateSectionRequest.ts
|
|
92
101
|
src/models/UpdateTagRequest.ts
|
|
93
102
|
src/models/UpdateTenantRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @knowledge-stack/ksapi@1.
|
|
1
|
+
## @knowledge-stack/ksapi@1.14.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.
|
|
39
|
+
npm install @knowledge-stack/ksapi@1.14.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/ChunksApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ChunkResponse, CreateChunkRequest, UpdateChunkContentRequest, UpdateChunkMetadataRequest } from '../models/index';
|
|
13
|
+
import type { ChunkResponse, ChunkSearchRequest, CreateChunkRequest, ScoredChunkResponse, UpdateChunkContentRequest, UpdateChunkMetadataRequest } from '../models/index';
|
|
14
14
|
export interface CreateChunkOperationRequest {
|
|
15
15
|
createChunkRequest: CreateChunkRequest;
|
|
16
16
|
ksUat?: string;
|
|
@@ -23,6 +23,10 @@ export interface GetChunkRequest {
|
|
|
23
23
|
chunkId: string;
|
|
24
24
|
ksUat?: string;
|
|
25
25
|
}
|
|
26
|
+
export interface SearchChunksRequest {
|
|
27
|
+
chunkSearchRequest: ChunkSearchRequest;
|
|
28
|
+
ksUat?: string;
|
|
29
|
+
}
|
|
26
30
|
export interface UpdateChunkContentOperationRequest {
|
|
27
31
|
chunkId: string;
|
|
28
32
|
updateChunkContentRequest: UpdateChunkContentRequest;
|
|
@@ -85,6 +89,21 @@ export interface ChunksApiInterface {
|
|
|
85
89
|
* Get Chunk Handler
|
|
86
90
|
*/
|
|
87
91
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
94
|
+
* @summary Search Chunks Handler
|
|
95
|
+
* @param {ChunkSearchRequest} chunkSearchRequest
|
|
96
|
+
* @param {string} [ksUat]
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
* @memberof ChunksApiInterface
|
|
100
|
+
*/
|
|
101
|
+
searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>>;
|
|
102
|
+
/**
|
|
103
|
+
* Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
104
|
+
* Search Chunks Handler
|
|
105
|
+
*/
|
|
106
|
+
searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>>;
|
|
88
107
|
/**
|
|
89
108
|
* Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
|
|
90
109
|
* @summary Update Chunk Content Handler
|
|
@@ -152,6 +171,16 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
152
171
|
* Get Chunk Handler
|
|
153
172
|
*/
|
|
154
173
|
getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
174
|
+
/**
|
|
175
|
+
* Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
176
|
+
* Search Chunks Handler
|
|
177
|
+
*/
|
|
178
|
+
searchChunksRaw(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ScoredChunkResponse>>>;
|
|
179
|
+
/**
|
|
180
|
+
* Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
181
|
+
* Search Chunks Handler
|
|
182
|
+
*/
|
|
183
|
+
searchChunks(requestParameters: SearchChunksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ScoredChunkResponse>>;
|
|
155
184
|
/**
|
|
156
185
|
* Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
|
|
157
186
|
* Update Chunk Content Handler
|
package/dist/apis/ChunksApi.js
CHANGED
|
@@ -125,6 +125,39 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
125
125
|
return yield response.value();
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
130
|
+
* Search Chunks Handler
|
|
131
|
+
*/
|
|
132
|
+
searchChunksRaw(requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
if (requestParameters['chunkSearchRequest'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('chunkSearchRequest', 'Required parameter "chunkSearchRequest" was null or undefined when calling searchChunks().');
|
|
136
|
+
}
|
|
137
|
+
const queryParameters = {};
|
|
138
|
+
const headerParameters = {};
|
|
139
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
140
|
+
let urlPath = `/v1/chunks/search`;
|
|
141
|
+
const response = yield this.request({
|
|
142
|
+
path: urlPath,
|
|
143
|
+
method: 'POST',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
body: (0, index_1.ChunkSearchRequestToJSON)(requestParameters['chunkSearchRequest']),
|
|
147
|
+
}, initOverrides);
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ScoredChunkResponseFromJSON));
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Semantic search over chunks using vector similarity. Combines pgvector cosine similarity with path-based authorization and optional metadata filters. Uses a two-session design to avoid holding a DB connection during the external embedding API call.
|
|
153
|
+
* Search Chunks Handler
|
|
154
|
+
*/
|
|
155
|
+
searchChunks(requestParameters, initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const response = yield this.searchChunksRaw(requestParameters, initOverrides);
|
|
158
|
+
return yield response.value();
|
|
159
|
+
});
|
|
160
|
+
}
|
|
128
161
|
/**
|
|
129
162
|
* Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
|
|
130
163
|
* Update Chunk Content Handler
|
|
@@ -177,7 +210,7 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
177
210
|
const queryParameters = {};
|
|
178
211
|
const headerParameters = {};
|
|
179
212
|
headerParameters['Content-Type'] = 'application/json';
|
|
180
|
-
let urlPath = `/v1/chunks/{chunk_id}
|
|
213
|
+
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
181
214
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
182
215
|
const response = yield this.request({
|
|
183
216
|
path: urlPath,
|
package/dist/apis/TagsApi.d.ts
CHANGED
|
@@ -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>;
|
package/dist/apis/TagsApi.js
CHANGED
|
@@ -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>;
|
package/dist/apis/ThreadsApi.js
CHANGED
|
@@ -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
|
+
}
|