@gpt-core/client 0.9.11 → 0.9.13
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 +1000 -1788
- package/dist/index.d.ts +1000 -1788
- package/dist/index.js +81 -151
- package/dist/index.mjs +75 -139
- package/llms.txt +4 -28
- package/package.json +1 -1
- package/dist/index.cjs +0 -4043
package/dist/index.mjs
CHANGED
|
@@ -19,13 +19,11 @@ __export(sdk_gen_exports, {
|
|
|
19
19
|
deleteBucketsById: () => deleteBucketsById,
|
|
20
20
|
deleteExtractionBatchesById: () => deleteExtractionBatchesById,
|
|
21
21
|
deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
|
|
22
|
-
deleteExtractionResultsById: () => deleteExtractionResultsById,
|
|
23
22
|
deleteFieldTemplatesById: () => deleteFieldTemplatesById,
|
|
24
23
|
deleteMessagesById: () => deleteMessagesById,
|
|
25
24
|
deleteNotificationMethodsById: () => deleteNotificationMethodsById,
|
|
26
25
|
deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
|
|
27
26
|
deleteObjectsById: () => deleteObjectsById,
|
|
28
|
-
deletePaymentMethodsById: () => deletePaymentMethodsById,
|
|
29
27
|
deleteSearchSavedById: () => deleteSearchSavedById,
|
|
30
28
|
deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
|
|
31
29
|
deleteTenantsById: () => deleteTenantsById,
|
|
@@ -37,6 +35,8 @@ __export(sdk_gen_exports, {
|
|
|
37
35
|
deleteWebhookConfigsById: () => deleteWebhookConfigsById,
|
|
38
36
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
39
37
|
deleteWorkspacesById: () => deleteWorkspacesById,
|
|
38
|
+
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions: () => getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
39
|
+
getAgentVersionRevisionsById: () => getAgentVersionRevisionsById,
|
|
40
40
|
getAgentVersions: () => getAgentVersions,
|
|
41
41
|
getAgentVersionsById: () => getAgentVersionsById,
|
|
42
42
|
getAgentVersionsByIdMetrics: () => getAgentVersionsByIdMetrics,
|
|
@@ -90,7 +90,6 @@ __export(sdk_gen_exports, {
|
|
|
90
90
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
91
91
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
92
92
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
93
|
-
getExtractionResults: () => getExtractionResults,
|
|
94
93
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
95
94
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
96
95
|
getExtractionResultsWorkspaceByWorkspaceId: () => getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -120,8 +119,6 @@ __export(sdk_gen_exports, {
|
|
|
120
119
|
getNotificationPreferencesById: () => getNotificationPreferencesById,
|
|
121
120
|
getObjects: () => getObjects,
|
|
122
121
|
getObjectsById: () => getObjectsById,
|
|
123
|
-
getPaymentMethods: () => getPaymentMethods,
|
|
124
|
-
getPaymentMethodsById: () => getPaymentMethodsById,
|
|
125
122
|
getPermissions: () => getPermissions,
|
|
126
123
|
getPermissionsById: () => getPermissionsById,
|
|
127
124
|
getPermissionsMeta: () => getPermissionsMeta,
|
|
@@ -173,7 +170,6 @@ __export(sdk_gen_exports, {
|
|
|
173
170
|
getUsersMeTenants: () => getUsersMeTenants,
|
|
174
171
|
getWallet: () => getWallet,
|
|
175
172
|
getWalletInvoices: () => getWalletInvoices,
|
|
176
|
-
getWalletPlanPreview: () => getWalletPlanPreview,
|
|
177
173
|
getWatcherClaims: () => getWatcherClaims,
|
|
178
174
|
getWatcherClaimsById: () => getWatcherClaimsById,
|
|
179
175
|
getWatcherClaimsStatus: () => getWatcherClaimsStatus,
|
|
@@ -223,9 +219,8 @@ __export(sdk_gen_exports, {
|
|
|
223
219
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
224
220
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
225
221
|
patchExtractionDocumentsByIdVerification: () => patchExtractionDocumentsByIdVerification,
|
|
226
|
-
|
|
222
|
+
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
227
223
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
228
|
-
patchExtractionResultsByIdSaveCorrections: () => patchExtractionResultsByIdSaveCorrections,
|
|
229
224
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
230
225
|
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
231
226
|
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
@@ -237,8 +232,6 @@ __export(sdk_gen_exports, {
|
|
|
237
232
|
patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
|
|
238
233
|
patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
|
|
239
234
|
patchNotificationPreferencesById: () => patchNotificationPreferencesById,
|
|
240
|
-
patchPaymentMethodsById: () => patchPaymentMethodsById,
|
|
241
|
-
patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
|
|
242
235
|
patchSearchSavedById: () => patchSearchSavedById,
|
|
243
236
|
patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
|
|
244
237
|
patchTenantsById: () => patchTenantsById,
|
|
@@ -269,6 +262,7 @@ __export(sdk_gen_exports, {
|
|
|
269
262
|
patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
270
263
|
patchWorkspacesById: () => patchWorkspacesById,
|
|
271
264
|
patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
|
|
265
|
+
patchWorkspacesByIdPopulateHashes: () => patchWorkspacesByIdPopulateHashes,
|
|
272
266
|
patchWorkspacesByIdStorageSettings: () => patchWorkspacesByIdStorageSettings,
|
|
273
267
|
postAgentTestResults: () => postAgentTestResults,
|
|
274
268
|
postAgentVersionComparisons: () => postAgentVersionComparisons,
|
|
@@ -309,7 +303,9 @@ __export(sdk_gen_exports, {
|
|
|
309
303
|
postExtractionBatches: () => postExtractionBatches,
|
|
310
304
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
311
305
|
postExtractionDocumentsBulkReprocess: () => postExtractionDocumentsBulkReprocess,
|
|
306
|
+
postExtractionDocumentsFindOrBeginUpload: () => postExtractionDocumentsFindOrBeginUpload,
|
|
312
307
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
308
|
+
postExtractionResults: () => postExtractionResults,
|
|
313
309
|
postExtractionSchemaDiscoveries: () => postExtractionSchemaDiscoveries,
|
|
314
310
|
postFieldTemplates: () => postFieldTemplates,
|
|
315
311
|
postInvitations: () => postInvitations,
|
|
@@ -322,8 +318,6 @@ __export(sdk_gen_exports, {
|
|
|
322
318
|
postObjectsCopy: () => postObjectsCopy,
|
|
323
319
|
postObjectsMove: () => postObjectsMove,
|
|
324
320
|
postObjectsRegister: () => postObjectsRegister,
|
|
325
|
-
postPaymentMethods: () => postPaymentMethods,
|
|
326
|
-
postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
|
|
327
321
|
postPayments: () => postPayments,
|
|
328
322
|
postSearchBatch: () => postSearchBatch,
|
|
329
323
|
postSearchReindex: () => postSearchReindex,
|
|
@@ -1319,28 +1313,6 @@ var postWorkspaces = (options) => (options.client ?? client).post({
|
|
|
1319
1313
|
...options.headers
|
|
1320
1314
|
}
|
|
1321
1315
|
});
|
|
1322
|
-
var getPaymentMethods = (options) => (options.client ?? client).get({
|
|
1323
|
-
querySerializer: {
|
|
1324
|
-
parameters: {
|
|
1325
|
-
filter: { object: { style: "form" } },
|
|
1326
|
-
page: { object: { style: "form" } },
|
|
1327
|
-
fields: { object: { style: "form" } }
|
|
1328
|
-
}
|
|
1329
|
-
},
|
|
1330
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1331
|
-
url: "/payment-methods",
|
|
1332
|
-
...options
|
|
1333
|
-
});
|
|
1334
|
-
var postPaymentMethods = (options) => (options.client ?? client).post({
|
|
1335
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1336
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1337
|
-
url: "/payment-methods",
|
|
1338
|
-
...options,
|
|
1339
|
-
headers: {
|
|
1340
|
-
"Content-Type": "application/vnd.api+json",
|
|
1341
|
-
...options.headers
|
|
1342
|
-
}
|
|
1343
|
-
});
|
|
1344
1316
|
var getAgentsByIdStats = (options) => (options.client ?? client).get({
|
|
1345
1317
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1346
1318
|
url: "/agents/{id}/stats",
|
|
@@ -1620,6 +1592,17 @@ var postConfigs = (options) => (options.client ?? client).post({
|
|
|
1620
1592
|
...options.headers
|
|
1621
1593
|
}
|
|
1622
1594
|
});
|
|
1595
|
+
var getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions = (options) => (options.client ?? client).get({
|
|
1596
|
+
querySerializer: {
|
|
1597
|
+
parameters: {
|
|
1598
|
+
filter: { object: { style: "form" } },
|
|
1599
|
+
fields: { object: { style: "form" } }
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1603
|
+
url: "/agent_version_revisions/agent_versions/{agent_version_id}/revisions",
|
|
1604
|
+
...options
|
|
1605
|
+
});
|
|
1623
1606
|
var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
|
|
1624
1607
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1625
1608
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1767,6 +1750,16 @@ var getAgentsUsage = (options) => (options.client ?? client).get({
|
|
|
1767
1750
|
url: "/agents/usage",
|
|
1768
1751
|
...options
|
|
1769
1752
|
});
|
|
1753
|
+
var patchWorkspacesByIdPopulateHashes = (options) => (options.client ?? client).patch({
|
|
1754
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1755
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1756
|
+
url: "/workspaces/{id}/populate-hashes",
|
|
1757
|
+
...options,
|
|
1758
|
+
headers: {
|
|
1759
|
+
"Content-Type": "application/vnd.api+json",
|
|
1760
|
+
...options.headers
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1770
1763
|
var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
|
|
1771
1764
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1772
1765
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2071,28 +2064,12 @@ var getUsersById = (options) => (options.client ?? client).get({
|
|
|
2071
2064
|
url: "/users/{id}",
|
|
2072
2065
|
...options
|
|
2073
2066
|
});
|
|
2074
|
-
var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
|
|
2075
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2076
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2077
|
-
url: "/extraction/results/{id}",
|
|
2078
|
-
...options
|
|
2079
|
-
});
|
|
2080
2067
|
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
2081
2068
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2082
2069
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2083
2070
|
url: "/extraction/results/{id}",
|
|
2084
2071
|
...options
|
|
2085
2072
|
});
|
|
2086
|
-
var patchExtractionResultsById = (options) => (options.client ?? client).patch({
|
|
2087
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2088
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2089
|
-
url: "/extraction/results/{id}",
|
|
2090
|
-
...options,
|
|
2091
|
-
headers: {
|
|
2092
|
-
"Content-Type": "application/vnd.api+json",
|
|
2093
|
-
...options.headers
|
|
2094
|
-
}
|
|
2095
|
-
});
|
|
2096
2073
|
var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
|
|
2097
2074
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2098
2075
|
url: "/webhook_deliveries/stats",
|
|
@@ -2649,6 +2626,16 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
|
|
|
2649
2626
|
...options.headers
|
|
2650
2627
|
}
|
|
2651
2628
|
});
|
|
2629
|
+
var patchExtractionResultsByIdCorrections = (options) => (options.client ?? client).patch({
|
|
2630
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2631
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2632
|
+
url: "/extraction/results/{id}/corrections",
|
|
2633
|
+
...options,
|
|
2634
|
+
headers: {
|
|
2635
|
+
"Content-Type": "application/vnd.api+json",
|
|
2636
|
+
...options.headers
|
|
2637
|
+
}
|
|
2638
|
+
});
|
|
2652
2639
|
var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
|
|
2653
2640
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2654
2641
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2730,27 +2717,11 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
|
|
|
2730
2717
|
}
|
|
2731
2718
|
});
|
|
2732
2719
|
var getWalletInvoices = (options) => (options.client ?? client).get({
|
|
2733
|
-
querySerializer: {
|
|
2734
|
-
parameters: {
|
|
2735
|
-
filter: { object: { style: "form" } },
|
|
2736
|
-
page: { object: { style: "form" } },
|
|
2737
|
-
fields: { object: { style: "form" } }
|
|
2738
|
-
}
|
|
2739
|
-
},
|
|
2720
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2740
2721
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2741
2722
|
url: "/wallet/invoices",
|
|
2742
2723
|
...options
|
|
2743
2724
|
});
|
|
2744
|
-
var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
|
|
2745
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2746
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2747
|
-
url: "/extraction/results/{id}/save_corrections",
|
|
2748
|
-
...options,
|
|
2749
|
-
headers: {
|
|
2750
|
-
"Content-Type": "application/vnd.api+json",
|
|
2751
|
-
...options.headers
|
|
2752
|
-
}
|
|
2753
|
-
});
|
|
2754
2725
|
var patchWorkspacesByIdStorageSettings = (options) => (options.client ?? client).patch({
|
|
2755
2726
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2756
2727
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2813,6 +2784,12 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
|
|
|
2813
2784
|
...options.headers
|
|
2814
2785
|
}
|
|
2815
2786
|
});
|
|
2787
|
+
var getAgentVersionRevisionsById = (options) => (options.client ?? client).get({
|
|
2788
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2789
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2790
|
+
url: "/agent_version_revisions/{id}",
|
|
2791
|
+
...options
|
|
2792
|
+
});
|
|
2816
2793
|
var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
2817
2794
|
querySerializer: {
|
|
2818
2795
|
parameters: {
|
|
@@ -2877,16 +2854,6 @@ var postBuckets = (options) => (options.client ?? client).post({
|
|
|
2877
2854
|
...options.headers
|
|
2878
2855
|
}
|
|
2879
2856
|
});
|
|
2880
|
-
var postPaymentMethodsTokenize = (options) => (options.client ?? client).post({
|
|
2881
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2882
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2883
|
-
url: "/payment-methods/tokenize",
|
|
2884
|
-
...options,
|
|
2885
|
-
headers: {
|
|
2886
|
-
"Content-Type": "application/vnd.api+json",
|
|
2887
|
-
...options.headers
|
|
2888
|
-
}
|
|
2889
|
-
});
|
|
2890
2857
|
var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
|
|
2891
2858
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2892
2859
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3192,6 +3159,16 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
|
|
|
3192
3159
|
...options.headers
|
|
3193
3160
|
}
|
|
3194
3161
|
});
|
|
3162
|
+
var postExtractionDocumentsFindOrBeginUpload = (options) => (options.client ?? client).post({
|
|
3163
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3164
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3165
|
+
url: "/extraction/documents/find_or_begin_upload",
|
|
3166
|
+
...options,
|
|
3167
|
+
headers: {
|
|
3168
|
+
"Content-Type": "application/vnd.api+json",
|
|
3169
|
+
...options.headers
|
|
3170
|
+
}
|
|
3171
|
+
});
|
|
3195
3172
|
var getTransactions = (options) => (options.client ?? client).get({
|
|
3196
3173
|
querySerializer: {
|
|
3197
3174
|
parameters: {
|
|
@@ -3595,28 +3572,6 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
|
|
|
3595
3572
|
url: "/agents/{id}/schema_versions/{version_id}/activate",
|
|
3596
3573
|
...options
|
|
3597
3574
|
});
|
|
3598
|
-
var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
|
|
3599
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3600
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
3601
|
-
url: "/payment-methods/{id}",
|
|
3602
|
-
...options
|
|
3603
|
-
});
|
|
3604
|
-
var getPaymentMethodsById = (options) => (options.client ?? client).get({
|
|
3605
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3606
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
3607
|
-
url: "/payment-methods/{id}",
|
|
3608
|
-
...options
|
|
3609
|
-
});
|
|
3610
|
-
var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
|
|
3611
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3612
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
3613
|
-
url: "/payment-methods/{id}",
|
|
3614
|
-
...options,
|
|
3615
|
-
headers: {
|
|
3616
|
-
"Content-Type": "application/vnd.api+json",
|
|
3617
|
-
...options.headers
|
|
3618
|
-
}
|
|
3619
|
-
});
|
|
3620
3575
|
var deleteBucketsById = (options) => (options.client ?? client).delete({
|
|
3621
3576
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3622
3577
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3944,12 +3899,6 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
|
|
|
3944
3899
|
...options.headers
|
|
3945
3900
|
}
|
|
3946
3901
|
});
|
|
3947
|
-
var getWalletPlanPreview = (options) => (options.client ?? client).get({
|
|
3948
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3949
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
3950
|
-
url: "/wallet/plan/preview",
|
|
3951
|
-
...options
|
|
3952
|
-
});
|
|
3953
3902
|
var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
|
|
3954
3903
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3955
3904
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3980,16 +3929,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
3980
3929
|
...options.headers
|
|
3981
3930
|
}
|
|
3982
3931
|
});
|
|
3983
|
-
var
|
|
3984
|
-
querySerializer: {
|
|
3985
|
-
parameters: {
|
|
3986
|
-
filter: { object: { style: "form" } },
|
|
3987
|
-
fields: { object: { style: "form" } }
|
|
3988
|
-
}
|
|
3989
|
-
},
|
|
3932
|
+
var postExtractionResults = (options) => (options.client ?? client).post({
|
|
3933
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3990
3934
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3991
3935
|
url: "/extraction/results",
|
|
3992
|
-
...options
|
|
3936
|
+
...options,
|
|
3937
|
+
headers: {
|
|
3938
|
+
"Content-Type": "application/vnd.api+json",
|
|
3939
|
+
...options.headers
|
|
3940
|
+
}
|
|
3993
3941
|
});
|
|
3994
3942
|
var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
3995
3943
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
@@ -4315,16 +4263,6 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
|
|
|
4315
4263
|
...options.headers
|
|
4316
4264
|
}
|
|
4317
4265
|
});
|
|
4318
|
-
var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
|
|
4319
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4320
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
4321
|
-
url: "/payment-methods/{id}/default",
|
|
4322
|
-
...options,
|
|
4323
|
-
headers: {
|
|
4324
|
-
"Content-Type": "application/vnd.api+json",
|
|
4325
|
-
...options.headers
|
|
4326
|
-
}
|
|
4327
|
-
});
|
|
4328
4266
|
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
4329
4267
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4330
4268
|
url: "/agents/{id}/export",
|
|
@@ -4471,9 +4409,10 @@ var NotFoundError = class extends GptCoreError {
|
|
|
4471
4409
|
}
|
|
4472
4410
|
};
|
|
4473
4411
|
var ValidationError = class extends GptCoreError {
|
|
4474
|
-
constructor(message = "Validation failed", errors, options) {
|
|
4475
|
-
super(message, { statusCode:
|
|
4412
|
+
constructor(message = "Validation failed", errors, meta, options) {
|
|
4413
|
+
super(message, { statusCode: 400, ...options });
|
|
4476
4414
|
this.errors = errors;
|
|
4415
|
+
this.meta = meta;
|
|
4477
4416
|
}
|
|
4478
4417
|
};
|
|
4479
4418
|
var RateLimitError = class extends GptCoreError {
|
|
@@ -4505,12 +4444,15 @@ function handleApiError(error) {
|
|
|
4505
4444
|
const body = response?.body || response?.data || error?.body || error?.data || error;
|
|
4506
4445
|
let message = "An error occurred";
|
|
4507
4446
|
let errors;
|
|
4447
|
+
let meta;
|
|
4508
4448
|
if (body?.errors && Array.isArray(body.errors)) {
|
|
4509
4449
|
const firstError = body.errors[0];
|
|
4510
4450
|
message = firstError?.title || firstError?.detail || message;
|
|
4451
|
+
meta = firstError?.meta;
|
|
4511
4452
|
errors = body.errors.map((err) => ({
|
|
4512
4453
|
field: err.source?.pointer?.split("/").pop(),
|
|
4513
|
-
message: err.detail || err.title || "Unknown error"
|
|
4454
|
+
message: err.detail || err.title || "Unknown error",
|
|
4455
|
+
meta: err.meta
|
|
4514
4456
|
}));
|
|
4515
4457
|
} else if (body?.message) {
|
|
4516
4458
|
message = body.message;
|
|
@@ -4535,7 +4477,7 @@ function handleApiError(error) {
|
|
|
4535
4477
|
throw new NotFoundError(message, errorOptions);
|
|
4536
4478
|
case 400:
|
|
4537
4479
|
case 422:
|
|
4538
|
-
throw new ValidationError(message, errors, errorOptions);
|
|
4480
|
+
throw new ValidationError(message, errors, meta, errorOptions);
|
|
4539
4481
|
case 429: {
|
|
4540
4482
|
const retryAfter = headers?.get?.("retry-after") || headers?.["retry-after"];
|
|
4541
4483
|
throw new RateLimitError(message, retryAfter ? parseInt(retryAfter, 10) : void 0, errorOptions);
|
|
@@ -5045,13 +4987,11 @@ export {
|
|
|
5045
4987
|
deleteBucketsById,
|
|
5046
4988
|
deleteExtractionBatchesById,
|
|
5047
4989
|
deleteExtractionDocumentsById,
|
|
5048
|
-
deleteExtractionResultsById,
|
|
5049
4990
|
deleteFieldTemplatesById,
|
|
5050
4991
|
deleteMessagesById,
|
|
5051
4992
|
deleteNotificationMethodsById,
|
|
5052
4993
|
deleteNotificationPreferencesById,
|
|
5053
4994
|
deleteObjectsById,
|
|
5054
|
-
deletePaymentMethodsById,
|
|
5055
4995
|
deleteSearchSavedById,
|
|
5056
4996
|
deleteTenantMembershipsByTenantIdByUserId,
|
|
5057
4997
|
deleteTenantsById,
|
|
@@ -5063,6 +5003,8 @@ export {
|
|
|
5063
5003
|
deleteWebhookConfigsById,
|
|
5064
5004
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5065
5005
|
deleteWorkspacesById,
|
|
5006
|
+
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
5007
|
+
getAgentVersionRevisionsById,
|
|
5066
5008
|
getAgentVersions,
|
|
5067
5009
|
getAgentVersionsById,
|
|
5068
5010
|
getAgentVersionsByIdMetrics,
|
|
@@ -5116,7 +5058,6 @@ export {
|
|
|
5116
5058
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
5117
5059
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
5118
5060
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
5119
|
-
getExtractionResults,
|
|
5120
5061
|
getExtractionResultsById,
|
|
5121
5062
|
getExtractionResultsDocumentByDocumentId,
|
|
5122
5063
|
getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -5146,8 +5087,6 @@ export {
|
|
|
5146
5087
|
getNotificationPreferencesById,
|
|
5147
5088
|
getObjects,
|
|
5148
5089
|
getObjectsById,
|
|
5149
|
-
getPaymentMethods,
|
|
5150
|
-
getPaymentMethodsById,
|
|
5151
5090
|
getPermissions,
|
|
5152
5091
|
getPermissionsById,
|
|
5153
5092
|
getPermissionsMeta,
|
|
@@ -5199,7 +5138,6 @@ export {
|
|
|
5199
5138
|
getUsersMeTenants,
|
|
5200
5139
|
getWallet,
|
|
5201
5140
|
getWalletInvoices,
|
|
5202
|
-
getWalletPlanPreview,
|
|
5203
5141
|
getWatcherClaims,
|
|
5204
5142
|
getWatcherClaimsById,
|
|
5205
5143
|
getWatcherClaimsStatus,
|
|
@@ -5253,9 +5191,8 @@ export {
|
|
|
5253
5191
|
patchExtractionDocumentsByIdRestore,
|
|
5254
5192
|
patchExtractionDocumentsByIdStatus,
|
|
5255
5193
|
patchExtractionDocumentsByIdVerification,
|
|
5256
|
-
|
|
5194
|
+
patchExtractionResultsByIdCorrections,
|
|
5257
5195
|
patchExtractionResultsByIdRegenerate,
|
|
5258
|
-
patchExtractionResultsByIdSaveCorrections,
|
|
5259
5196
|
patchInvitationsByIdAccept,
|
|
5260
5197
|
patchInvitationsByIdAcceptByUser,
|
|
5261
5198
|
patchInvitationsByIdDecline,
|
|
@@ -5267,8 +5204,6 @@ export {
|
|
|
5267
5204
|
patchNotificationMethodsByIdSetPrimary,
|
|
5268
5205
|
patchNotificationMethodsByIdVerify,
|
|
5269
5206
|
patchNotificationPreferencesById,
|
|
5270
|
-
patchPaymentMethodsById,
|
|
5271
|
-
patchPaymentMethodsByIdDefault,
|
|
5272
5207
|
patchSearchSavedById,
|
|
5273
5208
|
patchTenantMembershipsByTenantIdByUserId,
|
|
5274
5209
|
patchTenantsById,
|
|
@@ -5299,6 +5234,7 @@ export {
|
|
|
5299
5234
|
patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5300
5235
|
patchWorkspacesById,
|
|
5301
5236
|
patchWorkspacesByIdAllocate,
|
|
5237
|
+
patchWorkspacesByIdPopulateHashes,
|
|
5302
5238
|
patchWorkspacesByIdStorageSettings,
|
|
5303
5239
|
postAgentTestResults,
|
|
5304
5240
|
postAgentVersionComparisons,
|
|
@@ -5339,7 +5275,9 @@ export {
|
|
|
5339
5275
|
postExtractionBatches,
|
|
5340
5276
|
postExtractionDocumentsBeginUpload,
|
|
5341
5277
|
postExtractionDocumentsBulkReprocess,
|
|
5278
|
+
postExtractionDocumentsFindOrBeginUpload,
|
|
5342
5279
|
postExtractionDocumentsUpload,
|
|
5280
|
+
postExtractionResults,
|
|
5343
5281
|
postExtractionSchemaDiscoveries,
|
|
5344
5282
|
postFieldTemplates,
|
|
5345
5283
|
postInvitations,
|
|
@@ -5352,8 +5290,6 @@ export {
|
|
|
5352
5290
|
postObjectsCopy,
|
|
5353
5291
|
postObjectsMove,
|
|
5354
5292
|
postObjectsRegister,
|
|
5355
|
-
postPaymentMethods,
|
|
5356
|
-
postPaymentMethodsTokenize,
|
|
5357
5293
|
postPayments,
|
|
5358
5294
|
postSearchBatch,
|
|
5359
5295
|
postSearchReindex,
|
package/llms.txt
CHANGED
|
@@ -38,7 +38,6 @@ client.setConfig({
|
|
|
38
38
|
- `getAgentsByIdStats()` - Get stats
|
|
39
39
|
- `getAgentsByIdTrainingStats()` - Get training stats
|
|
40
40
|
- `getAgentsByIdUsage()` - Get usage
|
|
41
|
-
- `getAgentsUsage()` - List usage
|
|
42
41
|
- `getAgentVersions()` - List agent versions
|
|
43
42
|
- `getAgentVersionsById()` - Get agent versions
|
|
44
43
|
- `getAgentVersionsByIdMetrics()` - Get metrics
|
|
@@ -56,9 +55,6 @@ client.setConfig({
|
|
|
56
55
|
- `postAgentsImport()` - Create import
|
|
57
56
|
- `postAgentsPredict()` - Create predict
|
|
58
57
|
- `postAgentVersions()` - Create agent versions
|
|
59
|
-
- `postAgentVersionsByIdAddSystemField()` - Create add system field
|
|
60
|
-
- `postAgentVersionsByIdRemoveSystemField()` - Create remove system field
|
|
61
|
-
- `postAgentVersionsByIdSetSystemFields()` - Create set system fields
|
|
62
58
|
- `patchAgentsById()` - Update agents
|
|
63
59
|
- `patchAgentsByIdSchemaVersionsByVersionId()` - Update schema versions
|
|
64
60
|
- `deleteAgentsById()` - Delete agents
|
|
@@ -130,7 +126,7 @@ client.setConfig({
|
|
|
130
126
|
- `getPlansById()` - Get plans
|
|
131
127
|
- `getPlansSlugBySlug()` - Get slug
|
|
132
128
|
- `getWallet()` - List wallet
|
|
133
|
-
- `
|
|
129
|
+
- `getWalletInvoices()` - List invoices
|
|
134
130
|
- `postPayments()` - Create payments
|
|
135
131
|
- `patchWalletAddons()` - Update addons
|
|
136
132
|
- `patchWalletAddonsByAddonSlugCancel()` - Update cancel
|
|
@@ -226,14 +222,12 @@ client.setConfig({
|
|
|
226
222
|
|
|
227
223
|
## Extraction Results
|
|
228
224
|
|
|
229
|
-
- `getExtractionResults()` - List results
|
|
230
225
|
- `getExtractionResultsById()` - Get results
|
|
231
226
|
- `getExtractionResultsDocumentByDocumentId()` - Get document
|
|
232
227
|
- `getExtractionResultsWorkspaceByWorkspaceId()` - Get workspace
|
|
233
|
-
- `
|
|
228
|
+
- `postExtractionResults()` - Create results
|
|
229
|
+
- `patchExtractionResultsByIdCorrections()` - Update corrections
|
|
234
230
|
- `patchExtractionResultsByIdRegenerate()` - Update regenerate
|
|
235
|
-
- `patchExtractionResultsByIdSaveCorrections()` - Update save corrections
|
|
236
|
-
- `deleteExtractionResultsById()` - Delete results
|
|
237
231
|
|
|
238
232
|
## Field mapping confirmation
|
|
239
233
|
|
|
@@ -263,10 +257,6 @@ client.setConfig({
|
|
|
263
257
|
- `patchInvitationsByIdResend()` - Update resend
|
|
264
258
|
- `patchInvitationsByIdRevoke()` - Update revoke
|
|
265
259
|
|
|
266
|
-
## Invoice
|
|
267
|
-
|
|
268
|
-
- `getWalletInvoices()` - List invoices
|
|
269
|
-
|
|
270
260
|
## Knowledge Graph
|
|
271
261
|
|
|
272
262
|
- `getAiGraphEdges()` - List edges
|
|
@@ -321,21 +311,10 @@ client.setConfig({
|
|
|
321
311
|
|
|
322
312
|
- `postDocumentsBulkDelete()` - Create bulk delete
|
|
323
313
|
|
|
324
|
-
## Payment method
|
|
325
|
-
|
|
326
|
-
- `getPayment-methods()` - List payment methods
|
|
327
|
-
- `getPayment-methodsById()` - Get payment methods
|
|
328
|
-
- `postPayment-methods()` - Create payment methods
|
|
329
|
-
- `postPayment-methodsTokenize()` - Create tokenize
|
|
330
|
-
- `patchPayment-methodsById()` - Update payment methods
|
|
331
|
-
- `patchPayment-methodsByIdDefault()` - Update default
|
|
332
|
-
- `deletePayment-methodsById()` - Delete payment methods
|
|
333
|
-
|
|
334
314
|
## Permission
|
|
335
315
|
|
|
336
316
|
- `getPermissions()` - List permissions
|
|
337
317
|
- `getPermissionsById()` - Get permissions
|
|
338
|
-
- `getPermissionsPresets()` - List presets
|
|
339
318
|
|
|
340
319
|
## Permission meta
|
|
341
320
|
|
|
@@ -343,6 +322,7 @@ client.setConfig({
|
|
|
343
322
|
|
|
344
323
|
## Permission preset
|
|
345
324
|
|
|
325
|
+
- `getPermissionsPresets()` - List presets
|
|
346
326
|
- `getPermissionsPresetsById()` - Get presets
|
|
347
327
|
|
|
348
328
|
## Presigned url
|
|
@@ -455,7 +435,6 @@ client.setConfig({
|
|
|
455
435
|
|
|
456
436
|
## Training analytics
|
|
457
437
|
|
|
458
|
-
- `getWorkspacesAnalytics-batch()` - List analytics batch
|
|
459
438
|
- `getWorkspacesByWorkspaceIdTrainingAnalytics()` - Get analytics
|
|
460
439
|
|
|
461
440
|
## Transaction
|
|
@@ -486,9 +465,6 @@ client.setConfig({
|
|
|
486
465
|
- `postUsersAuthResend-confirmation()` - Create resend confirmation
|
|
487
466
|
- `postUsersRegisterIsv()` - Create register isv
|
|
488
467
|
- `patchUserProfilesById()` - Update user profiles
|
|
489
|
-
- `patchUserProfilesByIdAccept-tos()` - Update accept tos
|
|
490
|
-
- `patchUserProfilesByIdDismiss-announcement()` - Update dismiss announcement
|
|
491
|
-
- `patchUserProfilesByIdDismiss-welcome()` - Update dismiss welcome
|
|
492
468
|
- `patchUsersAuthPasswordChange()` - Update change
|
|
493
469
|
- `patchUsersAuthReset-password()` - Update reset password
|
|
494
470
|
- `patchUsersById()` - Update admin
|
package/package.json
CHANGED