@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
|
@@ -0,0 +1,192 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.UserPermissionsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class UserPermissionsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Create a path permission for a user in a tenant (admin/owner only).
|
|
34
|
+
* Create User Permission Handler
|
|
35
|
+
*/
|
|
36
|
+
createUserPermissionRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['createPermissionRequest'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('createPermissionRequest', 'Required parameter "createPermissionRequest" was null or undefined when calling createUserPermission().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
let urlPath = `/v1/user-permissions`;
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: (0, index_1.CreatePermissionRequestToJSON)(requestParameters['createPermissionRequest']),
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermissionResponseFromJSON)(jsonValue));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Create a path permission for a user in a tenant (admin/owner only).
|
|
57
|
+
* Create User Permission Handler
|
|
58
|
+
*/
|
|
59
|
+
createUserPermission(requestParameters, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const response = yield this.createUserPermissionRaw(requestParameters, initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Delete a path permission (admin/owner only).
|
|
67
|
+
* Delete User Permission Handler
|
|
68
|
+
*/
|
|
69
|
+
deleteUserPermissionRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (requestParameters['permissionId'] == null) {
|
|
72
|
+
throw new runtime.RequiredError('permissionId', 'Required parameter "permissionId" was null or undefined when calling deleteUserPermission().');
|
|
73
|
+
}
|
|
74
|
+
if (requestParameters['tenantId'] == null) {
|
|
75
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter "tenantId" was null or undefined when calling deleteUserPermission().');
|
|
76
|
+
}
|
|
77
|
+
const queryParameters = {};
|
|
78
|
+
if (requestParameters['tenantId'] != null) {
|
|
79
|
+
queryParameters['tenant_id'] = requestParameters['tenantId'];
|
|
80
|
+
}
|
|
81
|
+
const headerParameters = {};
|
|
82
|
+
let urlPath = `/v1/user-permissions/{permission_id}`;
|
|
83
|
+
urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
|
|
84
|
+
const response = yield this.request({
|
|
85
|
+
path: urlPath,
|
|
86
|
+
method: 'DELETE',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.VoidApiResponse(response);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Delete a path permission (admin/owner only).
|
|
95
|
+
* Delete User Permission Handler
|
|
96
|
+
*/
|
|
97
|
+
deleteUserPermission(requestParameters, initOverrides) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
yield this.deleteUserPermissionRaw(requestParameters, initOverrides);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* List path permissions for a user in a tenant (admin/owner only).
|
|
104
|
+
* List User Permissions Handler
|
|
105
|
+
*/
|
|
106
|
+
listUserPermissionsRaw(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
if (requestParameters['tenantId'] == null) {
|
|
109
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter "tenantId" was null or undefined when calling listUserPermissions().');
|
|
110
|
+
}
|
|
111
|
+
if (requestParameters['userId'] == null) {
|
|
112
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listUserPermissions().');
|
|
113
|
+
}
|
|
114
|
+
const queryParameters = {};
|
|
115
|
+
if (requestParameters['tenantId'] != null) {
|
|
116
|
+
queryParameters['tenant_id'] = requestParameters['tenantId'];
|
|
117
|
+
}
|
|
118
|
+
if (requestParameters['userId'] != null) {
|
|
119
|
+
queryParameters['user_id'] = requestParameters['userId'];
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters['limit'] != null) {
|
|
122
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters['offset'] != null) {
|
|
125
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
126
|
+
}
|
|
127
|
+
const headerParameters = {};
|
|
128
|
+
let urlPath = `/v1/user-permissions`;
|
|
129
|
+
const response = yield this.request({
|
|
130
|
+
path: urlPath,
|
|
131
|
+
method: 'GET',
|
|
132
|
+
headers: headerParameters,
|
|
133
|
+
query: queryParameters,
|
|
134
|
+
}, initOverrides);
|
|
135
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponsePermissionResponseFromJSON)(jsonValue));
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* List path permissions for a user in a tenant (admin/owner only).
|
|
140
|
+
* List User Permissions Handler
|
|
141
|
+
*/
|
|
142
|
+
listUserPermissions(requestParameters, initOverrides) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
const response = yield this.listUserPermissionsRaw(requestParameters, initOverrides);
|
|
145
|
+
return yield response.value();
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Update a path permission (admin/owner only).
|
|
150
|
+
* Update User Permission Handler
|
|
151
|
+
*/
|
|
152
|
+
updateUserPermissionRaw(requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
if (requestParameters['permissionId'] == null) {
|
|
155
|
+
throw new runtime.RequiredError('permissionId', 'Required parameter "permissionId" was null or undefined when calling updateUserPermission().');
|
|
156
|
+
}
|
|
157
|
+
if (requestParameters['tenantId'] == null) {
|
|
158
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter "tenantId" was null or undefined when calling updateUserPermission().');
|
|
159
|
+
}
|
|
160
|
+
if (requestParameters['updatePermissionRequest'] == null) {
|
|
161
|
+
throw new runtime.RequiredError('updatePermissionRequest', 'Required parameter "updatePermissionRequest" was null or undefined when calling updateUserPermission().');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
if (requestParameters['tenantId'] != null) {
|
|
165
|
+
queryParameters['tenant_id'] = requestParameters['tenantId'];
|
|
166
|
+
}
|
|
167
|
+
const headerParameters = {};
|
|
168
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
169
|
+
let urlPath = `/v1/user-permissions/{permission_id}`;
|
|
170
|
+
urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
|
|
171
|
+
const response = yield this.request({
|
|
172
|
+
path: urlPath,
|
|
173
|
+
method: 'PATCH',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
body: (0, index_1.UpdatePermissionRequestToJSON)(requestParameters['updatePermissionRequest']),
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermissionResponseFromJSON)(jsonValue));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Update a path permission (admin/owner only).
|
|
183
|
+
* Update User Permission Handler
|
|
184
|
+
*/
|
|
185
|
+
updateUserPermission(requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const response = yield this.updateUserPermissionRaw(requestParameters, initOverrides);
|
|
188
|
+
return yield response.value();
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
exports.UserPermissionsApi = UserPermissionsApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -30,4 +30,5 @@ __exportStar(require("./TagsApi"), exports);
|
|
|
30
30
|
__exportStar(require("./TenantsApi"), exports);
|
|
31
31
|
__exportStar(require("./ThreadMessagesApi"), exports);
|
|
32
32
|
__exportStar(require("./ThreadsApi"), exports);
|
|
33
|
+
__exportStar(require("./UserPermissionsApi"), exports);
|
|
33
34
|
__exportStar(require("./UsersApi"), exports);
|
|
@@ -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
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ChunkResponseFromJSON, CreateChunkRequestToJSON, UpdateChunkContentRequestToJSON, UpdateChunkMetadataRequestToJSON, } from '../models/index';
|
|
24
|
+
import { ChunkResponseFromJSON, ChunkSearchRequestToJSON, CreateChunkRequestToJSON, ScoredChunkResponseFromJSON, UpdateChunkContentRequestToJSON, UpdateChunkMetadataRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -122,6 +122,39 @@ export class ChunksApi extends runtime.BaseAPI {
|
|
|
122
122
|
return yield response.value();
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* 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.
|
|
127
|
+
* Search Chunks Handler
|
|
128
|
+
*/
|
|
129
|
+
searchChunksRaw(requestParameters, initOverrides) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
if (requestParameters['chunkSearchRequest'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('chunkSearchRequest', 'Required parameter "chunkSearchRequest" was null or undefined when calling searchChunks().');
|
|
133
|
+
}
|
|
134
|
+
const queryParameters = {};
|
|
135
|
+
const headerParameters = {};
|
|
136
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
137
|
+
let urlPath = `/v1/chunks/search`;
|
|
138
|
+
const response = yield this.request({
|
|
139
|
+
path: urlPath,
|
|
140
|
+
method: 'POST',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
body: ChunkSearchRequestToJSON(requestParameters['chunkSearchRequest']),
|
|
144
|
+
}, initOverrides);
|
|
145
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ScoredChunkResponseFromJSON));
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 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.
|
|
150
|
+
* Search Chunks Handler
|
|
151
|
+
*/
|
|
152
|
+
searchChunks(requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const response = yield this.searchChunksRaw(requestParameters, initOverrides);
|
|
155
|
+
return yield response.value();
|
|
156
|
+
});
|
|
157
|
+
}
|
|
125
158
|
/**
|
|
126
159
|
* 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.
|
|
127
160
|
* Update Chunk Content Handler
|
|
@@ -174,7 +207,7 @@ export class ChunksApi extends runtime.BaseAPI {
|
|
|
174
207
|
const queryParameters = {};
|
|
175
208
|
const headerParameters = {};
|
|
176
209
|
headerParameters['Content-Type'] = 'application/json';
|
|
177
|
-
let urlPath = `/v1/chunks/{chunk_id}
|
|
210
|
+
let urlPath = `/v1/chunks/{chunk_id}`;
|
|
178
211
|
urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
|
|
179
212
|
const response = yield this.request({
|
|
180
213
|
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>;
|
package/dist/esm/apis/TagsApi.js
CHANGED
|
@@ -27,7 +27,7 @@ import { CreateTagRequestToJSON, PaginatedResponseTagResponseFromJSON, TagPathPa
|
|
|
27
27
|
*/
|
|
28
28
|
export class TagsApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Attach a tag to a path part.
|
|
30
|
+
* Attach a tag to a path part. Requires ADMIN or OWNER role.
|
|
31
31
|
* Attach Tag Handler
|
|
32
32
|
*/
|
|
33
33
|
attachTagToPathPartRaw(requestParameters, initOverrides) {
|
|
@@ -54,7 +54,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* Attach a tag to a path part.
|
|
57
|
+
* Attach a tag to a path part. Requires ADMIN or OWNER role.
|
|
58
58
|
* Attach Tag Handler
|
|
59
59
|
*/
|
|
60
60
|
attachTagToPathPart(requestParameters, initOverrides) {
|
|
@@ -64,7 +64,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Create a new tag for the current tenant.
|
|
67
|
+
* Create a new tag for the current tenant. Requires ADMIN or OWNER role.
|
|
68
68
|
* Create Tag Handler
|
|
69
69
|
*/
|
|
70
70
|
createTagRaw(requestParameters, initOverrides) {
|
|
@@ -87,7 +87,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Create a new tag for the current tenant.
|
|
90
|
+
* Create a new tag for the current tenant. Requires ADMIN or OWNER role.
|
|
91
91
|
* Create Tag Handler
|
|
92
92
|
*/
|
|
93
93
|
createTag(requestParameters, initOverrides) {
|
|
@@ -97,7 +97,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Delete a tag and all its path_part associations.
|
|
100
|
+
* Delete a tag and all its path_part associations. Requires ADMIN or OWNER role.
|
|
101
101
|
* Delete Tag Handler
|
|
102
102
|
*/
|
|
103
103
|
deleteTagRaw(requestParameters, initOverrides) {
|
|
@@ -119,7 +119,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
119
119
|
});
|
|
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
|
* Delete Tag Handler
|
|
124
124
|
*/
|
|
125
125
|
deleteTag(requestParameters, initOverrides) {
|
|
@@ -128,7 +128,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
* Detach a tag from a path part.
|
|
131
|
+
* Detach a tag from a path part. Requires ADMIN or OWNER role.
|
|
132
132
|
* Detach Tag Handler
|
|
133
133
|
*/
|
|
134
134
|
detachTagFromPathPartRaw(requestParameters, initOverrides) {
|
|
@@ -154,7 +154,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
* Detach a tag from a path part.
|
|
157
|
+
* Detach a tag from a path part. Requires ADMIN or OWNER role.
|
|
158
158
|
* Detach Tag Handler
|
|
159
159
|
*/
|
|
160
160
|
detachTagFromPathPart(requestParameters, initOverrides) {
|
|
@@ -229,7 +229,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
|
-
* Update a tag (name, color, and/or description).
|
|
232
|
+
* Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
|
|
233
233
|
* Update Tag Handler
|
|
234
234
|
*/
|
|
235
235
|
updateTagRaw(requestParameters, initOverrides) {
|
|
@@ -256,7 +256,7 @@ export class TagsApi extends runtime.BaseAPI {
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
/**
|
|
259
|
-
* Update a tag (name, color, and/or description).
|
|
259
|
+
* Update a tag (name, color, and/or description). Requires ADMIN or OWNER role.
|
|
260
260
|
* Update Tag Handler
|
|
261
261
|
*/
|
|
262
262
|
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>;
|
|
@@ -60,7 +60,7 @@ export class ThreadsApi extends runtime.BaseAPI {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
|
|
63
|
+
* 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.
|
|
64
64
|
* Delete Thread Handler
|
|
65
65
|
*/
|
|
66
66
|
deleteThreadRaw(requestParameters, initOverrides) {
|
|
@@ -82,7 +82,7 @@ export class ThreadsApi extends runtime.BaseAPI {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted.
|
|
85
|
+
* 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.
|
|
86
86
|
* Delete Thread Handler
|
|
87
87
|
*/
|
|
88
88
|
deleteThread(requestParameters, initOverrides) {
|