@gpt-core/client 0.9.13 → 0.9.14
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 +2312 -1003
- package/dist/index.d.ts +2312 -1003
- package/dist/index.js +162 -81
- package/dist/index.mjs +150 -75
- package/llms.txt +48 -9
- package/package.json +1 -1
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,7 +1319,30 @@ 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({
|
|
1345
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1317
1346
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1318
1347
|
url: "/agents/{id}/stats",
|
|
1319
1348
|
...options
|
|
@@ -1592,17 +1621,6 @@ var postConfigs = (options) => (options.client ?? client).post({
|
|
|
1592
1621
|
...options.headers
|
|
1593
1622
|
}
|
|
1594
1623
|
});
|
|
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
1624
|
var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
|
|
1607
1625
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1608
1626
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1746,20 +1764,16 @@ var postApplicationsByApplicationIdEmailTemplates = (options) => (options.client
|
|
|
1746
1764
|
}
|
|
1747
1765
|
});
|
|
1748
1766
|
var getAgentsUsage = (options) => (options.client ?? client).get({
|
|
1767
|
+
querySerializer: {
|
|
1768
|
+
parameters: {
|
|
1769
|
+
filter: { object: { style: "form" } },
|
|
1770
|
+
fields: { object: { style: "form" } }
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1749
1773
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1750
1774
|
url: "/agents/usage",
|
|
1751
1775
|
...options
|
|
1752
1776
|
});
|
|
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
1777
|
var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
|
|
1764
1778
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1765
1779
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2064,12 +2078,28 @@ var getUsersById = (options) => (options.client ?? client).get({
|
|
|
2064
2078
|
url: "/users/{id}",
|
|
2065
2079
|
...options
|
|
2066
2080
|
});
|
|
2081
|
+
var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
|
|
2082
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2083
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2084
|
+
url: "/extraction/results/{id}",
|
|
2085
|
+
...options
|
|
2086
|
+
});
|
|
2067
2087
|
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
2068
2088
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2069
2089
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2070
2090
|
url: "/extraction/results/{id}",
|
|
2071
2091
|
...options
|
|
2072
2092
|
});
|
|
2093
|
+
var patchExtractionResultsById = (options) => (options.client ?? client).patch({
|
|
2094
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2095
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2096
|
+
url: "/extraction/results/{id}",
|
|
2097
|
+
...options,
|
|
2098
|
+
headers: {
|
|
2099
|
+
"Content-Type": "application/vnd.api+json",
|
|
2100
|
+
...options.headers
|
|
2101
|
+
}
|
|
2102
|
+
});
|
|
2073
2103
|
var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
|
|
2074
2104
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2075
2105
|
url: "/webhook_deliveries/stats",
|
|
@@ -2339,6 +2369,7 @@ var getSearchSemantic = (options) => (options.client ?? client).get({
|
|
|
2339
2369
|
...options
|
|
2340
2370
|
});
|
|
2341
2371
|
var getThreadsStats = (options) => (options.client ?? client).get({
|
|
2372
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2342
2373
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2343
2374
|
url: "/threads/stats",
|
|
2344
2375
|
...options
|
|
@@ -2626,16 +2657,6 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
|
|
|
2626
2657
|
...options.headers
|
|
2627
2658
|
}
|
|
2628
2659
|
});
|
|
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
2660
|
var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
|
|
2640
2661
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2641
2662
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2717,11 +2738,27 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
|
|
|
2717
2738
|
}
|
|
2718
2739
|
});
|
|
2719
2740
|
var getWalletInvoices = (options) => (options.client ?? client).get({
|
|
2720
|
-
querySerializer: {
|
|
2741
|
+
querySerializer: {
|
|
2742
|
+
parameters: {
|
|
2743
|
+
filter: { object: { style: "form" } },
|
|
2744
|
+
page: { object: { style: "form" } },
|
|
2745
|
+
fields: { object: { style: "form" } }
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2721
2748
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2722
2749
|
url: "/wallet/invoices",
|
|
2723
2750
|
...options
|
|
2724
2751
|
});
|
|
2752
|
+
var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
|
|
2753
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2754
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2755
|
+
url: "/extraction/results/{id}/save_corrections",
|
|
2756
|
+
...options,
|
|
2757
|
+
headers: {
|
|
2758
|
+
"Content-Type": "application/vnd.api+json",
|
|
2759
|
+
...options.headers
|
|
2760
|
+
}
|
|
2761
|
+
});
|
|
2725
2762
|
var patchWorkspacesByIdStorageSettings = (options) => (options.client ?? client).patch({
|
|
2726
2763
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2727
2764
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2784,12 +2821,6 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
|
|
|
2784
2821
|
...options.headers
|
|
2785
2822
|
}
|
|
2786
2823
|
});
|
|
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
2824
|
var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
2794
2825
|
querySerializer: {
|
|
2795
2826
|
parameters: {
|
|
@@ -2819,6 +2850,7 @@ var getWorkspacesByWorkspaceIdExtractionExportsById = (options) => (options.clie
|
|
|
2819
2850
|
...options
|
|
2820
2851
|
});
|
|
2821
2852
|
var getAgentsByIdTrainingStats = (options) => (options.client ?? client).get({
|
|
2853
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2822
2854
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2823
2855
|
url: "/agents/{id}/training_stats",
|
|
2824
2856
|
...options
|
|
@@ -2854,6 +2886,16 @@ var postBuckets = (options) => (options.client ?? client).post({
|
|
|
2854
2886
|
...options.headers
|
|
2855
2887
|
}
|
|
2856
2888
|
});
|
|
2889
|
+
var postPaymentMethodsTokenize = (options) => (options.client ?? client).post({
|
|
2890
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2891
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2892
|
+
url: "/payment-methods/tokenize",
|
|
2893
|
+
...options,
|
|
2894
|
+
headers: {
|
|
2895
|
+
"Content-Type": "application/vnd.api+json",
|
|
2896
|
+
...options.headers
|
|
2897
|
+
}
|
|
2898
|
+
});
|
|
2857
2899
|
var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
|
|
2858
2900
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2859
2901
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3002,6 +3044,7 @@ var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
|
|
|
3002
3044
|
}
|
|
3003
3045
|
});
|
|
3004
3046
|
var getAgentsByIdUsage = (options) => (options.client ?? client).get({
|
|
3047
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3005
3048
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3006
3049
|
url: "/agents/{id}/usage",
|
|
3007
3050
|
...options
|
|
@@ -3159,16 +3202,6 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
|
|
|
3159
3202
|
...options.headers
|
|
3160
3203
|
}
|
|
3161
3204
|
});
|
|
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
3205
|
var getTransactions = (options) => (options.client ?? client).get({
|
|
3173
3206
|
querySerializer: {
|
|
3174
3207
|
parameters: {
|
|
@@ -3572,6 +3605,28 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
|
|
|
3572
3605
|
url: "/agents/{id}/schema_versions/{version_id}/activate",
|
|
3573
3606
|
...options
|
|
3574
3607
|
});
|
|
3608
|
+
var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
|
|
3609
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3610
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3611
|
+
url: "/payment-methods/{id}",
|
|
3612
|
+
...options
|
|
3613
|
+
});
|
|
3614
|
+
var getPaymentMethodsById = (options) => (options.client ?? client).get({
|
|
3615
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3616
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3617
|
+
url: "/payment-methods/{id}",
|
|
3618
|
+
...options
|
|
3619
|
+
});
|
|
3620
|
+
var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
|
|
3621
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3622
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3623
|
+
url: "/payment-methods/{id}",
|
|
3624
|
+
...options,
|
|
3625
|
+
headers: {
|
|
3626
|
+
"Content-Type": "application/vnd.api+json",
|
|
3627
|
+
...options.headers
|
|
3628
|
+
}
|
|
3629
|
+
});
|
|
3575
3630
|
var deleteBucketsById = (options) => (options.client ?? client).delete({
|
|
3576
3631
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3577
3632
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3899,6 +3954,12 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
|
|
|
3899
3954
|
...options.headers
|
|
3900
3955
|
}
|
|
3901
3956
|
});
|
|
3957
|
+
var getWalletPlanPreview = (options) => (options.client ?? client).get({
|
|
3958
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3959
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3960
|
+
url: "/wallet/plan/preview",
|
|
3961
|
+
...options
|
|
3962
|
+
});
|
|
3902
3963
|
var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
|
|
3903
3964
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3904
3965
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3929,15 +3990,16 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
3929
3990
|
...options.headers
|
|
3930
3991
|
}
|
|
3931
3992
|
});
|
|
3932
|
-
var
|
|
3933
|
-
querySerializer: {
|
|
3993
|
+
var getExtractionResults = (options) => (options.client ?? client).get({
|
|
3994
|
+
querySerializer: {
|
|
3995
|
+
parameters: {
|
|
3996
|
+
filter: { object: { style: "form" } },
|
|
3997
|
+
fields: { object: { style: "form" } }
|
|
3998
|
+
}
|
|
3999
|
+
},
|
|
3934
4000
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3935
4001
|
url: "/extraction/results",
|
|
3936
|
-
...options
|
|
3937
|
-
headers: {
|
|
3938
|
-
"Content-Type": "application/vnd.api+json",
|
|
3939
|
-
...options.headers
|
|
3940
|
-
}
|
|
4002
|
+
...options
|
|
3941
4003
|
});
|
|
3942
4004
|
var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
3943
4005
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
@@ -4024,6 +4086,7 @@ var postSearchBatch = (options) => (options.client ?? client).post({
|
|
|
4024
4086
|
}
|
|
4025
4087
|
});
|
|
4026
4088
|
var getThreadsWorkspaceStats = (options) => (options.client ?? client).get({
|
|
4089
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4027
4090
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4028
4091
|
url: "/threads/workspace-stats",
|
|
4029
4092
|
...options
|
|
@@ -4263,6 +4326,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
|
|
|
4263
4326
|
...options.headers
|
|
4264
4327
|
}
|
|
4265
4328
|
});
|
|
4329
|
+
var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
|
|
4330
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4331
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4332
|
+
url: "/payment-methods/{id}/default",
|
|
4333
|
+
...options,
|
|
4334
|
+
headers: {
|
|
4335
|
+
"Content-Type": "application/vnd.api+json",
|
|
4336
|
+
...options.headers
|
|
4337
|
+
}
|
|
4338
|
+
});
|
|
4266
4339
|
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
4267
4340
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4268
4341
|
url: "/agents/{id}/export",
|
|
@@ -4409,10 +4482,9 @@ var NotFoundError = class extends GptCoreError {
|
|
|
4409
4482
|
}
|
|
4410
4483
|
};
|
|
4411
4484
|
var ValidationError = class extends GptCoreError {
|
|
4412
|
-
constructor(message = "Validation failed", errors,
|
|
4413
|
-
super(message, { statusCode:
|
|
4485
|
+
constructor(message = "Validation failed", errors, options) {
|
|
4486
|
+
super(message, { statusCode: 422, ...options });
|
|
4414
4487
|
this.errors = errors;
|
|
4415
|
-
this.meta = meta;
|
|
4416
4488
|
}
|
|
4417
4489
|
};
|
|
4418
4490
|
var RateLimitError = class extends GptCoreError {
|
|
@@ -4444,15 +4516,12 @@ function handleApiError(error) {
|
|
|
4444
4516
|
const body = response?.body || response?.data || error?.body || error?.data || error;
|
|
4445
4517
|
let message = "An error occurred";
|
|
4446
4518
|
let errors;
|
|
4447
|
-
let meta;
|
|
4448
4519
|
if (body?.errors && Array.isArray(body.errors)) {
|
|
4449
4520
|
const firstError = body.errors[0];
|
|
4450
4521
|
message = firstError?.title || firstError?.detail || message;
|
|
4451
|
-
meta = firstError?.meta;
|
|
4452
4522
|
errors = body.errors.map((err) => ({
|
|
4453
4523
|
field: err.source?.pointer?.split("/").pop(),
|
|
4454
|
-
message: err.detail || err.title || "Unknown error"
|
|
4455
|
-
meta: err.meta
|
|
4524
|
+
message: err.detail || err.title || "Unknown error"
|
|
4456
4525
|
}));
|
|
4457
4526
|
} else if (body?.message) {
|
|
4458
4527
|
message = body.message;
|
|
@@ -4477,7 +4546,7 @@ function handleApiError(error) {
|
|
|
4477
4546
|
throw new NotFoundError(message, errorOptions);
|
|
4478
4547
|
case 400:
|
|
4479
4548
|
case 422:
|
|
4480
|
-
throw new ValidationError(message, errors,
|
|
4549
|
+
throw new ValidationError(message, errors, errorOptions);
|
|
4481
4550
|
case 429: {
|
|
4482
4551
|
const retryAfter = headers?.get?.("retry-after") || headers?.["retry-after"];
|
|
4483
4552
|
throw new RateLimitError(message, retryAfter ? parseInt(retryAfter, 10) : void 0, errorOptions);
|
|
@@ -4987,11 +5056,13 @@ export {
|
|
|
4987
5056
|
deleteBucketsById,
|
|
4988
5057
|
deleteExtractionBatchesById,
|
|
4989
5058
|
deleteExtractionDocumentsById,
|
|
5059
|
+
deleteExtractionResultsById,
|
|
4990
5060
|
deleteFieldTemplatesById,
|
|
4991
5061
|
deleteMessagesById,
|
|
4992
5062
|
deleteNotificationMethodsById,
|
|
4993
5063
|
deleteNotificationPreferencesById,
|
|
4994
5064
|
deleteObjectsById,
|
|
5065
|
+
deletePaymentMethodsById,
|
|
4995
5066
|
deleteSearchSavedById,
|
|
4996
5067
|
deleteTenantMembershipsByTenantIdByUserId,
|
|
4997
5068
|
deleteTenantsById,
|
|
@@ -5003,8 +5074,6 @@ export {
|
|
|
5003
5074
|
deleteWebhookConfigsById,
|
|
5004
5075
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5005
5076
|
deleteWorkspacesById,
|
|
5006
|
-
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
5007
|
-
getAgentVersionRevisionsById,
|
|
5008
5077
|
getAgentVersions,
|
|
5009
5078
|
getAgentVersionsById,
|
|
5010
5079
|
getAgentVersionsByIdMetrics,
|
|
@@ -5058,6 +5127,7 @@ export {
|
|
|
5058
5127
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
5059
5128
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
5060
5129
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
5130
|
+
getExtractionResults,
|
|
5061
5131
|
getExtractionResultsById,
|
|
5062
5132
|
getExtractionResultsDocumentByDocumentId,
|
|
5063
5133
|
getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -5087,6 +5157,8 @@ export {
|
|
|
5087
5157
|
getNotificationPreferencesById,
|
|
5088
5158
|
getObjects,
|
|
5089
5159
|
getObjectsById,
|
|
5160
|
+
getPaymentMethods,
|
|
5161
|
+
getPaymentMethodsById,
|
|
5090
5162
|
getPermissions,
|
|
5091
5163
|
getPermissionsById,
|
|
5092
5164
|
getPermissionsMeta,
|
|
@@ -5138,6 +5210,7 @@ export {
|
|
|
5138
5210
|
getUsersMeTenants,
|
|
5139
5211
|
getWallet,
|
|
5140
5212
|
getWalletInvoices,
|
|
5213
|
+
getWalletPlanPreview,
|
|
5141
5214
|
getWatcherClaims,
|
|
5142
5215
|
getWatcherClaimsById,
|
|
5143
5216
|
getWatcherClaimsStatus,
|
|
@@ -5191,8 +5264,9 @@ export {
|
|
|
5191
5264
|
patchExtractionDocumentsByIdRestore,
|
|
5192
5265
|
patchExtractionDocumentsByIdStatus,
|
|
5193
5266
|
patchExtractionDocumentsByIdVerification,
|
|
5194
|
-
|
|
5267
|
+
patchExtractionResultsById,
|
|
5195
5268
|
patchExtractionResultsByIdRegenerate,
|
|
5269
|
+
patchExtractionResultsByIdSaveCorrections,
|
|
5196
5270
|
patchInvitationsByIdAccept,
|
|
5197
5271
|
patchInvitationsByIdAcceptByUser,
|
|
5198
5272
|
patchInvitationsByIdDecline,
|
|
@@ -5204,6 +5278,8 @@ export {
|
|
|
5204
5278
|
patchNotificationMethodsByIdSetPrimary,
|
|
5205
5279
|
patchNotificationMethodsByIdVerify,
|
|
5206
5280
|
patchNotificationPreferencesById,
|
|
5281
|
+
patchPaymentMethodsById,
|
|
5282
|
+
patchPaymentMethodsByIdDefault,
|
|
5207
5283
|
patchSearchSavedById,
|
|
5208
5284
|
patchTenantMembershipsByTenantIdByUserId,
|
|
5209
5285
|
patchTenantsById,
|
|
@@ -5234,7 +5310,6 @@ export {
|
|
|
5234
5310
|
patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5235
5311
|
patchWorkspacesById,
|
|
5236
5312
|
patchWorkspacesByIdAllocate,
|
|
5237
|
-
patchWorkspacesByIdPopulateHashes,
|
|
5238
5313
|
patchWorkspacesByIdStorageSettings,
|
|
5239
5314
|
postAgentTestResults,
|
|
5240
5315
|
postAgentVersionComparisons,
|
|
@@ -5275,9 +5350,7 @@ export {
|
|
|
5275
5350
|
postExtractionBatches,
|
|
5276
5351
|
postExtractionDocumentsBeginUpload,
|
|
5277
5352
|
postExtractionDocumentsBulkReprocess,
|
|
5278
|
-
postExtractionDocumentsFindOrBeginUpload,
|
|
5279
5353
|
postExtractionDocumentsUpload,
|
|
5280
|
-
postExtractionResults,
|
|
5281
5354
|
postExtractionSchemaDiscoveries,
|
|
5282
5355
|
postFieldTemplates,
|
|
5283
5356
|
postInvitations,
|
|
@@ -5290,6 +5363,8 @@ export {
|
|
|
5290
5363
|
postObjectsCopy,
|
|
5291
5364
|
postObjectsMove,
|
|
5292
5365
|
postObjectsRegister,
|
|
5366
|
+
postPaymentMethods,
|
|
5367
|
+
postPaymentMethodsTokenize,
|
|
5293
5368
|
postPayments,
|
|
5294
5369
|
postSearchBatch,
|
|
5295
5370
|
postSearchReindex,
|
package/llms.txt
CHANGED
|
@@ -22,10 +22,23 @@ client.setConfig({
|
|
|
22
22
|
});
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
## Agent stats
|
|
26
|
+
|
|
27
|
+
- `getAgentsByIdStats()` - Get stats
|
|
28
|
+
|
|
25
29
|
## Agent test result
|
|
26
30
|
|
|
27
31
|
- `postAgentTestResults()` - Create agent test results
|
|
28
32
|
|
|
33
|
+
## Agent training stats
|
|
34
|
+
|
|
35
|
+
- `getAgentsByIdTrainingStats()` - Get training stats
|
|
36
|
+
|
|
37
|
+
## Agent usage
|
|
38
|
+
|
|
39
|
+
- `getAgentsByIdUsage()` - Get usage
|
|
40
|
+
- `getAgentsUsage()` - List usage
|
|
41
|
+
|
|
29
42
|
## Agent version comparison
|
|
30
43
|
|
|
31
44
|
- `postAgentVersionComparisons()` - Create agent version comparisons
|
|
@@ -35,9 +48,6 @@ client.setConfig({
|
|
|
35
48
|
- `getAgents()` - List agents
|
|
36
49
|
- `getAgentsById()` - Get agents
|
|
37
50
|
- `getAgentsByIdSchemaVersions()` - Get schema versions
|
|
38
|
-
- `getAgentsByIdStats()` - Get stats
|
|
39
|
-
- `getAgentsByIdTrainingStats()` - Get training stats
|
|
40
|
-
- `getAgentsByIdUsage()` - Get usage
|
|
41
51
|
- `getAgentVersions()` - List agent versions
|
|
42
52
|
- `getAgentVersionsById()` - Get agent versions
|
|
43
53
|
- `getAgentVersionsByIdMetrics()` - Get metrics
|
|
@@ -55,6 +65,9 @@ client.setConfig({
|
|
|
55
65
|
- `postAgentsImport()` - Create import
|
|
56
66
|
- `postAgentsPredict()` - Create predict
|
|
57
67
|
- `postAgentVersions()` - Create agent versions
|
|
68
|
+
- `postAgentVersionsByIdAddSystemField()` - Create add system field
|
|
69
|
+
- `postAgentVersionsByIdRemoveSystemField()` - Create remove system field
|
|
70
|
+
- `postAgentVersionsByIdSetSystemFields()` - Create set system fields
|
|
58
71
|
- `patchAgentsById()` - Update agents
|
|
59
72
|
- `patchAgentsByIdSchemaVersionsByVersionId()` - Update schema versions
|
|
60
73
|
- `deleteAgentsById()` - Delete agents
|
|
@@ -126,7 +139,7 @@ client.setConfig({
|
|
|
126
139
|
- `getPlansById()` - Get plans
|
|
127
140
|
- `getPlansSlugBySlug()` - Get slug
|
|
128
141
|
- `getWallet()` - List wallet
|
|
129
|
-
- `
|
|
142
|
+
- `getWalletPlanPreview()` - List preview
|
|
130
143
|
- `postPayments()` - Create payments
|
|
131
144
|
- `patchWalletAddons()` - Update addons
|
|
132
145
|
- `patchWalletAddonsByAddonSlugCancel()` - Update cancel
|
|
@@ -222,12 +235,14 @@ client.setConfig({
|
|
|
222
235
|
|
|
223
236
|
## Extraction Results
|
|
224
237
|
|
|
238
|
+
- `getExtractionResults()` - List results
|
|
225
239
|
- `getExtractionResultsById()` - Get results
|
|
226
240
|
- `getExtractionResultsDocumentByDocumentId()` - Get document
|
|
227
241
|
- `getExtractionResultsWorkspaceByWorkspaceId()` - Get workspace
|
|
228
|
-
- `
|
|
229
|
-
- `patchExtractionResultsByIdCorrections()` - Update corrections
|
|
242
|
+
- `patchExtractionResultsById()` - Update results
|
|
230
243
|
- `patchExtractionResultsByIdRegenerate()` - Update regenerate
|
|
244
|
+
- `patchExtractionResultsByIdSaveCorrections()` - Update save corrections
|
|
245
|
+
- `deleteExtractionResultsById()` - Delete results
|
|
231
246
|
|
|
232
247
|
## Field mapping confirmation
|
|
233
248
|
|
|
@@ -257,6 +272,10 @@ client.setConfig({
|
|
|
257
272
|
- `patchInvitationsByIdResend()` - Update resend
|
|
258
273
|
- `patchInvitationsByIdRevoke()` - Update revoke
|
|
259
274
|
|
|
275
|
+
## Invoice
|
|
276
|
+
|
|
277
|
+
- `getWalletInvoices()` - List invoices
|
|
278
|
+
|
|
260
279
|
## Knowledge Graph
|
|
261
280
|
|
|
262
281
|
- `getAiGraphEdges()` - List edges
|
|
@@ -311,10 +330,21 @@ client.setConfig({
|
|
|
311
330
|
|
|
312
331
|
- `postDocumentsBulkDelete()` - Create bulk delete
|
|
313
332
|
|
|
333
|
+
## Payment method
|
|
334
|
+
|
|
335
|
+
- `getPayment-methods()` - List payment methods
|
|
336
|
+
- `getPayment-methodsById()` - Get payment methods
|
|
337
|
+
- `postPayment-methods()` - Create payment methods
|
|
338
|
+
- `postPayment-methodsTokenize()` - Create tokenize
|
|
339
|
+
- `patchPayment-methodsById()` - Update payment methods
|
|
340
|
+
- `patchPayment-methodsByIdDefault()` - Update default
|
|
341
|
+
- `deletePayment-methodsById()` - Delete payment methods
|
|
342
|
+
|
|
314
343
|
## Permission
|
|
315
344
|
|
|
316
345
|
- `getPermissions()` - List permissions
|
|
317
346
|
- `getPermissionsById()` - Get permissions
|
|
347
|
+
- `getPermissionsPresets()` - List presets
|
|
318
348
|
|
|
319
349
|
## Permission meta
|
|
320
350
|
|
|
@@ -322,7 +352,6 @@ client.setConfig({
|
|
|
322
352
|
|
|
323
353
|
## Permission preset
|
|
324
354
|
|
|
325
|
-
- `getPermissionsPresets()` - List presets
|
|
326
355
|
- `getPermissionsPresetsById()` - Get presets
|
|
327
356
|
|
|
328
357
|
## Presigned url
|
|
@@ -411,13 +440,19 @@ client.setConfig({
|
|
|
411
440
|
- `patchTenantsById()` - Update tenants
|
|
412
441
|
- `deleteTenantsById()` - Delete tenants
|
|
413
442
|
|
|
443
|
+
## Thread stats
|
|
444
|
+
|
|
445
|
+
- `getThreadsStats()` - List stats
|
|
446
|
+
|
|
447
|
+
## Thread workspace stats
|
|
448
|
+
|
|
449
|
+
- `getThreadsWorkspace-stats()` - List workspace stats
|
|
450
|
+
|
|
414
451
|
## Threads
|
|
415
452
|
|
|
416
453
|
- `getThreads()` - List threads
|
|
417
454
|
- `getThreadsById()` - Get threads
|
|
418
455
|
- `getThreadsSearch()` - List search
|
|
419
|
-
- `getThreadsStats()` - List stats
|
|
420
|
-
- `getThreadsWorkspace-stats()` - List workspace stats
|
|
421
456
|
- `postThreads()` - Create threads
|
|
422
457
|
- `postThreadsActive()` - Create active
|
|
423
458
|
- `postThreadsByIdExport()` - Create export
|
|
@@ -435,6 +470,7 @@ client.setConfig({
|
|
|
435
470
|
|
|
436
471
|
## Training analytics
|
|
437
472
|
|
|
473
|
+
- `getWorkspacesAnalytics-batch()` - List analytics batch
|
|
438
474
|
- `getWorkspacesByWorkspaceIdTrainingAnalytics()` - Get analytics
|
|
439
475
|
|
|
440
476
|
## Transaction
|
|
@@ -465,6 +501,9 @@ client.setConfig({
|
|
|
465
501
|
- `postUsersAuthResend-confirmation()` - Create resend confirmation
|
|
466
502
|
- `postUsersRegisterIsv()` - Create register isv
|
|
467
503
|
- `patchUserProfilesById()` - Update user profiles
|
|
504
|
+
- `patchUserProfilesByIdAccept-tos()` - Update accept tos
|
|
505
|
+
- `patchUserProfilesByIdDismiss-announcement()` - Update dismiss announcement
|
|
506
|
+
- `patchUserProfilesByIdDismiss-welcome()` - Update dismiss welcome
|
|
468
507
|
- `patchUsersAuthPasswordChange()` - Update change
|
|
469
508
|
- `patchUsersAuthReset-password()` - Update reset password
|
|
470
509
|
- `patchUsersById()` - Update admin
|
package/package.json
CHANGED