@gpt-core/client 0.9.11 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1000 -1788
- package/dist/index.d.ts +1000 -1788
- package/dist/index.js +81 -151
- package/dist/index.mjs +75 -139
- package/llms.txt +4 -28
- package/package.json +1 -1
- package/dist/index.cjs +0 -4043
package/dist/index.js
CHANGED
|
@@ -65,13 +65,11 @@ __export(index_exports, {
|
|
|
65
65
|
deleteBucketsById: () => deleteBucketsById,
|
|
66
66
|
deleteExtractionBatchesById: () => deleteExtractionBatchesById,
|
|
67
67
|
deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
|
|
68
|
-
deleteExtractionResultsById: () => deleteExtractionResultsById,
|
|
69
68
|
deleteFieldTemplatesById: () => deleteFieldTemplatesById,
|
|
70
69
|
deleteMessagesById: () => deleteMessagesById,
|
|
71
70
|
deleteNotificationMethodsById: () => deleteNotificationMethodsById,
|
|
72
71
|
deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
|
|
73
72
|
deleteObjectsById: () => deleteObjectsById,
|
|
74
|
-
deletePaymentMethodsById: () => deletePaymentMethodsById,
|
|
75
73
|
deleteSearchSavedById: () => deleteSearchSavedById,
|
|
76
74
|
deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
|
|
77
75
|
deleteTenantsById: () => deleteTenantsById,
|
|
@@ -83,6 +81,8 @@ __export(index_exports, {
|
|
|
83
81
|
deleteWebhookConfigsById: () => deleteWebhookConfigsById,
|
|
84
82
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
85
83
|
deleteWorkspacesById: () => deleteWorkspacesById,
|
|
84
|
+
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions: () => getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
85
|
+
getAgentVersionRevisionsById: () => getAgentVersionRevisionsById,
|
|
86
86
|
getAgentVersions: () => getAgentVersions,
|
|
87
87
|
getAgentVersionsById: () => getAgentVersionsById,
|
|
88
88
|
getAgentVersionsByIdMetrics: () => getAgentVersionsByIdMetrics,
|
|
@@ -136,7 +136,6 @@ __export(index_exports, {
|
|
|
136
136
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
137
137
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
138
138
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
139
|
-
getExtractionResults: () => getExtractionResults,
|
|
140
139
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
141
140
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
142
141
|
getExtractionResultsWorkspaceByWorkspaceId: () => getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -166,8 +165,6 @@ __export(index_exports, {
|
|
|
166
165
|
getNotificationPreferencesById: () => getNotificationPreferencesById,
|
|
167
166
|
getObjects: () => getObjects,
|
|
168
167
|
getObjectsById: () => getObjectsById,
|
|
169
|
-
getPaymentMethods: () => getPaymentMethods,
|
|
170
|
-
getPaymentMethodsById: () => getPaymentMethodsById,
|
|
171
168
|
getPermissions: () => getPermissions,
|
|
172
169
|
getPermissionsById: () => getPermissionsById,
|
|
173
170
|
getPermissionsMeta: () => getPermissionsMeta,
|
|
@@ -219,7 +216,6 @@ __export(index_exports, {
|
|
|
219
216
|
getUsersMeTenants: () => getUsersMeTenants,
|
|
220
217
|
getWallet: () => getWallet,
|
|
221
218
|
getWalletInvoices: () => getWalletInvoices,
|
|
222
|
-
getWalletPlanPreview: () => getWalletPlanPreview,
|
|
223
219
|
getWatcherClaims: () => getWatcherClaims,
|
|
224
220
|
getWatcherClaimsById: () => getWatcherClaimsById,
|
|
225
221
|
getWatcherClaimsStatus: () => getWatcherClaimsStatus,
|
|
@@ -273,9 +269,8 @@ __export(index_exports, {
|
|
|
273
269
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
274
270
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
275
271
|
patchExtractionDocumentsByIdVerification: () => patchExtractionDocumentsByIdVerification,
|
|
276
|
-
|
|
272
|
+
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
277
273
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
278
|
-
patchExtractionResultsByIdSaveCorrections: () => patchExtractionResultsByIdSaveCorrections,
|
|
279
274
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
280
275
|
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
281
276
|
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
@@ -287,8 +282,6 @@ __export(index_exports, {
|
|
|
287
282
|
patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
|
|
288
283
|
patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
|
|
289
284
|
patchNotificationPreferencesById: () => patchNotificationPreferencesById,
|
|
290
|
-
patchPaymentMethodsById: () => patchPaymentMethodsById,
|
|
291
|
-
patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
|
|
292
285
|
patchSearchSavedById: () => patchSearchSavedById,
|
|
293
286
|
patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
|
|
294
287
|
patchTenantsById: () => patchTenantsById,
|
|
@@ -319,6 +312,7 @@ __export(index_exports, {
|
|
|
319
312
|
patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
320
313
|
patchWorkspacesById: () => patchWorkspacesById,
|
|
321
314
|
patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
|
|
315
|
+
patchWorkspacesByIdPopulateHashes: () => patchWorkspacesByIdPopulateHashes,
|
|
322
316
|
patchWorkspacesByIdStorageSettings: () => patchWorkspacesByIdStorageSettings,
|
|
323
317
|
postAgentTestResults: () => postAgentTestResults,
|
|
324
318
|
postAgentVersionComparisons: () => postAgentVersionComparisons,
|
|
@@ -359,7 +353,9 @@ __export(index_exports, {
|
|
|
359
353
|
postExtractionBatches: () => postExtractionBatches,
|
|
360
354
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
361
355
|
postExtractionDocumentsBulkReprocess: () => postExtractionDocumentsBulkReprocess,
|
|
356
|
+
postExtractionDocumentsFindOrBeginUpload: () => postExtractionDocumentsFindOrBeginUpload,
|
|
362
357
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
358
|
+
postExtractionResults: () => postExtractionResults,
|
|
363
359
|
postExtractionSchemaDiscoveries: () => postExtractionSchemaDiscoveries,
|
|
364
360
|
postFieldTemplates: () => postFieldTemplates,
|
|
365
361
|
postInvitations: () => postInvitations,
|
|
@@ -372,8 +368,6 @@ __export(index_exports, {
|
|
|
372
368
|
postObjectsCopy: () => postObjectsCopy,
|
|
373
369
|
postObjectsMove: () => postObjectsMove,
|
|
374
370
|
postObjectsRegister: () => postObjectsRegister,
|
|
375
|
-
postPaymentMethods: () => postPaymentMethods,
|
|
376
|
-
postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
|
|
377
371
|
postPayments: () => postPayments,
|
|
378
372
|
postSearchBatch: () => postSearchBatch,
|
|
379
373
|
postSearchReindex: () => postSearchReindex,
|
|
@@ -446,13 +440,11 @@ __export(sdk_gen_exports, {
|
|
|
446
440
|
deleteBucketsById: () => deleteBucketsById,
|
|
447
441
|
deleteExtractionBatchesById: () => deleteExtractionBatchesById,
|
|
448
442
|
deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
|
|
449
|
-
deleteExtractionResultsById: () => deleteExtractionResultsById,
|
|
450
443
|
deleteFieldTemplatesById: () => deleteFieldTemplatesById,
|
|
451
444
|
deleteMessagesById: () => deleteMessagesById,
|
|
452
445
|
deleteNotificationMethodsById: () => deleteNotificationMethodsById,
|
|
453
446
|
deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
|
|
454
447
|
deleteObjectsById: () => deleteObjectsById,
|
|
455
|
-
deletePaymentMethodsById: () => deletePaymentMethodsById,
|
|
456
448
|
deleteSearchSavedById: () => deleteSearchSavedById,
|
|
457
449
|
deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
|
|
458
450
|
deleteTenantsById: () => deleteTenantsById,
|
|
@@ -464,6 +456,8 @@ __export(sdk_gen_exports, {
|
|
|
464
456
|
deleteWebhookConfigsById: () => deleteWebhookConfigsById,
|
|
465
457
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
466
458
|
deleteWorkspacesById: () => deleteWorkspacesById,
|
|
459
|
+
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions: () => getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
460
|
+
getAgentVersionRevisionsById: () => getAgentVersionRevisionsById,
|
|
467
461
|
getAgentVersions: () => getAgentVersions,
|
|
468
462
|
getAgentVersionsById: () => getAgentVersionsById,
|
|
469
463
|
getAgentVersionsByIdMetrics: () => getAgentVersionsByIdMetrics,
|
|
@@ -517,7 +511,6 @@ __export(sdk_gen_exports, {
|
|
|
517
511
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
518
512
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
519
513
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
520
|
-
getExtractionResults: () => getExtractionResults,
|
|
521
514
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
522
515
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
523
516
|
getExtractionResultsWorkspaceByWorkspaceId: () => getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -547,8 +540,6 @@ __export(sdk_gen_exports, {
|
|
|
547
540
|
getNotificationPreferencesById: () => getNotificationPreferencesById,
|
|
548
541
|
getObjects: () => getObjects,
|
|
549
542
|
getObjectsById: () => getObjectsById,
|
|
550
|
-
getPaymentMethods: () => getPaymentMethods,
|
|
551
|
-
getPaymentMethodsById: () => getPaymentMethodsById,
|
|
552
543
|
getPermissions: () => getPermissions,
|
|
553
544
|
getPermissionsById: () => getPermissionsById,
|
|
554
545
|
getPermissionsMeta: () => getPermissionsMeta,
|
|
@@ -600,7 +591,6 @@ __export(sdk_gen_exports, {
|
|
|
600
591
|
getUsersMeTenants: () => getUsersMeTenants,
|
|
601
592
|
getWallet: () => getWallet,
|
|
602
593
|
getWalletInvoices: () => getWalletInvoices,
|
|
603
|
-
getWalletPlanPreview: () => getWalletPlanPreview,
|
|
604
594
|
getWatcherClaims: () => getWatcherClaims,
|
|
605
595
|
getWatcherClaimsById: () => getWatcherClaimsById,
|
|
606
596
|
getWatcherClaimsStatus: () => getWatcherClaimsStatus,
|
|
@@ -650,9 +640,8 @@ __export(sdk_gen_exports, {
|
|
|
650
640
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
651
641
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
652
642
|
patchExtractionDocumentsByIdVerification: () => patchExtractionDocumentsByIdVerification,
|
|
653
|
-
|
|
643
|
+
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
654
644
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
655
|
-
patchExtractionResultsByIdSaveCorrections: () => patchExtractionResultsByIdSaveCorrections,
|
|
656
645
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
657
646
|
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
658
647
|
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
@@ -664,8 +653,6 @@ __export(sdk_gen_exports, {
|
|
|
664
653
|
patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
|
|
665
654
|
patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
|
|
666
655
|
patchNotificationPreferencesById: () => patchNotificationPreferencesById,
|
|
667
|
-
patchPaymentMethodsById: () => patchPaymentMethodsById,
|
|
668
|
-
patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
|
|
669
656
|
patchSearchSavedById: () => patchSearchSavedById,
|
|
670
657
|
patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
|
|
671
658
|
patchTenantsById: () => patchTenantsById,
|
|
@@ -696,6 +683,7 @@ __export(sdk_gen_exports, {
|
|
|
696
683
|
patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
697
684
|
patchWorkspacesById: () => patchWorkspacesById,
|
|
698
685
|
patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
|
|
686
|
+
patchWorkspacesByIdPopulateHashes: () => patchWorkspacesByIdPopulateHashes,
|
|
699
687
|
patchWorkspacesByIdStorageSettings: () => patchWorkspacesByIdStorageSettings,
|
|
700
688
|
postAgentTestResults: () => postAgentTestResults,
|
|
701
689
|
postAgentVersionComparisons: () => postAgentVersionComparisons,
|
|
@@ -736,7 +724,9 @@ __export(sdk_gen_exports, {
|
|
|
736
724
|
postExtractionBatches: () => postExtractionBatches,
|
|
737
725
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
738
726
|
postExtractionDocumentsBulkReprocess: () => postExtractionDocumentsBulkReprocess,
|
|
727
|
+
postExtractionDocumentsFindOrBeginUpload: () => postExtractionDocumentsFindOrBeginUpload,
|
|
739
728
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
729
|
+
postExtractionResults: () => postExtractionResults,
|
|
740
730
|
postExtractionSchemaDiscoveries: () => postExtractionSchemaDiscoveries,
|
|
741
731
|
postFieldTemplates: () => postFieldTemplates,
|
|
742
732
|
postInvitations: () => postInvitations,
|
|
@@ -749,8 +739,6 @@ __export(sdk_gen_exports, {
|
|
|
749
739
|
postObjectsCopy: () => postObjectsCopy,
|
|
750
740
|
postObjectsMove: () => postObjectsMove,
|
|
751
741
|
postObjectsRegister: () => postObjectsRegister,
|
|
752
|
-
postPaymentMethods: () => postPaymentMethods,
|
|
753
|
-
postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
|
|
754
742
|
postPayments: () => postPayments,
|
|
755
743
|
postSearchBatch: () => postSearchBatch,
|
|
756
744
|
postSearchReindex: () => postSearchReindex,
|
|
@@ -1746,28 +1734,6 @@ var postWorkspaces = (options) => (options.client ?? client).post({
|
|
|
1746
1734
|
...options.headers
|
|
1747
1735
|
}
|
|
1748
1736
|
});
|
|
1749
|
-
var getPaymentMethods = (options) => (options.client ?? client).get({
|
|
1750
|
-
querySerializer: {
|
|
1751
|
-
parameters: {
|
|
1752
|
-
filter: { object: { style: "form" } },
|
|
1753
|
-
page: { object: { style: "form" } },
|
|
1754
|
-
fields: { object: { style: "form" } }
|
|
1755
|
-
}
|
|
1756
|
-
},
|
|
1757
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1758
|
-
url: "/payment-methods",
|
|
1759
|
-
...options
|
|
1760
|
-
});
|
|
1761
|
-
var postPaymentMethods = (options) => (options.client ?? client).post({
|
|
1762
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1763
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1764
|
-
url: "/payment-methods",
|
|
1765
|
-
...options,
|
|
1766
|
-
headers: {
|
|
1767
|
-
"Content-Type": "application/vnd.api+json",
|
|
1768
|
-
...options.headers
|
|
1769
|
-
}
|
|
1770
|
-
});
|
|
1771
1737
|
var getAgentsByIdStats = (options) => (options.client ?? client).get({
|
|
1772
1738
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1773
1739
|
url: "/agents/{id}/stats",
|
|
@@ -2047,6 +2013,17 @@ var postConfigs = (options) => (options.client ?? client).post({
|
|
|
2047
2013
|
...options.headers
|
|
2048
2014
|
}
|
|
2049
2015
|
});
|
|
2016
|
+
var getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions = (options) => (options.client ?? client).get({
|
|
2017
|
+
querySerializer: {
|
|
2018
|
+
parameters: {
|
|
2019
|
+
filter: { object: { style: "form" } },
|
|
2020
|
+
fields: { object: { style: "form" } }
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2024
|
+
url: "/agent_version_revisions/agent_versions/{agent_version_id}/revisions",
|
|
2025
|
+
...options
|
|
2026
|
+
});
|
|
2050
2027
|
var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
|
|
2051
2028
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2052
2029
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2194,6 +2171,16 @@ var getAgentsUsage = (options) => (options.client ?? client).get({
|
|
|
2194
2171
|
url: "/agents/usage",
|
|
2195
2172
|
...options
|
|
2196
2173
|
});
|
|
2174
|
+
var patchWorkspacesByIdPopulateHashes = (options) => (options.client ?? client).patch({
|
|
2175
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2176
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2177
|
+
url: "/workspaces/{id}/populate-hashes",
|
|
2178
|
+
...options,
|
|
2179
|
+
headers: {
|
|
2180
|
+
"Content-Type": "application/vnd.api+json",
|
|
2181
|
+
...options.headers
|
|
2182
|
+
}
|
|
2183
|
+
});
|
|
2197
2184
|
var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
|
|
2198
2185
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2199
2186
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2498,28 +2485,12 @@ var getUsersById = (options) => (options.client ?? client).get({
|
|
|
2498
2485
|
url: "/users/{id}",
|
|
2499
2486
|
...options
|
|
2500
2487
|
});
|
|
2501
|
-
var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
|
|
2502
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2503
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2504
|
-
url: "/extraction/results/{id}",
|
|
2505
|
-
...options
|
|
2506
|
-
});
|
|
2507
2488
|
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
2508
2489
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2509
2490
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2510
2491
|
url: "/extraction/results/{id}",
|
|
2511
2492
|
...options
|
|
2512
2493
|
});
|
|
2513
|
-
var patchExtractionResultsById = (options) => (options.client ?? client).patch({
|
|
2514
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2515
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2516
|
-
url: "/extraction/results/{id}",
|
|
2517
|
-
...options,
|
|
2518
|
-
headers: {
|
|
2519
|
-
"Content-Type": "application/vnd.api+json",
|
|
2520
|
-
...options.headers
|
|
2521
|
-
}
|
|
2522
|
-
});
|
|
2523
2494
|
var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
|
|
2524
2495
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2525
2496
|
url: "/webhook_deliveries/stats",
|
|
@@ -3076,6 +3047,16 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
|
|
|
3076
3047
|
...options.headers
|
|
3077
3048
|
}
|
|
3078
3049
|
});
|
|
3050
|
+
var patchExtractionResultsByIdCorrections = (options) => (options.client ?? client).patch({
|
|
3051
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3052
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3053
|
+
url: "/extraction/results/{id}/corrections",
|
|
3054
|
+
...options,
|
|
3055
|
+
headers: {
|
|
3056
|
+
"Content-Type": "application/vnd.api+json",
|
|
3057
|
+
...options.headers
|
|
3058
|
+
}
|
|
3059
|
+
});
|
|
3079
3060
|
var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
|
|
3080
3061
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3081
3062
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3157,27 +3138,11 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
|
|
|
3157
3138
|
}
|
|
3158
3139
|
});
|
|
3159
3140
|
var getWalletInvoices = (options) => (options.client ?? client).get({
|
|
3160
|
-
querySerializer: {
|
|
3161
|
-
parameters: {
|
|
3162
|
-
filter: { object: { style: "form" } },
|
|
3163
|
-
page: { object: { style: "form" } },
|
|
3164
|
-
fields: { object: { style: "form" } }
|
|
3165
|
-
}
|
|
3166
|
-
},
|
|
3141
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3167
3142
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3168
3143
|
url: "/wallet/invoices",
|
|
3169
3144
|
...options
|
|
3170
3145
|
});
|
|
3171
|
-
var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
|
|
3172
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3173
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
3174
|
-
url: "/extraction/results/{id}/save_corrections",
|
|
3175
|
-
...options,
|
|
3176
|
-
headers: {
|
|
3177
|
-
"Content-Type": "application/vnd.api+json",
|
|
3178
|
-
...options.headers
|
|
3179
|
-
}
|
|
3180
|
-
});
|
|
3181
3146
|
var patchWorkspacesByIdStorageSettings = (options) => (options.client ?? client).patch({
|
|
3182
3147
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3183
3148
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3240,6 +3205,12 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
|
|
|
3240
3205
|
...options.headers
|
|
3241
3206
|
}
|
|
3242
3207
|
});
|
|
3208
|
+
var getAgentVersionRevisionsById = (options) => (options.client ?? client).get({
|
|
3209
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3210
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3211
|
+
url: "/agent_version_revisions/{id}",
|
|
3212
|
+
...options
|
|
3213
|
+
});
|
|
3243
3214
|
var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
3244
3215
|
querySerializer: {
|
|
3245
3216
|
parameters: {
|
|
@@ -3304,16 +3275,6 @@ var postBuckets = (options) => (options.client ?? client).post({
|
|
|
3304
3275
|
...options.headers
|
|
3305
3276
|
}
|
|
3306
3277
|
});
|
|
3307
|
-
var postPaymentMethodsTokenize = (options) => (options.client ?? client).post({
|
|
3308
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3309
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
3310
|
-
url: "/payment-methods/tokenize",
|
|
3311
|
-
...options,
|
|
3312
|
-
headers: {
|
|
3313
|
-
"Content-Type": "application/vnd.api+json",
|
|
3314
|
-
...options.headers
|
|
3315
|
-
}
|
|
3316
|
-
});
|
|
3317
3278
|
var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
|
|
3318
3279
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3319
3280
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3619,6 +3580,16 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
|
|
|
3619
3580
|
...options.headers
|
|
3620
3581
|
}
|
|
3621
3582
|
});
|
|
3583
|
+
var postExtractionDocumentsFindOrBeginUpload = (options) => (options.client ?? client).post({
|
|
3584
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3585
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3586
|
+
url: "/extraction/documents/find_or_begin_upload",
|
|
3587
|
+
...options,
|
|
3588
|
+
headers: {
|
|
3589
|
+
"Content-Type": "application/vnd.api+json",
|
|
3590
|
+
...options.headers
|
|
3591
|
+
}
|
|
3592
|
+
});
|
|
3622
3593
|
var getTransactions = (options) => (options.client ?? client).get({
|
|
3623
3594
|
querySerializer: {
|
|
3624
3595
|
parameters: {
|
|
@@ -4022,28 +3993,6 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
|
|
|
4022
3993
|
url: "/agents/{id}/schema_versions/{version_id}/activate",
|
|
4023
3994
|
...options
|
|
4024
3995
|
});
|
|
4025
|
-
var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
|
|
4026
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4027
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
4028
|
-
url: "/payment-methods/{id}",
|
|
4029
|
-
...options
|
|
4030
|
-
});
|
|
4031
|
-
var getPaymentMethodsById = (options) => (options.client ?? client).get({
|
|
4032
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4033
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
4034
|
-
url: "/payment-methods/{id}",
|
|
4035
|
-
...options
|
|
4036
|
-
});
|
|
4037
|
-
var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
|
|
4038
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4039
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
4040
|
-
url: "/payment-methods/{id}",
|
|
4041
|
-
...options,
|
|
4042
|
-
headers: {
|
|
4043
|
-
"Content-Type": "application/vnd.api+json",
|
|
4044
|
-
...options.headers
|
|
4045
|
-
}
|
|
4046
|
-
});
|
|
4047
3996
|
var deleteBucketsById = (options) => (options.client ?? client).delete({
|
|
4048
3997
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4049
3998
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4371,12 +4320,6 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
|
|
|
4371
4320
|
...options.headers
|
|
4372
4321
|
}
|
|
4373
4322
|
});
|
|
4374
|
-
var getWalletPlanPreview = (options) => (options.client ?? client).get({
|
|
4375
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4376
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
4377
|
-
url: "/wallet/plan/preview",
|
|
4378
|
-
...options
|
|
4379
|
-
});
|
|
4380
4323
|
var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
|
|
4381
4324
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4382
4325
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4407,16 +4350,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
4407
4350
|
...options.headers
|
|
4408
4351
|
}
|
|
4409
4352
|
});
|
|
4410
|
-
var
|
|
4411
|
-
querySerializer: {
|
|
4412
|
-
parameters: {
|
|
4413
|
-
filter: { object: { style: "form" } },
|
|
4414
|
-
fields: { object: { style: "form" } }
|
|
4415
|
-
}
|
|
4416
|
-
},
|
|
4353
|
+
var postExtractionResults = (options) => (options.client ?? client).post({
|
|
4354
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4417
4355
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4418
4356
|
url: "/extraction/results",
|
|
4419
|
-
...options
|
|
4357
|
+
...options,
|
|
4358
|
+
headers: {
|
|
4359
|
+
"Content-Type": "application/vnd.api+json",
|
|
4360
|
+
...options.headers
|
|
4361
|
+
}
|
|
4420
4362
|
});
|
|
4421
4363
|
var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
4422
4364
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
@@ -4742,16 +4684,6 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
|
|
|
4742
4684
|
...options.headers
|
|
4743
4685
|
}
|
|
4744
4686
|
});
|
|
4745
|
-
var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
|
|
4746
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4747
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
4748
|
-
url: "/payment-methods/{id}/default",
|
|
4749
|
-
...options,
|
|
4750
|
-
headers: {
|
|
4751
|
-
"Content-Type": "application/vnd.api+json",
|
|
4752
|
-
...options.headers
|
|
4753
|
-
}
|
|
4754
|
-
});
|
|
4755
4687
|
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
4756
4688
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4757
4689
|
url: "/agents/{id}/export",
|
|
@@ -4898,9 +4830,10 @@ var NotFoundError = class extends GptCoreError {
|
|
|
4898
4830
|
}
|
|
4899
4831
|
};
|
|
4900
4832
|
var ValidationError = class extends GptCoreError {
|
|
4901
|
-
constructor(message = "Validation failed", errors, options) {
|
|
4902
|
-
super(message, { statusCode:
|
|
4833
|
+
constructor(message = "Validation failed", errors, meta, options) {
|
|
4834
|
+
super(message, { statusCode: 400, ...options });
|
|
4903
4835
|
this.errors = errors;
|
|
4836
|
+
this.meta = meta;
|
|
4904
4837
|
}
|
|
4905
4838
|
};
|
|
4906
4839
|
var RateLimitError = class extends GptCoreError {
|
|
@@ -4932,12 +4865,15 @@ function handleApiError(error) {
|
|
|
4932
4865
|
const body = response?.body || response?.data || error?.body || error?.data || error;
|
|
4933
4866
|
let message = "An error occurred";
|
|
4934
4867
|
let errors;
|
|
4868
|
+
let meta;
|
|
4935
4869
|
if (body?.errors && Array.isArray(body.errors)) {
|
|
4936
4870
|
const firstError = body.errors[0];
|
|
4937
4871
|
message = firstError?.title || firstError?.detail || message;
|
|
4872
|
+
meta = firstError?.meta;
|
|
4938
4873
|
errors = body.errors.map((err) => ({
|
|
4939
4874
|
field: err.source?.pointer?.split("/").pop(),
|
|
4940
|
-
message: err.detail || err.title || "Unknown error"
|
|
4875
|
+
message: err.detail || err.title || "Unknown error",
|
|
4876
|
+
meta: err.meta
|
|
4941
4877
|
}));
|
|
4942
4878
|
} else if (body?.message) {
|
|
4943
4879
|
message = body.message;
|
|
@@ -4962,7 +4898,7 @@ function handleApiError(error) {
|
|
|
4962
4898
|
throw new NotFoundError(message, errorOptions);
|
|
4963
4899
|
case 400:
|
|
4964
4900
|
case 422:
|
|
4965
|
-
throw new ValidationError(message, errors, errorOptions);
|
|
4901
|
+
throw new ValidationError(message, errors, meta, errorOptions);
|
|
4966
4902
|
case 429: {
|
|
4967
4903
|
const retryAfter = headers?.get?.("retry-after") || headers?.["retry-after"];
|
|
4968
4904
|
throw new RateLimitError(message, retryAfter ? parseInt(retryAfter, 10) : void 0, errorOptions);
|
|
@@ -5472,13 +5408,11 @@ var index_default = gptCore;
|
|
|
5472
5408
|
deleteBucketsById,
|
|
5473
5409
|
deleteExtractionBatchesById,
|
|
5474
5410
|
deleteExtractionDocumentsById,
|
|
5475
|
-
deleteExtractionResultsById,
|
|
5476
5411
|
deleteFieldTemplatesById,
|
|
5477
5412
|
deleteMessagesById,
|
|
5478
5413
|
deleteNotificationMethodsById,
|
|
5479
5414
|
deleteNotificationPreferencesById,
|
|
5480
5415
|
deleteObjectsById,
|
|
5481
|
-
deletePaymentMethodsById,
|
|
5482
5416
|
deleteSearchSavedById,
|
|
5483
5417
|
deleteTenantMembershipsByTenantIdByUserId,
|
|
5484
5418
|
deleteTenantsById,
|
|
@@ -5490,6 +5424,8 @@ var index_default = gptCore;
|
|
|
5490
5424
|
deleteWebhookConfigsById,
|
|
5491
5425
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5492
5426
|
deleteWorkspacesById,
|
|
5427
|
+
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
5428
|
+
getAgentVersionRevisionsById,
|
|
5493
5429
|
getAgentVersions,
|
|
5494
5430
|
getAgentVersionsById,
|
|
5495
5431
|
getAgentVersionsByIdMetrics,
|
|
@@ -5543,7 +5479,6 @@ var index_default = gptCore;
|
|
|
5543
5479
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
5544
5480
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
5545
5481
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
5546
|
-
getExtractionResults,
|
|
5547
5482
|
getExtractionResultsById,
|
|
5548
5483
|
getExtractionResultsDocumentByDocumentId,
|
|
5549
5484
|
getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -5573,8 +5508,6 @@ var index_default = gptCore;
|
|
|
5573
5508
|
getNotificationPreferencesById,
|
|
5574
5509
|
getObjects,
|
|
5575
5510
|
getObjectsById,
|
|
5576
|
-
getPaymentMethods,
|
|
5577
|
-
getPaymentMethodsById,
|
|
5578
5511
|
getPermissions,
|
|
5579
5512
|
getPermissionsById,
|
|
5580
5513
|
getPermissionsMeta,
|
|
@@ -5626,7 +5559,6 @@ var index_default = gptCore;
|
|
|
5626
5559
|
getUsersMeTenants,
|
|
5627
5560
|
getWallet,
|
|
5628
5561
|
getWalletInvoices,
|
|
5629
|
-
getWalletPlanPreview,
|
|
5630
5562
|
getWatcherClaims,
|
|
5631
5563
|
getWatcherClaimsById,
|
|
5632
5564
|
getWatcherClaimsStatus,
|
|
@@ -5680,9 +5612,8 @@ var index_default = gptCore;
|
|
|
5680
5612
|
patchExtractionDocumentsByIdRestore,
|
|
5681
5613
|
patchExtractionDocumentsByIdStatus,
|
|
5682
5614
|
patchExtractionDocumentsByIdVerification,
|
|
5683
|
-
|
|
5615
|
+
patchExtractionResultsByIdCorrections,
|
|
5684
5616
|
patchExtractionResultsByIdRegenerate,
|
|
5685
|
-
patchExtractionResultsByIdSaveCorrections,
|
|
5686
5617
|
patchInvitationsByIdAccept,
|
|
5687
5618
|
patchInvitationsByIdAcceptByUser,
|
|
5688
5619
|
patchInvitationsByIdDecline,
|
|
@@ -5694,8 +5625,6 @@ var index_default = gptCore;
|
|
|
5694
5625
|
patchNotificationMethodsByIdSetPrimary,
|
|
5695
5626
|
patchNotificationMethodsByIdVerify,
|
|
5696
5627
|
patchNotificationPreferencesById,
|
|
5697
|
-
patchPaymentMethodsById,
|
|
5698
|
-
patchPaymentMethodsByIdDefault,
|
|
5699
5628
|
patchSearchSavedById,
|
|
5700
5629
|
patchTenantMembershipsByTenantIdByUserId,
|
|
5701
5630
|
patchTenantsById,
|
|
@@ -5726,6 +5655,7 @@ var index_default = gptCore;
|
|
|
5726
5655
|
patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5727
5656
|
patchWorkspacesById,
|
|
5728
5657
|
patchWorkspacesByIdAllocate,
|
|
5658
|
+
patchWorkspacesByIdPopulateHashes,
|
|
5729
5659
|
patchWorkspacesByIdStorageSettings,
|
|
5730
5660
|
postAgentTestResults,
|
|
5731
5661
|
postAgentVersionComparisons,
|
|
@@ -5766,7 +5696,9 @@ var index_default = gptCore;
|
|
|
5766
5696
|
postExtractionBatches,
|
|
5767
5697
|
postExtractionDocumentsBeginUpload,
|
|
5768
5698
|
postExtractionDocumentsBulkReprocess,
|
|
5699
|
+
postExtractionDocumentsFindOrBeginUpload,
|
|
5769
5700
|
postExtractionDocumentsUpload,
|
|
5701
|
+
postExtractionResults,
|
|
5770
5702
|
postExtractionSchemaDiscoveries,
|
|
5771
5703
|
postFieldTemplates,
|
|
5772
5704
|
postInvitations,
|
|
@@ -5779,8 +5711,6 @@ var index_default = gptCore;
|
|
|
5779
5711
|
postObjectsCopy,
|
|
5780
5712
|
postObjectsMove,
|
|
5781
5713
|
postObjectsRegister,
|
|
5782
|
-
postPaymentMethods,
|
|
5783
|
-
postPaymentMethodsTokenize,
|
|
5784
5714
|
postPayments,
|
|
5785
5715
|
postSearchBatch,
|
|
5786
5716
|
postSearchReindex,
|