@gpt-core/admin 0.6.61 → 0.6.71

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
@@ -46,6 +46,9 @@ type WorkspaceSettingsInputCreateType = {
46
46
  overdraft_limit?: number | unknown;
47
47
  overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
48
48
  } | unknown;
49
+ review_train?: {
50
+ confidence_threshold?: number | unknown;
51
+ } | unknown;
49
52
  scheduling?: {
50
53
  enabled?: boolean | unknown;
51
54
  interval_minutes?: number | unknown;
@@ -1026,6 +1029,9 @@ type WorkspaceSettingsInputUpdateType = {
1026
1029
  overdraft_limit?: number | unknown;
1027
1030
  overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
1028
1031
  } | unknown;
1032
+ review_train?: {
1033
+ confidence_threshold?: number | unknown;
1034
+ } | unknown;
1029
1035
  scheduling?: {
1030
1036
  enabled?: boolean | unknown;
1031
1037
  interval_minutes?: number | unknown;
@@ -1061,6 +1067,10 @@ type TrainingAnalytics = {
1061
1067
  * An attributes object for a training_analytics
1062
1068
  */
1063
1069
  attributes?: {
1070
+ /**
1071
+ * Field included by default.
1072
+ */
1073
+ accuracy_improvement?: number | null | unknown;
1064
1074
  /**
1065
1075
  * Field included by default.
1066
1076
  */
@@ -1071,6 +1081,10 @@ type TrainingAnalytics = {
1071
1081
  * Field included by default.
1072
1082
  */
1073
1083
  avg_confidence?: number | null | unknown;
1084
+ /**
1085
+ * Field included by default.
1086
+ */
1087
+ confidence_threshold?: number | null | unknown;
1074
1088
  /**
1075
1089
  * Field included by default.
1076
1090
  */
@@ -1093,6 +1107,18 @@ type TrainingAnalytics = {
1093
1107
  * Field included by default.
1094
1108
  */
1095
1109
  total_examples?: number | null | unknown;
1110
+ /**
1111
+ * Field included by default.
1112
+ */
1113
+ total_fields_confirmed?: number | null | unknown;
1114
+ /**
1115
+ * Field included by default.
1116
+ */
1117
+ total_fields_corrected?: number | null | unknown;
1118
+ /**
1119
+ * Field included by default.
1120
+ */
1121
+ total_fields_reviewed?: number | null | unknown;
1096
1122
  /**
1097
1123
  * Field included by default.
1098
1124
  */
@@ -1359,6 +1385,10 @@ type TrainingExample = {
1359
1385
  * Field included by default.
1360
1386
  */
1361
1387
  inserted_at: unknown;
1388
+ /**
1389
+ * Whether this example was explicitly confirmed by a user. Field included by default.
1390
+ */
1391
+ is_confirmed: boolean;
1362
1392
  /**
1363
1393
  * The AI's original extraction value before user correction. Field included by default.
1364
1394
  */
@@ -2634,6 +2664,15 @@ type Workspace = {
2634
2664
  */
2635
2665
  overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
2636
2666
  };
2667
+ /**
2668
+ * Field included by default.
2669
+ */
2670
+ review_train: {
2671
+ /**
2672
+ * Field included by default.
2673
+ */
2674
+ confidence_threshold: number;
2675
+ };
2637
2676
  /**
2638
2677
  * Field included by default.
2639
2678
  */
@@ -6555,7 +6594,7 @@ type GetAdminTrainingExamplesByIdResponses = {
6555
6594
  */
6556
6595
  200: {
6557
6596
  data?: TrainingExample;
6558
- included?: Array<unknown>;
6597
+ included?: Array<ExtractionDocument>;
6559
6598
  meta?: {
6560
6599
  [key: string]: unknown;
6561
6600
  };
@@ -6651,7 +6690,7 @@ type PatchAdminTrainingExamplesByIdResponses = {
6651
6690
  */
6652
6691
  200: {
6653
6692
  data?: TrainingExample;
6654
- included?: Array<unknown>;
6693
+ included?: Array<ExtractionDocument>;
6655
6694
  meta?: {
6656
6695
  [key: string]: unknown;
6657
6696
  };
@@ -14984,6 +15023,12 @@ type GetAdminTrainingExamplesData = {
14984
15023
  * Sort results by one or more fields. Prefix with '-' for descending order. Separate multiple fields with commas.
14985
15024
  */
14986
15025
  sort?: string;
15026
+ /**
15027
+ * JSON:API pagination parameters (use flat query string format: page[limit]=20&page[offset]=0)
15028
+ */
15029
+ page?: {
15030
+ [key: string]: unknown;
15031
+ };
14987
15032
  /**
14988
15033
  * Include related resources in the response. Comma-separated list of relationship names to eager-load.
14989
15034
  */
@@ -15042,7 +15087,7 @@ type GetAdminTrainingExamplesResponses = {
15042
15087
  * An array of resource objects representing a training_example
15043
15088
  */
15044
15089
  data?: Array<TrainingExample>;
15045
- included?: Array<unknown>;
15090
+ included?: Array<ExtractionDocument>;
15046
15091
  meta?: {
15047
15092
  [key: string]: unknown;
15048
15093
  };
@@ -15081,6 +15126,10 @@ type PostAdminTrainingExamplesData = {
15081
15126
  */
15082
15127
  field_name?: string | unknown;
15083
15128
  input_text: string;
15129
+ /**
15130
+ * Whether this example was explicitly confirmed by a user
15131
+ */
15132
+ is_confirmed?: boolean | unknown;
15084
15133
  /**
15085
15134
  * The AI's original extraction value before user correction
15086
15135
  */
@@ -15158,7 +15207,7 @@ type PostAdminTrainingExamplesResponses = {
15158
15207
  */
15159
15208
  201: {
15160
15209
  data?: TrainingExample;
15161
- included?: Array<unknown>;
15210
+ included?: Array<ExtractionDocument>;
15162
15211
  meta?: {
15163
15212
  [key: string]: unknown;
15164
15213
  };
@@ -20452,6 +20501,7 @@ type PostAdminAgentsByIdLearnFromDocumentData = {
20452
20501
  body: {
20453
20502
  data: {
20454
20503
  attributes?: {
20504
+ confirmed_fields?: Array<string> | unknown;
20455
20505
  correction_reasons?: {
20456
20506
  [key: string]: unknown;
20457
20507
  } | unknown;
package/dist/index.d.ts CHANGED
@@ -46,6 +46,9 @@ type WorkspaceSettingsInputCreateType = {
46
46
  overdraft_limit?: number | unknown;
47
47
  overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
48
48
  } | unknown;
49
+ review_train?: {
50
+ confidence_threshold?: number | unknown;
51
+ } | unknown;
49
52
  scheduling?: {
50
53
  enabled?: boolean | unknown;
51
54
  interval_minutes?: number | unknown;
@@ -1026,6 +1029,9 @@ type WorkspaceSettingsInputUpdateType = {
1026
1029
  overdraft_limit?: number | unknown;
1027
1030
  overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
1028
1031
  } | unknown;
1032
+ review_train?: {
1033
+ confidence_threshold?: number | unknown;
1034
+ } | unknown;
1029
1035
  scheduling?: {
1030
1036
  enabled?: boolean | unknown;
1031
1037
  interval_minutes?: number | unknown;
@@ -1061,6 +1067,10 @@ type TrainingAnalytics = {
1061
1067
  * An attributes object for a training_analytics
1062
1068
  */
1063
1069
  attributes?: {
1070
+ /**
1071
+ * Field included by default.
1072
+ */
1073
+ accuracy_improvement?: number | null | unknown;
1064
1074
  /**
1065
1075
  * Field included by default.
1066
1076
  */
@@ -1071,6 +1081,10 @@ type TrainingAnalytics = {
1071
1081
  * Field included by default.
1072
1082
  */
1073
1083
  avg_confidence?: number | null | unknown;
1084
+ /**
1085
+ * Field included by default.
1086
+ */
1087
+ confidence_threshold?: number | null | unknown;
1074
1088
  /**
1075
1089
  * Field included by default.
1076
1090
  */
@@ -1093,6 +1107,18 @@ type TrainingAnalytics = {
1093
1107
  * Field included by default.
1094
1108
  */
1095
1109
  total_examples?: number | null | unknown;
1110
+ /**
1111
+ * Field included by default.
1112
+ */
1113
+ total_fields_confirmed?: number | null | unknown;
1114
+ /**
1115
+ * Field included by default.
1116
+ */
1117
+ total_fields_corrected?: number | null | unknown;
1118
+ /**
1119
+ * Field included by default.
1120
+ */
1121
+ total_fields_reviewed?: number | null | unknown;
1096
1122
  /**
1097
1123
  * Field included by default.
1098
1124
  */
@@ -1359,6 +1385,10 @@ type TrainingExample = {
1359
1385
  * Field included by default.
1360
1386
  */
1361
1387
  inserted_at: unknown;
1388
+ /**
1389
+ * Whether this example was explicitly confirmed by a user. Field included by default.
1390
+ */
1391
+ is_confirmed: boolean;
1362
1392
  /**
1363
1393
  * The AI's original extraction value before user correction. Field included by default.
1364
1394
  */
@@ -2634,6 +2664,15 @@ type Workspace = {
2634
2664
  */
2635
2665
  overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
2636
2666
  };
2667
+ /**
2668
+ * Field included by default.
2669
+ */
2670
+ review_train: {
2671
+ /**
2672
+ * Field included by default.
2673
+ */
2674
+ confidence_threshold: number;
2675
+ };
2637
2676
  /**
2638
2677
  * Field included by default.
2639
2678
  */
@@ -6555,7 +6594,7 @@ type GetAdminTrainingExamplesByIdResponses = {
6555
6594
  */
6556
6595
  200: {
6557
6596
  data?: TrainingExample;
6558
- included?: Array<unknown>;
6597
+ included?: Array<ExtractionDocument>;
6559
6598
  meta?: {
6560
6599
  [key: string]: unknown;
6561
6600
  };
@@ -6651,7 +6690,7 @@ type PatchAdminTrainingExamplesByIdResponses = {
6651
6690
  */
6652
6691
  200: {
6653
6692
  data?: TrainingExample;
6654
- included?: Array<unknown>;
6693
+ included?: Array<ExtractionDocument>;
6655
6694
  meta?: {
6656
6695
  [key: string]: unknown;
6657
6696
  };
@@ -14984,6 +15023,12 @@ type GetAdminTrainingExamplesData = {
14984
15023
  * Sort results by one or more fields. Prefix with '-' for descending order. Separate multiple fields with commas.
14985
15024
  */
14986
15025
  sort?: string;
15026
+ /**
15027
+ * JSON:API pagination parameters (use flat query string format: page[limit]=20&page[offset]=0)
15028
+ */
15029
+ page?: {
15030
+ [key: string]: unknown;
15031
+ };
14987
15032
  /**
14988
15033
  * Include related resources in the response. Comma-separated list of relationship names to eager-load.
14989
15034
  */
@@ -15042,7 +15087,7 @@ type GetAdminTrainingExamplesResponses = {
15042
15087
  * An array of resource objects representing a training_example
15043
15088
  */
15044
15089
  data?: Array<TrainingExample>;
15045
- included?: Array<unknown>;
15090
+ included?: Array<ExtractionDocument>;
15046
15091
  meta?: {
15047
15092
  [key: string]: unknown;
15048
15093
  };
@@ -15081,6 +15126,10 @@ type PostAdminTrainingExamplesData = {
15081
15126
  */
15082
15127
  field_name?: string | unknown;
15083
15128
  input_text: string;
15129
+ /**
15130
+ * Whether this example was explicitly confirmed by a user
15131
+ */
15132
+ is_confirmed?: boolean | unknown;
15084
15133
  /**
15085
15134
  * The AI's original extraction value before user correction
15086
15135
  */
@@ -15158,7 +15207,7 @@ type PostAdminTrainingExamplesResponses = {
15158
15207
  */
15159
15208
  201: {
15160
15209
  data?: TrainingExample;
15161
- included?: Array<unknown>;
15210
+ included?: Array<ExtractionDocument>;
15162
15211
  meta?: {
15163
15212
  [key: string]: unknown;
15164
15213
  };
@@ -20452,6 +20501,7 @@ type PostAdminAgentsByIdLearnFromDocumentData = {
20452
20501
  body: {
20453
20502
  data: {
20454
20503
  attributes?: {
20504
+ confirmed_fields?: Array<string> | unknown;
20455
20505
  correction_reasons?: {
20456
20506
  [key: string]: unknown;
20457
20507
  } | unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/admin",
3
- "version": "0.6.61",
3
+ "version": "0.6.71",
4
4
  "description": "TypeScript SDK for GPT Core Admin API - Platform administration and ISV management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",