@gpt-core/client 0.9.21 → 0.9.22

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.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,
@@ -80,8 +80,6 @@ __export(sdk_gen_exports, {
80
80
  getExtractionBatchesById: () => getExtractionBatchesById,
81
81
  getExtractionBatchesByIdUploadUrls: () => getExtractionBatchesByIdUploadUrls,
82
82
  getExtractionBatchesWorkspaceByWorkspaceId: () => getExtractionBatchesWorkspaceByWorkspaceId,
83
- getExtractionConfigEnums: () => getExtractionConfigEnums,
84
- getExtractionConfigEnumsById: () => getExtractionConfigEnumsById,
85
83
  getExtractionDocuments: () => getExtractionDocuments,
86
84
  getExtractionDocumentsById: () => getExtractionDocumentsById,
87
85
  getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
@@ -92,7 +90,6 @@ __export(sdk_gen_exports, {
92
90
  getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
93
91
  getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
94
92
  getExtractionDocumentsWorkspaceByWorkspaceIdTrashed: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
95
- getExtractionResults: () => getExtractionResults,
96
93
  getExtractionResultsById: () => getExtractionResultsById,
97
94
  getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
98
95
  getExtractionResultsWorkspaceByWorkspaceId: () => getExtractionResultsWorkspaceByWorkspaceId,
@@ -122,8 +119,6 @@ __export(sdk_gen_exports, {
122
119
  getNotificationPreferencesById: () => getNotificationPreferencesById,
123
120
  getObjects: () => getObjects,
124
121
  getObjectsById: () => getObjectsById,
125
- getPaymentMethods: () => getPaymentMethods,
126
- getPaymentMethodsById: () => getPaymentMethodsById,
127
122
  getPermissions: () => getPermissions,
128
123
  getPermissionsById: () => getPermissionsById,
129
124
  getPermissionsMeta: () => getPermissionsMeta,
@@ -175,9 +170,9 @@ __export(sdk_gen_exports, {
175
170
  getUsersMeTenants: () => getUsersMeTenants,
176
171
  getWallet: () => getWallet,
177
172
  getWalletInvoices: () => getWalletInvoices,
178
- getWalletPlanPreview: () => getWalletPlanPreview,
179
173
  getWatcherClaims: () => getWatcherClaims,
180
174
  getWatcherClaimsById: () => getWatcherClaimsById,
175
+ getWatcherClaimsHistory: () => getWatcherClaimsHistory,
181
176
  getWatcherClaimsStatus: () => getWatcherClaimsStatus,
182
177
  getWatcherEvents: () => getWatcherEvents,
183
178
  getWatcherEventsById: () => getWatcherEventsById,
@@ -214,7 +209,6 @@ __export(sdk_gen_exports, {
214
209
  patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
215
210
  patchBucketsById: () => patchBucketsById,
216
211
  patchConfigsByKey: () => patchConfigsByKey,
217
- patchExtractionConfigEnumsById: () => patchExtractionConfigEnumsById,
218
212
  patchExtractionDocumentsByIdCancel: () => patchExtractionDocumentsByIdCancel,
219
213
  patchExtractionDocumentsByIdDismiss: () => patchExtractionDocumentsByIdDismiss,
220
214
  patchExtractionDocumentsByIdDismissTraining: () => patchExtractionDocumentsByIdDismissTraining,
@@ -226,9 +220,8 @@ __export(sdk_gen_exports, {
226
220
  patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
227
221
  patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
228
222
  patchExtractionDocumentsByIdVerification: () => patchExtractionDocumentsByIdVerification,
229
- patchExtractionResultsById: () => patchExtractionResultsById,
223
+ patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
230
224
  patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
231
- patchExtractionResultsByIdSaveCorrections: () => patchExtractionResultsByIdSaveCorrections,
232
225
  patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
233
226
  patchInvitationsByIdAcceptByUser: () => patchInvitationsByIdAcceptByUser,
234
227
  patchInvitationsByIdDecline: () => patchInvitationsByIdDecline,
@@ -240,8 +233,6 @@ __export(sdk_gen_exports, {
240
233
  patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
241
234
  patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
242
235
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
243
- patchPaymentMethodsById: () => patchPaymentMethodsById,
244
- patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
245
236
  patchSearchSavedById: () => patchSearchSavedById,
246
237
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
247
238
  patchTenantsById: () => patchTenantsById,
@@ -272,6 +263,7 @@ __export(sdk_gen_exports, {
272
263
  patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
273
264
  patchWorkspacesById: () => patchWorkspacesById,
274
265
  patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
266
+ patchWorkspacesByIdPopulateHashes: () => patchWorkspacesByIdPopulateHashes,
275
267
  patchWorkspacesByIdStorageSettings: () => patchWorkspacesByIdStorageSettings,
276
268
  postAgentTestResults: () => postAgentTestResults,
277
269
  postAgentVersionComparisons: () => postAgentVersionComparisons,
@@ -310,10 +302,11 @@ __export(sdk_gen_exports, {
310
302
  postDocumentsBulkDelete: () => postDocumentsBulkDelete,
311
303
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
312
304
  postExtractionBatches: () => postExtractionBatches,
313
- postExtractionConfigEnums: () => postExtractionConfigEnums,
314
305
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
315
306
  postExtractionDocumentsBulkReprocess: () => postExtractionDocumentsBulkReprocess,
307
+ postExtractionDocumentsFindOrBeginUpload: () => postExtractionDocumentsFindOrBeginUpload,
316
308
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
309
+ postExtractionResults: () => postExtractionResults,
317
310
  postExtractionSchemaDiscoveries: () => postExtractionSchemaDiscoveries,
318
311
  postFieldTemplates: () => postFieldTemplates,
319
312
  postInvitations: () => postInvitations,
@@ -326,8 +319,6 @@ __export(sdk_gen_exports, {
326
319
  postObjectsCopy: () => postObjectsCopy,
327
320
  postObjectsMove: () => postObjectsMove,
328
321
  postObjectsRegister: () => postObjectsRegister,
329
- postPaymentMethods: () => postPaymentMethods,
330
- postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
331
322
  postPayments: () => postPayments,
332
323
  postSearchBatch: () => postSearchBatch,
333
324
  postSearchReindex: () => postSearchReindex,
@@ -1259,22 +1250,6 @@ var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
1259
1250
  url: "/llm_analytics/costs",
1260
1251
  ...options
1261
1252
  });
1262
- var getExtractionConfigEnumsById = (options) => (options.client ?? client).get({
1263
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1264
- security: [{ scheme: "bearer", type: "http" }],
1265
- url: "/extraction/config-enums/{id}",
1266
- ...options
1267
- });
1268
- var patchExtractionConfigEnumsById = (options) => (options.client ?? client).patch({
1269
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1270
- security: [{ scheme: "bearer", type: "http" }],
1271
- url: "/extraction/config-enums/{id}",
1272
- ...options,
1273
- headers: {
1274
- "Content-Type": "application/vnd.api+json",
1275
- ...options.headers
1276
- }
1277
- });
1278
1253
  var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ?? client).get({
1279
1254
  querySerializer: {
1280
1255
  parameters: {
@@ -1339,30 +1314,7 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1339
1314
  ...options.headers
1340
1315
  }
1341
1316
  });
1342
- var getPaymentMethods = (options) => (options.client ?? client).get({
1343
- querySerializer: {
1344
- parameters: {
1345
- filter: { object: { style: "form" } },
1346
- page: { object: { style: "form" } },
1347
- fields: { object: { style: "form" } }
1348
- }
1349
- },
1350
- security: [{ scheme: "bearer", type: "http" }],
1351
- url: "/payment-methods",
1352
- ...options
1353
- });
1354
- var postPaymentMethods = (options) => (options.client ?? client).post({
1355
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1356
- security: [{ scheme: "bearer", type: "http" }],
1357
- url: "/payment-methods",
1358
- ...options,
1359
- headers: {
1360
- "Content-Type": "application/vnd.api+json",
1361
- ...options.headers
1362
- }
1363
- });
1364
1317
  var getAgentsByIdStats = (options) => (options.client ?? client).get({
1365
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1366
1318
  security: [{ scheme: "bearer", type: "http" }],
1367
1319
  url: "/agents/{id}/stats",
1368
1320
  ...options
@@ -1641,6 +1593,17 @@ var postConfigs = (options) => (options.client ?? client).post({
1641
1593
  ...options.headers
1642
1594
  }
1643
1595
  });
1596
+ var getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions = (options) => (options.client ?? client).get({
1597
+ querySerializer: {
1598
+ parameters: {
1599
+ filter: { object: { style: "form" } },
1600
+ fields: { object: { style: "form" } }
1601
+ }
1602
+ },
1603
+ security: [{ scheme: "bearer", type: "http" }],
1604
+ url: "/agent_version_revisions/agent_versions/{agent_version_id}/revisions",
1605
+ ...options
1606
+ });
1644
1607
  var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
1645
1608
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1646
1609
  security: [{ scheme: "bearer", type: "http" }],
@@ -1784,16 +1747,20 @@ var postApplicationsByApplicationIdEmailTemplates = (options) => (options.client
1784
1747
  }
1785
1748
  });
1786
1749
  var getAgentsUsage = (options) => (options.client ?? client).get({
1787
- querySerializer: {
1788
- parameters: {
1789
- filter: { object: { style: "form" } },
1790
- fields: { object: { style: "form" } }
1791
- }
1792
- },
1793
1750
  security: [{ scheme: "bearer", type: "http" }],
1794
1751
  url: "/agents/usage",
1795
1752
  ...options
1796
1753
  });
1754
+ var patchWorkspacesByIdPopulateHashes = (options) => (options.client ?? client).patch({
1755
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1756
+ security: [{ scheme: "bearer", type: "http" }],
1757
+ url: "/workspaces/{id}/populate-hashes",
1758
+ ...options,
1759
+ headers: {
1760
+ "Content-Type": "application/vnd.api+json",
1761
+ ...options.headers
1762
+ }
1763
+ });
1797
1764
  var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
1798
1765
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1799
1766
  security: [{ scheme: "bearer", type: "http" }],
@@ -2098,28 +2065,12 @@ var getUsersById = (options) => (options.client ?? client).get({
2098
2065
  url: "/users/{id}",
2099
2066
  ...options
2100
2067
  });
2101
- var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
2102
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2103
- security: [{ scheme: "bearer", type: "http" }],
2104
- url: "/extraction/results/{id}",
2105
- ...options
2106
- });
2107
2068
  var getExtractionResultsById = (options) => (options.client ?? client).get({
2108
2069
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2109
2070
  security: [{ scheme: "bearer", type: "http" }],
2110
2071
  url: "/extraction/results/{id}",
2111
2072
  ...options
2112
2073
  });
2113
- var patchExtractionResultsById = (options) => (options.client ?? client).patch({
2114
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2115
- security: [{ scheme: "bearer", type: "http" }],
2116
- url: "/extraction/results/{id}",
2117
- ...options,
2118
- headers: {
2119
- "Content-Type": "application/vnd.api+json",
2120
- ...options.headers
2121
- }
2122
- });
2123
2074
  var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
2124
2075
  security: [{ scheme: "bearer", type: "http" }],
2125
2076
  url: "/webhook_deliveries/stats",
@@ -2275,6 +2226,17 @@ var getTrainingSessionsById = (options) => (options.client ?? client).get({
2275
2226
  url: "/training_sessions/{id}",
2276
2227
  ...options
2277
2228
  });
2229
+ var getWatcherClaimsHistory = (options) => (options.client ?? client).get({
2230
+ querySerializer: {
2231
+ parameters: {
2232
+ filter: { object: { style: "form" } },
2233
+ fields: { object: { style: "form" } }
2234
+ }
2235
+ },
2236
+ security: [{ scheme: "bearer", type: "http" }],
2237
+ url: "/watcher/claims/history",
2238
+ ...options
2239
+ });
2278
2240
  var getUsersByEmail = (options) => (options.client ?? client).get({
2279
2241
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2280
2242
  security: [{ scheme: "bearer", type: "http" }],
@@ -2389,7 +2351,6 @@ var getSearchSemantic = (options) => (options.client ?? client).get({
2389
2351
  ...options
2390
2352
  });
2391
2353
  var getThreadsStats = (options) => (options.client ?? client).get({
2392
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2393
2354
  security: [{ scheme: "bearer", type: "http" }],
2394
2355
  url: "/threads/stats",
2395
2356
  ...options
@@ -2677,6 +2638,16 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
2677
2638
  ...options.headers
2678
2639
  }
2679
2640
  });
2641
+ var patchExtractionResultsByIdCorrections = (options) => (options.client ?? client).patch({
2642
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2643
+ security: [{ scheme: "bearer", type: "http" }],
2644
+ url: "/extraction/results/{id}/corrections",
2645
+ ...options,
2646
+ headers: {
2647
+ "Content-Type": "application/vnd.api+json",
2648
+ ...options.headers
2649
+ }
2650
+ });
2680
2651
  var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
2681
2652
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2682
2653
  security: [{ scheme: "bearer", type: "http" }],
@@ -2758,26 +2729,11 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
2758
2729
  }
2759
2730
  });
2760
2731
  var getWalletInvoices = (options) => (options.client ?? client).get({
2761
- querySerializer: {
2762
- parameters: {
2763
- filter: { object: { style: "form" } },
2764
- fields: { object: { style: "form" } }
2765
- }
2766
- },
2732
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2767
2733
  security: [{ scheme: "bearer", type: "http" }],
2768
2734
  url: "/wallet/invoices",
2769
2735
  ...options
2770
2736
  });
2771
- var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
2772
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2773
- security: [{ scheme: "bearer", type: "http" }],
2774
- url: "/extraction/results/{id}/save_corrections",
2775
- ...options,
2776
- headers: {
2777
- "Content-Type": "application/vnd.api+json",
2778
- ...options.headers
2779
- }
2780
- });
2781
2737
  var patchWorkspacesByIdStorageSettings = (options) => (options.client ?? client).patch({
2782
2738
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2783
2739
  security: [{ scheme: "bearer", type: "http" }],
@@ -2840,6 +2796,12 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
2840
2796
  ...options.headers
2841
2797
  }
2842
2798
  });
2799
+ var getAgentVersionRevisionsById = (options) => (options.client ?? client).get({
2800
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2801
+ security: [{ scheme: "bearer", type: "http" }],
2802
+ url: "/agent_version_revisions/{id}",
2803
+ ...options
2804
+ });
2843
2805
  var getTrainingExamples = (options) => (options.client ?? client).get({
2844
2806
  querySerializer: {
2845
2807
  parameters: {
@@ -2869,7 +2831,6 @@ var getWorkspacesByWorkspaceIdExtractionExportsById = (options) => (options.clie
2869
2831
  ...options
2870
2832
  });
2871
2833
  var getAgentsByIdTrainingStats = (options) => (options.client ?? client).get({
2872
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2873
2834
  security: [{ scheme: "bearer", type: "http" }],
2874
2835
  url: "/agents/{id}/training_stats",
2875
2836
  ...options
@@ -2905,16 +2866,6 @@ var postBuckets = (options) => (options.client ?? client).post({
2905
2866
  ...options.headers
2906
2867
  }
2907
2868
  });
2908
- var postPaymentMethodsTokenize = (options) => (options.client ?? client).post({
2909
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2910
- security: [{ scheme: "bearer", type: "http" }],
2911
- url: "/payment-methods/tokenize",
2912
- ...options,
2913
- headers: {
2914
- "Content-Type": "application/vnd.api+json",
2915
- ...options.headers
2916
- }
2917
- });
2918
2869
  var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
2919
2870
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2920
2871
  security: [{ scheme: "bearer", type: "http" }],
@@ -3063,7 +3014,6 @@ var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
3063
3014
  }
3064
3015
  });
3065
3016
  var getAgentsByIdUsage = (options) => (options.client ?? client).get({
3066
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3067
3017
  security: [{ scheme: "bearer", type: "http" }],
3068
3018
  url: "/agents/{id}/usage",
3069
3019
  ...options
@@ -3221,6 +3171,16 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
3221
3171
  ...options.headers
3222
3172
  }
3223
3173
  });
3174
+ var postExtractionDocumentsFindOrBeginUpload = (options) => (options.client ?? client).post({
3175
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3176
+ security: [{ scheme: "bearer", type: "http" }],
3177
+ url: "/extraction/documents/find_or_begin_upload",
3178
+ ...options,
3179
+ headers: {
3180
+ "Content-Type": "application/vnd.api+json",
3181
+ ...options.headers
3182
+ }
3183
+ });
3224
3184
  var getTransactions = (options) => (options.client ?? client).get({
3225
3185
  querySerializer: {
3226
3186
  parameters: {
@@ -3624,28 +3584,6 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
3624
3584
  url: "/agents/{id}/schema_versions/{version_id}/activate",
3625
3585
  ...options
3626
3586
  });
3627
- var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
3628
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3629
- security: [{ scheme: "bearer", type: "http" }],
3630
- url: "/payment-methods/{id}",
3631
- ...options
3632
- });
3633
- var getPaymentMethodsById = (options) => (options.client ?? client).get({
3634
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3635
- security: [{ scheme: "bearer", type: "http" }],
3636
- url: "/payment-methods/{id}",
3637
- ...options
3638
- });
3639
- var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
3640
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3641
- security: [{ scheme: "bearer", type: "http" }],
3642
- url: "/payment-methods/{id}",
3643
- ...options,
3644
- headers: {
3645
- "Content-Type": "application/vnd.api+json",
3646
- ...options.headers
3647
- }
3648
- });
3649
3587
  var deleteBucketsById = (options) => (options.client ?? client).delete({
3650
3588
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3651
3589
  security: [{ scheme: "bearer", type: "http" }],
@@ -3973,12 +3911,6 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
3973
3911
  ...options.headers
3974
3912
  }
3975
3913
  });
3976
- var getWalletPlanPreview = (options) => (options.client ?? client).get({
3977
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3978
- security: [{ scheme: "bearer", type: "http" }],
3979
- url: "/wallet/plan/preview",
3980
- ...options
3981
- });
3982
3914
  var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
3983
3915
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3984
3916
  security: [{ scheme: "bearer", type: "http" }],
@@ -4009,16 +3941,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
4009
3941
  ...options.headers
4010
3942
  }
4011
3943
  });
4012
- var getExtractionResults = (options) => (options.client ?? client).get({
4013
- querySerializer: {
4014
- parameters: {
4015
- filter: { object: { style: "form" } },
4016
- fields: { object: { style: "form" } }
4017
- }
4018
- },
3944
+ var postExtractionResults = (options) => (options.client ?? client).post({
3945
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4019
3946
  security: [{ scheme: "bearer", type: "http" }],
4020
3947
  url: "/extraction/results",
4021
- ...options
3948
+ ...options,
3949
+ headers: {
3950
+ "Content-Type": "application/vnd.api+json",
3951
+ ...options.headers
3952
+ }
4022
3953
  });
4023
3954
  var postAgentsByIdClone = (options) => (options.client ?? client).post({
4024
3955
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -4105,7 +4036,6 @@ var postSearchBatch = (options) => (options.client ?? client).post({
4105
4036
  }
4106
4037
  });
4107
4038
  var getThreadsWorkspaceStats = (options) => (options.client ?? client).get({
4108
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4109
4039
  security: [{ scheme: "bearer", type: "http" }],
4110
4040
  url: "/threads/workspace-stats",
4111
4041
  ...options
@@ -4345,16 +4275,6 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
4345
4275
  ...options.headers
4346
4276
  }
4347
4277
  });
4348
- var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
4349
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4350
- security: [{ scheme: "bearer", type: "http" }],
4351
- url: "/payment-methods/{id}/default",
4352
- ...options,
4353
- headers: {
4354
- "Content-Type": "application/vnd.api+json",
4355
- ...options.headers
4356
- }
4357
- });
4358
4278
  var postAgentsByIdExport = (options) => (options.client ?? client).post({
4359
4279
  security: [{ scheme: "bearer", type: "http" }],
4360
4280
  url: "/agents/{id}/export",
@@ -4420,27 +4340,6 @@ var patchWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.clien
4420
4340
  ...options.headers
4421
4341
  }
4422
4342
  });
4423
- var getExtractionConfigEnums = (options) => (options.client ?? client).get({
4424
- querySerializer: {
4425
- parameters: {
4426
- filter: { object: { style: "form" } },
4427
- fields: { object: { style: "form" } }
4428
- }
4429
- },
4430
- security: [{ scheme: "bearer", type: "http" }],
4431
- url: "/extraction/config-enums",
4432
- ...options
4433
- });
4434
- var postExtractionConfigEnums = (options) => (options.client ?? client).post({
4435
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4436
- security: [{ scheme: "bearer", type: "http" }],
4437
- url: "/extraction/config-enums",
4438
- ...options,
4439
- headers: {
4440
- "Content-Type": "application/vnd.api+json",
4441
- ...options.headers
4442
- }
4443
- });
4444
4343
  var getExtractionDocumentsWorkspaceByWorkspaceIdTrashed = (options) => (options.client ?? client).get({
4445
4344
  querySerializer: {
4446
4345
  parameters: {
@@ -5096,13 +4995,11 @@ export {
5096
4995
  deleteBucketsById,
5097
4996
  deleteExtractionBatchesById,
5098
4997
  deleteExtractionDocumentsById,
5099
- deleteExtractionResultsById,
5100
4998
  deleteFieldTemplatesById,
5101
4999
  deleteMessagesById,
5102
5000
  deleteNotificationMethodsById,
5103
5001
  deleteNotificationPreferencesById,
5104
5002
  deleteObjectsById,
5105
- deletePaymentMethodsById,
5106
5003
  deleteSearchSavedById,
5107
5004
  deleteTenantMembershipsByTenantIdByUserId,
5108
5005
  deleteTenantsById,
@@ -5114,6 +5011,8 @@ export {
5114
5011
  deleteWebhookConfigsById,
5115
5012
  deleteWorkspaceMembershipsByWorkspaceIdByUserId,
5116
5013
  deleteWorkspacesById,
5014
+ getAgentVersionRevisionsAgentVersionsByAgentVersionIdRevisions,
5015
+ getAgentVersionRevisionsById,
5117
5016
  getAgentVersions,
5118
5017
  getAgentVersionsById,
5119
5018
  getAgentVersionsByIdMetrics,
@@ -5157,8 +5056,6 @@ export {
5157
5056
  getExtractionBatchesById,
5158
5057
  getExtractionBatchesByIdUploadUrls,
5159
5058
  getExtractionBatchesWorkspaceByWorkspaceId,
5160
- getExtractionConfigEnums,
5161
- getExtractionConfigEnumsById,
5162
5059
  getExtractionDocuments,
5163
5060
  getExtractionDocumentsById,
5164
5061
  getExtractionDocumentsByIdStatus,
@@ -5169,7 +5066,6 @@ export {
5169
5066
  getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
5170
5067
  getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
5171
5068
  getExtractionDocumentsWorkspaceByWorkspaceIdTrashed,
5172
- getExtractionResults,
5173
5069
  getExtractionResultsById,
5174
5070
  getExtractionResultsDocumentByDocumentId,
5175
5071
  getExtractionResultsWorkspaceByWorkspaceId,
@@ -5199,8 +5095,6 @@ export {
5199
5095
  getNotificationPreferencesById,
5200
5096
  getObjects,
5201
5097
  getObjectsById,
5202
- getPaymentMethods,
5203
- getPaymentMethodsById,
5204
5098
  getPermissions,
5205
5099
  getPermissionsById,
5206
5100
  getPermissionsMeta,
@@ -5252,9 +5146,9 @@ export {
5252
5146
  getUsersMeTenants,
5253
5147
  getWallet,
5254
5148
  getWalletInvoices,
5255
- getWalletPlanPreview,
5256
5149
  getWatcherClaims,
5257
5150
  getWatcherClaimsById,
5151
+ getWatcherClaimsHistory,
5258
5152
  getWatcherClaimsStatus,
5259
5153
  getWatcherEvents,
5260
5154
  getWatcherEventsById,
@@ -5295,7 +5189,6 @@ export {
5295
5189
  patchApplicationsByIdGrantCredits,
5296
5190
  patchBucketsById,
5297
5191
  patchConfigsByKey,
5298
- patchExtractionConfigEnumsById,
5299
5192
  patchExtractionDocumentsByIdCancel,
5300
5193
  patchExtractionDocumentsByIdDismiss,
5301
5194
  patchExtractionDocumentsByIdDismissTraining,
@@ -5307,9 +5200,8 @@ export {
5307
5200
  patchExtractionDocumentsByIdRestore,
5308
5201
  patchExtractionDocumentsByIdStatus,
5309
5202
  patchExtractionDocumentsByIdVerification,
5310
- patchExtractionResultsById,
5203
+ patchExtractionResultsByIdCorrections,
5311
5204
  patchExtractionResultsByIdRegenerate,
5312
- patchExtractionResultsByIdSaveCorrections,
5313
5205
  patchInvitationsByIdAccept,
5314
5206
  patchInvitationsByIdAcceptByUser,
5315
5207
  patchInvitationsByIdDecline,
@@ -5321,8 +5213,6 @@ export {
5321
5213
  patchNotificationMethodsByIdSetPrimary,
5322
5214
  patchNotificationMethodsByIdVerify,
5323
5215
  patchNotificationPreferencesById,
5324
- patchPaymentMethodsById,
5325
- patchPaymentMethodsByIdDefault,
5326
5216
  patchSearchSavedById,
5327
5217
  patchTenantMembershipsByTenantIdByUserId,
5328
5218
  patchTenantsById,
@@ -5353,6 +5243,7 @@ export {
5353
5243
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
5354
5244
  patchWorkspacesById,
5355
5245
  patchWorkspacesByIdAllocate,
5246
+ patchWorkspacesByIdPopulateHashes,
5356
5247
  patchWorkspacesByIdStorageSettings,
5357
5248
  postAgentTestResults,
5358
5249
  postAgentVersionComparisons,
@@ -5391,10 +5282,11 @@ export {
5391
5282
  postDocumentsBulkDelete,
5392
5283
  postDocumentsPresignedUpload,
5393
5284
  postExtractionBatches,
5394
- postExtractionConfigEnums,
5395
5285
  postExtractionDocumentsBeginUpload,
5396
5286
  postExtractionDocumentsBulkReprocess,
5287
+ postExtractionDocumentsFindOrBeginUpload,
5397
5288
  postExtractionDocumentsUpload,
5289
+ postExtractionResults,
5398
5290
  postExtractionSchemaDiscoveries,
5399
5291
  postFieldTemplates,
5400
5292
  postInvitations,
@@ -5407,8 +5299,6 @@ export {
5407
5299
  postObjectsCopy,
5408
5300
  postObjectsMove,
5409
5301
  postObjectsRegister,
5410
- postPaymentMethods,
5411
- postPaymentMethodsTokenize,
5412
5302
  postPayments,
5413
5303
  postSearchBatch,
5414
5304
  postSearchReindex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.9.21",
3
+ "version": "0.9.22",
4
4
  "description": "TypeScript SDK for GPT Core Client API - Document extraction, AI agents, and workspace management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",