@breign/client 1.0.155 → 1.0.156

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.
@@ -120,6 +120,12 @@ export interface FileCreationResponseUio {
120
120
  * @memberof FileCreationResponseUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof FileCreationResponseUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -65,6 +65,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
65
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
66
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
67
67
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
68
+ 'error': json['error'] == null ? undefined : json['error'],
68
69
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
69
70
  };
70
71
  }
@@ -93,6 +94,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
93
94
  'createdAt': value['createdAt'],
94
95
  'updatedAt': value['updatedAt'],
95
96
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
97
+ 'error': value['error'],
96
98
  'isActive': value['isActive'],
97
99
  };
98
100
  }
@@ -19,6 +19,7 @@ export declare const FileStatusUio: {
19
19
  readonly Uploaded: "UPLOADED";
20
20
  readonly Processing: "PROCESSING";
21
21
  readonly Indexed: "INDEXED";
22
+ readonly Error: "ERROR";
22
23
  };
23
24
  export type FileStatusUio = typeof FileStatusUio[keyof typeof FileStatusUio];
24
25
  export declare function instanceOfFileStatusUio(value: any): boolean;
@@ -28,7 +28,8 @@ exports.FileStatusUio = {
28
28
  Pending: 'PENDING',
29
29
  Uploaded: 'UPLOADED',
30
30
  Processing: 'PROCESSING',
31
- Indexed: 'INDEXED'
31
+ Indexed: 'INDEXED',
32
+ Error: 'ERROR'
32
33
  };
33
34
  function instanceOfFileStatusUio(value) {
34
35
  for (const key in exports.FileStatusUio) {
@@ -120,6 +120,12 @@ export interface FileUio {
120
120
  * @memberof FileUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof FileUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -61,6 +61,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
61
61
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
62
62
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
63
63
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
64
+ 'error': json['error'] == null ? undefined : json['error'],
64
65
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
65
66
  };
66
67
  }
@@ -89,6 +90,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
89
90
  'createdAt': value['createdAt'],
90
91
  'updatedAt': value['updatedAt'],
91
92
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
93
+ 'error': value['error'],
92
94
  'isActive': value['isActive'],
93
95
  };
94
96
  }
@@ -120,6 +120,12 @@ export interface FileWithDownloadUrlUio {
120
120
  * @memberof FileWithDownloadUrlUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof FileWithDownloadUrlUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -63,6 +63,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
64
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
65
65
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
66
+ 'error': json['error'] == null ? undefined : json['error'],
66
67
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
67
68
  'downloadURL': json['downloadURL'],
68
69
  };
@@ -92,6 +93,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
92
93
  'createdAt': value['createdAt'],
93
94
  'updatedAt': value['updatedAt'],
94
95
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
96
+ 'error': value['error'],
95
97
  'isActive': value['isActive'],
96
98
  'downloadURL': value['downloadURL'],
97
99
  };
@@ -120,6 +120,12 @@ export interface KnowledgeFileUio {
120
120
  * @memberof KnowledgeFileUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof KnowledgeFileUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -61,6 +61,7 @@ function KnowledgeFileUioFromJSONTyped(json, ignoreDiscriminator) {
61
61
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
62
62
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
63
63
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
64
+ 'error': json['error'] == null ? undefined : json['error'],
64
65
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
65
66
  };
66
67
  }
@@ -89,6 +90,7 @@ function KnowledgeFileUioToJSONTyped(value, ignoreDiscriminator = false) {
89
90
  'createdAt': value['createdAt'],
90
91
  'updatedAt': value['updatedAt'],
91
92
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
93
+ 'error': value['error'],
92
94
  'isActive': value['isActive'],
93
95
  };
94
96
  }
package/dist/openapi.json CHANGED
@@ -17671,6 +17671,11 @@
17671
17671
  "status" : {
17672
17672
  "$ref" : "#/components/schemas/FileStatus"
17673
17673
  },
17674
+ "error" : {
17675
+ "description" : "Why the file ended in ERROR; null otherwise.",
17676
+ "nullable" : true,
17677
+ "type" : "string"
17678
+ },
17674
17679
  "isActive" : {
17675
17680
  "type" : "boolean"
17676
17681
  }
@@ -24148,7 +24153,7 @@
24148
24153
  "type" : "object"
24149
24154
  },
24150
24155
  "FileStatus" : {
24151
- "enum" : [ "SCRAPING", "PENDING", "UPLOADED", "PROCESSING", "INDEXED" ],
24156
+ "enum" : [ "SCRAPING", "PENDING", "UPLOADED", "PROCESSING", "INDEXED", "ERROR" ],
24152
24157
  "type" : "string"
24153
24158
  },
24154
24159
  "HealthStatus" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.155",
3
+ "version": "1.0.156",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",