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