@knowledge-stack/ksapi 1.41.0 → 1.42.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 +8 -0
- package/README.md +18 -9
- package/dist/apis/ApiKeysApi.d.ts +187 -0
- package/dist/apis/ApiKeysApi.js +193 -0
- package/dist/apis/AuthApi.d.ts +6 -0
- package/dist/apis/AuthApi.js +6 -0
- package/dist/apis/ChunkLineagesApi.d.ts +9 -0
- package/dist/apis/ChunkLineagesApi.js +9 -0
- package/dist/apis/ChunksApi.d.ts +24 -0
- package/dist/apis/ChunksApi.js +24 -0
- package/dist/apis/DocumentVersionsApi.d.ts +21 -0
- package/dist/apis/DocumentVersionsApi.js +21 -0
- package/dist/apis/DocumentsApi.d.ts +21 -0
- package/dist/apis/DocumentsApi.js +21 -0
- package/dist/apis/FoldersApi.d.ts +21 -0
- package/dist/apis/FoldersApi.js +21 -0
- package/dist/apis/InvitesApi.d.ts +12 -0
- package/dist/apis/InvitesApi.js +12 -0
- package/dist/apis/PathPartsApi.d.ts +18 -0
- package/dist/apis/PathPartsApi.js +18 -0
- package/dist/apis/SectionsApi.d.ts +12 -0
- package/dist/apis/SectionsApi.js +12 -0
- package/dist/apis/TagsApi.d.ts +15 -0
- package/dist/apis/TagsApi.js +15 -0
- package/dist/apis/TenantsApi.d.ts +24 -0
- package/dist/apis/TenantsApi.js +24 -0
- package/dist/apis/ThreadMessagesApi.d.ts +9 -0
- package/dist/apis/ThreadMessagesApi.js +9 -0
- package/dist/apis/ThreadsApi.d.ts +21 -0
- package/dist/apis/ThreadsApi.js +21 -0
- package/dist/apis/UserPermissionsApi.d.ts +12 -0
- package/dist/apis/UserPermissionsApi.js +12 -0
- package/dist/apis/UsersApi.d.ts +6 -0
- package/dist/apis/UsersApi.js +6 -0
- package/dist/apis/WorkflowsApi.d.ts +9 -0
- package/dist/apis/WorkflowsApi.js +9 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ApiKeysApi.d.ts +187 -0
- package/dist/esm/apis/ApiKeysApi.js +189 -0
- package/dist/esm/apis/AuthApi.d.ts +6 -0
- package/dist/esm/apis/AuthApi.js +6 -0
- package/dist/esm/apis/ChunkLineagesApi.d.ts +9 -0
- package/dist/esm/apis/ChunkLineagesApi.js +9 -0
- package/dist/esm/apis/ChunksApi.d.ts +24 -0
- package/dist/esm/apis/ChunksApi.js +24 -0
- package/dist/esm/apis/DocumentVersionsApi.d.ts +21 -0
- package/dist/esm/apis/DocumentVersionsApi.js +21 -0
- package/dist/esm/apis/DocumentsApi.d.ts +21 -0
- package/dist/esm/apis/DocumentsApi.js +21 -0
- package/dist/esm/apis/FoldersApi.d.ts +21 -0
- package/dist/esm/apis/FoldersApi.js +21 -0
- package/dist/esm/apis/InvitesApi.d.ts +12 -0
- package/dist/esm/apis/InvitesApi.js +12 -0
- package/dist/esm/apis/PathPartsApi.d.ts +18 -0
- package/dist/esm/apis/PathPartsApi.js +18 -0
- package/dist/esm/apis/SectionsApi.d.ts +12 -0
- package/dist/esm/apis/SectionsApi.js +12 -0
- package/dist/esm/apis/TagsApi.d.ts +15 -0
- package/dist/esm/apis/TagsApi.js +15 -0
- package/dist/esm/apis/TenantsApi.d.ts +24 -0
- package/dist/esm/apis/TenantsApi.js +24 -0
- package/dist/esm/apis/ThreadMessagesApi.d.ts +9 -0
- package/dist/esm/apis/ThreadMessagesApi.js +9 -0
- package/dist/esm/apis/ThreadsApi.d.ts +21 -0
- package/dist/esm/apis/ThreadsApi.js +21 -0
- package/dist/esm/apis/UserPermissionsApi.d.ts +12 -0
- package/dist/esm/apis/UserPermissionsApi.js +12 -0
- package/dist/esm/apis/UsersApi.d.ts +6 -0
- package/dist/esm/apis/UsersApi.js +6 -0
- package/dist/esm/apis/WorkflowsApi.d.ts +9 -0
- package/dist/esm/apis/WorkflowsApi.js +9 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ApiKeyResponse.d.ts +65 -0
- package/dist/esm/models/ApiKeyResponse.js +56 -0
- package/dist/esm/models/CreateApiKeyRequest.d.ts +47 -0
- package/dist/esm/models/CreateApiKeyRequest.js +49 -0
- package/dist/esm/models/CreateApiKeyResponse.d.ts +71 -0
- package/dist/esm/models/CreateApiKeyResponse.js +60 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/ApiKeyResponse.d.ts +65 -0
- package/dist/models/ApiKeyResponse.js +64 -0
- package/dist/models/CreateApiKeyRequest.d.ts +47 -0
- package/dist/models/CreateApiKeyRequest.js +57 -0
- package/dist/models/CreateApiKeyResponse.d.ts +71 -0
- package/dist/models/CreateApiKeyResponse.js +68 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/ApiKeyResponse.md +41 -0
- package/docs/ApiKeysApi.md +293 -0
- package/docs/AuthApi.md +8 -2
- package/docs/ChunkLineagesApi.md +12 -3
- package/docs/ChunksApi.md +32 -8
- package/docs/CreateApiKeyRequest.md +35 -0
- package/docs/CreateApiKeyResponse.md +43 -0
- package/docs/DocumentVersionsApi.md +28 -7
- package/docs/DocumentsApi.md +28 -7
- package/docs/FoldersApi.md +28 -7
- package/docs/InvitesApi.md +16 -4
- package/docs/PathPartsApi.md +24 -6
- package/docs/SectionsApi.md +16 -4
- package/docs/TagsApi.md +20 -5
- package/docs/TenantsApi.md +32 -8
- package/docs/ThreadMessagesApi.md +12 -3
- package/docs/ThreadsApi.md +28 -7
- package/docs/UserPermissionsApi.md +16 -4
- package/docs/UsersApi.md +8 -2
- package/docs/WorkflowsApi.md +12 -3
- package/package.json +1 -1
- package/src/apis/ApiKeysApi.ts +350 -0
- package/src/apis/AuthApi.ts +14 -0
- package/src/apis/ChunkLineagesApi.ts +21 -0
- package/src/apis/ChunksApi.ts +56 -0
- package/src/apis/DocumentVersionsApi.ts +49 -0
- package/src/apis/DocumentsApi.ts +49 -0
- package/src/apis/FoldersApi.ts +49 -0
- package/src/apis/InvitesApi.ts +28 -0
- package/src/apis/PathPartsApi.ts +42 -0
- package/src/apis/SectionsApi.ts +28 -0
- package/src/apis/TagsApi.ts +35 -0
- package/src/apis/TenantsApi.ts +56 -0
- package/src/apis/ThreadMessagesApi.ts +21 -0
- package/src/apis/ThreadsApi.ts +49 -0
- package/src/apis/UserPermissionsApi.ts +28 -0
- package/src/apis/UsersApi.ts +14 -0
- package/src/apis/WorkflowsApi.ts +21 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ApiKeyResponse.ts +110 -0
- package/src/models/CreateApiKeyRequest.ts +87 -0
- package/src/models/CreateApiKeyResponse.ts +119 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiKeyResponse
|
|
3
|
+
|
|
4
|
+
API key metadata (without the secret key).
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`keySuffix` | string
|
|
13
|
+
`createdAt` | Date
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { ApiKeyResponse } from '@knowledge-stack/ksapi'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"keySuffix": null,
|
|
25
|
+
"createdAt": null,
|
|
26
|
+
} satisfies ApiKeyResponse
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiKeyResponse
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# ApiKeysApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**createApiKey**](ApiKeysApi.md#createapikeyoperation) | **POST** /v1/api-keys | Create Api Key Handler |
|
|
8
|
+
| [**deleteApiKey**](ApiKeysApi.md#deleteapikey) | **DELETE** /v1/api-keys/{api_key_id} | Delete Api Key Handler |
|
|
9
|
+
| [**getApiKey**](ApiKeysApi.md#getapikey) | **GET** /v1/api-keys/{api_key_id} | Get Api Key Handler |
|
|
10
|
+
| [**listApiKeys**](ApiKeysApi.md#listapikeys) | **GET** /v1/api-keys | List Api Keys Handler |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## createApiKey
|
|
15
|
+
|
|
16
|
+
> CreateApiKeyResponse createApiKey(createApiKeyRequest, ksUat)
|
|
17
|
+
|
|
18
|
+
Create Api Key Handler
|
|
19
|
+
|
|
20
|
+
Create a new API key. The full key is returned only once.
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
Configuration,
|
|
27
|
+
ApiKeysApi,
|
|
28
|
+
} from '@knowledge-stack/ksapi';
|
|
29
|
+
import type { CreateApiKeyOperationRequest } from '@knowledge-stack/ksapi';
|
|
30
|
+
|
|
31
|
+
async function example() {
|
|
32
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
33
|
+
const api = new ApiKeysApi();
|
|
34
|
+
|
|
35
|
+
const body = {
|
|
36
|
+
// CreateApiKeyRequest
|
|
37
|
+
createApiKeyRequest: ...,
|
|
38
|
+
// string (optional)
|
|
39
|
+
ksUat: ksUat_example,
|
|
40
|
+
} satisfies CreateApiKeyOperationRequest;
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
const data = await api.createApiKey(body);
|
|
44
|
+
console.log(data);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.error(error);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Run the test
|
|
51
|
+
example().catch(console.error);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Parameters
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
| Name | Type | Description | Notes |
|
|
58
|
+
|------------- | ------------- | ------------- | -------------|
|
|
59
|
+
| **createApiKeyRequest** | [CreateApiKeyRequest](CreateApiKeyRequest.md) | | |
|
|
60
|
+
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
61
|
+
|
|
62
|
+
### Return type
|
|
63
|
+
|
|
64
|
+
[**CreateApiKeyResponse**](CreateApiKeyResponse.md)
|
|
65
|
+
|
|
66
|
+
### Authorization
|
|
67
|
+
|
|
68
|
+
No authorization required
|
|
69
|
+
|
|
70
|
+
### HTTP request headers
|
|
71
|
+
|
|
72
|
+
- **Content-Type**: `application/json`
|
|
73
|
+
- **Accept**: `application/json`
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### HTTP response details
|
|
77
|
+
| Status code | Description | Response headers |
|
|
78
|
+
|-------------|-------------|------------------|
|
|
79
|
+
| **201** | Successful Response | - |
|
|
80
|
+
| **422** | Validation Error | - |
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## deleteApiKey
|
|
86
|
+
|
|
87
|
+
> deleteApiKey(apiKeyId, ksUat)
|
|
88
|
+
|
|
89
|
+
Delete Api Key Handler
|
|
90
|
+
|
|
91
|
+
Delete an API key.
|
|
92
|
+
|
|
93
|
+
### Example
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import {
|
|
97
|
+
Configuration,
|
|
98
|
+
ApiKeysApi,
|
|
99
|
+
} from '@knowledge-stack/ksapi';
|
|
100
|
+
import type { DeleteApiKeyRequest } from '@knowledge-stack/ksapi';
|
|
101
|
+
|
|
102
|
+
async function example() {
|
|
103
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
104
|
+
const api = new ApiKeysApi();
|
|
105
|
+
|
|
106
|
+
const body = {
|
|
107
|
+
// string
|
|
108
|
+
apiKeyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
109
|
+
// string (optional)
|
|
110
|
+
ksUat: ksUat_example,
|
|
111
|
+
} satisfies DeleteApiKeyRequest;
|
|
112
|
+
|
|
113
|
+
try {
|
|
114
|
+
const data = await api.deleteApiKey(body);
|
|
115
|
+
console.log(data);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(error);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Run the test
|
|
122
|
+
example().catch(console.error);
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
| Name | Type | Description | Notes |
|
|
129
|
+
|------------- | ------------- | ------------- | -------------|
|
|
130
|
+
| **apiKeyId** | `string` | | [Defaults to `undefined`] |
|
|
131
|
+
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
132
|
+
|
|
133
|
+
### Return type
|
|
134
|
+
|
|
135
|
+
`void` (Empty response body)
|
|
136
|
+
|
|
137
|
+
### Authorization
|
|
138
|
+
|
|
139
|
+
No authorization required
|
|
140
|
+
|
|
141
|
+
### HTTP request headers
|
|
142
|
+
|
|
143
|
+
- **Content-Type**: Not defined
|
|
144
|
+
- **Accept**: `application/json`
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### HTTP response details
|
|
148
|
+
| Status code | Description | Response headers |
|
|
149
|
+
|-------------|-------------|------------------|
|
|
150
|
+
| **204** | Successful Response | - |
|
|
151
|
+
| **422** | Validation Error | - |
|
|
152
|
+
|
|
153
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
## getApiKey
|
|
157
|
+
|
|
158
|
+
> ApiKeyResponse getApiKey(apiKeyId, ksUat)
|
|
159
|
+
|
|
160
|
+
Get Api Key Handler
|
|
161
|
+
|
|
162
|
+
Get a single API key by ID.
|
|
163
|
+
|
|
164
|
+
### Example
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
import {
|
|
168
|
+
Configuration,
|
|
169
|
+
ApiKeysApi,
|
|
170
|
+
} from '@knowledge-stack/ksapi';
|
|
171
|
+
import type { GetApiKeyRequest } from '@knowledge-stack/ksapi';
|
|
172
|
+
|
|
173
|
+
async function example() {
|
|
174
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
175
|
+
const api = new ApiKeysApi();
|
|
176
|
+
|
|
177
|
+
const body = {
|
|
178
|
+
// string
|
|
179
|
+
apiKeyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
180
|
+
// string (optional)
|
|
181
|
+
ksUat: ksUat_example,
|
|
182
|
+
} satisfies GetApiKeyRequest;
|
|
183
|
+
|
|
184
|
+
try {
|
|
185
|
+
const data = await api.getApiKey(body);
|
|
186
|
+
console.log(data);
|
|
187
|
+
} catch (error) {
|
|
188
|
+
console.error(error);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Run the test
|
|
193
|
+
example().catch(console.error);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
| Name | Type | Description | Notes |
|
|
200
|
+
|------------- | ------------- | ------------- | -------------|
|
|
201
|
+
| **apiKeyId** | `string` | | [Defaults to `undefined`] |
|
|
202
|
+
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
203
|
+
|
|
204
|
+
### Return type
|
|
205
|
+
|
|
206
|
+
[**ApiKeyResponse**](ApiKeyResponse.md)
|
|
207
|
+
|
|
208
|
+
### Authorization
|
|
209
|
+
|
|
210
|
+
No authorization required
|
|
211
|
+
|
|
212
|
+
### HTTP request headers
|
|
213
|
+
|
|
214
|
+
- **Content-Type**: Not defined
|
|
215
|
+
- **Accept**: `application/json`
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### HTTP response details
|
|
219
|
+
| Status code | Description | Response headers |
|
|
220
|
+
|-------------|-------------|------------------|
|
|
221
|
+
| **200** | Successful Response | - |
|
|
222
|
+
| **422** | Validation Error | - |
|
|
223
|
+
|
|
224
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## listApiKeys
|
|
228
|
+
|
|
229
|
+
> Array<ApiKeyResponse> listApiKeys(ksUat)
|
|
230
|
+
|
|
231
|
+
List Api Keys Handler
|
|
232
|
+
|
|
233
|
+
List all API keys for the current user.
|
|
234
|
+
|
|
235
|
+
### Example
|
|
236
|
+
|
|
237
|
+
```ts
|
|
238
|
+
import {
|
|
239
|
+
Configuration,
|
|
240
|
+
ApiKeysApi,
|
|
241
|
+
} from '@knowledge-stack/ksapi';
|
|
242
|
+
import type { ListApiKeysRequest } from '@knowledge-stack/ksapi';
|
|
243
|
+
|
|
244
|
+
async function example() {
|
|
245
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
246
|
+
const api = new ApiKeysApi();
|
|
247
|
+
|
|
248
|
+
const body = {
|
|
249
|
+
// string (optional)
|
|
250
|
+
ksUat: ksUat_example,
|
|
251
|
+
} satisfies ListApiKeysRequest;
|
|
252
|
+
|
|
253
|
+
try {
|
|
254
|
+
const data = await api.listApiKeys(body);
|
|
255
|
+
console.log(data);
|
|
256
|
+
} catch (error) {
|
|
257
|
+
console.error(error);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// Run the test
|
|
262
|
+
example().catch(console.error);
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Parameters
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
| Name | Type | Description | Notes |
|
|
269
|
+
|------------- | ------------- | ------------- | -------------|
|
|
270
|
+
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
271
|
+
|
|
272
|
+
### Return type
|
|
273
|
+
|
|
274
|
+
[**Array<ApiKeyResponse>**](ApiKeyResponse.md)
|
|
275
|
+
|
|
276
|
+
### Authorization
|
|
277
|
+
|
|
278
|
+
No authorization required
|
|
279
|
+
|
|
280
|
+
### HTTP request headers
|
|
281
|
+
|
|
282
|
+
- **Content-Type**: Not defined
|
|
283
|
+
- **Accept**: `application/json`
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
### HTTP response details
|
|
287
|
+
| Status code | Description | Response headers |
|
|
288
|
+
|-------------|-------------|------------------|
|
|
289
|
+
| **200** | Successful Response | - |
|
|
290
|
+
| **422** | Validation Error | - |
|
|
291
|
+
|
|
292
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
293
|
+
|
package/docs/AuthApi.md
CHANGED
|
@@ -375,7 +375,7 @@ No authorization required
|
|
|
375
375
|
|
|
376
376
|
## refreshUat
|
|
377
377
|
|
|
378
|
-
> UserResponse refreshUat(tenantId, ksUat)
|
|
378
|
+
> UserResponse refreshUat(tenantId, authorization, ksUat)
|
|
379
379
|
|
|
380
380
|
Refresh Uat Handler
|
|
381
381
|
|
|
@@ -398,6 +398,8 @@ async function example() {
|
|
|
398
398
|
// string | Target tenant ID to switch to. None=refresh current tenant (optional)
|
|
399
399
|
tenantId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
400
400
|
// string (optional)
|
|
401
|
+
authorization: authorization_example,
|
|
402
|
+
// string (optional)
|
|
401
403
|
ksUat: ksUat_example,
|
|
402
404
|
} satisfies RefreshUatRequest;
|
|
403
405
|
|
|
@@ -419,6 +421,7 @@ example().catch(console.error);
|
|
|
419
421
|
| Name | Type | Description | Notes |
|
|
420
422
|
|------------- | ------------- | ------------- | -------------|
|
|
421
423
|
| **tenantId** | `string` | Target tenant ID to switch to. None=refresh current tenant | [Optional] [Defaults to `undefined`] |
|
|
424
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
422
425
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
423
426
|
|
|
424
427
|
### Return type
|
|
@@ -446,7 +449,7 @@ No authorization required
|
|
|
446
449
|
|
|
447
450
|
## resetPassword
|
|
448
451
|
|
|
449
|
-
> UserResponse resetPassword(passwordResetRequest, ksUat)
|
|
452
|
+
> UserResponse resetPassword(passwordResetRequest, authorization, ksUat)
|
|
450
453
|
|
|
451
454
|
Reset Password Handler
|
|
452
455
|
|
|
@@ -469,6 +472,8 @@ async function example() {
|
|
|
469
472
|
// PasswordResetRequest
|
|
470
473
|
passwordResetRequest: ...,
|
|
471
474
|
// string (optional)
|
|
475
|
+
authorization: authorization_example,
|
|
476
|
+
// string (optional)
|
|
472
477
|
ksUat: ksUat_example,
|
|
473
478
|
} satisfies ResetPasswordRequest;
|
|
474
479
|
|
|
@@ -490,6 +495,7 @@ example().catch(console.error);
|
|
|
490
495
|
| Name | Type | Description | Notes |
|
|
491
496
|
|------------- | ------------- | ------------- | -------------|
|
|
492
497
|
| **passwordResetRequest** | [PasswordResetRequest](PasswordResetRequest.md) | | |
|
|
498
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
493
499
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
494
500
|
|
|
495
501
|
### Return type
|
package/docs/ChunkLineagesApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
12
12
|
|
|
13
13
|
## createChunkLineage
|
|
14
14
|
|
|
15
|
-
> Array<ChunkLineageResponse> createChunkLineage(createChunkLineageRequest, ksUat)
|
|
15
|
+
> Array<ChunkLineageResponse> createChunkLineage(createChunkLineageRequest, authorization, ksUat)
|
|
16
16
|
|
|
17
17
|
Create Chunk Lineage Handler
|
|
18
18
|
|
|
@@ -35,6 +35,8 @@ async function example() {
|
|
|
35
35
|
// CreateChunkLineageRequest
|
|
36
36
|
createChunkLineageRequest: ...,
|
|
37
37
|
// string (optional)
|
|
38
|
+
authorization: authorization_example,
|
|
39
|
+
// string (optional)
|
|
38
40
|
ksUat: ksUat_example,
|
|
39
41
|
} satisfies CreateChunkLineageOperationRequest;
|
|
40
42
|
|
|
@@ -56,6 +58,7 @@ example().catch(console.error);
|
|
|
56
58
|
| Name | Type | Description | Notes |
|
|
57
59
|
|------------- | ------------- | ------------- | -------------|
|
|
58
60
|
| **createChunkLineageRequest** | [CreateChunkLineageRequest](CreateChunkLineageRequest.md) | | |
|
|
61
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
59
62
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
60
63
|
|
|
61
64
|
### Return type
|
|
@@ -83,7 +86,7 @@ No authorization required
|
|
|
83
86
|
|
|
84
87
|
## deleteChunkLineage
|
|
85
88
|
|
|
86
|
-
> deleteChunkLineage(parentChunkId, chunkId, ksUat)
|
|
89
|
+
> deleteChunkLineage(parentChunkId, chunkId, authorization, ksUat)
|
|
87
90
|
|
|
88
91
|
Delete Chunk Lineage Handler
|
|
89
92
|
|
|
@@ -108,6 +111,8 @@ async function example() {
|
|
|
108
111
|
// string | Child chunk ID
|
|
109
112
|
chunkId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
110
113
|
// string (optional)
|
|
114
|
+
authorization: authorization_example,
|
|
115
|
+
// string (optional)
|
|
111
116
|
ksUat: ksUat_example,
|
|
112
117
|
} satisfies DeleteChunkLineageRequest;
|
|
113
118
|
|
|
@@ -130,6 +135,7 @@ example().catch(console.error);
|
|
|
130
135
|
|------------- | ------------- | ------------- | -------------|
|
|
131
136
|
| **parentChunkId** | `string` | Parent chunk ID | [Defaults to `undefined`] |
|
|
132
137
|
| **chunkId** | `string` | Child chunk ID | [Defaults to `undefined`] |
|
|
138
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
133
139
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
134
140
|
|
|
135
141
|
### Return type
|
|
@@ -157,7 +163,7 @@ No authorization required
|
|
|
157
163
|
|
|
158
164
|
## getChunkLineage
|
|
159
165
|
|
|
160
|
-
> LineageGraphResponse getChunkLineage(chunkId, maxDepth, ksUat)
|
|
166
|
+
> LineageGraphResponse getChunkLineage(chunkId, maxDepth, authorization, ksUat)
|
|
161
167
|
|
|
162
168
|
Get Chunk Lineage Handler
|
|
163
169
|
|
|
@@ -182,6 +188,8 @@ async function example() {
|
|
|
182
188
|
// number (optional)
|
|
183
189
|
maxDepth: 56,
|
|
184
190
|
// string (optional)
|
|
191
|
+
authorization: authorization_example,
|
|
192
|
+
// string (optional)
|
|
185
193
|
ksUat: ksUat_example,
|
|
186
194
|
} satisfies GetChunkLineageRequest;
|
|
187
195
|
|
|
@@ -204,6 +212,7 @@ example().catch(console.error);
|
|
|
204
212
|
|------------- | ------------- | ------------- | -------------|
|
|
205
213
|
| **chunkId** | `string` | | [Defaults to `undefined`] |
|
|
206
214
|
| **maxDepth** | `number` | | [Optional] [Defaults to `3`] |
|
|
215
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
207
216
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
208
217
|
|
|
209
218
|
### Return type
|
package/docs/ChunksApi.md
CHANGED
|
@@ -17,7 +17,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
17
17
|
|
|
18
18
|
## createChunk
|
|
19
19
|
|
|
20
|
-
> ChunkResponse createChunk(createChunkRequest, ksUat)
|
|
20
|
+
> ChunkResponse createChunk(createChunkRequest, authorization, ksUat)
|
|
21
21
|
|
|
22
22
|
Create Chunk Handler
|
|
23
23
|
|
|
@@ -40,6 +40,8 @@ async function example() {
|
|
|
40
40
|
// CreateChunkRequest
|
|
41
41
|
createChunkRequest: ...,
|
|
42
42
|
// string (optional)
|
|
43
|
+
authorization: authorization_example,
|
|
44
|
+
// string (optional)
|
|
43
45
|
ksUat: ksUat_example,
|
|
44
46
|
} satisfies CreateChunkOperationRequest;
|
|
45
47
|
|
|
@@ -61,6 +63,7 @@ example().catch(console.error);
|
|
|
61
63
|
| Name | Type | Description | Notes |
|
|
62
64
|
|------------- | ------------- | ------------- | -------------|
|
|
63
65
|
| **createChunkRequest** | [CreateChunkRequest](CreateChunkRequest.md) | | |
|
|
66
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
64
67
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
65
68
|
|
|
66
69
|
### Return type
|
|
@@ -88,7 +91,7 @@ No authorization required
|
|
|
88
91
|
|
|
89
92
|
## deleteChunk
|
|
90
93
|
|
|
91
|
-
> deleteChunk(chunkId, ksUat)
|
|
94
|
+
> deleteChunk(chunkId, authorization, ksUat)
|
|
92
95
|
|
|
93
96
|
Delete Chunk Handler
|
|
94
97
|
|
|
@@ -111,6 +114,8 @@ async function example() {
|
|
|
111
114
|
// string
|
|
112
115
|
chunkId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
113
116
|
// string (optional)
|
|
117
|
+
authorization: authorization_example,
|
|
118
|
+
// string (optional)
|
|
114
119
|
ksUat: ksUat_example,
|
|
115
120
|
} satisfies DeleteChunkRequest;
|
|
116
121
|
|
|
@@ -132,6 +137,7 @@ example().catch(console.error);
|
|
|
132
137
|
| Name | Type | Description | Notes |
|
|
133
138
|
|------------- | ------------- | ------------- | -------------|
|
|
134
139
|
| **chunkId** | `string` | | [Defaults to `undefined`] |
|
|
140
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
135
141
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
136
142
|
|
|
137
143
|
### Return type
|
|
@@ -159,7 +165,7 @@ No authorization required
|
|
|
159
165
|
|
|
160
166
|
## getChunk
|
|
161
167
|
|
|
162
|
-
> ChunkResponse getChunk(chunkId, withDocument, ksUat)
|
|
168
|
+
> ChunkResponse getChunk(chunkId, withDocument, authorization, ksUat)
|
|
163
169
|
|
|
164
170
|
Get Chunk Handler
|
|
165
171
|
|
|
@@ -184,6 +190,8 @@ async function example() {
|
|
|
184
190
|
// boolean | Include ancestor document_id and document_version_id (default: false) (optional)
|
|
185
191
|
withDocument: true,
|
|
186
192
|
// string (optional)
|
|
193
|
+
authorization: authorization_example,
|
|
194
|
+
// string (optional)
|
|
187
195
|
ksUat: ksUat_example,
|
|
188
196
|
} satisfies GetChunkRequest;
|
|
189
197
|
|
|
@@ -206,6 +214,7 @@ example().catch(console.error);
|
|
|
206
214
|
|------------- | ------------- | ------------- | -------------|
|
|
207
215
|
| **chunkId** | `string` | | [Defaults to `undefined`] |
|
|
208
216
|
| **withDocument** | `boolean` | Include ancestor document_id and document_version_id (default: false) | [Optional] [Defaults to `false`] |
|
|
217
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
209
218
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
210
219
|
|
|
211
220
|
### Return type
|
|
@@ -233,7 +242,7 @@ No authorization required
|
|
|
233
242
|
|
|
234
243
|
## getChunksBulk
|
|
235
244
|
|
|
236
|
-
> Array<ChunkBulkResponse> getChunksBulk(chunkIds, ksUat)
|
|
245
|
+
> Array<ChunkBulkResponse> getChunksBulk(chunkIds, authorization, ksUat)
|
|
237
246
|
|
|
238
247
|
Get Chunks Bulk Handler
|
|
239
248
|
|
|
@@ -256,6 +265,8 @@ async function example() {
|
|
|
256
265
|
// Array<string> | Chunk IDs to resolve (max 200) (optional)
|
|
257
266
|
chunkIds: ...,
|
|
258
267
|
// string (optional)
|
|
268
|
+
authorization: authorization_example,
|
|
269
|
+
// string (optional)
|
|
259
270
|
ksUat: ksUat_example,
|
|
260
271
|
} satisfies GetChunksBulkRequest;
|
|
261
272
|
|
|
@@ -277,6 +288,7 @@ example().catch(console.error);
|
|
|
277
288
|
| Name | Type | Description | Notes |
|
|
278
289
|
|------------- | ------------- | ------------- | -------------|
|
|
279
290
|
| **chunkIds** | `Array<string>` | Chunk IDs to resolve (max 200) | [Optional] |
|
|
291
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
280
292
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
281
293
|
|
|
282
294
|
### Return type
|
|
@@ -304,7 +316,7 @@ No authorization required
|
|
|
304
316
|
|
|
305
317
|
## getVersionChunkIds
|
|
306
318
|
|
|
307
|
-
> VersionChunkIdsResponse getVersionChunkIds(documentVersionId, ksUat)
|
|
319
|
+
> VersionChunkIdsResponse getVersionChunkIds(documentVersionId, authorization, ksUat)
|
|
308
320
|
|
|
309
321
|
Get Version Chunk Ids Handler
|
|
310
322
|
|
|
@@ -327,6 +339,8 @@ async function example() {
|
|
|
327
339
|
// string | Document version ID
|
|
328
340
|
documentVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
329
341
|
// string (optional)
|
|
342
|
+
authorization: authorization_example,
|
|
343
|
+
// string (optional)
|
|
330
344
|
ksUat: ksUat_example,
|
|
331
345
|
} satisfies GetVersionChunkIdsRequest;
|
|
332
346
|
|
|
@@ -348,6 +362,7 @@ example().catch(console.error);
|
|
|
348
362
|
| Name | Type | Description | Notes |
|
|
349
363
|
|------------- | ------------- | ------------- | -------------|
|
|
350
364
|
| **documentVersionId** | `string` | Document version ID | [Defaults to `undefined`] |
|
|
365
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
351
366
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
352
367
|
|
|
353
368
|
### Return type
|
|
@@ -375,7 +390,7 @@ No authorization required
|
|
|
375
390
|
|
|
376
391
|
## searchChunks
|
|
377
392
|
|
|
378
|
-
> Array<ScoredChunkResponse> searchChunks(chunkSearchRequest, ksUat)
|
|
393
|
+
> Array<ScoredChunkResponse> searchChunks(chunkSearchRequest, authorization, ksUat)
|
|
379
394
|
|
|
380
395
|
Search Chunks Handler
|
|
381
396
|
|
|
@@ -398,6 +413,8 @@ async function example() {
|
|
|
398
413
|
// ChunkSearchRequest
|
|
399
414
|
chunkSearchRequest: ...,
|
|
400
415
|
// string (optional)
|
|
416
|
+
authorization: authorization_example,
|
|
417
|
+
// string (optional)
|
|
401
418
|
ksUat: ksUat_example,
|
|
402
419
|
} satisfies SearchChunksRequest;
|
|
403
420
|
|
|
@@ -419,6 +436,7 @@ example().catch(console.error);
|
|
|
419
436
|
| Name | Type | Description | Notes |
|
|
420
437
|
|------------- | ------------- | ------------- | -------------|
|
|
421
438
|
| **chunkSearchRequest** | [ChunkSearchRequest](ChunkSearchRequest.md) | | |
|
|
439
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
422
440
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
423
441
|
|
|
424
442
|
### Return type
|
|
@@ -446,7 +464,7 @@ No authorization required
|
|
|
446
464
|
|
|
447
465
|
## updateChunkContent
|
|
448
466
|
|
|
449
|
-
> ChunkResponse updateChunkContent(chunkId, updateChunkContentRequest, ksUat)
|
|
467
|
+
> ChunkResponse updateChunkContent(chunkId, updateChunkContentRequest, authorization, ksUat)
|
|
450
468
|
|
|
451
469
|
Update Chunk Content Handler
|
|
452
470
|
|
|
@@ -471,6 +489,8 @@ async function example() {
|
|
|
471
489
|
// UpdateChunkContentRequest
|
|
472
490
|
updateChunkContentRequest: ...,
|
|
473
491
|
// string (optional)
|
|
492
|
+
authorization: authorization_example,
|
|
493
|
+
// string (optional)
|
|
474
494
|
ksUat: ksUat_example,
|
|
475
495
|
} satisfies UpdateChunkContentOperationRequest;
|
|
476
496
|
|
|
@@ -493,6 +513,7 @@ example().catch(console.error);
|
|
|
493
513
|
|------------- | ------------- | ------------- | -------------|
|
|
494
514
|
| **chunkId** | `string` | | [Defaults to `undefined`] |
|
|
495
515
|
| **updateChunkContentRequest** | [UpdateChunkContentRequest](UpdateChunkContentRequest.md) | | |
|
|
516
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
496
517
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
497
518
|
|
|
498
519
|
### Return type
|
|
@@ -520,7 +541,7 @@ No authorization required
|
|
|
520
541
|
|
|
521
542
|
## updateChunkMetadata
|
|
522
543
|
|
|
523
|
-
> ChunkResponse updateChunkMetadata(chunkId, updateChunkMetadataRequest, ksUat)
|
|
544
|
+
> ChunkResponse updateChunkMetadata(chunkId, updateChunkMetadataRequest, authorization, ksUat)
|
|
524
545
|
|
|
525
546
|
Update Chunk Metadata Handler
|
|
526
547
|
|
|
@@ -545,6 +566,8 @@ async function example() {
|
|
|
545
566
|
// UpdateChunkMetadataRequest
|
|
546
567
|
updateChunkMetadataRequest: ...,
|
|
547
568
|
// string (optional)
|
|
569
|
+
authorization: authorization_example,
|
|
570
|
+
// string (optional)
|
|
548
571
|
ksUat: ksUat_example,
|
|
549
572
|
} satisfies UpdateChunkMetadataOperationRequest;
|
|
550
573
|
|
|
@@ -567,6 +590,7 @@ example().catch(console.error);
|
|
|
567
590
|
|------------- | ------------- | ------------- | -------------|
|
|
568
591
|
| **chunkId** | `string` | | [Defaults to `undefined`] |
|
|
569
592
|
| **updateChunkMetadataRequest** | [UpdateChunkMetadataRequest](UpdateChunkMetadataRequest.md) | | |
|
|
593
|
+
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
570
594
|
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
571
595
|
|
|
572
596
|
### Return type
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# CreateApiKeyRequest
|
|
3
|
+
|
|
4
|
+
Request to create a new API key.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { CreateApiKeyRequest } from '@knowledge-stack/ksapi'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"name": null,
|
|
20
|
+
} satisfies CreateApiKeyRequest
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as CreateApiKeyRequest
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|