@gpt-core/client 0.9.0 → 0.9.1
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.cjs +4043 -0
- package/dist/index.d.mts +2112 -1318
- package/dist/index.d.ts +2112 -1318
- package/dist/index.js +147 -74
- package/dist/index.mjs +135 -68
- package/llms.txt +28 -4
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -19,11 +19,13 @@ __export(sdk_gen_exports, {
|
|
|
19
19
|
deleteBucketsById: () => deleteBucketsById,
|
|
20
20
|
deleteExtractionBatchesById: () => deleteExtractionBatchesById,
|
|
21
21
|
deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
|
|
22
|
+
deleteExtractionResultsById: () => deleteExtractionResultsById,
|
|
22
23
|
deleteFieldTemplatesById: () => deleteFieldTemplatesById,
|
|
23
24
|
deleteMessagesById: () => deleteMessagesById,
|
|
24
25
|
deleteNotificationMethodsById: () => deleteNotificationMethodsById,
|
|
25
26
|
deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
|
|
26
27
|
deleteObjectsById: () => deleteObjectsById,
|
|
28
|
+
deletePaymentMethodsById: () => deletePaymentMethodsById,
|
|
27
29
|
deleteSearchSavedById: () => deleteSearchSavedById,
|
|
28
30
|
deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
|
|
29
31
|
deleteTenantsById: () => deleteTenantsById,
|
|
@@ -35,8 +37,6 @@ __export(sdk_gen_exports, {
|
|
|
35
37
|
deleteWebhookConfigsById: () => deleteWebhookConfigsById,
|
|
36
38
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
37
39
|
deleteWorkspacesById: () => deleteWorkspacesById,
|
|
38
|
-
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions: () => getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
39
|
-
getAgentVersionRevisionsById: () => getAgentVersionRevisionsById,
|
|
40
40
|
getAgentVersions: () => getAgentVersions,
|
|
41
41
|
getAgentVersionsById: () => getAgentVersionsById,
|
|
42
42
|
getAgentVersionsByIdMetrics: () => getAgentVersionsByIdMetrics,
|
|
@@ -90,6 +90,7 @@ __export(sdk_gen_exports, {
|
|
|
90
90
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
91
91
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
92
92
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
93
|
+
getExtractionResults: () => getExtractionResults,
|
|
93
94
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
94
95
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
95
96
|
getExtractionResultsWorkspaceByWorkspaceId: () => getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -119,6 +120,8 @@ __export(sdk_gen_exports, {
|
|
|
119
120
|
getNotificationPreferencesById: () => getNotificationPreferencesById,
|
|
120
121
|
getObjects: () => getObjects,
|
|
121
122
|
getObjectsById: () => getObjectsById,
|
|
123
|
+
getPaymentMethods: () => getPaymentMethods,
|
|
124
|
+
getPaymentMethodsById: () => getPaymentMethodsById,
|
|
122
125
|
getPermissions: () => getPermissions,
|
|
123
126
|
getPermissionsById: () => getPermissionsById,
|
|
124
127
|
getPermissionsMeta: () => getPermissionsMeta,
|
|
@@ -170,6 +173,7 @@ __export(sdk_gen_exports, {
|
|
|
170
173
|
getUsersMeTenants: () => getUsersMeTenants,
|
|
171
174
|
getWallet: () => getWallet,
|
|
172
175
|
getWalletInvoices: () => getWalletInvoices,
|
|
176
|
+
getWalletPlanPreview: () => getWalletPlanPreview,
|
|
173
177
|
getWatcherClaims: () => getWatcherClaims,
|
|
174
178
|
getWatcherClaimsById: () => getWatcherClaimsById,
|
|
175
179
|
getWatcherClaimsStatus: () => getWatcherClaimsStatus,
|
|
@@ -219,8 +223,9 @@ __export(sdk_gen_exports, {
|
|
|
219
223
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
220
224
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
221
225
|
patchExtractionDocumentsByIdVerification: () => patchExtractionDocumentsByIdVerification,
|
|
222
|
-
|
|
226
|
+
patchExtractionResultsById: () => patchExtractionResultsById,
|
|
223
227
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
228
|
+
patchExtractionResultsByIdSaveCorrections: () => patchExtractionResultsByIdSaveCorrections,
|
|
224
229
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
225
230
|
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
226
231
|
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
@@ -232,6 +237,8 @@ __export(sdk_gen_exports, {
|
|
|
232
237
|
patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
|
|
233
238
|
patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
|
|
234
239
|
patchNotificationPreferencesById: () => patchNotificationPreferencesById,
|
|
240
|
+
patchPaymentMethodsById: () => patchPaymentMethodsById,
|
|
241
|
+
patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
|
|
235
242
|
patchSearchSavedById: () => patchSearchSavedById,
|
|
236
243
|
patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
|
|
237
244
|
patchTenantsById: () => patchTenantsById,
|
|
@@ -262,7 +269,6 @@ __export(sdk_gen_exports, {
|
|
|
262
269
|
patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
263
270
|
patchWorkspacesById: () => patchWorkspacesById,
|
|
264
271
|
patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
|
|
265
|
-
patchWorkspacesByIdPopulateHashes: () => patchWorkspacesByIdPopulateHashes,
|
|
266
272
|
patchWorkspacesByIdStorageSettings: () => patchWorkspacesByIdStorageSettings,
|
|
267
273
|
postAgentTestResults: () => postAgentTestResults,
|
|
268
274
|
postAgentVersionComparisons: () => postAgentVersionComparisons,
|
|
@@ -303,9 +309,7 @@ __export(sdk_gen_exports, {
|
|
|
303
309
|
postExtractionBatches: () => postExtractionBatches,
|
|
304
310
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
305
311
|
postExtractionDocumentsBulkReprocess: () => postExtractionDocumentsBulkReprocess,
|
|
306
|
-
postExtractionDocumentsFindOrBeginUpload: () => postExtractionDocumentsFindOrBeginUpload,
|
|
307
312
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
308
|
-
postExtractionResults: () => postExtractionResults,
|
|
309
313
|
postExtractionSchemaDiscoveries: () => postExtractionSchemaDiscoveries,
|
|
310
314
|
postFieldTemplates: () => postFieldTemplates,
|
|
311
315
|
postInvitations: () => postInvitations,
|
|
@@ -318,6 +322,8 @@ __export(sdk_gen_exports, {
|
|
|
318
322
|
postObjectsCopy: () => postObjectsCopy,
|
|
319
323
|
postObjectsMove: () => postObjectsMove,
|
|
320
324
|
postObjectsRegister: () => postObjectsRegister,
|
|
325
|
+
postPaymentMethods: () => postPaymentMethods,
|
|
326
|
+
postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
|
|
321
327
|
postPayments: () => postPayments,
|
|
322
328
|
postSearchBatch: () => postSearchBatch,
|
|
323
329
|
postSearchReindex: () => postSearchReindex,
|
|
@@ -1313,6 +1319,28 @@ var postWorkspaces = (options) => (options.client ?? client).post({
|
|
|
1313
1319
|
...options.headers
|
|
1314
1320
|
}
|
|
1315
1321
|
});
|
|
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
|
+
});
|
|
1316
1344
|
var getAgentsByIdStats = (options) => (options.client ?? client).get({
|
|
1317
1345
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1318
1346
|
url: "/agents/{id}/stats",
|
|
@@ -1592,17 +1620,6 @@ var postConfigs = (options) => (options.client ?? client).post({
|
|
|
1592
1620
|
...options.headers
|
|
1593
1621
|
}
|
|
1594
1622
|
});
|
|
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
|
-
});
|
|
1606
1623
|
var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
|
|
1607
1624
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1608
1625
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1750,16 +1767,6 @@ var getAgentsUsage = (options) => (options.client ?? client).get({
|
|
|
1750
1767
|
url: "/agents/usage",
|
|
1751
1768
|
...options
|
|
1752
1769
|
});
|
|
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
|
-
});
|
|
1763
1770
|
var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
|
|
1764
1771
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1765
1772
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2064,12 +2071,28 @@ var getUsersById = (options) => (options.client ?? client).get({
|
|
|
2064
2071
|
url: "/users/{id}",
|
|
2065
2072
|
...options
|
|
2066
2073
|
});
|
|
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
|
+
});
|
|
2067
2080
|
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
2068
2081
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2069
2082
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2070
2083
|
url: "/extraction/results/{id}",
|
|
2071
2084
|
...options
|
|
2072
2085
|
});
|
|
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
|
+
});
|
|
2073
2096
|
var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
|
|
2074
2097
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2075
2098
|
url: "/webhook_deliveries/stats",
|
|
@@ -2626,16 +2649,6 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
|
|
|
2626
2649
|
...options.headers
|
|
2627
2650
|
}
|
|
2628
2651
|
});
|
|
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
|
-
});
|
|
2639
2652
|
var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
|
|
2640
2653
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2641
2654
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2717,11 +2730,27 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
|
|
|
2717
2730
|
}
|
|
2718
2731
|
});
|
|
2719
2732
|
var getWalletInvoices = (options) => (options.client ?? client).get({
|
|
2720
|
-
querySerializer: {
|
|
2733
|
+
querySerializer: {
|
|
2734
|
+
parameters: {
|
|
2735
|
+
filter: { object: { style: "form" } },
|
|
2736
|
+
page: { object: { style: "form" } },
|
|
2737
|
+
fields: { object: { style: "form" } }
|
|
2738
|
+
}
|
|
2739
|
+
},
|
|
2721
2740
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2722
2741
|
url: "/wallet/invoices",
|
|
2723
2742
|
...options
|
|
2724
2743
|
});
|
|
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
|
+
});
|
|
2725
2754
|
var patchWorkspacesByIdStorageSettings = (options) => (options.client ?? client).patch({
|
|
2726
2755
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2727
2756
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2784,12 +2813,6 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
|
|
|
2784
2813
|
...options.headers
|
|
2785
2814
|
}
|
|
2786
2815
|
});
|
|
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
|
-
});
|
|
2793
2816
|
var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
2794
2817
|
querySerializer: {
|
|
2795
2818
|
parameters: {
|
|
@@ -2854,6 +2877,16 @@ var postBuckets = (options) => (options.client ?? client).post({
|
|
|
2854
2877
|
...options.headers
|
|
2855
2878
|
}
|
|
2856
2879
|
});
|
|
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
|
+
});
|
|
2857
2890
|
var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
|
|
2858
2891
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2859
2892
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3159,16 +3192,6 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
|
|
|
3159
3192
|
...options.headers
|
|
3160
3193
|
}
|
|
3161
3194
|
});
|
|
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
|
-
});
|
|
3172
3195
|
var getTransactions = (options) => (options.client ?? client).get({
|
|
3173
3196
|
querySerializer: {
|
|
3174
3197
|
parameters: {
|
|
@@ -3572,6 +3595,28 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
|
|
|
3572
3595
|
url: "/agents/{id}/schema_versions/{version_id}/activate",
|
|
3573
3596
|
...options
|
|
3574
3597
|
});
|
|
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
|
+
});
|
|
3575
3620
|
var deleteBucketsById = (options) => (options.client ?? client).delete({
|
|
3576
3621
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3577
3622
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3899,6 +3944,12 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
|
|
|
3899
3944
|
...options.headers
|
|
3900
3945
|
}
|
|
3901
3946
|
});
|
|
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
|
+
});
|
|
3902
3953
|
var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
|
|
3903
3954
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3904
3955
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3929,15 +3980,16 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
3929
3980
|
...options.headers
|
|
3930
3981
|
}
|
|
3931
3982
|
});
|
|
3932
|
-
var
|
|
3933
|
-
querySerializer: {
|
|
3983
|
+
var getExtractionResults = (options) => (options.client ?? client).get({
|
|
3984
|
+
querySerializer: {
|
|
3985
|
+
parameters: {
|
|
3986
|
+
filter: { object: { style: "form" } },
|
|
3987
|
+
fields: { object: { style: "form" } }
|
|
3988
|
+
}
|
|
3989
|
+
},
|
|
3934
3990
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3935
3991
|
url: "/extraction/results",
|
|
3936
|
-
...options
|
|
3937
|
-
headers: {
|
|
3938
|
-
"Content-Type": "application/vnd.api+json",
|
|
3939
|
-
...options.headers
|
|
3940
|
-
}
|
|
3992
|
+
...options
|
|
3941
3993
|
});
|
|
3942
3994
|
var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
3943
3995
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
@@ -4075,7 +4127,6 @@ var postWebhookConfigs = (options) => (options.client ?? client).post({
|
|
|
4075
4127
|
}
|
|
4076
4128
|
});
|
|
4077
4129
|
var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post({
|
|
4078
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4079
4130
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4080
4131
|
url: "/agents/{id}/publish_version",
|
|
4081
4132
|
...options,
|
|
@@ -4263,6 +4314,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
|
|
|
4263
4314
|
...options.headers
|
|
4264
4315
|
}
|
|
4265
4316
|
});
|
|
4317
|
+
var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
|
|
4318
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4319
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4320
|
+
url: "/payment-methods/{id}/default",
|
|
4321
|
+
...options,
|
|
4322
|
+
headers: {
|
|
4323
|
+
"Content-Type": "application/vnd.api+json",
|
|
4324
|
+
...options.headers
|
|
4325
|
+
}
|
|
4326
|
+
});
|
|
4266
4327
|
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
4267
4328
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4268
4329
|
url: "/agents/{id}/export",
|
|
@@ -4983,11 +5044,13 @@ export {
|
|
|
4983
5044
|
deleteBucketsById,
|
|
4984
5045
|
deleteExtractionBatchesById,
|
|
4985
5046
|
deleteExtractionDocumentsById,
|
|
5047
|
+
deleteExtractionResultsById,
|
|
4986
5048
|
deleteFieldTemplatesById,
|
|
4987
5049
|
deleteMessagesById,
|
|
4988
5050
|
deleteNotificationMethodsById,
|
|
4989
5051
|
deleteNotificationPreferencesById,
|
|
4990
5052
|
deleteObjectsById,
|
|
5053
|
+
deletePaymentMethodsById,
|
|
4991
5054
|
deleteSearchSavedById,
|
|
4992
5055
|
deleteTenantMembershipsByTenantIdByUserId,
|
|
4993
5056
|
deleteTenantsById,
|
|
@@ -4999,8 +5062,6 @@ export {
|
|
|
4999
5062
|
deleteWebhookConfigsById,
|
|
5000
5063
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5001
5064
|
deleteWorkspacesById,
|
|
5002
|
-
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
5003
|
-
getAgentVersionRevisionsById,
|
|
5004
5065
|
getAgentVersions,
|
|
5005
5066
|
getAgentVersionsById,
|
|
5006
5067
|
getAgentVersionsByIdMetrics,
|
|
@@ -5054,6 +5115,7 @@ export {
|
|
|
5054
5115
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
5055
5116
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
5056
5117
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
5118
|
+
getExtractionResults,
|
|
5057
5119
|
getExtractionResultsById,
|
|
5058
5120
|
getExtractionResultsDocumentByDocumentId,
|
|
5059
5121
|
getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -5083,6 +5145,8 @@ export {
|
|
|
5083
5145
|
getNotificationPreferencesById,
|
|
5084
5146
|
getObjects,
|
|
5085
5147
|
getObjectsById,
|
|
5148
|
+
getPaymentMethods,
|
|
5149
|
+
getPaymentMethodsById,
|
|
5086
5150
|
getPermissions,
|
|
5087
5151
|
getPermissionsById,
|
|
5088
5152
|
getPermissionsMeta,
|
|
@@ -5134,6 +5198,7 @@ export {
|
|
|
5134
5198
|
getUsersMeTenants,
|
|
5135
5199
|
getWallet,
|
|
5136
5200
|
getWalletInvoices,
|
|
5201
|
+
getWalletPlanPreview,
|
|
5137
5202
|
getWatcherClaims,
|
|
5138
5203
|
getWatcherClaimsById,
|
|
5139
5204
|
getWatcherClaimsStatus,
|
|
@@ -5187,8 +5252,9 @@ export {
|
|
|
5187
5252
|
patchExtractionDocumentsByIdRestore,
|
|
5188
5253
|
patchExtractionDocumentsByIdStatus,
|
|
5189
5254
|
patchExtractionDocumentsByIdVerification,
|
|
5190
|
-
|
|
5255
|
+
patchExtractionResultsById,
|
|
5191
5256
|
patchExtractionResultsByIdRegenerate,
|
|
5257
|
+
patchExtractionResultsByIdSaveCorrections,
|
|
5192
5258
|
patchInvitationsByIdAccept,
|
|
5193
5259
|
patchInvitationsByIdAcceptByUser,
|
|
5194
5260
|
patchInvitationsByIdDecline,
|
|
@@ -5200,6 +5266,8 @@ export {
|
|
|
5200
5266
|
patchNotificationMethodsByIdSetPrimary,
|
|
5201
5267
|
patchNotificationMethodsByIdVerify,
|
|
5202
5268
|
patchNotificationPreferencesById,
|
|
5269
|
+
patchPaymentMethodsById,
|
|
5270
|
+
patchPaymentMethodsByIdDefault,
|
|
5203
5271
|
patchSearchSavedById,
|
|
5204
5272
|
patchTenantMembershipsByTenantIdByUserId,
|
|
5205
5273
|
patchTenantsById,
|
|
@@ -5230,7 +5298,6 @@ export {
|
|
|
5230
5298
|
patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5231
5299
|
patchWorkspacesById,
|
|
5232
5300
|
patchWorkspacesByIdAllocate,
|
|
5233
|
-
patchWorkspacesByIdPopulateHashes,
|
|
5234
5301
|
patchWorkspacesByIdStorageSettings,
|
|
5235
5302
|
postAgentTestResults,
|
|
5236
5303
|
postAgentVersionComparisons,
|
|
@@ -5271,9 +5338,7 @@ export {
|
|
|
5271
5338
|
postExtractionBatches,
|
|
5272
5339
|
postExtractionDocumentsBeginUpload,
|
|
5273
5340
|
postExtractionDocumentsBulkReprocess,
|
|
5274
|
-
postExtractionDocumentsFindOrBeginUpload,
|
|
5275
5341
|
postExtractionDocumentsUpload,
|
|
5276
|
-
postExtractionResults,
|
|
5277
5342
|
postExtractionSchemaDiscoveries,
|
|
5278
5343
|
postFieldTemplates,
|
|
5279
5344
|
postInvitations,
|
|
@@ -5286,6 +5351,8 @@ export {
|
|
|
5286
5351
|
postObjectsCopy,
|
|
5287
5352
|
postObjectsMove,
|
|
5288
5353
|
postObjectsRegister,
|
|
5354
|
+
postPaymentMethods,
|
|
5355
|
+
postPaymentMethodsTokenize,
|
|
5289
5356
|
postPayments,
|
|
5290
5357
|
postSearchBatch,
|
|
5291
5358
|
postSearchReindex,
|
package/llms.txt
CHANGED
|
@@ -38,6 +38,7 @@ client.setConfig({
|
|
|
38
38
|
- `getAgentsByIdStats()` - Get stats
|
|
39
39
|
- `getAgentsByIdTrainingStats()` - Get training stats
|
|
40
40
|
- `getAgentsByIdUsage()` - Get usage
|
|
41
|
+
- `getAgentsUsage()` - List usage
|
|
41
42
|
- `getAgentVersions()` - List agent versions
|
|
42
43
|
- `getAgentVersionsById()` - Get agent versions
|
|
43
44
|
- `getAgentVersionsByIdMetrics()` - Get metrics
|
|
@@ -55,6 +56,9 @@ client.setConfig({
|
|
|
55
56
|
- `postAgentsImport()` - Create import
|
|
56
57
|
- `postAgentsPredict()` - Create predict
|
|
57
58
|
- `postAgentVersions()` - Create agent versions
|
|
59
|
+
- `postAgentVersionsByIdAddSystemField()` - Create add system field
|
|
60
|
+
- `postAgentVersionsByIdRemoveSystemField()` - Create remove system field
|
|
61
|
+
- `postAgentVersionsByIdSetSystemFields()` - Create set system fields
|
|
58
62
|
- `patchAgentsById()` - Update agents
|
|
59
63
|
- `patchAgentsByIdSchemaVersionsByVersionId()` - Update schema versions
|
|
60
64
|
- `deleteAgentsById()` - Delete agents
|
|
@@ -126,7 +130,7 @@ client.setConfig({
|
|
|
126
130
|
- `getPlansById()` - Get plans
|
|
127
131
|
- `getPlansSlugBySlug()` - Get slug
|
|
128
132
|
- `getWallet()` - List wallet
|
|
129
|
-
- `
|
|
133
|
+
- `getWalletPlanPreview()` - List preview
|
|
130
134
|
- `postPayments()` - Create payments
|
|
131
135
|
- `patchWalletAddons()` - Update addons
|
|
132
136
|
- `patchWalletAddonsByAddonSlugCancel()` - Update cancel
|
|
@@ -222,12 +226,14 @@ client.setConfig({
|
|
|
222
226
|
|
|
223
227
|
## Extraction Results
|
|
224
228
|
|
|
229
|
+
- `getExtractionResults()` - List results
|
|
225
230
|
- `getExtractionResultsById()` - Get results
|
|
226
231
|
- `getExtractionResultsDocumentByDocumentId()` - Get document
|
|
227
232
|
- `getExtractionResultsWorkspaceByWorkspaceId()` - Get workspace
|
|
228
|
-
- `
|
|
229
|
-
- `patchExtractionResultsByIdCorrections()` - Update corrections
|
|
233
|
+
- `patchExtractionResultsById()` - Update results
|
|
230
234
|
- `patchExtractionResultsByIdRegenerate()` - Update regenerate
|
|
235
|
+
- `patchExtractionResultsByIdSaveCorrections()` - Update save corrections
|
|
236
|
+
- `deleteExtractionResultsById()` - Delete results
|
|
231
237
|
|
|
232
238
|
## Field mapping confirmation
|
|
233
239
|
|
|
@@ -257,6 +263,10 @@ client.setConfig({
|
|
|
257
263
|
- `patchInvitationsByIdResend()` - Update resend
|
|
258
264
|
- `patchInvitationsByIdRevoke()` - Update revoke
|
|
259
265
|
|
|
266
|
+
## Invoice
|
|
267
|
+
|
|
268
|
+
- `getWalletInvoices()` - List invoices
|
|
269
|
+
|
|
260
270
|
## Knowledge Graph
|
|
261
271
|
|
|
262
272
|
- `getAiGraphEdges()` - List edges
|
|
@@ -311,10 +321,21 @@ client.setConfig({
|
|
|
311
321
|
|
|
312
322
|
- `postDocumentsBulkDelete()` - Create bulk delete
|
|
313
323
|
|
|
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
|
+
|
|
314
334
|
## Permission
|
|
315
335
|
|
|
316
336
|
- `getPermissions()` - List permissions
|
|
317
337
|
- `getPermissionsById()` - Get permissions
|
|
338
|
+
- `getPermissionsPresets()` - List presets
|
|
318
339
|
|
|
319
340
|
## Permission meta
|
|
320
341
|
|
|
@@ -322,7 +343,6 @@ client.setConfig({
|
|
|
322
343
|
|
|
323
344
|
## Permission preset
|
|
324
345
|
|
|
325
|
-
- `getPermissionsPresets()` - List presets
|
|
326
346
|
- `getPermissionsPresetsById()` - Get presets
|
|
327
347
|
|
|
328
348
|
## Presigned url
|
|
@@ -435,6 +455,7 @@ client.setConfig({
|
|
|
435
455
|
|
|
436
456
|
## Training analytics
|
|
437
457
|
|
|
458
|
+
- `getWorkspacesAnalytics-batch()` - List analytics batch
|
|
438
459
|
- `getWorkspacesByWorkspaceIdTrainingAnalytics()` - Get analytics
|
|
439
460
|
|
|
440
461
|
## Transaction
|
|
@@ -465,6 +486,9 @@ client.setConfig({
|
|
|
465
486
|
- `postUsersAuthResend-confirmation()` - Create resend confirmation
|
|
466
487
|
- `postUsersRegisterIsv()` - Create register isv
|
|
467
488
|
- `patchUserProfilesById()` - Update user profiles
|
|
489
|
+
- `patchUserProfilesByIdAccept-tos()` - Update accept tos
|
|
490
|
+
- `patchUserProfilesByIdDismiss-announcement()` - Update dismiss announcement
|
|
491
|
+
- `patchUserProfilesByIdDismiss-welcome()` - Update dismiss welcome
|
|
468
492
|
- `patchUsersAuthPasswordChange()` - Update change
|
|
469
493
|
- `patchUsersAuthReset-password()` - Update reset password
|
|
470
494
|
- `patchUsersById()` - Update admin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.01",
|
|
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",
|
|
@@ -52,6 +52,15 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"generate": "openapi-ts",
|
|
57
|
+
"typecheck": "tsc --noEmit",
|
|
58
|
+
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:watch": "vitest",
|
|
61
|
+
"test:ui": "vitest --ui",
|
|
62
|
+
"test:coverage": "vitest run --coverage"
|
|
63
|
+
},
|
|
55
64
|
"dependencies": {
|
|
56
65
|
"eventsource-parser": "^3.0.6",
|
|
57
66
|
"zod": "^3.25.76"
|
|
@@ -63,14 +72,5 @@
|
|
|
63
72
|
"tsup": "^8.5.1",
|
|
64
73
|
"typescript": "^5.9.3",
|
|
65
74
|
"vitest": "^4.0.15"
|
|
66
|
-
},
|
|
67
|
-
"scripts": {
|
|
68
|
-
"generate": "openapi-ts",
|
|
69
|
-
"typecheck": "tsc --noEmit",
|
|
70
|
-
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
71
|
-
"test": "vitest run",
|
|
72
|
-
"test:watch": "vitest",
|
|
73
|
-
"test:ui": "vitest --ui",
|
|
74
|
-
"test:coverage": "vitest run --coverage"
|
|
75
75
|
}
|
|
76
|
-
}
|
|
76
|
+
}
|