@knowledge-stack/ksapi 1.156.1 → 1.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +3 -2
- package/dist/apis/DocumentVersionsApi.d.ts +2 -2
- package/dist/apis/DocumentsApi.d.ts +2 -2
- package/dist/esm/apis/DocumentVersionsApi.d.ts +2 -2
- package/dist/esm/apis/DocumentsApi.d.ts +2 -2
- package/dist/esm/models/ChunkMetadata.d.ts +7 -0
- package/dist/esm/models/ChunkMetadata.js +3 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +6 -0
- package/dist/esm/models/DocumentVersionMetadata.js +2 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +6 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +2 -0
- package/dist/esm/models/DownloadArtifact.d.ts +1 -0
- package/dist/esm/models/DownloadArtifact.js +2 -1
- package/dist/esm/models/SegmentSpan.d.ts +62 -0
- package/dist/esm/models/SegmentSpan.js +52 -0
- package/dist/esm/models/UploadConstraints.d.ts +12 -0
- package/dist/esm/models/UploadConstraints.js +8 -0
- package/dist/esm/models/UserMessageRequest.d.ts +6 -0
- package/dist/esm/models/UserMessageRequest.js +2 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ChunkMetadata.d.ts +7 -0
- package/dist/models/ChunkMetadata.js +3 -0
- package/dist/models/DocumentVersionMetadata.d.ts +6 -0
- package/dist/models/DocumentVersionMetadata.js +2 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +6 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +2 -0
- package/dist/models/DownloadArtifact.d.ts +1 -0
- package/dist/models/DownloadArtifact.js +2 -1
- package/dist/models/SegmentSpan.d.ts +62 -0
- package/dist/models/SegmentSpan.js +60 -0
- package/dist/models/UploadConstraints.d.ts +12 -0
- package/dist/models/UploadConstraints.js +8 -0
- package/dist/models/UserMessageRequest.d.ts +6 -0
- package/dist/models/UserMessageRequest.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/ChunkMetadata.md +2 -0
- package/docs/DocumentVersionMetadata.md +2 -0
- package/docs/DocumentVersionMetadataUpdate.md +2 -0
- package/docs/DocumentVersionsApi.md +2 -2
- package/docs/DocumentsApi.md +2 -2
- package/docs/SegmentSpan.md +39 -0
- package/docs/UploadConstraints.md +4 -0
- package/docs/UserMessageRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +2 -2
- package/src/apis/DocumentsApi.ts +2 -2
- package/src/models/ChunkMetadata.ts +15 -0
- package/src/models/DocumentVersionMetadata.ts +8 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +8 -0
- package/src/models/DownloadArtifact.ts +2 -1
- package/src/models/SegmentSpan.ts +104 -0
- package/src/models/UploadConstraints.ts +18 -0
- package/src/models/UserMessageRequest.ts +8 -0
- package/src/models/index.ts +1 -0
|
@@ -45,6 +45,18 @@ export interface UploadConstraints {
|
|
|
45
45
|
* @memberof UploadConstraints
|
|
46
46
|
*/
|
|
47
47
|
maxImageBytes: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UploadConstraints
|
|
52
|
+
*/
|
|
53
|
+
maxMediaBytes: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof UploadConstraints
|
|
58
|
+
*/
|
|
59
|
+
maxVideoBytes: number;
|
|
48
60
|
}
|
|
49
61
|
export const UploadConstraintsPropertyValidationAttributesMap: {
|
|
50
62
|
[property: string]: {
|
|
@@ -71,6 +83,8 @@ export function instanceOfUploadConstraints(value: object): value is UploadConst
|
|
|
71
83
|
if (!('formats' in value) || value['formats'] === undefined) return false;
|
|
72
84
|
if (!('maxBytes' in value) || value['maxBytes'] === undefined) return false;
|
|
73
85
|
if (!('maxImageBytes' in value) || value['maxImageBytes'] === undefined) return false;
|
|
86
|
+
if (!('maxMediaBytes' in value) || value['maxMediaBytes'] === undefined) return false;
|
|
87
|
+
if (!('maxVideoBytes' in value) || value['maxVideoBytes'] === undefined) return false;
|
|
74
88
|
return true;
|
|
75
89
|
}
|
|
76
90
|
|
|
@@ -87,6 +101,8 @@ export function UploadConstraintsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
87
101
|
'formats': ((json['formats'] as Array<any>).map(UploadFormatFromJSON)),
|
|
88
102
|
'maxBytes': json['max_bytes'],
|
|
89
103
|
'maxImageBytes': json['max_image_bytes'],
|
|
104
|
+
'maxMediaBytes': json['max_media_bytes'],
|
|
105
|
+
'maxVideoBytes': json['max_video_bytes'],
|
|
90
106
|
};
|
|
91
107
|
}
|
|
92
108
|
|
|
@@ -104,6 +120,8 @@ export function UploadConstraintsToJSONTyped(value?: UploadConstraints | null, i
|
|
|
104
120
|
'formats': ((value['formats'] as Array<any>).map(UploadFormatToJSON)),
|
|
105
121
|
'max_bytes': value['maxBytes'],
|
|
106
122
|
'max_image_bytes': value['maxImageBytes'],
|
|
123
|
+
'max_media_bytes': value['maxMediaBytes'],
|
|
124
|
+
'max_video_bytes': value['maxVideoBytes'],
|
|
107
125
|
};
|
|
108
126
|
}
|
|
109
127
|
|
|
@@ -25,6 +25,12 @@ export interface UserMessageRequest {
|
|
|
25
25
|
* @memberof UserMessageRequest
|
|
26
26
|
*/
|
|
27
27
|
inputText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Answer with the faster, lower-cost chat profile. Ignored when the tenant pins a chat profile and on workflow-run threads.
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof UserMessageRequest
|
|
32
|
+
*/
|
|
33
|
+
fastMode?: boolean;
|
|
28
34
|
}
|
|
29
35
|
export const UserMessageRequestPropertyValidationAttributesMap: {
|
|
30
36
|
[property: string]: {
|
|
@@ -62,6 +68,7 @@ export function UserMessageRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
62
68
|
return {
|
|
63
69
|
|
|
64
70
|
'inputText': json['input_text'] == null ? undefined : json['input_text'],
|
|
71
|
+
'fastMode': json['fast_mode'] == null ? undefined : json['fast_mode'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -77,6 +84,7 @@ export function UserMessageRequestToJSONTyped(value?: UserMessageRequest | null,
|
|
|
77
84
|
return {
|
|
78
85
|
|
|
79
86
|
'input_text': value['inputText'],
|
|
87
|
+
'fast_mode': value['fastMode'],
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
|
package/src/models/index.ts
CHANGED
|
@@ -267,6 +267,7 @@ export * from './SectionContentItem';
|
|
|
267
267
|
export * from './SectionContentItemOrChunkContentItem';
|
|
268
268
|
export * from './SectionResponse';
|
|
269
269
|
export * from './SectionSystemMetadata';
|
|
270
|
+
export * from './SegmentSpan';
|
|
270
271
|
export * from './SendPasswordResetRequest';
|
|
271
272
|
export * from './SetApprovalStateRequest';
|
|
272
273
|
export * from './SetWorkflowRunApprovalRequest';
|