@gpt-core/client 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 +54 -4
- package/dist/index.d.ts +54 -4
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -31,6 +31,9 @@ type WorkspaceSettingsInputCreateType = {
|
|
|
31
31
|
overdraft_limit?: number | unknown;
|
|
32
32
|
overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
|
|
33
33
|
} | unknown;
|
|
34
|
+
review_train?: {
|
|
35
|
+
confidence_threshold?: number | unknown;
|
|
36
|
+
} | unknown;
|
|
34
37
|
scheduling?: {
|
|
35
38
|
enabled?: boolean | unknown;
|
|
36
39
|
interval_minutes?: number | unknown;
|
|
@@ -1011,6 +1014,9 @@ type WorkspaceSettingsInputUpdateType = {
|
|
|
1011
1014
|
overdraft_limit?: number | unknown;
|
|
1012
1015
|
overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
|
|
1013
1016
|
} | unknown;
|
|
1017
|
+
review_train?: {
|
|
1018
|
+
confidence_threshold?: number | unknown;
|
|
1019
|
+
} | unknown;
|
|
1014
1020
|
scheduling?: {
|
|
1015
1021
|
enabled?: boolean | unknown;
|
|
1016
1022
|
interval_minutes?: number | unknown;
|
|
@@ -1046,6 +1052,10 @@ type TrainingAnalytics = {
|
|
|
1046
1052
|
* An attributes object for a training_analytics
|
|
1047
1053
|
*/
|
|
1048
1054
|
attributes?: {
|
|
1055
|
+
/**
|
|
1056
|
+
* Field included by default.
|
|
1057
|
+
*/
|
|
1058
|
+
accuracy_improvement?: number | null | unknown;
|
|
1049
1059
|
/**
|
|
1050
1060
|
* Field included by default.
|
|
1051
1061
|
*/
|
|
@@ -1056,6 +1066,10 @@ type TrainingAnalytics = {
|
|
|
1056
1066
|
* Field included by default.
|
|
1057
1067
|
*/
|
|
1058
1068
|
avg_confidence?: number | null | unknown;
|
|
1069
|
+
/**
|
|
1070
|
+
* Field included by default.
|
|
1071
|
+
*/
|
|
1072
|
+
confidence_threshold?: number | null | unknown;
|
|
1059
1073
|
/**
|
|
1060
1074
|
* Field included by default.
|
|
1061
1075
|
*/
|
|
@@ -1078,6 +1092,18 @@ type TrainingAnalytics = {
|
|
|
1078
1092
|
* Field included by default.
|
|
1079
1093
|
*/
|
|
1080
1094
|
total_examples?: number | null | unknown;
|
|
1095
|
+
/**
|
|
1096
|
+
* Field included by default.
|
|
1097
|
+
*/
|
|
1098
|
+
total_fields_confirmed?: number | null | unknown;
|
|
1099
|
+
/**
|
|
1100
|
+
* Field included by default.
|
|
1101
|
+
*/
|
|
1102
|
+
total_fields_corrected?: number | null | unknown;
|
|
1103
|
+
/**
|
|
1104
|
+
* Field included by default.
|
|
1105
|
+
*/
|
|
1106
|
+
total_fields_reviewed?: number | null | unknown;
|
|
1081
1107
|
/**
|
|
1082
1108
|
* Field included by default.
|
|
1083
1109
|
*/
|
|
@@ -1344,6 +1370,10 @@ type TrainingExample = {
|
|
|
1344
1370
|
* Field included by default.
|
|
1345
1371
|
*/
|
|
1346
1372
|
inserted_at: unknown;
|
|
1373
|
+
/**
|
|
1374
|
+
* Whether this example was explicitly confirmed by a user. Field included by default.
|
|
1375
|
+
*/
|
|
1376
|
+
is_confirmed: boolean;
|
|
1347
1377
|
/**
|
|
1348
1378
|
* The AI's original extraction value before user correction. Field included by default.
|
|
1349
1379
|
*/
|
|
@@ -2619,6 +2649,15 @@ type Workspace = {
|
|
|
2619
2649
|
*/
|
|
2620
2650
|
overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
|
|
2621
2651
|
};
|
|
2652
|
+
/**
|
|
2653
|
+
* Field included by default.
|
|
2654
|
+
*/
|
|
2655
|
+
review_train: {
|
|
2656
|
+
/**
|
|
2657
|
+
* Field included by default.
|
|
2658
|
+
*/
|
|
2659
|
+
confidence_threshold: number;
|
|
2660
|
+
};
|
|
2622
2661
|
/**
|
|
2623
2662
|
* Field included by default.
|
|
2624
2663
|
*/
|
|
@@ -5449,7 +5488,7 @@ type GetTrainingExamplesByIdResponses = {
|
|
|
5449
5488
|
*/
|
|
5450
5489
|
200: {
|
|
5451
5490
|
data?: TrainingExample;
|
|
5452
|
-
included?: Array<
|
|
5491
|
+
included?: Array<ExtractionDocument>;
|
|
5453
5492
|
meta?: {
|
|
5454
5493
|
[key: string]: unknown;
|
|
5455
5494
|
};
|
|
@@ -5545,7 +5584,7 @@ type PatchTrainingExamplesByIdResponses = {
|
|
|
5545
5584
|
*/
|
|
5546
5585
|
200: {
|
|
5547
5586
|
data?: TrainingExample;
|
|
5548
|
-
included?: Array<
|
|
5587
|
+
included?: Array<ExtractionDocument>;
|
|
5549
5588
|
meta?: {
|
|
5550
5589
|
[key: string]: unknown;
|
|
5551
5590
|
};
|
|
@@ -11866,6 +11905,12 @@ type GetTrainingExamplesData = {
|
|
|
11866
11905
|
* Sort results by one or more fields. Prefix with '-' for descending order. Separate multiple fields with commas.
|
|
11867
11906
|
*/
|
|
11868
11907
|
sort?: string;
|
|
11908
|
+
/**
|
|
11909
|
+
* JSON:API pagination parameters (use flat query string format: page[limit]=20&page[offset]=0)
|
|
11910
|
+
*/
|
|
11911
|
+
page?: {
|
|
11912
|
+
[key: string]: unknown;
|
|
11913
|
+
};
|
|
11869
11914
|
/**
|
|
11870
11915
|
* Include related resources in the response. Comma-separated list of relationship names to eager-load.
|
|
11871
11916
|
*/
|
|
@@ -11924,7 +11969,7 @@ type GetTrainingExamplesResponses = {
|
|
|
11924
11969
|
* An array of resource objects representing a training_example
|
|
11925
11970
|
*/
|
|
11926
11971
|
data?: Array<TrainingExample>;
|
|
11927
|
-
included?: Array<
|
|
11972
|
+
included?: Array<ExtractionDocument>;
|
|
11928
11973
|
meta?: {
|
|
11929
11974
|
[key: string]: unknown;
|
|
11930
11975
|
};
|
|
@@ -11963,6 +12008,10 @@ type PostTrainingExamplesData = {
|
|
|
11963
12008
|
*/
|
|
11964
12009
|
field_name?: string | unknown;
|
|
11965
12010
|
input_text: string;
|
|
12011
|
+
/**
|
|
12012
|
+
* Whether this example was explicitly confirmed by a user
|
|
12013
|
+
*/
|
|
12014
|
+
is_confirmed?: boolean | unknown;
|
|
11966
12015
|
/**
|
|
11967
12016
|
* The AI's original extraction value before user correction
|
|
11968
12017
|
*/
|
|
@@ -12040,7 +12089,7 @@ type PostTrainingExamplesResponses = {
|
|
|
12040
12089
|
*/
|
|
12041
12090
|
201: {
|
|
12042
12091
|
data?: TrainingExample;
|
|
12043
|
-
included?: Array<
|
|
12092
|
+
included?: Array<ExtractionDocument>;
|
|
12044
12093
|
meta?: {
|
|
12045
12094
|
[key: string]: unknown;
|
|
12046
12095
|
};
|
|
@@ -13524,6 +13573,7 @@ type PostAgentsByIdLearnFromDocumentData = {
|
|
|
13524
13573
|
body: {
|
|
13525
13574
|
data: {
|
|
13526
13575
|
attributes?: {
|
|
13576
|
+
confirmed_fields?: Array<string> | unknown;
|
|
13527
13577
|
correction_reasons?: {
|
|
13528
13578
|
[key: string]: unknown;
|
|
13529
13579
|
} | unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ type WorkspaceSettingsInputCreateType = {
|
|
|
31
31
|
overdraft_limit?: number | unknown;
|
|
32
32
|
overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
|
|
33
33
|
} | unknown;
|
|
34
|
+
review_train?: {
|
|
35
|
+
confidence_threshold?: number | unknown;
|
|
36
|
+
} | unknown;
|
|
34
37
|
scheduling?: {
|
|
35
38
|
enabled?: boolean | unknown;
|
|
36
39
|
interval_minutes?: number | unknown;
|
|
@@ -1011,6 +1014,9 @@ type WorkspaceSettingsInputUpdateType = {
|
|
|
1011
1014
|
overdraft_limit?: number | unknown;
|
|
1012
1015
|
overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
|
|
1013
1016
|
} | unknown;
|
|
1017
|
+
review_train?: {
|
|
1018
|
+
confidence_threshold?: number | unknown;
|
|
1019
|
+
} | unknown;
|
|
1014
1020
|
scheduling?: {
|
|
1015
1021
|
enabled?: boolean | unknown;
|
|
1016
1022
|
interval_minutes?: number | unknown;
|
|
@@ -1046,6 +1052,10 @@ type TrainingAnalytics = {
|
|
|
1046
1052
|
* An attributes object for a training_analytics
|
|
1047
1053
|
*/
|
|
1048
1054
|
attributes?: {
|
|
1055
|
+
/**
|
|
1056
|
+
* Field included by default.
|
|
1057
|
+
*/
|
|
1058
|
+
accuracy_improvement?: number | null | unknown;
|
|
1049
1059
|
/**
|
|
1050
1060
|
* Field included by default.
|
|
1051
1061
|
*/
|
|
@@ -1056,6 +1066,10 @@ type TrainingAnalytics = {
|
|
|
1056
1066
|
* Field included by default.
|
|
1057
1067
|
*/
|
|
1058
1068
|
avg_confidence?: number | null | unknown;
|
|
1069
|
+
/**
|
|
1070
|
+
* Field included by default.
|
|
1071
|
+
*/
|
|
1072
|
+
confidence_threshold?: number | null | unknown;
|
|
1059
1073
|
/**
|
|
1060
1074
|
* Field included by default.
|
|
1061
1075
|
*/
|
|
@@ -1078,6 +1092,18 @@ type TrainingAnalytics = {
|
|
|
1078
1092
|
* Field included by default.
|
|
1079
1093
|
*/
|
|
1080
1094
|
total_examples?: number | null | unknown;
|
|
1095
|
+
/**
|
|
1096
|
+
* Field included by default.
|
|
1097
|
+
*/
|
|
1098
|
+
total_fields_confirmed?: number | null | unknown;
|
|
1099
|
+
/**
|
|
1100
|
+
* Field included by default.
|
|
1101
|
+
*/
|
|
1102
|
+
total_fields_corrected?: number | null | unknown;
|
|
1103
|
+
/**
|
|
1104
|
+
* Field included by default.
|
|
1105
|
+
*/
|
|
1106
|
+
total_fields_reviewed?: number | null | unknown;
|
|
1081
1107
|
/**
|
|
1082
1108
|
* Field included by default.
|
|
1083
1109
|
*/
|
|
@@ -1344,6 +1370,10 @@ type TrainingExample = {
|
|
|
1344
1370
|
* Field included by default.
|
|
1345
1371
|
*/
|
|
1346
1372
|
inserted_at: unknown;
|
|
1373
|
+
/**
|
|
1374
|
+
* Whether this example was explicitly confirmed by a user. Field included by default.
|
|
1375
|
+
*/
|
|
1376
|
+
is_confirmed: boolean;
|
|
1347
1377
|
/**
|
|
1348
1378
|
* The AI's original extraction value before user correction. Field included by default.
|
|
1349
1379
|
*/
|
|
@@ -2619,6 +2649,15 @@ type Workspace = {
|
|
|
2619
2649
|
*/
|
|
2620
2650
|
overdraft_period?: "daily" | "weekly" | "monthly" | unknown;
|
|
2621
2651
|
};
|
|
2652
|
+
/**
|
|
2653
|
+
* Field included by default.
|
|
2654
|
+
*/
|
|
2655
|
+
review_train: {
|
|
2656
|
+
/**
|
|
2657
|
+
* Field included by default.
|
|
2658
|
+
*/
|
|
2659
|
+
confidence_threshold: number;
|
|
2660
|
+
};
|
|
2622
2661
|
/**
|
|
2623
2662
|
* Field included by default.
|
|
2624
2663
|
*/
|
|
@@ -5449,7 +5488,7 @@ type GetTrainingExamplesByIdResponses = {
|
|
|
5449
5488
|
*/
|
|
5450
5489
|
200: {
|
|
5451
5490
|
data?: TrainingExample;
|
|
5452
|
-
included?: Array<
|
|
5491
|
+
included?: Array<ExtractionDocument>;
|
|
5453
5492
|
meta?: {
|
|
5454
5493
|
[key: string]: unknown;
|
|
5455
5494
|
};
|
|
@@ -5545,7 +5584,7 @@ type PatchTrainingExamplesByIdResponses = {
|
|
|
5545
5584
|
*/
|
|
5546
5585
|
200: {
|
|
5547
5586
|
data?: TrainingExample;
|
|
5548
|
-
included?: Array<
|
|
5587
|
+
included?: Array<ExtractionDocument>;
|
|
5549
5588
|
meta?: {
|
|
5550
5589
|
[key: string]: unknown;
|
|
5551
5590
|
};
|
|
@@ -11866,6 +11905,12 @@ type GetTrainingExamplesData = {
|
|
|
11866
11905
|
* Sort results by one or more fields. Prefix with '-' for descending order. Separate multiple fields with commas.
|
|
11867
11906
|
*/
|
|
11868
11907
|
sort?: string;
|
|
11908
|
+
/**
|
|
11909
|
+
* JSON:API pagination parameters (use flat query string format: page[limit]=20&page[offset]=0)
|
|
11910
|
+
*/
|
|
11911
|
+
page?: {
|
|
11912
|
+
[key: string]: unknown;
|
|
11913
|
+
};
|
|
11869
11914
|
/**
|
|
11870
11915
|
* Include related resources in the response. Comma-separated list of relationship names to eager-load.
|
|
11871
11916
|
*/
|
|
@@ -11924,7 +11969,7 @@ type GetTrainingExamplesResponses = {
|
|
|
11924
11969
|
* An array of resource objects representing a training_example
|
|
11925
11970
|
*/
|
|
11926
11971
|
data?: Array<TrainingExample>;
|
|
11927
|
-
included?: Array<
|
|
11972
|
+
included?: Array<ExtractionDocument>;
|
|
11928
11973
|
meta?: {
|
|
11929
11974
|
[key: string]: unknown;
|
|
11930
11975
|
};
|
|
@@ -11963,6 +12008,10 @@ type PostTrainingExamplesData = {
|
|
|
11963
12008
|
*/
|
|
11964
12009
|
field_name?: string | unknown;
|
|
11965
12010
|
input_text: string;
|
|
12011
|
+
/**
|
|
12012
|
+
* Whether this example was explicitly confirmed by a user
|
|
12013
|
+
*/
|
|
12014
|
+
is_confirmed?: boolean | unknown;
|
|
11966
12015
|
/**
|
|
11967
12016
|
* The AI's original extraction value before user correction
|
|
11968
12017
|
*/
|
|
@@ -12040,7 +12089,7 @@ type PostTrainingExamplesResponses = {
|
|
|
12040
12089
|
*/
|
|
12041
12090
|
201: {
|
|
12042
12091
|
data?: TrainingExample;
|
|
12043
|
-
included?: Array<
|
|
12092
|
+
included?: Array<ExtractionDocument>;
|
|
12044
12093
|
meta?: {
|
|
12045
12094
|
[key: string]: unknown;
|
|
12046
12095
|
};
|
|
@@ -13524,6 +13573,7 @@ type PostAgentsByIdLearnFromDocumentData = {
|
|
|
13524
13573
|
body: {
|
|
13525
13574
|
data: {
|
|
13526
13575
|
attributes?: {
|
|
13576
|
+
confirmed_fields?: Array<string> | unknown;
|
|
13527
13577
|
correction_reasons?: {
|
|
13528
13578
|
[key: string]: unknown;
|
|
13529
13579
|
} | unknown;
|
package/dist/index.js
CHANGED
|
@@ -2144,6 +2144,7 @@ var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
|
2144
2144
|
querySerializer: {
|
|
2145
2145
|
parameters: {
|
|
2146
2146
|
filter: { object: { style: "form" } },
|
|
2147
|
+
page: { object: { style: "form" } },
|
|
2147
2148
|
fields: { object: { style: "form" } }
|
|
2148
2149
|
}
|
|
2149
2150
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1838,6 +1838,7 @@ var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
|
1838
1838
|
querySerializer: {
|
|
1839
1839
|
parameters: {
|
|
1840
1840
|
filter: { object: { style: "form" } },
|
|
1841
|
+
page: { object: { style: "form" } },
|
|
1841
1842
|
fields: { object: { style: "form" } }
|
|
1842
1843
|
}
|
|
1843
1844
|
},
|
package/package.json
CHANGED