@knowledge-stack/ksapi 1.55.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 (109) 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/apis/UsersApi.d.ts +4 -4
  8. package/dist/apis/UsersApi.js +2 -2
  9. package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -5
  10. package/dist/esm/apis/DocumentVersionsApi.js +5 -2
  11. package/dist/esm/apis/ThreadMessagesApi.d.ts +6 -6
  12. package/dist/esm/apis/ThreadMessagesApi.js +2 -2
  13. package/dist/esm/apis/UsersApi.d.ts +4 -4
  14. package/dist/esm/apis/UsersApi.js +2 -2
  15. package/dist/esm/models/CreatePasswordUserRequest.d.ts +12 -0
  16. package/dist/esm/models/CreatePasswordUserRequest.js +4 -0
  17. package/dist/esm/models/CreateThreadMessageRequest.d.ts +6 -0
  18. package/dist/esm/models/CreateThreadMessageRequest.js +2 -0
  19. package/dist/esm/models/DocumentVersionContentTypeFilter.d.ts +25 -0
  20. package/dist/esm/models/DocumentVersionContentTypeFilter.js +43 -0
  21. package/dist/esm/models/EnrichedThreadMessageContent.d.ts +13 -0
  22. package/dist/esm/models/EnrichedThreadMessageContent.js +5 -0
  23. package/dist/esm/models/NonFilesystemReferenceType.d.ts +27 -0
  24. package/dist/esm/models/NonFilesystemReferenceType.js +45 -0
  25. package/dist/esm/models/ReferenceType.d.ts +34 -0
  26. package/dist/esm/models/ReferenceType.js +52 -0
  27. package/dist/esm/models/ResolvedReferenceInput.d.ts +70 -0
  28. package/dist/esm/models/ResolvedReferenceInput.js +55 -0
  29. package/dist/esm/models/ResolvedReferenceOutput.d.ts +69 -0
  30. package/dist/esm/models/ResolvedReferenceOutput.js +54 -0
  31. package/dist/esm/models/StepInput.d.ts +6 -0
  32. package/dist/esm/models/StepInput.js +4 -0
  33. package/dist/esm/models/StepKind.d.ts +1 -0
  34. package/dist/esm/models/StepKind.js +1 -0
  35. package/dist/esm/models/StepOutput.d.ts +6 -0
  36. package/dist/esm/models/StepOutput.js +4 -0
  37. package/dist/esm/models/ThreadMessageContent.d.ts +13 -0
  38. package/dist/esm/models/ThreadMessageContent.js +5 -0
  39. package/dist/esm/models/UpdateUserRequest.d.ts +13 -1
  40. package/dist/esm/models/UpdateUserRequest.js +5 -3
  41. package/dist/esm/models/UserResponse.d.ts +12 -0
  42. package/dist/esm/models/UserResponse.js +8 -0
  43. package/dist/esm/models/index.d.ts +5 -0
  44. package/dist/esm/models/index.js +5 -0
  45. package/dist/models/CreatePasswordUserRequest.d.ts +12 -0
  46. package/dist/models/CreatePasswordUserRequest.js +4 -0
  47. package/dist/models/CreateThreadMessageRequest.d.ts +6 -0
  48. package/dist/models/CreateThreadMessageRequest.js +2 -0
  49. package/dist/models/DocumentVersionContentTypeFilter.d.ts +25 -0
  50. package/dist/models/DocumentVersionContentTypeFilter.js +51 -0
  51. package/dist/models/EnrichedThreadMessageContent.d.ts +13 -0
  52. package/dist/models/EnrichedThreadMessageContent.js +5 -0
  53. package/dist/models/NonFilesystemReferenceType.d.ts +27 -0
  54. package/dist/models/NonFilesystemReferenceType.js +53 -0
  55. package/dist/models/ReferenceType.d.ts +34 -0
  56. package/dist/models/ReferenceType.js +60 -0
  57. package/dist/models/ResolvedReferenceInput.d.ts +70 -0
  58. package/dist/models/ResolvedReferenceInput.js +63 -0
  59. package/dist/models/ResolvedReferenceOutput.d.ts +69 -0
  60. package/dist/models/ResolvedReferenceOutput.js +62 -0
  61. package/dist/models/StepInput.d.ts +6 -0
  62. package/dist/models/StepInput.js +4 -0
  63. package/dist/models/StepKind.d.ts +1 -0
  64. package/dist/models/StepKind.js +1 -0
  65. package/dist/models/StepOutput.d.ts +6 -0
  66. package/dist/models/StepOutput.js +4 -0
  67. package/dist/models/ThreadMessageContent.d.ts +13 -0
  68. package/dist/models/ThreadMessageContent.js +5 -0
  69. package/dist/models/UpdateUserRequest.d.ts +13 -1
  70. package/dist/models/UpdateUserRequest.js +5 -3
  71. package/dist/models/UserResponse.d.ts +12 -0
  72. package/dist/models/UserResponse.js +8 -0
  73. package/dist/models/index.d.ts +5 -0
  74. package/dist/models/index.js +5 -0
  75. package/docs/CreatePasswordUserRequest.md +4 -0
  76. package/docs/CreateThreadMessageRequest.md +2 -0
  77. package/docs/DocumentVersionContentTypeFilter.md +33 -0
  78. package/docs/DocumentVersionsApi.md +5 -2
  79. package/docs/EnrichedThreadMessageContent.md +4 -0
  80. package/docs/NonFilesystemReferenceType.md +33 -0
  81. package/docs/ReferenceType.md +32 -0
  82. package/docs/ResolvedReferenceInput.md +41 -0
  83. package/docs/ResolvedReferenceOutput.md +41 -0
  84. package/docs/StepInput.md +2 -0
  85. package/docs/StepOutput.md +2 -0
  86. package/docs/ThreadMessageContent.md +4 -0
  87. package/docs/ThreadMessagesApi.md +3 -3
  88. package/docs/UpdateUserRequest.md +4 -0
  89. package/docs/UserResponse.md +4 -0
  90. package/docs/UsersApi.md +1 -1
  91. package/package.json +1 -1
  92. package/src/apis/DocumentVersionsApi.ts +14 -4
  93. package/src/apis/ThreadMessagesApi.ts +6 -6
  94. package/src/apis/UsersApi.ts +4 -4
  95. package/src/models/CreatePasswordUserRequest.ts +16 -0
  96. package/src/models/CreateThreadMessageRequest.ts +8 -0
  97. package/src/models/DocumentVersionContentTypeFilter.ts +53 -0
  98. package/src/models/EnrichedThreadMessageContent.ts +23 -0
  99. package/src/models/NonFilesystemReferenceType.ts +55 -0
  100. package/src/models/ReferenceType.ts +62 -0
  101. package/src/models/ResolvedReferenceInput.ts +123 -0
  102. package/src/models/ResolvedReferenceOutput.ts +113 -0
  103. package/src/models/StepInput.ts +9 -0
  104. package/src/models/StepKind.ts +1 -0
  105. package/src/models/StepOutput.ts +9 -0
  106. package/src/models/ThreadMessageContent.ts +23 -0
  107. package/src/models/UpdateUserRequest.ts +18 -3
  108. package/src/models/UserResponse.ts +18 -0
  109. 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.55.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.55.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) {
@@ -60,7 +60,7 @@ export interface UsersApiInterface {
60
60
  */
61
61
  updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
62
62
  /**
63
- * Update the user\'s default tenant. The user must belong to the specified tenant.
63
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
64
64
  * @summary Update Me Handler
65
65
  * @param {UpdateUserRequest} updateUserRequest
66
66
  * @param {string} [authorization]
@@ -71,7 +71,7 @@ export interface UsersApiInterface {
71
71
  */
72
72
  updateMeRaw(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
73
73
  /**
74
- * Update the user\'s default tenant. The user must belong to the specified tenant.
74
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
75
75
  * Update Me Handler
76
76
  */
77
77
  updateMe(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
@@ -99,12 +99,12 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
99
99
  */
100
100
  updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
101
101
  /**
102
- * Update the user\'s default tenant. The user must belong to the specified tenant.
102
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
103
103
  * Update Me Handler
104
104
  */
105
105
  updateMeRaw(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
106
106
  /**
107
- * Update the user\'s default tenant. The user must belong to the specified tenant.
107
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
108
108
  * Update Me Handler
109
109
  */
110
110
  updateMe(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
@@ -94,7 +94,7 @@ class UsersApi extends runtime.BaseAPI {
94
94
  });
95
95
  }
96
96
  /**
97
- * Update the user\'s default tenant. The user must belong to the specified tenant.
97
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
98
98
  * Update Me Handler
99
99
  */
100
100
  updateMeRaw(requestParameters, initOverrides) {
@@ -105,7 +105,7 @@ class UsersApi extends runtime.BaseAPI {
105
105
  });
106
106
  }
107
107
  /**
108
- * Update the user\'s default tenant. The user must belong to the specified tenant.
108
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
109
109
  * Update Me Handler
110
110
  */
111
111
  updateMe(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) {
@@ -60,7 +60,7 @@ export interface UsersApiInterface {
60
60
  */
61
61
  updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
62
62
  /**
63
- * Update the user\'s default tenant. The user must belong to the specified tenant.
63
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
64
64
  * @summary Update Me Handler
65
65
  * @param {UpdateUserRequest} updateUserRequest
66
66
  * @param {string} [authorization]
@@ -71,7 +71,7 @@ export interface UsersApiInterface {
71
71
  */
72
72
  updateMeRaw(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
73
73
  /**
74
- * Update the user\'s default tenant. The user must belong to the specified tenant.
74
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
75
75
  * Update Me Handler
76
76
  */
77
77
  updateMe(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
@@ -99,12 +99,12 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
99
99
  */
100
100
  updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
101
101
  /**
102
- * Update the user\'s default tenant. The user must belong to the specified tenant.
102
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
103
103
  * Update Me Handler
104
104
  */
105
105
  updateMeRaw(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
106
106
  /**
107
- * Update the user\'s default tenant. The user must belong to the specified tenant.
107
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
108
108
  * Update Me Handler
109
109
  */
110
110
  updateMe(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
@@ -91,7 +91,7 @@ export class UsersApi extends runtime.BaseAPI {
91
91
  });
92
92
  }
93
93
  /**
94
- * Update the user\'s default tenant. The user must belong to the specified tenant.
94
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
95
95
  * Update Me Handler
96
96
  */
97
97
  updateMeRaw(requestParameters, initOverrides) {
@@ -102,7 +102,7 @@ export class UsersApi extends runtime.BaseAPI {
102
102
  });
103
103
  }
104
104
  /**
105
- * Update the user\'s default tenant. The user must belong to the specified tenant.
105
+ * Update the user\'s profile (default tenant, name fields). When updating default_tenant_id, the user must belong to the specified tenant.
106
106
  * Update Me Handler
107
107
  */
108
108
  updateMe(requestParameters, initOverrides) {
@@ -27,6 +27,18 @@ export interface CreatePasswordUserRequest {
27
27
  * @memberof CreatePasswordUserRequest
28
28
  */
29
29
  emailToken: string;
30
+ /**
31
+ * First name
32
+ * @type {string}
33
+ * @memberof CreatePasswordUserRequest
34
+ */
35
+ firstName?: string | null;
36
+ /**
37
+ * Last name
38
+ * @type {string}
39
+ * @memberof CreatePasswordUserRequest
40
+ */
41
+ lastName?: string | null;
30
42
  }
31
43
  /**
32
44
  * Check if a given object implements the CreatePasswordUserRequest interface.
@@ -31,6 +31,8 @@ export function CreatePasswordUserRequestFromJSONTyped(json, ignoreDiscriminator
31
31
  return {
32
32
  'password': json['password'],
33
33
  'emailToken': json['email_token'],
34
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
35
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
34
36
  };
35
37
  }
36
38
  export function CreatePasswordUserRequestToJSON(json) {
@@ -43,6 +45,8 @@ export function CreatePasswordUserRequestToJSONTyped(value, ignoreDiscriminator
43
45
  return {
44
46
  'password': value['password'],
45
47
  'email_token': value['emailToken'],
48
+ 'first_name': value['firstName'],
49
+ 'last_name': value['lastName'],
46
50
  };
47
51
  }
48
52
  export const CreatePasswordUserRequestPropertyValidationAttributesMap = {
@@ -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;