@knowledge-stack/ksapi 1.56.0 → 1.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +7 -2
  3. package/dist/apis/DocumentVersionsApi.d.ts +8 -5
  4. package/dist/apis/DocumentVersionsApi.js +5 -2
  5. package/dist/apis/ThreadMessagesApi.d.ts +6 -6
  6. package/dist/apis/ThreadMessagesApi.js +2 -2
  7. package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -5
  8. package/dist/esm/apis/DocumentVersionsApi.js +5 -2
  9. package/dist/esm/apis/ThreadMessagesApi.d.ts +6 -6
  10. package/dist/esm/apis/ThreadMessagesApi.js +2 -2
  11. package/dist/esm/models/CreateThreadMessageRequest.d.ts +6 -0
  12. package/dist/esm/models/CreateThreadMessageRequest.js +2 -0
  13. package/dist/esm/models/DocumentVersionContentTypeFilter.d.ts +25 -0
  14. package/dist/esm/models/DocumentVersionContentTypeFilter.js +43 -0
  15. package/dist/esm/models/EnrichedThreadMessageContent.d.ts +13 -0
  16. package/dist/esm/models/EnrichedThreadMessageContent.js +5 -0
  17. package/dist/esm/models/NonFilesystemReferenceType.d.ts +27 -0
  18. package/dist/esm/models/NonFilesystemReferenceType.js +45 -0
  19. package/dist/esm/models/ReferenceType.d.ts +34 -0
  20. package/dist/esm/models/ReferenceType.js +52 -0
  21. package/dist/esm/models/ResolvedReferenceInput.d.ts +70 -0
  22. package/dist/esm/models/ResolvedReferenceInput.js +55 -0
  23. package/dist/esm/models/ResolvedReferenceOutput.d.ts +69 -0
  24. package/dist/esm/models/ResolvedReferenceOutput.js +54 -0
  25. package/dist/esm/models/StepInput.d.ts +6 -0
  26. package/dist/esm/models/StepInput.js +4 -0
  27. package/dist/esm/models/StepKind.d.ts +1 -0
  28. package/dist/esm/models/StepKind.js +1 -0
  29. package/dist/esm/models/StepOutput.d.ts +6 -0
  30. package/dist/esm/models/StepOutput.js +4 -0
  31. package/dist/esm/models/ThreadMessageContent.d.ts +13 -0
  32. package/dist/esm/models/ThreadMessageContent.js +5 -0
  33. package/dist/esm/models/index.d.ts +5 -0
  34. package/dist/esm/models/index.js +5 -0
  35. package/dist/models/CreateThreadMessageRequest.d.ts +6 -0
  36. package/dist/models/CreateThreadMessageRequest.js +2 -0
  37. package/dist/models/DocumentVersionContentTypeFilter.d.ts +25 -0
  38. package/dist/models/DocumentVersionContentTypeFilter.js +51 -0
  39. package/dist/models/EnrichedThreadMessageContent.d.ts +13 -0
  40. package/dist/models/EnrichedThreadMessageContent.js +5 -0
  41. package/dist/models/NonFilesystemReferenceType.d.ts +27 -0
  42. package/dist/models/NonFilesystemReferenceType.js +53 -0
  43. package/dist/models/ReferenceType.d.ts +34 -0
  44. package/dist/models/ReferenceType.js +60 -0
  45. package/dist/models/ResolvedReferenceInput.d.ts +70 -0
  46. package/dist/models/ResolvedReferenceInput.js +63 -0
  47. package/dist/models/ResolvedReferenceOutput.d.ts +69 -0
  48. package/dist/models/ResolvedReferenceOutput.js +62 -0
  49. package/dist/models/StepInput.d.ts +6 -0
  50. package/dist/models/StepInput.js +4 -0
  51. package/dist/models/StepKind.d.ts +1 -0
  52. package/dist/models/StepKind.js +1 -0
  53. package/dist/models/StepOutput.d.ts +6 -0
  54. package/dist/models/StepOutput.js +4 -0
  55. package/dist/models/ThreadMessageContent.d.ts +13 -0
  56. package/dist/models/ThreadMessageContent.js +5 -0
  57. package/dist/models/index.d.ts +5 -0
  58. package/dist/models/index.js +5 -0
  59. package/docs/CreateThreadMessageRequest.md +2 -0
  60. package/docs/DocumentVersionContentTypeFilter.md +33 -0
  61. package/docs/DocumentVersionsApi.md +5 -2
  62. package/docs/EnrichedThreadMessageContent.md +4 -0
  63. package/docs/NonFilesystemReferenceType.md +33 -0
  64. package/docs/ReferenceType.md +32 -0
  65. package/docs/ResolvedReferenceInput.md +41 -0
  66. package/docs/ResolvedReferenceOutput.md +41 -0
  67. package/docs/StepInput.md +2 -0
  68. package/docs/StepOutput.md +2 -0
  69. package/docs/ThreadMessageContent.md +4 -0
  70. package/docs/ThreadMessagesApi.md +3 -3
  71. package/package.json +1 -1
  72. package/src/apis/DocumentVersionsApi.ts +14 -4
  73. package/src/apis/ThreadMessagesApi.ts +6 -6
  74. package/src/models/CreateThreadMessageRequest.ts +8 -0
  75. package/src/models/DocumentVersionContentTypeFilter.ts +53 -0
  76. package/src/models/EnrichedThreadMessageContent.ts +23 -0
  77. package/src/models/NonFilesystemReferenceType.ts +55 -0
  78. package/src/models/ReferenceType.ts +62 -0
  79. package/src/models/ResolvedReferenceInput.ts +123 -0
  80. package/src/models/ResolvedReferenceOutput.ts +113 -0
  81. package/src/models/StepInput.ts +9 -0
  82. package/src/models/StepKind.ts +1 -0
  83. package/src/models/StepOutput.ts +9 -0
  84. package/src/models/ThreadMessageContent.ts +23 -0
  85. package/src/models/index.ts +5 -0
@@ -42,6 +42,7 @@ docs/DocumentResponse.md
42
42
  docs/DocumentType.md
43
43
  docs/DocumentVersionAction.md
44
44
  docs/DocumentVersionActionResponse.md
45
+ docs/DocumentVersionContentTypeFilter.md
45
46
  docs/DocumentVersionMetadata.md
46
47
  docs/DocumentVersionMetadataUpdate.md
47
48
  docs/DocumentVersionResponse.md
@@ -74,6 +75,7 @@ docs/LineageGraphResponse.md
74
75
  docs/LineageNodeResponse.md
75
76
  docs/LocationInner.md
76
77
  docs/MessageRole.md
78
+ docs/NonFilesystemReferenceType.md
77
79
  docs/OAuth2Config.md
78
80
  docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md
79
81
  docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md
@@ -102,6 +104,9 @@ docs/PipelineState.md
102
104
  docs/PipelineStatus.md
103
105
  docs/Polygon.md
104
106
  docs/PolygonReference.md
107
+ docs/ReferenceType.md
108
+ docs/ResolvedReferenceInput.md
109
+ docs/ResolvedReferenceOutput.md
105
110
  docs/RootResponse.md
106
111
  docs/SSOInitiateResponse.md
107
112
  docs/ScoredChunkResponse.md
@@ -214,6 +219,7 @@ src/models/DocumentResponse.ts
214
219
  src/models/DocumentType.ts
215
220
  src/models/DocumentVersionAction.ts
216
221
  src/models/DocumentVersionActionResponse.ts
222
+ src/models/DocumentVersionContentTypeFilter.ts
217
223
  src/models/DocumentVersionMetadata.ts
218
224
  src/models/DocumentVersionMetadataUpdate.ts
219
225
  src/models/DocumentVersionResponse.ts
@@ -241,6 +247,7 @@ src/models/LineageGraphResponse.ts
241
247
  src/models/LineageNodeResponse.ts
242
248
  src/models/LocationInner.ts
243
249
  src/models/MessageRole.ts
250
+ src/models/NonFilesystemReferenceType.ts
244
251
  src/models/OAuth2Config.ts
245
252
  src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts
246
253
  src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts
@@ -268,6 +275,9 @@ src/models/PipelineState.ts
268
275
  src/models/PipelineStatus.ts
269
276
  src/models/Polygon.ts
270
277
  src/models/PolygonReference.ts
278
+ src/models/ReferenceType.ts
279
+ src/models/ResolvedReferenceInput.ts
280
+ src/models/ResolvedReferenceOutput.ts
271
281
  src/models/RootResponse.ts
272
282
  src/models/SSOInitiateResponse.ts
273
283
  src/models/ScoredChunkResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.56.0
1
+ # @knowledge-stack/ksapi@1.57.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -189,6 +189,7 @@ All URIs are relative to *http://localhost:8000*
189
189
  - [DocumentType](docs/DocumentType.md)
190
190
  - [DocumentVersionAction](docs/DocumentVersionAction.md)
191
191
  - [DocumentVersionActionResponse](docs/DocumentVersionActionResponse.md)
192
+ - [DocumentVersionContentTypeFilter](docs/DocumentVersionContentTypeFilter.md)
192
193
  - [DocumentVersionMetadata](docs/DocumentVersionMetadata.md)
193
194
  - [DocumentVersionMetadataUpdate](docs/DocumentVersionMetadataUpdate.md)
194
195
  - [DocumentVersionResponse](docs/DocumentVersionResponse.md)
@@ -216,6 +217,7 @@ All URIs are relative to *http://localhost:8000*
216
217
  - [LineageNodeResponse](docs/LineageNodeResponse.md)
217
218
  - [LocationInner](docs/LocationInner.md)
218
219
  - [MessageRole](docs/MessageRole.md)
220
+ - [NonFilesystemReferenceType](docs/NonFilesystemReferenceType.md)
219
221
  - [OAuth2Config](docs/OAuth2Config.md)
220
222
  - [PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator](docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md)
221
223
  - [PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator](docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md)
@@ -243,6 +245,9 @@ All URIs are relative to *http://localhost:8000*
243
245
  - [PipelineStatus](docs/PipelineStatus.md)
244
246
  - [Polygon](docs/Polygon.md)
245
247
  - [PolygonReference](docs/PolygonReference.md)
248
+ - [ReferenceType](docs/ReferenceType.md)
249
+ - [ResolvedReferenceInput](docs/ResolvedReferenceInput.md)
250
+ - [ResolvedReferenceOutput](docs/ResolvedReferenceOutput.md)
246
251
  - [RootResponse](docs/RootResponse.md)
247
252
  - [SSOInitiateResponse](docs/SSOInitiateResponse.md)
248
253
  - [ScoredChunkResponse](docs/ScoredChunkResponse.md)
@@ -303,7 +308,7 @@ and is automatically generated by the
303
308
  [OpenAPI Generator](https://openapi-generator.tech) project:
304
309
 
305
310
  - API version: `0.1.0`
306
- - Package version: `1.56.0`
311
+ - Package version: `1.57.0`
307
312
  - Generator version: `7.20.0`
308
313
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
309
314
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ClearVersionContentsResponse, DocumentVersionAction, DocumentVersionActionResponse, DocumentVersionMetadataUpdate, DocumentVersionResponse, PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator, PaginatedResponseDocumentVersionResponse } from '../models/index';
13
+ import type { ClearVersionContentsResponse, DocumentVersionAction, DocumentVersionActionResponse, DocumentVersionContentTypeFilter, DocumentVersionMetadataUpdate, DocumentVersionResponse, PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator, PaginatedResponseDocumentVersionResponse } from '../models/index';
14
14
  export interface ClearDocumentVersionContentsRequest {
15
15
  versionId: string;
16
16
  authorization?: string | null;
@@ -40,6 +40,7 @@ export interface GetDocumentVersionRequest {
40
40
  export interface GetDocumentVersionContentsRequest {
41
41
  versionId: string;
42
42
  sectionId?: string | null;
43
+ contentType?: DocumentVersionContentTypeFilter;
43
44
  limit?: number;
44
45
  offset?: number;
45
46
  authorization?: string | null;
@@ -196,6 +197,7 @@ export interface DocumentVersionsApiInterface {
196
197
  * Creates request options for getDocumentVersionContents without sending the request
197
198
  * @param {string} versionId DocumentVersion ID
198
199
  * @param {string} [sectionId] Optional section ID to scope traversal to a subtree
200
+ * @param {DocumentVersionContentTypeFilter} [contentType] Filter by content type: SECTION or CHUNK. Omit to return both types.
199
201
  * @param {number} [limit] Number of items per page
200
202
  * @param {number} [offset] Number of items to skip
201
203
  * @param {string} [authorization]
@@ -205,10 +207,11 @@ export interface DocumentVersionsApiInterface {
205
207
  */
206
208
  getDocumentVersionContentsRequestOpts(requestParameters: GetDocumentVersionContentsRequest): Promise<runtime.RequestOpts>;
207
209
  /**
208
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
210
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
209
211
  * @summary Get Document Version Contents Handler
210
212
  * @param {string} versionId DocumentVersion ID
211
213
  * @param {string} [sectionId] Optional section ID to scope traversal to a subtree
214
+ * @param {DocumentVersionContentTypeFilter} [contentType] Filter by content type: SECTION or CHUNK. Omit to return both types.
212
215
  * @param {number} [limit] Number of items per page
213
216
  * @param {number} [offset] Number of items to skip
214
217
  * @param {string} [authorization]
@@ -219,7 +222,7 @@ export interface DocumentVersionsApiInterface {
219
222
  */
220
223
  getDocumentVersionContentsRaw(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>>;
221
224
  /**
222
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
225
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
223
226
  * Get Document Version Contents Handler
224
227
  */
225
228
  getDocumentVersionContents(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>;
@@ -359,12 +362,12 @@ export declare class DocumentVersionsApi extends runtime.BaseAPI implements Docu
359
362
  */
360
363
  getDocumentVersionContentsRequestOpts(requestParameters: GetDocumentVersionContentsRequest): Promise<runtime.RequestOpts>;
361
364
  /**
362
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
365
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
363
366
  * Get Document Version Contents Handler
364
367
  */
365
368
  getDocumentVersionContentsRaw(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>>;
366
369
  /**
367
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
370
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
368
371
  * Get Document Version Contents Handler
369
372
  */
370
373
  getDocumentVersionContents(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>;
@@ -266,6 +266,9 @@ class DocumentVersionsApi extends runtime.BaseAPI {
266
266
  if (requestParameters['sectionId'] != null) {
267
267
  queryParameters['section_id'] = requestParameters['sectionId'];
268
268
  }
269
+ if (requestParameters['contentType'] != null) {
270
+ queryParameters['content_type'] = requestParameters['contentType'];
271
+ }
269
272
  if (requestParameters['limit'] != null) {
270
273
  queryParameters['limit'] = requestParameters['limit'];
271
274
  }
@@ -287,7 +290,7 @@ class DocumentVersionsApi extends runtime.BaseAPI {
287
290
  });
288
291
  }
289
292
  /**
290
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
293
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
291
294
  * Get Document Version Contents Handler
292
295
  */
293
296
  getDocumentVersionContentsRaw(requestParameters, initOverrides) {
@@ -298,7 +301,7 @@ class DocumentVersionsApi extends runtime.BaseAPI {
298
301
  });
299
302
  }
300
303
  /**
301
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
304
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
302
305
  * Get Document Version Contents Handler
303
306
  */
304
307
  getDocumentVersionContents(requestParameters, initOverrides) {
@@ -100,7 +100,7 @@ export interface ThreadMessagesApiInterface {
100
100
  * Creates request options for listThreadMessages without sending the request
101
101
  * @param {string} threadId
102
102
  * @param {Date} [before] Cursor for keyset pagination: only return messages with created_at &lt; this value
103
- * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
103
+ * @param {boolean} [withDetails] Include execution steps in response (default true)
104
104
  * @param {number} [limit] Number of items per page
105
105
  * @param {number} [offset] Number of items to skip
106
106
  * @param {string} [authorization]
@@ -110,11 +110,11 @@ export interface ThreadMessagesApiInterface {
110
110
  */
111
111
  listThreadMessagesRequestOpts(requestParameters: ListThreadMessagesRequest): Promise<runtime.RequestOpts>;
112
112
  /**
113
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
113
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
114
114
  * @summary List Thread Messages Handler
115
115
  * @param {string} threadId
116
116
  * @param {Date} [before] Cursor for keyset pagination: only return messages with created_at &lt; this value
117
- * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
117
+ * @param {boolean} [withDetails] Include execution steps in response (default true)
118
118
  * @param {number} [limit] Number of items per page
119
119
  * @param {number} [offset] Number of items to skip
120
120
  * @param {string} [authorization]
@@ -125,7 +125,7 @@ export interface ThreadMessagesApiInterface {
125
125
  */
126
126
  listThreadMessagesRaw(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseThreadMessageResponse>>;
127
127
  /**
128
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
128
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
129
129
  * List Thread Messages Handler
130
130
  */
131
131
  listThreadMessages(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseThreadMessageResponse>;
@@ -167,12 +167,12 @@ export declare class ThreadMessagesApi extends runtime.BaseAPI implements Thread
167
167
  */
168
168
  listThreadMessagesRequestOpts(requestParameters: ListThreadMessagesRequest): Promise<runtime.RequestOpts>;
169
169
  /**
170
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
170
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
171
171
  * List Thread Messages Handler
172
172
  */
173
173
  listThreadMessagesRaw(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseThreadMessageResponse>>;
174
174
  /**
175
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
175
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
176
176
  * List Thread Messages Handler
177
177
  */
178
178
  listThreadMessages(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseThreadMessageResponse>;
@@ -165,7 +165,7 @@ class ThreadMessagesApi extends runtime.BaseAPI {
165
165
  });
166
166
  }
167
167
  /**
168
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
168
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
169
169
  * List Thread Messages Handler
170
170
  */
171
171
  listThreadMessagesRaw(requestParameters, initOverrides) {
@@ -176,7 +176,7 @@ class ThreadMessagesApi extends runtime.BaseAPI {
176
176
  });
177
177
  }
178
178
  /**
179
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
179
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
180
180
  * List Thread Messages Handler
181
181
  */
182
182
  listThreadMessages(requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ClearVersionContentsResponse, DocumentVersionAction, DocumentVersionActionResponse, DocumentVersionMetadataUpdate, DocumentVersionResponse, PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator, PaginatedResponseDocumentVersionResponse } from '../models/index';
13
+ import type { ClearVersionContentsResponse, DocumentVersionAction, DocumentVersionActionResponse, DocumentVersionContentTypeFilter, DocumentVersionMetadataUpdate, DocumentVersionResponse, PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator, PaginatedResponseDocumentVersionResponse } from '../models/index';
14
14
  export interface ClearDocumentVersionContentsRequest {
15
15
  versionId: string;
16
16
  authorization?: string | null;
@@ -40,6 +40,7 @@ export interface GetDocumentVersionRequest {
40
40
  export interface GetDocumentVersionContentsRequest {
41
41
  versionId: string;
42
42
  sectionId?: string | null;
43
+ contentType?: DocumentVersionContentTypeFilter;
43
44
  limit?: number;
44
45
  offset?: number;
45
46
  authorization?: string | null;
@@ -196,6 +197,7 @@ export interface DocumentVersionsApiInterface {
196
197
  * Creates request options for getDocumentVersionContents without sending the request
197
198
  * @param {string} versionId DocumentVersion ID
198
199
  * @param {string} [sectionId] Optional section ID to scope traversal to a subtree
200
+ * @param {DocumentVersionContentTypeFilter} [contentType] Filter by content type: SECTION or CHUNK. Omit to return both types.
199
201
  * @param {number} [limit] Number of items per page
200
202
  * @param {number} [offset] Number of items to skip
201
203
  * @param {string} [authorization]
@@ -205,10 +207,11 @@ export interface DocumentVersionsApiInterface {
205
207
  */
206
208
  getDocumentVersionContentsRequestOpts(requestParameters: GetDocumentVersionContentsRequest): Promise<runtime.RequestOpts>;
207
209
  /**
208
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
210
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
209
211
  * @summary Get Document Version Contents Handler
210
212
  * @param {string} versionId DocumentVersion ID
211
213
  * @param {string} [sectionId] Optional section ID to scope traversal to a subtree
214
+ * @param {DocumentVersionContentTypeFilter} [contentType] Filter by content type: SECTION or CHUNK. Omit to return both types.
212
215
  * @param {number} [limit] Number of items per page
213
216
  * @param {number} [offset] Number of items to skip
214
217
  * @param {string} [authorization]
@@ -219,7 +222,7 @@ export interface DocumentVersionsApiInterface {
219
222
  */
220
223
  getDocumentVersionContentsRaw(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>>;
221
224
  /**
222
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
225
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
223
226
  * Get Document Version Contents Handler
224
227
  */
225
228
  getDocumentVersionContents(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>;
@@ -359,12 +362,12 @@ export declare class DocumentVersionsApi extends runtime.BaseAPI implements Docu
359
362
  */
360
363
  getDocumentVersionContentsRequestOpts(requestParameters: GetDocumentVersionContentsRequest): Promise<runtime.RequestOpts>;
361
364
  /**
362
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
365
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
363
366
  * Get Document Version Contents Handler
364
367
  */
365
368
  getDocumentVersionContentsRaw(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>>;
366
369
  /**
367
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
370
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
368
371
  * Get Document Version Contents Handler
369
372
  */
370
373
  getDocumentVersionContents(requestParameters: GetDocumentVersionContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator>;
@@ -263,6 +263,9 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
263
263
  if (requestParameters['sectionId'] != null) {
264
264
  queryParameters['section_id'] = requestParameters['sectionId'];
265
265
  }
266
+ if (requestParameters['contentType'] != null) {
267
+ queryParameters['content_type'] = requestParameters['contentType'];
268
+ }
266
269
  if (requestParameters['limit'] != null) {
267
270
  queryParameters['limit'] = requestParameters['limit'];
268
271
  }
@@ -284,7 +287,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
284
287
  });
285
288
  }
286
289
  /**
287
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
290
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
288
291
  * Get Document Version Contents Handler
289
292
  */
290
293
  getDocumentVersionContentsRaw(requestParameters, initOverrides) {
@@ -295,7 +298,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
295
298
  });
296
299
  }
297
300
  /**
298
- * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\").
301
+ * List all sections and chunks for a document version in depth-first logical order. Returns a discriminated union of SectionContentItem and ChunkContentItem, distinguished by the `part_type` field (\"SECTION\" or \"CHUNK\"). Use `content_type` to return only one type (e.g. `content_type=CHUNK` for chunk-only pagination where offset/limit apply only to chunks).
299
302
  * Get Document Version Contents Handler
300
303
  */
301
304
  getDocumentVersionContents(requestParameters, initOverrides) {
@@ -100,7 +100,7 @@ export interface ThreadMessagesApiInterface {
100
100
  * Creates request options for listThreadMessages without sending the request
101
101
  * @param {string} threadId
102
102
  * @param {Date} [before] Cursor for keyset pagination: only return messages with created_at &lt; this value
103
- * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
103
+ * @param {boolean} [withDetails] Include execution steps in response (default true)
104
104
  * @param {number} [limit] Number of items per page
105
105
  * @param {number} [offset] Number of items to skip
106
106
  * @param {string} [authorization]
@@ -110,11 +110,11 @@ export interface ThreadMessagesApiInterface {
110
110
  */
111
111
  listThreadMessagesRequestOpts(requestParameters: ListThreadMessagesRequest): Promise<runtime.RequestOpts>;
112
112
  /**
113
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
113
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
114
114
  * @summary List Thread Messages Handler
115
115
  * @param {string} threadId
116
116
  * @param {Date} [before] Cursor for keyset pagination: only return messages with created_at &lt; this value
117
- * @param {boolean} [withDetails] Include execution steps in response (default false to reduce payload size)
117
+ * @param {boolean} [withDetails] Include execution steps in response (default true)
118
118
  * @param {number} [limit] Number of items per page
119
119
  * @param {number} [offset] Number of items to skip
120
120
  * @param {string} [authorization]
@@ -125,7 +125,7 @@ export interface ThreadMessagesApiInterface {
125
125
  */
126
126
  listThreadMessagesRaw(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseThreadMessageResponse>>;
127
127
  /**
128
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
128
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
129
129
  * List Thread Messages Handler
130
130
  */
131
131
  listThreadMessages(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseThreadMessageResponse>;
@@ -167,12 +167,12 @@ export declare class ThreadMessagesApi extends runtime.BaseAPI implements Thread
167
167
  */
168
168
  listThreadMessagesRequestOpts(requestParameters: ListThreadMessagesRequest): Promise<runtime.RequestOpts>;
169
169
  /**
170
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
170
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
171
171
  * List Thread Messages Handler
172
172
  */
173
173
  listThreadMessagesRaw(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseThreadMessageResponse>>;
174
174
  /**
175
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
175
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
176
176
  * List Thread Messages Handler
177
177
  */
178
178
  listThreadMessages(requestParameters: ListThreadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseThreadMessageResponse>;
@@ -162,7 +162,7 @@ export class ThreadMessagesApi extends runtime.BaseAPI {
162
162
  });
163
163
  }
164
164
  /**
165
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
165
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
166
166
  * List Thread Messages Handler
167
167
  */
168
168
  listThreadMessagesRaw(requestParameters, initOverrides) {
@@ -173,7 +173,7 @@ export class ThreadMessagesApi extends runtime.BaseAPI {
173
173
  });
174
174
  }
175
175
  /**
176
- * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=true` to include execution step data. Details are excluded by default to avoid loading large TOAST data.
176
+ * List messages in a thread, ordered by created_at descending. Supports cursor-based pagination via `before` parameter and standard offset-based pagination via `limit`/`offset`. Use `with_details=false` to exclude execution step data and reduce payload size.
177
177
  * List Thread Messages Handler
178
178
  */
179
179
  listThreadMessages(requestParameters, initOverrides) {
@@ -18,6 +18,12 @@ import type { ThreadMessageContent } from './ThreadMessageContent';
18
18
  * @interface CreateThreadMessageRequest
19
19
  */
20
20
  export interface CreateThreadMessageRequest {
21
+ /**
22
+ * Optional caller-supplied ThreadMessage ID for idempotent creates.
23
+ * @type {string}
24
+ * @memberof CreateThreadMessageRequest
25
+ */
26
+ messageId?: string | null;
21
27
  /**
22
28
  *
23
29
  * @type {MessageRole}
@@ -32,6 +32,7 @@ export function CreateThreadMessageRequestFromJSONTyped(json, ignoreDiscriminato
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'messageId': json['message_id'] == null ? undefined : json['message_id'],
35
36
  'role': MessageRoleFromJSON(json['role']),
36
37
  'content': ThreadMessageContentFromJSON(json['content']),
37
38
  'details': json['details'] == null ? undefined : ThreadMessageDetailsInputFromJSON(json['details']),
@@ -45,6 +46,7 @@ export function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator
45
46
  return value;
46
47
  }
47
48
  return {
49
+ 'message_id': value['messageId'],
48
50
  'role': MessageRoleToJSON(value['role']),
49
51
  'content': ThreadMessageContentToJSON(value['content']),
50
52
  'details': ThreadMessageDetailsInputToJSON(value['details']),
@@ -0,0 +1,25 @@
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
+ /**
13
+ * Filter for the type of content rows to return.
14
+ * @export
15
+ */
16
+ export declare const DocumentVersionContentTypeFilter: {
17
+ readonly Section: "SECTION";
18
+ readonly Chunk: "CHUNK";
19
+ };
20
+ export type DocumentVersionContentTypeFilter = typeof DocumentVersionContentTypeFilter[keyof typeof DocumentVersionContentTypeFilter];
21
+ export declare function instanceOfDocumentVersionContentTypeFilter(value: any): boolean;
22
+ export declare function DocumentVersionContentTypeFilterFromJSON(json: any): DocumentVersionContentTypeFilter;
23
+ export declare function DocumentVersionContentTypeFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionContentTypeFilter;
24
+ export declare function DocumentVersionContentTypeFilterToJSON(value?: DocumentVersionContentTypeFilter | null): any;
25
+ export declare function DocumentVersionContentTypeFilterToJSONTyped(value: any, ignoreDiscriminator: boolean): DocumentVersionContentTypeFilter;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Filter for the type of content rows to return.
16
+ * @export
17
+ */
18
+ export const DocumentVersionContentTypeFilter = {
19
+ Section: 'SECTION',
20
+ Chunk: 'CHUNK'
21
+ };
22
+ export function instanceOfDocumentVersionContentTypeFilter(value) {
23
+ for (const key in DocumentVersionContentTypeFilter) {
24
+ if (Object.prototype.hasOwnProperty.call(DocumentVersionContentTypeFilter, key)) {
25
+ if (DocumentVersionContentTypeFilter[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function DocumentVersionContentTypeFilterFromJSON(json) {
33
+ return DocumentVersionContentTypeFilterFromJSONTyped(json, false);
34
+ }
35
+ export function DocumentVersionContentTypeFilterFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function DocumentVersionContentTypeFilterToJSON(value) {
39
+ return value;
40
+ }
41
+ export function DocumentVersionContentTypeFilterToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ResolvedReferenceOutput } from './ResolvedReferenceOutput';
12
13
  import type { EnrichedCitation } from './EnrichedCitation';
13
14
  /**
14
15
  * ThreadMessageContent with enriched citations for API responses.
@@ -22,12 +23,24 @@ export interface EnrichedThreadMessageContent {
22
23
  * @memberof EnrichedThreadMessageContent
23
24
  */
24
25
  text: string;
26
+ /**
27
+ * Whether this message represents a terminal assistant error
28
+ * @type {boolean}
29
+ * @memberof EnrichedThreadMessageContent
30
+ */
31
+ isError?: boolean | null;
25
32
  /**
26
33
  * A list of citations with document context
27
34
  * @type {Array<EnrichedCitation>}
28
35
  * @memberof EnrichedThreadMessageContent
29
36
  */
30
37
  citations?: Array<EnrichedCitation> | null;
38
+ /**
39
+ * Resolved inline references attached to this message
40
+ * @type {Array<ResolvedReferenceOutput>}
41
+ * @memberof EnrichedThreadMessageContent
42
+ */
43
+ references?: Array<ResolvedReferenceOutput> | null;
31
44
  }
32
45
  /**
33
46
  * Check if a given object implements the EnrichedThreadMessageContent interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ResolvedReferenceOutputFromJSON, ResolvedReferenceOutputToJSON, } from './ResolvedReferenceOutput';
14
15
  import { EnrichedCitationFromJSON, EnrichedCitationToJSON, } from './EnrichedCitation';
15
16
  /**
16
17
  * Check if a given object implements the EnrichedThreadMessageContent interface.
@@ -29,7 +30,9 @@ export function EnrichedThreadMessageContentFromJSONTyped(json, ignoreDiscrimina
29
30
  }
30
31
  return {
31
32
  'text': json['text'],
33
+ 'isError': json['is_error'] == null ? undefined : json['is_error'],
32
34
  'citations': json['citations'] == null ? undefined : (json['citations'].map(EnrichedCitationFromJSON)),
35
+ 'references': json['references'] == null ? undefined : (json['references'].map(ResolvedReferenceOutputFromJSON)),
33
36
  };
34
37
  }
35
38
  export function EnrichedThreadMessageContentToJSON(json) {
@@ -41,7 +44,9 @@ export function EnrichedThreadMessageContentToJSONTyped(value, ignoreDiscriminat
41
44
  }
42
45
  return {
43
46
  'text': value['text'],
47
+ 'is_error': value['isError'],
44
48
  'citations': value['citations'] == null ? undefined : (value['citations'].map(EnrichedCitationToJSON)),
49
+ 'references': value['references'] == null ? undefined : (value['references'].map(ResolvedReferenceOutputToJSON)),
45
50
  };
46
51
  }
47
52
  export const EnrichedThreadMessageContentPropertyValidationAttributesMap = {};
@@ -0,0 +1,27 @@
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
+ /**
13
+ * Supported reference types that do not map to filesystem PartType.
14
+ * @export
15
+ */
16
+ export declare const NonFilesystemReferenceType: {
17
+ readonly Image: "image";
18
+ readonly Memory: "memory";
19
+ readonly Tag: "tag";
20
+ readonly User: "user";
21
+ };
22
+ export type NonFilesystemReferenceType = typeof NonFilesystemReferenceType[keyof typeof NonFilesystemReferenceType];
23
+ export declare function instanceOfNonFilesystemReferenceType(value: any): boolean;
24
+ export declare function NonFilesystemReferenceTypeFromJSON(json: any): NonFilesystemReferenceType;
25
+ export declare function NonFilesystemReferenceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NonFilesystemReferenceType;
26
+ export declare function NonFilesystemReferenceTypeToJSON(value?: NonFilesystemReferenceType | null): any;
27
+ export declare function NonFilesystemReferenceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): NonFilesystemReferenceType;