@gpt-core/client 0.6.41 → 0.6.51

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/index.d.mts CHANGED
@@ -1314,6 +1314,12 @@ type TrainingExample = {
1314
1314
  * The user's corrected value. Field included by default.
1315
1315
  */
1316
1316
  corrected_value?: string | null | unknown;
1317
+ /**
1318
+ * Per-field correction reasons: %{field_name => reason_string}. Field included by default.
1319
+ */
1320
+ correction_reasons?: {
1321
+ [key: string]: unknown;
1322
+ } | null | unknown;
1317
1323
  /**
1318
1324
  * Field included by default.
1319
1325
  */
@@ -1349,6 +1355,10 @@ type TrainingExample = {
1349
1355
  [key: string]: unknown;
1350
1356
  };
1351
1357
  similarity?: number | null | unknown;
1358
+ /**
1359
+ * General note about these corrections (e.g., 'Poor OCR quality', 'Non-standard date format'). Field included by default.
1360
+ */
1361
+ training_note?: string | null | unknown;
1352
1362
  /**
1353
1363
  * Field included by default.
1354
1364
  */
@@ -2005,7 +2015,7 @@ type ExtractionSchemaField = {
2005
2015
  /**
2006
2016
  * Field included by default.
2007
2017
  */
2008
- type: "text" | "date" | "currency" | "number" | "boolean" | "array";
2018
+ type: "text" | "date" | "currency" | "number" | "boolean" | "array" | "email" | "phone" | "url" | "datetime" | "timestamp" | "alphanumeric_code" | "address";
2009
2019
  };
2010
2020
  id: string;
2011
2021
  /**
@@ -5453,10 +5463,20 @@ type PatchTrainingExamplesByIdData = {
5453
5463
  body?: {
5454
5464
  data: {
5455
5465
  attributes?: {
5466
+ /**
5467
+ * Per-field correction reasons: %{field_name => reason_string}
5468
+ */
5469
+ correction_reasons?: {
5470
+ [key: string]: unknown;
5471
+ } | unknown;
5456
5472
  input_text?: string | unknown;
5457
5473
  output_json?: {
5458
5474
  [key: string]: unknown;
5459
5475
  } | unknown;
5476
+ /**
5477
+ * General note about these corrections (e.g., 'Poor OCR quality', 'Non-standard date format')
5478
+ */
5479
+ training_note?: string | unknown;
5460
5480
  };
5461
5481
  id: string;
5462
5482
  relationships?: {
@@ -8723,7 +8743,7 @@ type PatchExtractionSchemaFieldsByIdData = {
8723
8743
  name?: string | unknown;
8724
8744
  order?: number | unknown;
8725
8745
  required?: boolean | unknown;
8726
- type?: "text" | "date" | "currency" | "number" | "boolean" | "array" | unknown;
8746
+ type?: "text" | "date" | "currency" | "number" | "boolean" | "array" | "email" | "phone" | "url" | "datetime" | "timestamp" | "alphanumeric_code" | "address" | unknown;
8727
8747
  };
8728
8748
  id: string;
8729
8749
  relationships?: {
@@ -11927,6 +11947,12 @@ type PostTrainingExamplesData = {
11927
11947
  * The user's corrected value
11928
11948
  */
11929
11949
  corrected_value?: string | unknown;
11950
+ /**
11951
+ * Per-field correction reasons: %{field_name => reason_string}
11952
+ */
11953
+ correction_reasons?: {
11954
+ [key: string]: unknown;
11955
+ } | unknown;
11930
11956
  document_id?: string | unknown;
11931
11957
  /**
11932
11958
  * The type of document (e.g., 'Invoice', 'Receipt', 'Contract')
@@ -11944,6 +11970,10 @@ type PostTrainingExamplesData = {
11944
11970
  output_json: {
11945
11971
  [key: string]: unknown;
11946
11972
  };
11973
+ /**
11974
+ * General note about these corrections (e.g., 'Poor OCR quality', 'Non-standard date format')
11975
+ */
11976
+ training_note?: string | unknown;
11947
11977
  version_id?: string | unknown;
11948
11978
  };
11949
11979
  relationships?: {
@@ -13494,10 +13524,14 @@ type PostAgentsByIdLearnFromDocumentData = {
13494
13524
  body: {
13495
13525
  data: {
13496
13526
  attributes?: {
13527
+ correction_reasons?: {
13528
+ [key: string]: unknown;
13529
+ } | unknown;
13497
13530
  corrections: {
13498
13531
  [key: string]: unknown;
13499
13532
  };
13500
13533
  document_id: string;
13534
+ training_note?: string | unknown;
13501
13535
  };
13502
13536
  relationships?: {
13503
13537
  [key: string]: never;
@@ -14824,7 +14858,7 @@ type PostExtractionSchemaFieldsData = {
14824
14858
  order?: number | unknown;
14825
14859
  required?: boolean | unknown;
14826
14860
  schema_id: string;
14827
- type: "text" | "date" | "currency" | "number" | "boolean" | "array";
14861
+ type: "text" | "date" | "currency" | "number" | "boolean" | "array" | "email" | "phone" | "url" | "datetime" | "timestamp" | "alphanumeric_code" | "address";
14828
14862
  };
14829
14863
  relationships?: {
14830
14864
  [key: string]: never;
package/dist/index.d.ts CHANGED
@@ -1314,6 +1314,12 @@ type TrainingExample = {
1314
1314
  * The user's corrected value. Field included by default.
1315
1315
  */
1316
1316
  corrected_value?: string | null | unknown;
1317
+ /**
1318
+ * Per-field correction reasons: %{field_name => reason_string}. Field included by default.
1319
+ */
1320
+ correction_reasons?: {
1321
+ [key: string]: unknown;
1322
+ } | null | unknown;
1317
1323
  /**
1318
1324
  * Field included by default.
1319
1325
  */
@@ -1349,6 +1355,10 @@ type TrainingExample = {
1349
1355
  [key: string]: unknown;
1350
1356
  };
1351
1357
  similarity?: number | null | unknown;
1358
+ /**
1359
+ * General note about these corrections (e.g., 'Poor OCR quality', 'Non-standard date format'). Field included by default.
1360
+ */
1361
+ training_note?: string | null | unknown;
1352
1362
  /**
1353
1363
  * Field included by default.
1354
1364
  */
@@ -2005,7 +2015,7 @@ type ExtractionSchemaField = {
2005
2015
  /**
2006
2016
  * Field included by default.
2007
2017
  */
2008
- type: "text" | "date" | "currency" | "number" | "boolean" | "array";
2018
+ type: "text" | "date" | "currency" | "number" | "boolean" | "array" | "email" | "phone" | "url" | "datetime" | "timestamp" | "alphanumeric_code" | "address";
2009
2019
  };
2010
2020
  id: string;
2011
2021
  /**
@@ -5453,10 +5463,20 @@ type PatchTrainingExamplesByIdData = {
5453
5463
  body?: {
5454
5464
  data: {
5455
5465
  attributes?: {
5466
+ /**
5467
+ * Per-field correction reasons: %{field_name => reason_string}
5468
+ */
5469
+ correction_reasons?: {
5470
+ [key: string]: unknown;
5471
+ } | unknown;
5456
5472
  input_text?: string | unknown;
5457
5473
  output_json?: {
5458
5474
  [key: string]: unknown;
5459
5475
  } | unknown;
5476
+ /**
5477
+ * General note about these corrections (e.g., 'Poor OCR quality', 'Non-standard date format')
5478
+ */
5479
+ training_note?: string | unknown;
5460
5480
  };
5461
5481
  id: string;
5462
5482
  relationships?: {
@@ -8723,7 +8743,7 @@ type PatchExtractionSchemaFieldsByIdData = {
8723
8743
  name?: string | unknown;
8724
8744
  order?: number | unknown;
8725
8745
  required?: boolean | unknown;
8726
- type?: "text" | "date" | "currency" | "number" | "boolean" | "array" | unknown;
8746
+ type?: "text" | "date" | "currency" | "number" | "boolean" | "array" | "email" | "phone" | "url" | "datetime" | "timestamp" | "alphanumeric_code" | "address" | unknown;
8727
8747
  };
8728
8748
  id: string;
8729
8749
  relationships?: {
@@ -11927,6 +11947,12 @@ type PostTrainingExamplesData = {
11927
11947
  * The user's corrected value
11928
11948
  */
11929
11949
  corrected_value?: string | unknown;
11950
+ /**
11951
+ * Per-field correction reasons: %{field_name => reason_string}
11952
+ */
11953
+ correction_reasons?: {
11954
+ [key: string]: unknown;
11955
+ } | unknown;
11930
11956
  document_id?: string | unknown;
11931
11957
  /**
11932
11958
  * The type of document (e.g., 'Invoice', 'Receipt', 'Contract')
@@ -11944,6 +11970,10 @@ type PostTrainingExamplesData = {
11944
11970
  output_json: {
11945
11971
  [key: string]: unknown;
11946
11972
  };
11973
+ /**
11974
+ * General note about these corrections (e.g., 'Poor OCR quality', 'Non-standard date format')
11975
+ */
11976
+ training_note?: string | unknown;
11947
11977
  version_id?: string | unknown;
11948
11978
  };
11949
11979
  relationships?: {
@@ -13494,10 +13524,14 @@ type PostAgentsByIdLearnFromDocumentData = {
13494
13524
  body: {
13495
13525
  data: {
13496
13526
  attributes?: {
13527
+ correction_reasons?: {
13528
+ [key: string]: unknown;
13529
+ } | unknown;
13497
13530
  corrections: {
13498
13531
  [key: string]: unknown;
13499
13532
  };
13500
13533
  document_id: string;
13534
+ training_note?: string | unknown;
13501
13535
  };
13502
13536
  relationships?: {
13503
13537
  [key: string]: never;
@@ -14824,7 +14858,7 @@ type PostExtractionSchemaFieldsData = {
14824
14858
  order?: number | unknown;
14825
14859
  required?: boolean | unknown;
14826
14860
  schema_id: string;
14827
- type: "text" | "date" | "currency" | "number" | "boolean" | "array";
14861
+ type: "text" | "date" | "currency" | "number" | "boolean" | "array" | "email" | "phone" | "url" | "datetime" | "timestamp" | "alphanumeric_code" | "address";
14828
14862
  };
14829
14863
  relationships?: {
14830
14864
  [key: string]: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.6.41",
3
+ "version": "0.6.51",
4
4
  "description": "TypeScript SDK for GPT Core Client API - Document extraction, AI agents, and workspace management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",