@breign/client 1.0.119 → 1.0.120

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.
@@ -28,12 +28,6 @@ export interface ContextualKnowledgeConversationUio {
28
28
  * @memberof ContextualKnowledgeConversationUio
29
29
  */
30
30
  backend: ContextualKnowledgeConversationUioBackendEnum;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof ContextualKnowledgeConversationUio
35
- */
36
- sizeThresholdBytes: number;
37
31
  /**
38
32
  *
39
33
  * @type {number}
@@ -36,8 +36,6 @@ function instanceOfContextualKnowledgeConversationUio(value) {
36
36
  return false;
37
37
  if (!('backend' in value) || value['backend'] === undefined)
38
38
  return false;
39
- if (!('sizeThresholdBytes' in value) || value['sizeThresholdBytes'] === undefined)
40
- return false;
41
39
  if (!('ttlDays' in value) || value['ttlDays'] === undefined)
42
40
  return false;
43
41
  return true;
@@ -52,7 +50,6 @@ function ContextualKnowledgeConversationUioFromJSONTyped(json, ignoreDiscriminat
52
50
  return {
53
51
  'enabled': json['enabled'],
54
52
  'backend': json['backend'],
55
- 'sizeThresholdBytes': json['sizeThresholdBytes'],
56
53
  'ttlDays': json['ttlDays'],
57
54
  'scoreThreshold': json['scoreThreshold'] == null ? undefined : json['scoreThreshold'],
58
55
  'maxDocuments': json['maxDocuments'] == null ? undefined : json['maxDocuments'],
@@ -70,7 +67,6 @@ function ContextualKnowledgeConversationUioToJSONTyped(value, ignoreDiscriminato
70
67
  return {
71
68
  'enabled': value['enabled'],
72
69
  'backend': value['backend'],
73
- 'sizeThresholdBytes': value['sizeThresholdBytes'],
74
70
  'ttlDays': value['ttlDays'],
75
71
  'scoreThreshold': value['scoreThreshold'],
76
72
  'maxDocuments': value['maxDocuments'],
@@ -72,6 +72,24 @@ export interface FileAttachmentDetailsResponseUio {
72
72
  * @memberof FileAttachmentDetailsResponseUio
73
73
  */
74
74
  status: FileAttachmentStatusUio;
75
+ /**
76
+ * Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
77
+ * @type {string}
78
+ * @memberof FileAttachmentDetailsResponseUio
79
+ */
80
+ errorCode?: FileAttachmentDetailsResponseUioErrorCodeEnum;
81
+ /**
82
+ * Estimated token count of the attachment (set when status is ERROR / ATTACHMENT_TOO_LARGE)
83
+ * @type {number}
84
+ * @memberof FileAttachmentDetailsResponseUio
85
+ */
86
+ estimatedTokens?: number;
87
+ /**
88
+ * Model context limit used for the comparison (set when status is ERROR / ATTACHMENT_TOO_LARGE)
89
+ * @type {number}
90
+ * @memberof FileAttachmentDetailsResponseUio
91
+ */
92
+ maxTokens?: number;
75
93
  /**
76
94
  *
77
95
  * @type {FileAttachmentProcessedUio}
@@ -79,6 +97,13 @@ export interface FileAttachmentDetailsResponseUio {
79
97
  */
80
98
  processed?: FileAttachmentProcessedUio;
81
99
  }
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const FileAttachmentDetailsResponseUioErrorCodeEnum: {
104
+ readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
105
+ };
106
+ export type FileAttachmentDetailsResponseUioErrorCodeEnum = typeof FileAttachmentDetailsResponseUioErrorCodeEnum[keyof typeof FileAttachmentDetailsResponseUioErrorCodeEnum];
82
107
  /**
83
108
  * Check if a given object implements the FileAttachmentDetailsResponseUio interface.
84
109
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileAttachmentDetailsResponseUioErrorCodeEnum = void 0;
16
17
  exports.instanceOfFileAttachmentDetailsResponseUio = instanceOfFileAttachmentDetailsResponseUio;
17
18
  exports.FileAttachmentDetailsResponseUioFromJSON = FileAttachmentDetailsResponseUioFromJSON;
18
19
  exports.FileAttachmentDetailsResponseUioFromJSONTyped = FileAttachmentDetailsResponseUioFromJSONTyped;
@@ -21,6 +22,12 @@ exports.FileAttachmentDetailsResponseUioToJSONTyped = FileAttachmentDetailsRespo
21
22
  const AttachmentTypeUio_1 = require("./AttachmentTypeUio");
22
23
  const FileAttachmentProcessedUio_1 = require("./FileAttachmentProcessedUio");
23
24
  const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.FileAttachmentDetailsResponseUioErrorCodeEnum = {
29
+ AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
30
+ };
24
31
  /**
25
32
  * Check if a given object implements the FileAttachmentDetailsResponseUio interface.
26
33
  */
@@ -60,6 +67,9 @@ function FileAttachmentDetailsResponseUioFromJSONTyped(json, ignoreDiscriminator
60
67
  'key': json['key'],
61
68
  'url': json['url'] == null ? undefined : json['url'],
62
69
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
70
+ 'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
71
+ 'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
72
+ 'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
63
73
  'processed': json['processed'] == null ? undefined : (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioFromJSON)(json['processed']),
64
74
  };
65
75
  }
@@ -80,6 +90,9 @@ function FileAttachmentDetailsResponseUioToJSONTyped(value, ignoreDiscriminator
80
90
  'key': value['key'],
81
91
  'url': value['url'],
82
92
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
93
+ 'errorCode': value['errorCode'],
94
+ 'estimatedTokens': value['estimatedTokens'],
95
+ 'maxTokens': value['maxTokens'],
83
96
  'processed': (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioToJSON)(value['processed']),
84
97
  };
85
98
  }
@@ -72,6 +72,24 @@ export interface FileAttachmentUio {
72
72
  * @memberof FileAttachmentUio
73
73
  */
74
74
  status: FileAttachmentStatusUio;
75
+ /**
76
+ * Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
77
+ * @type {string}
78
+ * @memberof FileAttachmentUio
79
+ */
80
+ errorCode?: FileAttachmentUioErrorCodeEnum;
81
+ /**
82
+ * Estimated token count of the attachment (set when status is ERROR / ATTACHMENT_TOO_LARGE)
83
+ * @type {number}
84
+ * @memberof FileAttachmentUio
85
+ */
86
+ estimatedTokens?: number;
87
+ /**
88
+ * Model context limit used for the comparison (set when status is ERROR / ATTACHMENT_TOO_LARGE)
89
+ * @type {number}
90
+ * @memberof FileAttachmentUio
91
+ */
92
+ maxTokens?: number;
75
93
  /**
76
94
  *
77
95
  * @type {FileAttachmentProcessedUio}
@@ -79,6 +97,13 @@ export interface FileAttachmentUio {
79
97
  */
80
98
  processed?: FileAttachmentProcessedUio;
81
99
  }
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const FileAttachmentUioErrorCodeEnum: {
104
+ readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
105
+ };
106
+ export type FileAttachmentUioErrorCodeEnum = typeof FileAttachmentUioErrorCodeEnum[keyof typeof FileAttachmentUioErrorCodeEnum];
82
107
  /**
83
108
  * Check if a given object implements the FileAttachmentUio interface.
84
109
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileAttachmentUioErrorCodeEnum = void 0;
16
17
  exports.instanceOfFileAttachmentUio = instanceOfFileAttachmentUio;
17
18
  exports.FileAttachmentUioFromJSON = FileAttachmentUioFromJSON;
18
19
  exports.FileAttachmentUioFromJSONTyped = FileAttachmentUioFromJSONTyped;
@@ -21,6 +22,12 @@ exports.FileAttachmentUioToJSONTyped = FileAttachmentUioToJSONTyped;
21
22
  const AttachmentTypeUio_1 = require("./AttachmentTypeUio");
22
23
  const FileAttachmentProcessedUio_1 = require("./FileAttachmentProcessedUio");
23
24
  const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.FileAttachmentUioErrorCodeEnum = {
29
+ AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
30
+ };
24
31
  /**
25
32
  * Check if a given object implements the FileAttachmentUio interface.
26
33
  */
@@ -60,6 +67,9 @@ function FileAttachmentUioFromJSONTyped(json, ignoreDiscriminator) {
60
67
  'key': json['key'],
61
68
  'url': json['url'] == null ? undefined : json['url'],
62
69
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
70
+ 'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
71
+ 'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
72
+ 'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
63
73
  'processed': json['processed'] == null ? undefined : (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioFromJSON)(json['processed']),
64
74
  };
65
75
  }
@@ -80,6 +90,9 @@ function FileAttachmentUioToJSONTyped(value, ignoreDiscriminator = false) {
80
90
  'key': value['key'],
81
91
  'url': value['url'],
82
92
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
93
+ 'errorCode': value['errorCode'],
94
+ 'estimatedTokens': value['estimatedTokens'],
95
+ 'maxTokens': value['maxTokens'],
83
96
  'processed': (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioToJSON)(value['processed']),
84
97
  };
85
98
  }
@@ -72,6 +72,24 @@ export interface FileAttachmentUploadResponseUio {
72
72
  * @memberof FileAttachmentUploadResponseUio
73
73
  */
74
74
  status: FileAttachmentStatusUio;
75
+ /**
76
+ * Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
77
+ * @type {string}
78
+ * @memberof FileAttachmentUploadResponseUio
79
+ */
80
+ errorCode?: FileAttachmentUploadResponseUioErrorCodeEnum;
81
+ /**
82
+ * Estimated token count of the attachment (set when status is ERROR / ATTACHMENT_TOO_LARGE)
83
+ * @type {number}
84
+ * @memberof FileAttachmentUploadResponseUio
85
+ */
86
+ estimatedTokens?: number;
87
+ /**
88
+ * Model context limit used for the comparison (set when status is ERROR / ATTACHMENT_TOO_LARGE)
89
+ * @type {number}
90
+ * @memberof FileAttachmentUploadResponseUio
91
+ */
92
+ maxTokens?: number;
75
93
  /**
76
94
  *
77
95
  * @type {FileAttachmentProcessedUio}
@@ -93,6 +111,13 @@ export interface FileAttachmentUploadResponseUio {
93
111
  [key: string]: any;
94
112
  };
95
113
  }
114
+ /**
115
+ * @export
116
+ */
117
+ export declare const FileAttachmentUploadResponseUioErrorCodeEnum: {
118
+ readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
119
+ };
120
+ export type FileAttachmentUploadResponseUioErrorCodeEnum = typeof FileAttachmentUploadResponseUioErrorCodeEnum[keyof typeof FileAttachmentUploadResponseUioErrorCodeEnum];
96
121
  /**
97
122
  * Check if a given object implements the FileAttachmentUploadResponseUio interface.
98
123
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileAttachmentUploadResponseUioErrorCodeEnum = void 0;
16
17
  exports.instanceOfFileAttachmentUploadResponseUio = instanceOfFileAttachmentUploadResponseUio;
17
18
  exports.FileAttachmentUploadResponseUioFromJSON = FileAttachmentUploadResponseUioFromJSON;
18
19
  exports.FileAttachmentUploadResponseUioFromJSONTyped = FileAttachmentUploadResponseUioFromJSONTyped;
@@ -21,6 +22,12 @@ exports.FileAttachmentUploadResponseUioToJSONTyped = FileAttachmentUploadRespons
21
22
  const AttachmentTypeUio_1 = require("./AttachmentTypeUio");
22
23
  const FileAttachmentProcessedUio_1 = require("./FileAttachmentProcessedUio");
23
24
  const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.FileAttachmentUploadResponseUioErrorCodeEnum = {
29
+ AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
30
+ };
24
31
  /**
25
32
  * Check if a given object implements the FileAttachmentUploadResponseUio interface.
26
33
  */
@@ -64,6 +71,9 @@ function FileAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator)
64
71
  'key': json['key'],
65
72
  'url': json['url'] == null ? undefined : json['url'],
66
73
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
74
+ 'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
75
+ 'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
76
+ 'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
67
77
  'processed': json['processed'] == null ? undefined : (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioFromJSON)(json['processed']),
68
78
  'postURL': json['postURL'],
69
79
  'formData': json['formData'],
@@ -86,6 +96,9 @@ function FileAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator =
86
96
  'key': value['key'],
87
97
  'url': value['url'],
88
98
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
99
+ 'errorCode': value['errorCode'],
100
+ 'estimatedTokens': value['estimatedTokens'],
101
+ 'maxTokens': value['maxTokens'],
89
102
  'processed': (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioToJSON)(value['processed']),
90
103
  'postURL': value['postURL'],
91
104
  'formData': value['formData'],
package/dist/openapi.json CHANGED
@@ -12737,10 +12737,6 @@
12737
12737
  "enum" : [ "weaviate", "qdrant", "colpali" ],
12738
12738
  "type" : "string"
12739
12739
  },
12740
- "sizeThresholdBytes" : {
12741
- "minimum" : 1,
12742
- "type" : "integer"
12743
- },
12744
12740
  "ttlDays" : {
12745
12741
  "maximum" : 365,
12746
12742
  "minimum" : 1,
@@ -12761,7 +12757,7 @@
12761
12757
  "$ref" : "#/components/schemas/ContextualKnowledgeConversation_embedding"
12762
12758
  }
12763
12759
  },
12764
- "required" : [ "backend", "enabled", "sizeThresholdBytes", "ttlDays" ],
12760
+ "required" : [ "backend", "enabled", "ttlDays" ],
12765
12761
  "type" : "object"
12766
12762
  },
12767
12763
  "AgentRequest" : {
@@ -14021,6 +14017,21 @@
14021
14017
  "status" : {
14022
14018
  "$ref" : "#/components/schemas/FileAttachmentStatus"
14023
14019
  },
14020
+ "errorCode" : {
14021
+ "description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)",
14022
+ "enum" : [ "ATTACHMENT_TOO_LARGE" ],
14023
+ "type" : "string"
14024
+ },
14025
+ "estimatedTokens" : {
14026
+ "description" : "Estimated token count of the attachment (set when status is ERROR / ATTACHMENT_TOO_LARGE)",
14027
+ "minimum" : 0,
14028
+ "type" : "integer"
14029
+ },
14030
+ "maxTokens" : {
14031
+ "description" : "Model context limit used for the comparison (set when status is ERROR / ATTACHMENT_TOO_LARGE)",
14032
+ "minimum" : 1,
14033
+ "type" : "integer"
14034
+ },
14024
14035
  "processed" : {
14025
14036
  "$ref" : "#/components/schemas/FileAttachment_processed"
14026
14037
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.119",
3
+ "version": "1.0.120",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",