@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.js
CHANGED
|
@@ -65,11 +65,13 @@ __export(index_exports, {
|
|
|
65
65
|
deleteBucketsById: () => deleteBucketsById,
|
|
66
66
|
deleteExtractionBatchesById: () => deleteExtractionBatchesById,
|
|
67
67
|
deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
|
|
68
|
+
deleteExtractionResultsById: () => deleteExtractionResultsById,
|
|
68
69
|
deleteFieldTemplatesById: () => deleteFieldTemplatesById,
|
|
69
70
|
deleteMessagesById: () => deleteMessagesById,
|
|
70
71
|
deleteNotificationMethodsById: () => deleteNotificationMethodsById,
|
|
71
72
|
deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
|
|
72
73
|
deleteObjectsById: () => deleteObjectsById,
|
|
74
|
+
deletePaymentMethodsById: () => deletePaymentMethodsById,
|
|
73
75
|
deleteSearchSavedById: () => deleteSearchSavedById,
|
|
74
76
|
deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
|
|
75
77
|
deleteTenantsById: () => deleteTenantsById,
|
|
@@ -81,8 +83,6 @@ __export(index_exports, {
|
|
|
81
83
|
deleteWebhookConfigsById: () => deleteWebhookConfigsById,
|
|
82
84
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
83
85
|
deleteWorkspacesById: () => deleteWorkspacesById,
|
|
84
|
-
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions: () => getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
85
|
-
getAgentVersionRevisionsById: () => getAgentVersionRevisionsById,
|
|
86
86
|
getAgentVersions: () => getAgentVersions,
|
|
87
87
|
getAgentVersionsById: () => getAgentVersionsById,
|
|
88
88
|
getAgentVersionsByIdMetrics: () => getAgentVersionsByIdMetrics,
|
|
@@ -136,6 +136,7 @@ __export(index_exports, {
|
|
|
136
136
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
137
137
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
138
138
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
139
|
+
getExtractionResults: () => getExtractionResults,
|
|
139
140
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
140
141
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
141
142
|
getExtractionResultsWorkspaceByWorkspaceId: () => getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -165,6 +166,8 @@ __export(index_exports, {
|
|
|
165
166
|
getNotificationPreferencesById: () => getNotificationPreferencesById,
|
|
166
167
|
getObjects: () => getObjects,
|
|
167
168
|
getObjectsById: () => getObjectsById,
|
|
169
|
+
getPaymentMethods: () => getPaymentMethods,
|
|
170
|
+
getPaymentMethodsById: () => getPaymentMethodsById,
|
|
168
171
|
getPermissions: () => getPermissions,
|
|
169
172
|
getPermissionsById: () => getPermissionsById,
|
|
170
173
|
getPermissionsMeta: () => getPermissionsMeta,
|
|
@@ -216,6 +219,7 @@ __export(index_exports, {
|
|
|
216
219
|
getUsersMeTenants: () => getUsersMeTenants,
|
|
217
220
|
getWallet: () => getWallet,
|
|
218
221
|
getWalletInvoices: () => getWalletInvoices,
|
|
222
|
+
getWalletPlanPreview: () => getWalletPlanPreview,
|
|
219
223
|
getWatcherClaims: () => getWatcherClaims,
|
|
220
224
|
getWatcherClaimsById: () => getWatcherClaimsById,
|
|
221
225
|
getWatcherClaimsStatus: () => getWatcherClaimsStatus,
|
|
@@ -269,8 +273,9 @@ __export(index_exports, {
|
|
|
269
273
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
270
274
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
271
275
|
patchExtractionDocumentsByIdVerification: () => patchExtractionDocumentsByIdVerification,
|
|
272
|
-
|
|
276
|
+
patchExtractionResultsById: () => patchExtractionResultsById,
|
|
273
277
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
278
|
+
patchExtractionResultsByIdSaveCorrections: () => patchExtractionResultsByIdSaveCorrections,
|
|
274
279
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
275
280
|
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
276
281
|
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
@@ -282,6 +287,8 @@ __export(index_exports, {
|
|
|
282
287
|
patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
|
|
283
288
|
patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
|
|
284
289
|
patchNotificationPreferencesById: () => patchNotificationPreferencesById,
|
|
290
|
+
patchPaymentMethodsById: () => patchPaymentMethodsById,
|
|
291
|
+
patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
|
|
285
292
|
patchSearchSavedById: () => patchSearchSavedById,
|
|
286
293
|
patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
|
|
287
294
|
patchTenantsById: () => patchTenantsById,
|
|
@@ -312,7 +319,6 @@ __export(index_exports, {
|
|
|
312
319
|
patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
313
320
|
patchWorkspacesById: () => patchWorkspacesById,
|
|
314
321
|
patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
|
|
315
|
-
patchWorkspacesByIdPopulateHashes: () => patchWorkspacesByIdPopulateHashes,
|
|
316
322
|
patchWorkspacesByIdStorageSettings: () => patchWorkspacesByIdStorageSettings,
|
|
317
323
|
postAgentTestResults: () => postAgentTestResults,
|
|
318
324
|
postAgentVersionComparisons: () => postAgentVersionComparisons,
|
|
@@ -353,9 +359,7 @@ __export(index_exports, {
|
|
|
353
359
|
postExtractionBatches: () => postExtractionBatches,
|
|
354
360
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
355
361
|
postExtractionDocumentsBulkReprocess: () => postExtractionDocumentsBulkReprocess,
|
|
356
|
-
postExtractionDocumentsFindOrBeginUpload: () => postExtractionDocumentsFindOrBeginUpload,
|
|
357
362
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
358
|
-
postExtractionResults: () => postExtractionResults,
|
|
359
363
|
postExtractionSchemaDiscoveries: () => postExtractionSchemaDiscoveries,
|
|
360
364
|
postFieldTemplates: () => postFieldTemplates,
|
|
361
365
|
postInvitations: () => postInvitations,
|
|
@@ -368,6 +372,8 @@ __export(index_exports, {
|
|
|
368
372
|
postObjectsCopy: () => postObjectsCopy,
|
|
369
373
|
postObjectsMove: () => postObjectsMove,
|
|
370
374
|
postObjectsRegister: () => postObjectsRegister,
|
|
375
|
+
postPaymentMethods: () => postPaymentMethods,
|
|
376
|
+
postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
|
|
371
377
|
postPayments: () => postPayments,
|
|
372
378
|
postSearchBatch: () => postSearchBatch,
|
|
373
379
|
postSearchReindex: () => postSearchReindex,
|
|
@@ -440,11 +446,13 @@ __export(sdk_gen_exports, {
|
|
|
440
446
|
deleteBucketsById: () => deleteBucketsById,
|
|
441
447
|
deleteExtractionBatchesById: () => deleteExtractionBatchesById,
|
|
442
448
|
deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
|
|
449
|
+
deleteExtractionResultsById: () => deleteExtractionResultsById,
|
|
443
450
|
deleteFieldTemplatesById: () => deleteFieldTemplatesById,
|
|
444
451
|
deleteMessagesById: () => deleteMessagesById,
|
|
445
452
|
deleteNotificationMethodsById: () => deleteNotificationMethodsById,
|
|
446
453
|
deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
|
|
447
454
|
deleteObjectsById: () => deleteObjectsById,
|
|
455
|
+
deletePaymentMethodsById: () => deletePaymentMethodsById,
|
|
448
456
|
deleteSearchSavedById: () => deleteSearchSavedById,
|
|
449
457
|
deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
|
|
450
458
|
deleteTenantsById: () => deleteTenantsById,
|
|
@@ -456,8 +464,6 @@ __export(sdk_gen_exports, {
|
|
|
456
464
|
deleteWebhookConfigsById: () => deleteWebhookConfigsById,
|
|
457
465
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
458
466
|
deleteWorkspacesById: () => deleteWorkspacesById,
|
|
459
|
-
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions: () => getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
460
|
-
getAgentVersionRevisionsById: () => getAgentVersionRevisionsById,
|
|
461
467
|
getAgentVersions: () => getAgentVersions,
|
|
462
468
|
getAgentVersionsById: () => getAgentVersionsById,
|
|
463
469
|
getAgentVersionsByIdMetrics: () => getAgentVersionsByIdMetrics,
|
|
@@ -511,6 +517,7 @@ __export(sdk_gen_exports, {
|
|
|
511
517
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
512
518
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
513
519
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
520
|
+
getExtractionResults: () => getExtractionResults,
|
|
514
521
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
515
522
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
516
523
|
getExtractionResultsWorkspaceByWorkspaceId: () => getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -540,6 +547,8 @@ __export(sdk_gen_exports, {
|
|
|
540
547
|
getNotificationPreferencesById: () => getNotificationPreferencesById,
|
|
541
548
|
getObjects: () => getObjects,
|
|
542
549
|
getObjectsById: () => getObjectsById,
|
|
550
|
+
getPaymentMethods: () => getPaymentMethods,
|
|
551
|
+
getPaymentMethodsById: () => getPaymentMethodsById,
|
|
543
552
|
getPermissions: () => getPermissions,
|
|
544
553
|
getPermissionsById: () => getPermissionsById,
|
|
545
554
|
getPermissionsMeta: () => getPermissionsMeta,
|
|
@@ -591,6 +600,7 @@ __export(sdk_gen_exports, {
|
|
|
591
600
|
getUsersMeTenants: () => getUsersMeTenants,
|
|
592
601
|
getWallet: () => getWallet,
|
|
593
602
|
getWalletInvoices: () => getWalletInvoices,
|
|
603
|
+
getWalletPlanPreview: () => getWalletPlanPreview,
|
|
594
604
|
getWatcherClaims: () => getWatcherClaims,
|
|
595
605
|
getWatcherClaimsById: () => getWatcherClaimsById,
|
|
596
606
|
getWatcherClaimsStatus: () => getWatcherClaimsStatus,
|
|
@@ -640,8 +650,9 @@ __export(sdk_gen_exports, {
|
|
|
640
650
|
patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
|
|
641
651
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
642
652
|
patchExtractionDocumentsByIdVerification: () => patchExtractionDocumentsByIdVerification,
|
|
643
|
-
|
|
653
|
+
patchExtractionResultsById: () => patchExtractionResultsById,
|
|
644
654
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
655
|
+
patchExtractionResultsByIdSaveCorrections: () => patchExtractionResultsByIdSaveCorrections,
|
|
645
656
|
patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
|
|
646
657
|
patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
|
|
647
658
|
patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
|
|
@@ -653,6 +664,8 @@ __export(sdk_gen_exports, {
|
|
|
653
664
|
patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
|
|
654
665
|
patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
|
|
655
666
|
patchNotificationPreferencesById: () => patchNotificationPreferencesById,
|
|
667
|
+
patchPaymentMethodsById: () => patchPaymentMethodsById,
|
|
668
|
+
patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
|
|
656
669
|
patchSearchSavedById: () => patchSearchSavedById,
|
|
657
670
|
patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
|
|
658
671
|
patchTenantsById: () => patchTenantsById,
|
|
@@ -683,7 +696,6 @@ __export(sdk_gen_exports, {
|
|
|
683
696
|
patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
684
697
|
patchWorkspacesById: () => patchWorkspacesById,
|
|
685
698
|
patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
|
|
686
|
-
patchWorkspacesByIdPopulateHashes: () => patchWorkspacesByIdPopulateHashes,
|
|
687
699
|
patchWorkspacesByIdStorageSettings: () => patchWorkspacesByIdStorageSettings,
|
|
688
700
|
postAgentTestResults: () => postAgentTestResults,
|
|
689
701
|
postAgentVersionComparisons: () => postAgentVersionComparisons,
|
|
@@ -724,9 +736,7 @@ __export(sdk_gen_exports, {
|
|
|
724
736
|
postExtractionBatches: () => postExtractionBatches,
|
|
725
737
|
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
726
738
|
postExtractionDocumentsBulkReprocess: () => postExtractionDocumentsBulkReprocess,
|
|
727
|
-
postExtractionDocumentsFindOrBeginUpload: () => postExtractionDocumentsFindOrBeginUpload,
|
|
728
739
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
729
|
-
postExtractionResults: () => postExtractionResults,
|
|
730
740
|
postExtractionSchemaDiscoveries: () => postExtractionSchemaDiscoveries,
|
|
731
741
|
postFieldTemplates: () => postFieldTemplates,
|
|
732
742
|
postInvitations: () => postInvitations,
|
|
@@ -739,6 +749,8 @@ __export(sdk_gen_exports, {
|
|
|
739
749
|
postObjectsCopy: () => postObjectsCopy,
|
|
740
750
|
postObjectsMove: () => postObjectsMove,
|
|
741
751
|
postObjectsRegister: () => postObjectsRegister,
|
|
752
|
+
postPaymentMethods: () => postPaymentMethods,
|
|
753
|
+
postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
|
|
742
754
|
postPayments: () => postPayments,
|
|
743
755
|
postSearchBatch: () => postSearchBatch,
|
|
744
756
|
postSearchReindex: () => postSearchReindex,
|
|
@@ -1734,7 +1746,30 @@ var postWorkspaces = (options) => (options.client ?? client).post({
|
|
|
1734
1746
|
...options.headers
|
|
1735
1747
|
}
|
|
1736
1748
|
});
|
|
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
|
+
});
|
|
1737
1771
|
var getAgentsByIdStats = (options) => (options.client ?? client).get({
|
|
1772
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1738
1773
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1739
1774
|
url: "/agents/{id}/stats",
|
|
1740
1775
|
...options
|
|
@@ -2013,17 +2048,6 @@ var postConfigs = (options) => (options.client ?? client).post({
|
|
|
2013
2048
|
...options.headers
|
|
2014
2049
|
}
|
|
2015
2050
|
});
|
|
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
|
-
});
|
|
2027
2051
|
var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
|
|
2028
2052
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2029
2053
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2167,20 +2191,16 @@ var postApplicationsByApplicationIdEmailTemplates = (options) => (options.client
|
|
|
2167
2191
|
}
|
|
2168
2192
|
});
|
|
2169
2193
|
var getAgentsUsage = (options) => (options.client ?? client).get({
|
|
2194
|
+
querySerializer: {
|
|
2195
|
+
parameters: {
|
|
2196
|
+
filter: { object: { style: "form" } },
|
|
2197
|
+
fields: { object: { style: "form" } }
|
|
2198
|
+
}
|
|
2199
|
+
},
|
|
2170
2200
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2171
2201
|
url: "/agents/usage",
|
|
2172
2202
|
...options
|
|
2173
2203
|
});
|
|
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
|
-
});
|
|
2184
2204
|
var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
|
|
2185
2205
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2186
2206
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2485,12 +2505,28 @@ var getUsersById = (options) => (options.client ?? client).get({
|
|
|
2485
2505
|
url: "/users/{id}",
|
|
2486
2506
|
...options
|
|
2487
2507
|
});
|
|
2508
|
+
var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
|
|
2509
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2510
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2511
|
+
url: "/extraction/results/{id}",
|
|
2512
|
+
...options
|
|
2513
|
+
});
|
|
2488
2514
|
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
2489
2515
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2490
2516
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2491
2517
|
url: "/extraction/results/{id}",
|
|
2492
2518
|
...options
|
|
2493
2519
|
});
|
|
2520
|
+
var patchExtractionResultsById = (options) => (options.client ?? client).patch({
|
|
2521
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2522
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2523
|
+
url: "/extraction/results/{id}",
|
|
2524
|
+
...options,
|
|
2525
|
+
headers: {
|
|
2526
|
+
"Content-Type": "application/vnd.api+json",
|
|
2527
|
+
...options.headers
|
|
2528
|
+
}
|
|
2529
|
+
});
|
|
2494
2530
|
var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
|
|
2495
2531
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2496
2532
|
url: "/webhook_deliveries/stats",
|
|
@@ -2760,6 +2796,7 @@ var getSearchSemantic = (options) => (options.client ?? client).get({
|
|
|
2760
2796
|
...options
|
|
2761
2797
|
});
|
|
2762
2798
|
var getThreadsStats = (options) => (options.client ?? client).get({
|
|
2799
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2763
2800
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2764
2801
|
url: "/threads/stats",
|
|
2765
2802
|
...options
|
|
@@ -3047,16 +3084,6 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
|
|
|
3047
3084
|
...options.headers
|
|
3048
3085
|
}
|
|
3049
3086
|
});
|
|
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
|
-
});
|
|
3060
3087
|
var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
|
|
3061
3088
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3062
3089
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3138,11 +3165,27 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
|
|
|
3138
3165
|
}
|
|
3139
3166
|
});
|
|
3140
3167
|
var getWalletInvoices = (options) => (options.client ?? client).get({
|
|
3141
|
-
querySerializer: {
|
|
3168
|
+
querySerializer: {
|
|
3169
|
+
parameters: {
|
|
3170
|
+
filter: { object: { style: "form" } },
|
|
3171
|
+
page: { object: { style: "form" } },
|
|
3172
|
+
fields: { object: { style: "form" } }
|
|
3173
|
+
}
|
|
3174
|
+
},
|
|
3142
3175
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3143
3176
|
url: "/wallet/invoices",
|
|
3144
3177
|
...options
|
|
3145
3178
|
});
|
|
3179
|
+
var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
|
|
3180
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3181
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3182
|
+
url: "/extraction/results/{id}/save_corrections",
|
|
3183
|
+
...options,
|
|
3184
|
+
headers: {
|
|
3185
|
+
"Content-Type": "application/vnd.api+json",
|
|
3186
|
+
...options.headers
|
|
3187
|
+
}
|
|
3188
|
+
});
|
|
3146
3189
|
var patchWorkspacesByIdStorageSettings = (options) => (options.client ?? client).patch({
|
|
3147
3190
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3148
3191
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3205,12 +3248,6 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
|
|
|
3205
3248
|
...options.headers
|
|
3206
3249
|
}
|
|
3207
3250
|
});
|
|
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
|
-
});
|
|
3214
3251
|
var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
3215
3252
|
querySerializer: {
|
|
3216
3253
|
parameters: {
|
|
@@ -3240,6 +3277,7 @@ var getWorkspacesByWorkspaceIdExtractionExportsById = (options) => (options.clie
|
|
|
3240
3277
|
...options
|
|
3241
3278
|
});
|
|
3242
3279
|
var getAgentsByIdTrainingStats = (options) => (options.client ?? client).get({
|
|
3280
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3243
3281
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3244
3282
|
url: "/agents/{id}/training_stats",
|
|
3245
3283
|
...options
|
|
@@ -3275,6 +3313,16 @@ var postBuckets = (options) => (options.client ?? client).post({
|
|
|
3275
3313
|
...options.headers
|
|
3276
3314
|
}
|
|
3277
3315
|
});
|
|
3316
|
+
var postPaymentMethodsTokenize = (options) => (options.client ?? client).post({
|
|
3317
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3318
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3319
|
+
url: "/payment-methods/tokenize",
|
|
3320
|
+
...options,
|
|
3321
|
+
headers: {
|
|
3322
|
+
"Content-Type": "application/vnd.api+json",
|
|
3323
|
+
...options.headers
|
|
3324
|
+
}
|
|
3325
|
+
});
|
|
3278
3326
|
var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
|
|
3279
3327
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3280
3328
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3423,6 +3471,7 @@ var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
|
|
|
3423
3471
|
}
|
|
3424
3472
|
});
|
|
3425
3473
|
var getAgentsByIdUsage = (options) => (options.client ?? client).get({
|
|
3474
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3426
3475
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3427
3476
|
url: "/agents/{id}/usage",
|
|
3428
3477
|
...options
|
|
@@ -3580,16 +3629,6 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
|
|
|
3580
3629
|
...options.headers
|
|
3581
3630
|
}
|
|
3582
3631
|
});
|
|
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
|
-
});
|
|
3593
3632
|
var getTransactions = (options) => (options.client ?? client).get({
|
|
3594
3633
|
querySerializer: {
|
|
3595
3634
|
parameters: {
|
|
@@ -3993,6 +4032,28 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
|
|
|
3993
4032
|
url: "/agents/{id}/schema_versions/{version_id}/activate",
|
|
3994
4033
|
...options
|
|
3995
4034
|
});
|
|
4035
|
+
var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
|
|
4036
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4037
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4038
|
+
url: "/payment-methods/{id}",
|
|
4039
|
+
...options
|
|
4040
|
+
});
|
|
4041
|
+
var getPaymentMethodsById = (options) => (options.client ?? client).get({
|
|
4042
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4043
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4044
|
+
url: "/payment-methods/{id}",
|
|
4045
|
+
...options
|
|
4046
|
+
});
|
|
4047
|
+
var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
|
|
4048
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4049
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4050
|
+
url: "/payment-methods/{id}",
|
|
4051
|
+
...options,
|
|
4052
|
+
headers: {
|
|
4053
|
+
"Content-Type": "application/vnd.api+json",
|
|
4054
|
+
...options.headers
|
|
4055
|
+
}
|
|
4056
|
+
});
|
|
3996
4057
|
var deleteBucketsById = (options) => (options.client ?? client).delete({
|
|
3997
4058
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3998
4059
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4320,6 +4381,12 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
|
|
|
4320
4381
|
...options.headers
|
|
4321
4382
|
}
|
|
4322
4383
|
});
|
|
4384
|
+
var getWalletPlanPreview = (options) => (options.client ?? client).get({
|
|
4385
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4386
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4387
|
+
url: "/wallet/plan/preview",
|
|
4388
|
+
...options
|
|
4389
|
+
});
|
|
4323
4390
|
var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
|
|
4324
4391
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4325
4392
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4350,15 +4417,16 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
4350
4417
|
...options.headers
|
|
4351
4418
|
}
|
|
4352
4419
|
});
|
|
4353
|
-
var
|
|
4354
|
-
querySerializer: {
|
|
4420
|
+
var getExtractionResults = (options) => (options.client ?? client).get({
|
|
4421
|
+
querySerializer: {
|
|
4422
|
+
parameters: {
|
|
4423
|
+
filter: { object: { style: "form" } },
|
|
4424
|
+
fields: { object: { style: "form" } }
|
|
4425
|
+
}
|
|
4426
|
+
},
|
|
4355
4427
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4356
4428
|
url: "/extraction/results",
|
|
4357
|
-
...options
|
|
4358
|
-
headers: {
|
|
4359
|
-
"Content-Type": "application/vnd.api+json",
|
|
4360
|
-
...options.headers
|
|
4361
|
-
}
|
|
4429
|
+
...options
|
|
4362
4430
|
});
|
|
4363
4431
|
var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
4364
4432
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
@@ -4445,6 +4513,7 @@ var postSearchBatch = (options) => (options.client ?? client).post({
|
|
|
4445
4513
|
}
|
|
4446
4514
|
});
|
|
4447
4515
|
var getThreadsWorkspaceStats = (options) => (options.client ?? client).get({
|
|
4516
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4448
4517
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4449
4518
|
url: "/threads/workspace-stats",
|
|
4450
4519
|
...options
|
|
@@ -4684,6 +4753,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
|
|
|
4684
4753
|
...options.headers
|
|
4685
4754
|
}
|
|
4686
4755
|
});
|
|
4756
|
+
var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
|
|
4757
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
4758
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4759
|
+
url: "/payment-methods/{id}/default",
|
|
4760
|
+
...options,
|
|
4761
|
+
headers: {
|
|
4762
|
+
"Content-Type": "application/vnd.api+json",
|
|
4763
|
+
...options.headers
|
|
4764
|
+
}
|
|
4765
|
+
});
|
|
4687
4766
|
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
4688
4767
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4689
4768
|
url: "/agents/{id}/export",
|
|
@@ -4830,10 +4909,9 @@ var NotFoundError = class extends GptCoreError {
|
|
|
4830
4909
|
}
|
|
4831
4910
|
};
|
|
4832
4911
|
var ValidationError = class extends GptCoreError {
|
|
4833
|
-
constructor(message = "Validation failed", errors,
|
|
4834
|
-
super(message, { statusCode:
|
|
4912
|
+
constructor(message = "Validation failed", errors, options) {
|
|
4913
|
+
super(message, { statusCode: 422, ...options });
|
|
4835
4914
|
this.errors = errors;
|
|
4836
|
-
this.meta = meta;
|
|
4837
4915
|
}
|
|
4838
4916
|
};
|
|
4839
4917
|
var RateLimitError = class extends GptCoreError {
|
|
@@ -4865,15 +4943,12 @@ function handleApiError(error) {
|
|
|
4865
4943
|
const body = response?.body || response?.data || error?.body || error?.data || error;
|
|
4866
4944
|
let message = "An error occurred";
|
|
4867
4945
|
let errors;
|
|
4868
|
-
let meta;
|
|
4869
4946
|
if (body?.errors && Array.isArray(body.errors)) {
|
|
4870
4947
|
const firstError = body.errors[0];
|
|
4871
4948
|
message = firstError?.title || firstError?.detail || message;
|
|
4872
|
-
meta = firstError?.meta;
|
|
4873
4949
|
errors = body.errors.map((err) => ({
|
|
4874
4950
|
field: err.source?.pointer?.split("/").pop(),
|
|
4875
|
-
message: err.detail || err.title || "Unknown error"
|
|
4876
|
-
meta: err.meta
|
|
4951
|
+
message: err.detail || err.title || "Unknown error"
|
|
4877
4952
|
}));
|
|
4878
4953
|
} else if (body?.message) {
|
|
4879
4954
|
message = body.message;
|
|
@@ -4898,7 +4973,7 @@ function handleApiError(error) {
|
|
|
4898
4973
|
throw new NotFoundError(message, errorOptions);
|
|
4899
4974
|
case 400:
|
|
4900
4975
|
case 422:
|
|
4901
|
-
throw new ValidationError(message, errors,
|
|
4976
|
+
throw new ValidationError(message, errors, errorOptions);
|
|
4902
4977
|
case 429: {
|
|
4903
4978
|
const retryAfter = headers?.get?.("retry-after") || headers?.["retry-after"];
|
|
4904
4979
|
throw new RateLimitError(message, retryAfter ? parseInt(retryAfter, 10) : void 0, errorOptions);
|
|
@@ -5408,11 +5483,13 @@ var index_default = gptCore;
|
|
|
5408
5483
|
deleteBucketsById,
|
|
5409
5484
|
deleteExtractionBatchesById,
|
|
5410
5485
|
deleteExtractionDocumentsById,
|
|
5486
|
+
deleteExtractionResultsById,
|
|
5411
5487
|
deleteFieldTemplatesById,
|
|
5412
5488
|
deleteMessagesById,
|
|
5413
5489
|
deleteNotificationMethodsById,
|
|
5414
5490
|
deleteNotificationPreferencesById,
|
|
5415
5491
|
deleteObjectsById,
|
|
5492
|
+
deletePaymentMethodsById,
|
|
5416
5493
|
deleteSearchSavedById,
|
|
5417
5494
|
deleteTenantMembershipsByTenantIdByUserId,
|
|
5418
5495
|
deleteTenantsById,
|
|
@@ -5424,8 +5501,6 @@ var index_default = gptCore;
|
|
|
5424
5501
|
deleteWebhookConfigsById,
|
|
5425
5502
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5426
5503
|
deleteWorkspacesById,
|
|
5427
|
-
getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
|
|
5428
|
-
getAgentVersionRevisionsById,
|
|
5429
5504
|
getAgentVersions,
|
|
5430
5505
|
getAgentVersionsById,
|
|
5431
5506
|
getAgentVersionsByIdMetrics,
|
|
@@ -5479,6 +5554,7 @@ var index_default = gptCore;
|
|
|
5479
5554
|
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
5480
5555
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
|
|
5481
5556
|
getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
|
|
5557
|
+
getExtractionResults,
|
|
5482
5558
|
getExtractionResultsById,
|
|
5483
5559
|
getExtractionResultsDocumentByDocumentId,
|
|
5484
5560
|
getExtractionResultsWorkspaceByWorkspaceId,
|
|
@@ -5508,6 +5584,8 @@ var index_default = gptCore;
|
|
|
5508
5584
|
getNotificationPreferencesById,
|
|
5509
5585
|
getObjects,
|
|
5510
5586
|
getObjectsById,
|
|
5587
|
+
getPaymentMethods,
|
|
5588
|
+
getPaymentMethodsById,
|
|
5511
5589
|
getPermissions,
|
|
5512
5590
|
getPermissionsById,
|
|
5513
5591
|
getPermissionsMeta,
|
|
@@ -5559,6 +5637,7 @@ var index_default = gptCore;
|
|
|
5559
5637
|
getUsersMeTenants,
|
|
5560
5638
|
getWallet,
|
|
5561
5639
|
getWalletInvoices,
|
|
5640
|
+
getWalletPlanPreview,
|
|
5562
5641
|
getWatcherClaims,
|
|
5563
5642
|
getWatcherClaimsById,
|
|
5564
5643
|
getWatcherClaimsStatus,
|
|
@@ -5612,8 +5691,9 @@ var index_default = gptCore;
|
|
|
5612
5691
|
patchExtractionDocumentsByIdRestore,
|
|
5613
5692
|
patchExtractionDocumentsByIdStatus,
|
|
5614
5693
|
patchExtractionDocumentsByIdVerification,
|
|
5615
|
-
|
|
5694
|
+
patchExtractionResultsById,
|
|
5616
5695
|
patchExtractionResultsByIdRegenerate,
|
|
5696
|
+
patchExtractionResultsByIdSaveCorrections,
|
|
5617
5697
|
patchInvitationsByIdAccept,
|
|
5618
5698
|
patchInvitationsByIdAcceptByUser,
|
|
5619
5699
|
patchInvitationsByIdDecline,
|
|
@@ -5625,6 +5705,8 @@ var index_default = gptCore;
|
|
|
5625
5705
|
patchNotificationMethodsByIdSetPrimary,
|
|
5626
5706
|
patchNotificationMethodsByIdVerify,
|
|
5627
5707
|
patchNotificationPreferencesById,
|
|
5708
|
+
patchPaymentMethodsById,
|
|
5709
|
+
patchPaymentMethodsByIdDefault,
|
|
5628
5710
|
patchSearchSavedById,
|
|
5629
5711
|
patchTenantMembershipsByTenantIdByUserId,
|
|
5630
5712
|
patchTenantsById,
|
|
@@ -5655,7 +5737,6 @@ var index_default = gptCore;
|
|
|
5655
5737
|
patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
5656
5738
|
patchWorkspacesById,
|
|
5657
5739
|
patchWorkspacesByIdAllocate,
|
|
5658
|
-
patchWorkspacesByIdPopulateHashes,
|
|
5659
5740
|
patchWorkspacesByIdStorageSettings,
|
|
5660
5741
|
postAgentTestResults,
|
|
5661
5742
|
postAgentVersionComparisons,
|
|
@@ -5696,9 +5777,7 @@ var index_default = gptCore;
|
|
|
5696
5777
|
postExtractionBatches,
|
|
5697
5778
|
postExtractionDocumentsBeginUpload,
|
|
5698
5779
|
postExtractionDocumentsBulkReprocess,
|
|
5699
|
-
postExtractionDocumentsFindOrBeginUpload,
|
|
5700
5780
|
postExtractionDocumentsUpload,
|
|
5701
|
-
postExtractionResults,
|
|
5702
5781
|
postExtractionSchemaDiscoveries,
|
|
5703
5782
|
postFieldTemplates,
|
|
5704
5783
|
postInvitations,
|
|
@@ -5711,6 +5790,8 @@ var index_default = gptCore;
|
|
|
5711
5790
|
postObjectsCopy,
|
|
5712
5791
|
postObjectsMove,
|
|
5713
5792
|
postObjectsRegister,
|
|
5793
|
+
postPaymentMethods,
|
|
5794
|
+
postPaymentMethodsTokenize,
|
|
5714
5795
|
postPayments,
|
|
5715
5796
|
postSearchBatch,
|
|
5716
5797
|
postSearchReindex,
|