@breign/client 1.0.136 → 1.0.137
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/dist/models/FileAttachmentCreateRequestUio.d.ts +6 -0
- package/dist/models/FileAttachmentCreateRequestUio.js +2 -0
- package/dist/models/FileAttachmentDetailsResponseUio.d.ts +6 -0
- package/dist/models/FileAttachmentDetailsResponseUio.js +2 -0
- package/dist/models/FileAttachmentUio.d.ts +6 -0
- package/dist/models/FileAttachmentUio.js +2 -0
- package/dist/models/FileAttachmentUploadResponseUio.d.ts +6 -0
- package/dist/models/FileAttachmentUploadResponseUio.js +2 -0
- package/dist/models/FileCreationResponseUio.d.ts +6 -0
- package/dist/models/FileCreationResponseUio.js +2 -0
- package/dist/models/FileUio.d.ts +6 -0
- package/dist/models/FileUio.js +2 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
- package/dist/models/FileWithDownloadUrlUio.js +2 -0
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +6 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +2 -0
- package/dist/models/KnowledgeFileUio.d.ts +6 -0
- package/dist/models/KnowledgeFileUio.js +2 -0
- package/dist/openapi.json +15 -0
- package/package.json +1 -1
|
@@ -45,6 +45,12 @@ export interface FileAttachmentCreateRequestUio {
|
|
|
45
45
|
* @memberof FileAttachmentCreateRequestUio
|
|
46
46
|
*/
|
|
47
47
|
size: number;
|
|
48
|
+
/**
|
|
49
|
+
* Run the OCR pre-pass before parsing the attachment
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof FileAttachmentCreateRequestUio
|
|
52
|
+
*/
|
|
53
|
+
ocr?: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* @export
|
|
@@ -54,6 +54,7 @@ function FileAttachmentCreateRequestUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
54
54
|
'mimeType': json['mimeType'],
|
|
55
55
|
'ext': json['ext'],
|
|
56
56
|
'size': json['size'],
|
|
57
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
function FileAttachmentCreateRequestUioToJSON(json) {
|
|
@@ -69,5 +70,6 @@ function FileAttachmentCreateRequestUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
69
70
|
'mimeType': value['mimeType'],
|
|
70
71
|
'ext': value['ext'],
|
|
71
72
|
'size': value['size'],
|
|
73
|
+
'ocr': value['ocr'],
|
|
72
74
|
};
|
|
73
75
|
}
|
|
@@ -72,6 +72,12 @@ export interface FileAttachmentDetailsResponseUio {
|
|
|
72
72
|
* @memberof FileAttachmentDetailsResponseUio
|
|
73
73
|
*/
|
|
74
74
|
status: FileAttachmentStatusUio;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the OCR pre-pass runs before parsing this attachment
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof FileAttachmentDetailsResponseUio
|
|
79
|
+
*/
|
|
80
|
+
ocr?: boolean;
|
|
75
81
|
/**
|
|
76
82
|
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
77
83
|
* @type {string}
|
|
@@ -67,6 +67,7 @@ function FileAttachmentDetailsResponseUioFromJSONTyped(json, ignoreDiscriminator
|
|
|
67
67
|
'key': json['key'],
|
|
68
68
|
'url': json['url'] == null ? undefined : json['url'],
|
|
69
69
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
|
|
70
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
70
71
|
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
71
72
|
'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
|
|
72
73
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -90,6 +91,7 @@ function FileAttachmentDetailsResponseUioToJSONTyped(value, ignoreDiscriminator
|
|
|
90
91
|
'key': value['key'],
|
|
91
92
|
'url': value['url'],
|
|
92
93
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
|
|
94
|
+
'ocr': value['ocr'],
|
|
93
95
|
'errorCode': value['errorCode'],
|
|
94
96
|
'estimatedTokens': value['estimatedTokens'],
|
|
95
97
|
'maxTokens': value['maxTokens'],
|
|
@@ -72,6 +72,12 @@ export interface FileAttachmentUio {
|
|
|
72
72
|
* @memberof FileAttachmentUio
|
|
73
73
|
*/
|
|
74
74
|
status: FileAttachmentStatusUio;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the OCR pre-pass runs before parsing this attachment
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof FileAttachmentUio
|
|
79
|
+
*/
|
|
80
|
+
ocr?: boolean;
|
|
75
81
|
/**
|
|
76
82
|
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
77
83
|
* @type {string}
|
|
@@ -67,6 +67,7 @@ function FileAttachmentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'key': json['key'],
|
|
68
68
|
'url': json['url'] == null ? undefined : json['url'],
|
|
69
69
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
|
|
70
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
70
71
|
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
71
72
|
'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
|
|
72
73
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -90,6 +91,7 @@ function FileAttachmentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
91
|
'key': value['key'],
|
|
91
92
|
'url': value['url'],
|
|
92
93
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
|
|
94
|
+
'ocr': value['ocr'],
|
|
93
95
|
'errorCode': value['errorCode'],
|
|
94
96
|
'estimatedTokens': value['estimatedTokens'],
|
|
95
97
|
'maxTokens': value['maxTokens'],
|
|
@@ -72,6 +72,12 @@ export interface FileAttachmentUploadResponseUio {
|
|
|
72
72
|
* @memberof FileAttachmentUploadResponseUio
|
|
73
73
|
*/
|
|
74
74
|
status: FileAttachmentStatusUio;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the OCR pre-pass runs before parsing this attachment
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof FileAttachmentUploadResponseUio
|
|
79
|
+
*/
|
|
80
|
+
ocr?: boolean;
|
|
75
81
|
/**
|
|
76
82
|
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
77
83
|
* @type {string}
|
|
@@ -71,6 +71,7 @@ function FileAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
71
71
|
'key': json['key'],
|
|
72
72
|
'url': json['url'] == null ? undefined : json['url'],
|
|
73
73
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
|
|
74
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
74
75
|
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
75
76
|
'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
|
|
76
77
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -96,6 +97,7 @@ function FileAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
96
97
|
'key': value['key'],
|
|
97
98
|
'url': value['url'],
|
|
98
99
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
|
|
100
|
+
'ocr': value['ocr'],
|
|
99
101
|
'errorCode': value['errorCode'],
|
|
100
102
|
'estimatedTokens': value['estimatedTokens'],
|
|
101
103
|
'maxTokens': value['maxTokens'],
|
|
@@ -53,6 +53,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
54
54
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
55
55
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
56
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
56
57
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
57
58
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
58
59
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -80,6 +81,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
80
81
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
81
82
|
'knowledgeType': value['knowledgeType'],
|
|
82
83
|
'isFAQ': value['isFAQ'],
|
|
84
|
+
'ocr': value['ocr'],
|
|
83
85
|
'uploadId': value['uploadId'],
|
|
84
86
|
'hash': value['hash'],
|
|
85
87
|
'contentType': value['contentType'],
|
package/dist/models/FileUio.d.ts
CHANGED
package/dist/models/FileUio.js
CHANGED
|
@@ -49,6 +49,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
50
50
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
51
51
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
52
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
52
53
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
53
54
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
54
55
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -76,6 +77,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
77
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
77
78
|
'knowledgeType': value['knowledgeType'],
|
|
78
79
|
'isFAQ': value['isFAQ'],
|
|
80
|
+
'ocr': value['ocr'],
|
|
79
81
|
'uploadId': value['uploadId'],
|
|
80
82
|
'hash': value['hash'],
|
|
81
83
|
'contentType': value['contentType'],
|
|
@@ -51,6 +51,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
52
52
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
53
53
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
54
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
54
55
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
55
56
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
56
57
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -79,6 +80,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
80
81
|
'knowledgeType': value['knowledgeType'],
|
|
81
82
|
'isFAQ': value['isFAQ'],
|
|
83
|
+
'ocr': value['ocr'],
|
|
82
84
|
'uploadId': value['uploadId'],
|
|
83
85
|
'hash': value['hash'],
|
|
84
86
|
'contentType': value['contentType'],
|
|
@@ -57,6 +57,12 @@ export interface KnowledgeFileCreationRequestUio {
|
|
|
57
57
|
* @memberof KnowledgeFileCreationRequestUio
|
|
58
58
|
*/
|
|
59
59
|
isFAQ?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Run the OCR pre-pass before parsing the document
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof KnowledgeFileCreationRequestUio
|
|
64
|
+
*/
|
|
65
|
+
ocr?: boolean;
|
|
60
66
|
}
|
|
61
67
|
/**
|
|
62
68
|
* Check if a given object implements the KnowledgeFileCreationRequestUio interface.
|
|
@@ -43,6 +43,7 @@ function KnowledgeFileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
43
43
|
'size': json['size'],
|
|
44
44
|
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
45
45
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
46
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function KnowledgeFileCreationRequestUioToJSON(json) {
|
|
@@ -60,5 +61,6 @@ function KnowledgeFileCreationRequestUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
60
61
|
'size': value['size'],
|
|
61
62
|
'isActive': value['isActive'],
|
|
62
63
|
'isFAQ': value['isFAQ'],
|
|
64
|
+
'ocr': value['ocr'],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
@@ -49,6 +49,7 @@ function KnowledgeFileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
50
50
|
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
51
51
|
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
52
|
+
'ocr': json['ocr'] == null ? undefined : json['ocr'],
|
|
52
53
|
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
53
54
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
54
55
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
@@ -76,6 +77,7 @@ function KnowledgeFileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
77
|
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
77
78
|
'knowledgeType': value['knowledgeType'],
|
|
78
79
|
'isFAQ': value['isFAQ'],
|
|
80
|
+
'ocr': value['ocr'],
|
|
79
81
|
'uploadId': value['uploadId'],
|
|
80
82
|
'hash': value['hash'],
|
|
81
83
|
'contentType': value['contentType'],
|
package/dist/openapi.json
CHANGED
|
@@ -15825,6 +15825,9 @@
|
|
|
15825
15825
|
"isFAQ" : {
|
|
15826
15826
|
"type" : "boolean"
|
|
15827
15827
|
},
|
|
15828
|
+
"ocr" : {
|
|
15829
|
+
"type" : "boolean"
|
|
15830
|
+
},
|
|
15828
15831
|
"uploadId" : {
|
|
15829
15832
|
"type" : "string"
|
|
15830
15833
|
},
|
|
@@ -16200,6 +16203,10 @@
|
|
|
16200
16203
|
"status" : {
|
|
16201
16204
|
"$ref" : "#/components/schemas/FileAttachmentStatus"
|
|
16202
16205
|
},
|
|
16206
|
+
"ocr" : {
|
|
16207
|
+
"description" : "Whether the OCR pre-pass runs before parsing this attachment",
|
|
16208
|
+
"type" : "boolean"
|
|
16209
|
+
},
|
|
16203
16210
|
"errorCode" : {
|
|
16204
16211
|
"description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)",
|
|
16205
16212
|
"enum" : [ "ATTACHMENT_TOO_LARGE" ],
|
|
@@ -17916,6 +17923,10 @@
|
|
|
17916
17923
|
},
|
|
17917
17924
|
"size" : {
|
|
17918
17925
|
"type" : "number"
|
|
17926
|
+
},
|
|
17927
|
+
"ocr" : {
|
|
17928
|
+
"description" : "Run the OCR pre-pass before parsing the attachment",
|
|
17929
|
+
"type" : "boolean"
|
|
17919
17930
|
}
|
|
17920
17931
|
},
|
|
17921
17932
|
"required" : [ "ext", "mimeType", "name", "size", "type" ],
|
|
@@ -19035,6 +19046,10 @@
|
|
|
19035
19046
|
"isFAQ" : {
|
|
19036
19047
|
"description" : "Whether the file is a FAQ document",
|
|
19037
19048
|
"type" : "boolean"
|
|
19049
|
+
},
|
|
19050
|
+
"ocr" : {
|
|
19051
|
+
"description" : "Run the OCR pre-pass before parsing the document",
|
|
19052
|
+
"type" : "boolean"
|
|
19038
19053
|
}
|
|
19039
19054
|
},
|
|
19040
19055
|
"required" : [ "ext", "size" ],
|