@gpt-core/client 0.6.6 → 0.6.8
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 +449 -7
- package/dist/index.d.ts +449 -7
- package/dist/index.js +51 -0
- package/dist/index.mjs +47 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,6 +110,7 @@ __export(index_exports, {
|
|
|
110
110
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
111
111
|
getExtractionSchemaFields: () => getExtractionSchemaFields,
|
|
112
112
|
getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
|
|
113
|
+
getExtractionSchemas: () => getExtractionSchemas,
|
|
113
114
|
getExtractionSchemasById: () => getExtractionSchemasById,
|
|
114
115
|
getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
|
|
115
116
|
getFieldTemplates: () => getFieldTemplates,
|
|
@@ -189,12 +190,15 @@ __export(index_exports, {
|
|
|
189
190
|
patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
|
|
190
191
|
patchBucketsById: () => patchBucketsById,
|
|
191
192
|
patchConfigsByKey: () => patchConfigsByKey,
|
|
193
|
+
patchExtractionDocumentsByIdExclude: () => patchExtractionDocumentsByIdExclude,
|
|
192
194
|
patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
|
|
195
|
+
patchExtractionDocumentsByIdInclude: () => patchExtractionDocumentsByIdInclude,
|
|
193
196
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
194
197
|
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
195
198
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
196
199
|
patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
|
|
197
200
|
patchExtractionSchemasById: () => patchExtractionSchemasById,
|
|
201
|
+
patchExtractionSchemasByIdActivate: () => patchExtractionSchemasByIdActivate,
|
|
198
202
|
patchExtractionSchemasByIdFields: () => patchExtractionSchemasByIdFields,
|
|
199
203
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
200
204
|
patchInvitationsByIdResend: () => patchInvitationsByIdResend,
|
|
@@ -1280,6 +1284,16 @@ var getLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
|
1280
1284
|
url: "/llm_analytics/platform",
|
|
1281
1285
|
...options
|
|
1282
1286
|
});
|
|
1287
|
+
var patchExtractionDocumentsByIdExclude = (options) => (options.client ?? client).patch({
|
|
1288
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1289
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1290
|
+
url: "/extraction/documents/{id}/exclude",
|
|
1291
|
+
...options,
|
|
1292
|
+
headers: {
|
|
1293
|
+
"Content-Type": "application/vnd.api+json",
|
|
1294
|
+
...options.headers
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1283
1297
|
var postPayments = (options) => (options.client ?? client).post({
|
|
1284
1298
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1285
1299
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1756,6 +1770,16 @@ var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).pos
|
|
|
1756
1770
|
...options.headers
|
|
1757
1771
|
}
|
|
1758
1772
|
});
|
|
1773
|
+
var patchExtractionDocumentsByIdInclude = (options) => (options.client ?? client).patch({
|
|
1774
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1775
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1776
|
+
url: "/extraction/documents/{id}/include",
|
|
1777
|
+
...options,
|
|
1778
|
+
headers: {
|
|
1779
|
+
"Content-Type": "application/vnd.api+json",
|
|
1780
|
+
...options.headers
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1759
1783
|
var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
1760
1784
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1761
1785
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2142,6 +2166,7 @@ var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
|
2142
2166
|
querySerializer: {
|
|
2143
2167
|
parameters: {
|
|
2144
2168
|
filter: { object: { style: "form" } },
|
|
2169
|
+
page: { object: { style: "form" } },
|
|
2145
2170
|
fields: { object: { style: "form" } }
|
|
2146
2171
|
}
|
|
2147
2172
|
},
|
|
@@ -2597,6 +2622,18 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
|
2597
2622
|
...options.headers
|
|
2598
2623
|
}
|
|
2599
2624
|
});
|
|
2625
|
+
var getExtractionSchemas = (options) => (options.client ?? client).get({
|
|
2626
|
+
querySerializer: {
|
|
2627
|
+
parameters: {
|
|
2628
|
+
filter: { object: { style: "form" } },
|
|
2629
|
+
page: { object: { style: "form" } },
|
|
2630
|
+
fields: { object: { style: "form" } }
|
|
2631
|
+
}
|
|
2632
|
+
},
|
|
2633
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2634
|
+
url: "/extraction/schemas",
|
|
2635
|
+
...options
|
|
2636
|
+
});
|
|
2600
2637
|
var postExtractionSchemas = (options) => (options.client ?? client).post({
|
|
2601
2638
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2602
2639
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3097,6 +3134,16 @@ var getWallet = (options) => (options.client ?? client).get({
|
|
|
3097
3134
|
url: "/wallet",
|
|
3098
3135
|
...options
|
|
3099
3136
|
});
|
|
3137
|
+
var patchExtractionSchemasByIdActivate = (options) => (options.client ?? client).patch({
|
|
3138
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3139
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3140
|
+
url: "/extraction/schemas/{id}/activate",
|
|
3141
|
+
...options,
|
|
3142
|
+
headers: {
|
|
3143
|
+
"Content-Type": "application/vnd.api+json",
|
|
3144
|
+
...options.headers
|
|
3145
|
+
}
|
|
3146
|
+
});
|
|
3100
3147
|
var deleteMessagesById = (options) => (options.client ?? client).delete({
|
|
3101
3148
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3102
3149
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3720,6 +3767,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3720
3767
|
getExtractionResultsDocumentByDocumentId,
|
|
3721
3768
|
getExtractionSchemaFields,
|
|
3722
3769
|
getExtractionSchemaFieldsById,
|
|
3770
|
+
getExtractionSchemas,
|
|
3723
3771
|
getExtractionSchemasById,
|
|
3724
3772
|
getExtractionSchemasWorkspaceByWorkspaceId,
|
|
3725
3773
|
getFieldTemplates,
|
|
@@ -3799,12 +3847,15 @@ async function collectStreamedMessage(stream) {
|
|
|
3799
3847
|
patchApplicationsByIdGrantCredits,
|
|
3800
3848
|
patchBucketsById,
|
|
3801
3849
|
patchConfigsByKey,
|
|
3850
|
+
patchExtractionDocumentsByIdExclude,
|
|
3802
3851
|
patchExtractionDocumentsByIdFinishUpload,
|
|
3852
|
+
patchExtractionDocumentsByIdInclude,
|
|
3803
3853
|
patchExtractionDocumentsByIdStatus,
|
|
3804
3854
|
patchExtractionResultsByIdCorrections,
|
|
3805
3855
|
patchExtractionResultsByIdRegenerate,
|
|
3806
3856
|
patchExtractionSchemaFieldsById,
|
|
3807
3857
|
patchExtractionSchemasById,
|
|
3858
|
+
patchExtractionSchemasByIdActivate,
|
|
3808
3859
|
patchExtractionSchemasByIdFields,
|
|
3809
3860
|
patchInvitationsByIdAccept,
|
|
3810
3861
|
patchInvitationsByIdResend,
|
package/dist/index.mjs
CHANGED
|
@@ -976,6 +976,16 @@ var getLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
|
976
976
|
url: "/llm_analytics/platform",
|
|
977
977
|
...options
|
|
978
978
|
});
|
|
979
|
+
var patchExtractionDocumentsByIdExclude = (options) => (options.client ?? client).patch({
|
|
980
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
981
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
982
|
+
url: "/extraction/documents/{id}/exclude",
|
|
983
|
+
...options,
|
|
984
|
+
headers: {
|
|
985
|
+
"Content-Type": "application/vnd.api+json",
|
|
986
|
+
...options.headers
|
|
987
|
+
}
|
|
988
|
+
});
|
|
979
989
|
var postPayments = (options) => (options.client ?? client).post({
|
|
980
990
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
981
991
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1452,6 +1462,16 @@ var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).pos
|
|
|
1452
1462
|
...options.headers
|
|
1453
1463
|
}
|
|
1454
1464
|
});
|
|
1465
|
+
var patchExtractionDocumentsByIdInclude = (options) => (options.client ?? client).patch({
|
|
1466
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1467
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1468
|
+
url: "/extraction/documents/{id}/include",
|
|
1469
|
+
...options,
|
|
1470
|
+
headers: {
|
|
1471
|
+
"Content-Type": "application/vnd.api+json",
|
|
1472
|
+
...options.headers
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1455
1475
|
var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
1456
1476
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1457
1477
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1838,6 +1858,7 @@ var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
|
1838
1858
|
querySerializer: {
|
|
1839
1859
|
parameters: {
|
|
1840
1860
|
filter: { object: { style: "form" } },
|
|
1861
|
+
page: { object: { style: "form" } },
|
|
1841
1862
|
fields: { object: { style: "form" } }
|
|
1842
1863
|
}
|
|
1843
1864
|
},
|
|
@@ -2293,6 +2314,18 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
|
2293
2314
|
...options.headers
|
|
2294
2315
|
}
|
|
2295
2316
|
});
|
|
2317
|
+
var getExtractionSchemas = (options) => (options.client ?? client).get({
|
|
2318
|
+
querySerializer: {
|
|
2319
|
+
parameters: {
|
|
2320
|
+
filter: { object: { style: "form" } },
|
|
2321
|
+
page: { object: { style: "form" } },
|
|
2322
|
+
fields: { object: { style: "form" } }
|
|
2323
|
+
}
|
|
2324
|
+
},
|
|
2325
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2326
|
+
url: "/extraction/schemas",
|
|
2327
|
+
...options
|
|
2328
|
+
});
|
|
2296
2329
|
var postExtractionSchemas = (options) => (options.client ?? client).post({
|
|
2297
2330
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2298
2331
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2793,6 +2826,16 @@ var getWallet = (options) => (options.client ?? client).get({
|
|
|
2793
2826
|
url: "/wallet",
|
|
2794
2827
|
...options
|
|
2795
2828
|
});
|
|
2829
|
+
var patchExtractionSchemasByIdActivate = (options) => (options.client ?? client).patch({
|
|
2830
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2831
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2832
|
+
url: "/extraction/schemas/{id}/activate",
|
|
2833
|
+
...options,
|
|
2834
|
+
headers: {
|
|
2835
|
+
"Content-Type": "application/vnd.api+json",
|
|
2836
|
+
...options.headers
|
|
2837
|
+
}
|
|
2838
|
+
});
|
|
2796
2839
|
var deleteMessagesById = (options) => (options.client ?? client).delete({
|
|
2797
2840
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2798
2841
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3415,6 +3458,7 @@ export {
|
|
|
3415
3458
|
getExtractionResultsDocumentByDocumentId,
|
|
3416
3459
|
getExtractionSchemaFields,
|
|
3417
3460
|
getExtractionSchemaFieldsById,
|
|
3461
|
+
getExtractionSchemas,
|
|
3418
3462
|
getExtractionSchemasById,
|
|
3419
3463
|
getExtractionSchemasWorkspaceByWorkspaceId,
|
|
3420
3464
|
getFieldTemplates,
|
|
@@ -3494,12 +3538,15 @@ export {
|
|
|
3494
3538
|
patchApplicationsByIdGrantCredits,
|
|
3495
3539
|
patchBucketsById,
|
|
3496
3540
|
patchConfigsByKey,
|
|
3541
|
+
patchExtractionDocumentsByIdExclude,
|
|
3497
3542
|
patchExtractionDocumentsByIdFinishUpload,
|
|
3543
|
+
patchExtractionDocumentsByIdInclude,
|
|
3498
3544
|
patchExtractionDocumentsByIdStatus,
|
|
3499
3545
|
patchExtractionResultsByIdCorrections,
|
|
3500
3546
|
patchExtractionResultsByIdRegenerate,
|
|
3501
3547
|
patchExtractionSchemaFieldsById,
|
|
3502
3548
|
patchExtractionSchemasById,
|
|
3549
|
+
patchExtractionSchemasByIdActivate,
|
|
3503
3550
|
patchExtractionSchemasByIdFields,
|
|
3504
3551
|
patchInvitationsByIdAccept,
|
|
3505
3552
|
patchInvitationsByIdResend,
|
package/package.json
CHANGED