@gpt-core/client 0.7.95 → 0.8.1

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.js CHANGED
@@ -97,6 +97,7 @@ __export(index_exports, {
97
97
  getApplicationsByApplicationIdEmailTemplatesBySlug: () => getApplicationsByApplicationIdEmailTemplatesBySlug,
98
98
  getApplicationsById: () => getApplicationsById,
99
99
  getApplicationsBySlugBySlug: () => getApplicationsBySlugBySlug,
100
+ getApplicationsCurrent: () => getApplicationsCurrent,
100
101
  getAuditLogs: () => getAuditLogs,
101
102
  getBuckets: () => getBuckets,
102
103
  getBucketsById: () => getBucketsById,
@@ -189,6 +190,7 @@ __export(index_exports, {
189
190
  getWorkspacesByWorkspaceIdExtractionExportsById: () => getWorkspacesByWorkspaceIdExtractionExportsById,
190
191
  getWorkspacesByWorkspaceIdTrainingAnalytics: () => getWorkspacesByWorkspaceIdTrainingAnalytics,
191
192
  getWorkspacesMine: () => getWorkspacesMine,
193
+ getWorkspacesShared: () => getWorkspacesShared,
192
194
  handleApiError: () => handleApiError,
193
195
  isRetryableError: () => isRetryableError,
194
196
  paginateAll: () => paginateAll,
@@ -250,13 +252,16 @@ __export(index_exports, {
250
252
  postAgents: () => postAgents,
251
253
  postAgentsByIdClone: () => postAgentsByIdClone,
252
254
  postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
255
+ postAgentsByIdExport: () => postAgentsByIdExport,
253
256
  postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
254
257
  postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
255
258
  postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
259
+ postAgentsByIdStats: () => postAgentsByIdStats,
256
260
  postAgentsByIdTeach: () => postAgentsByIdTeach,
257
261
  postAgentsByIdTest: () => postAgentsByIdTest,
258
262
  postAgentsByIdValidate: () => postAgentsByIdValidate,
259
263
  postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
264
+ postAgentsImport: () => postAgentsImport,
260
265
  postAgentsPredict: () => postAgentsPredict,
261
266
  postAiChunksSearch: () => postAiChunksSearch,
262
267
  postAiConversations: () => postAiConversations,
@@ -316,8 +321,13 @@ __export(index_exports, {
316
321
  postUsersAuthResendConfirmation: () => postUsersAuthResendConfirmation,
317
322
  postUsersRegisterIsv: () => postUsersRegisterIsv,
318
323
  postWebhookConfigs: () => postWebhookConfigs,
324
+ postWebhookConfigsBulkDisable: () => postWebhookConfigsBulkDisable,
325
+ postWebhookConfigsBulkEnable: () => postWebhookConfigsBulkEnable,
319
326
  postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
327
+ postWebhookConfigsStats: () => postWebhookConfigsStats,
328
+ postWebhookDeliveriesBulkRetry: () => postWebhookDeliveriesBulkRetry,
320
329
  postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
330
+ postWebhookDeliveriesStats: () => postWebhookDeliveriesStats,
321
331
  postWorkspaceMemberships: () => postWorkspaceMemberships,
322
332
  postWorkspaces: () => postWorkspaces,
323
333
  postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
@@ -378,6 +388,7 @@ __export(sdk_gen_exports, {
378
388
  getApplicationsByApplicationIdEmailTemplatesBySlug: () => getApplicationsByApplicationIdEmailTemplatesBySlug,
379
389
  getApplicationsById: () => getApplicationsById,
380
390
  getApplicationsBySlugBySlug: () => getApplicationsBySlugBySlug,
391
+ getApplicationsCurrent: () => getApplicationsCurrent,
381
392
  getAuditLogs: () => getAuditLogs,
382
393
  getBuckets: () => getBuckets,
383
394
  getBucketsById: () => getBucketsById,
@@ -470,6 +481,7 @@ __export(sdk_gen_exports, {
470
481
  getWorkspacesByWorkspaceIdExtractionExportsById: () => getWorkspacesByWorkspaceIdExtractionExportsById,
471
482
  getWorkspacesByWorkspaceIdTrainingAnalytics: () => getWorkspacesByWorkspaceIdTrainingAnalytics,
472
483
  getWorkspacesMine: () => getWorkspacesMine,
484
+ getWorkspacesShared: () => getWorkspacesShared,
473
485
  patchAgentsById: () => patchAgentsById,
474
486
  patchAgentsByIdSchemaVersionsByVersionId: () => patchAgentsByIdSchemaVersionsByVersionId,
475
487
  patchApiKeysById: () => patchApiKeysById,
@@ -527,13 +539,16 @@ __export(sdk_gen_exports, {
527
539
  postAgents: () => postAgents,
528
540
  postAgentsByIdClone: () => postAgentsByIdClone,
529
541
  postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
542
+ postAgentsByIdExport: () => postAgentsByIdExport,
530
543
  postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
531
544
  postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
532
545
  postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
546
+ postAgentsByIdStats: () => postAgentsByIdStats,
533
547
  postAgentsByIdTeach: () => postAgentsByIdTeach,
534
548
  postAgentsByIdTest: () => postAgentsByIdTest,
535
549
  postAgentsByIdValidate: () => postAgentsByIdValidate,
536
550
  postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
551
+ postAgentsImport: () => postAgentsImport,
537
552
  postAgentsPredict: () => postAgentsPredict,
538
553
  postAiChunksSearch: () => postAiChunksSearch,
539
554
  postAiConversations: () => postAiConversations,
@@ -593,8 +608,13 @@ __export(sdk_gen_exports, {
593
608
  postUsersAuthResendConfirmation: () => postUsersAuthResendConfirmation,
594
609
  postUsersRegisterIsv: () => postUsersRegisterIsv,
595
610
  postWebhookConfigs: () => postWebhookConfigs,
611
+ postWebhookConfigsBulkDisable: () => postWebhookConfigsBulkDisable,
612
+ postWebhookConfigsBulkEnable: () => postWebhookConfigsBulkEnable,
596
613
  postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
614
+ postWebhookConfigsStats: () => postWebhookConfigsStats,
615
+ postWebhookDeliveriesBulkRetry: () => postWebhookDeliveriesBulkRetry,
597
616
  postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
617
+ postWebhookDeliveriesStats: () => postWebhookDeliveriesStats,
598
618
  postWorkspaceMemberships: () => postWorkspaceMemberships,
599
619
  postWorkspaces: () => postWorkspaces,
600
620
  postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
@@ -1509,6 +1529,22 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
1509
1529
  ...options.headers
1510
1530
  }
1511
1531
  });
1532
+ var postWebhookConfigsStats = (options) => (options.client ?? client).post({
1533
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1534
+ security: [{ scheme: "bearer", type: "http" }],
1535
+ url: "/webhook_configs/stats",
1536
+ ...options,
1537
+ headers: {
1538
+ "Content-Type": "application/vnd.api+json",
1539
+ ...options.headers
1540
+ }
1541
+ });
1542
+ var getApplicationsCurrent = (options) => (options.client ?? client).get({
1543
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1544
+ security: [{ scheme: "bearer", type: "http" }],
1545
+ url: "/applications/current",
1546
+ ...options
1547
+ });
1512
1548
  var getWorkspaces = (options) => (options.client ?? client).get({
1513
1549
  querySerializer: {
1514
1550
  parameters: {
@@ -1530,6 +1566,16 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1530
1566
  ...options.headers
1531
1567
  }
1532
1568
  });
1569
+ var postAgentsByIdStats = (options) => (options.client ?? client).post({
1570
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1571
+ security: [{ scheme: "bearer", type: "http" }],
1572
+ url: "/agents/{id}/stats",
1573
+ ...options,
1574
+ headers: {
1575
+ "Content-Type": "application/vnd.api+json",
1576
+ ...options.headers
1577
+ }
1578
+ });
1533
1579
  var getDocumentsStats = (options) => (options.client ?? client).get({
1534
1580
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1535
1581
  security: [{ scheme: "bearer", type: "http" }],
@@ -1583,6 +1629,16 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
1583
1629
  url: "/search/indexes",
1584
1630
  ...options
1585
1631
  });
1632
+ var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
1633
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1634
+ security: [{ scheme: "bearer", type: "http" }],
1635
+ url: "/webhook_configs/bulk-disable",
1636
+ ...options,
1637
+ headers: {
1638
+ "Content-Type": "application/vnd.api+json",
1639
+ ...options.headers
1640
+ }
1641
+ });
1586
1642
  var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
1587
1643
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1588
1644
  security: [{ scheme: "bearer", type: "http" }],
@@ -1635,6 +1691,16 @@ var postPayments = (options) => (options.client ?? client).post({
1635
1691
  ...options.headers
1636
1692
  }
1637
1693
  });
1694
+ var postAgentsImport = (options) => (options.client ?? client).post({
1695
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1696
+ security: [{ scheme: "bearer", type: "http" }],
1697
+ url: "/agents/import",
1698
+ ...options,
1699
+ headers: {
1700
+ "Content-Type": "application/vnd.api+json",
1701
+ ...options.headers
1702
+ }
1703
+ });
1638
1704
  var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1639
1705
  querySerializer: {
1640
1706
  parameters: {
@@ -1760,6 +1826,16 @@ var postTokens = (options) => (options.client ?? client).post({
1760
1826
  ...options.headers
1761
1827
  }
1762
1828
  });
1829
+ var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
1830
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1831
+ security: [{ scheme: "bearer", type: "http" }],
1832
+ url: "/webhook_configs/bulk-enable",
1833
+ ...options,
1834
+ headers: {
1835
+ "Content-Type": "application/vnd.api+json",
1836
+ ...options.headers
1837
+ }
1838
+ });
1763
1839
  var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
1764
1840
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1765
1841
  security: [{ scheme: "bearer", type: "http" }],
@@ -1792,6 +1868,16 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
1792
1868
  ...options.headers
1793
1869
  }
1794
1870
  });
1871
+ var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
1872
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1873
+ security: [{ scheme: "bearer", type: "http" }],
1874
+ url: "/webhook_deliveries/bulk-retry",
1875
+ ...options,
1876
+ headers: {
1877
+ "Content-Type": "application/vnd.api+json",
1878
+ ...options.headers
1879
+ }
1880
+ });
1795
1881
  var deleteSearchSavedById = (options) => (options.client ?? client).delete({
1796
1882
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1797
1883
  security: [{ scheme: "bearer", type: "http" }],
@@ -2078,6 +2164,16 @@ var getExtractionResultsById = (options) => (options.client ?? client).get({
2078
2164
  url: "/extraction/results/{id}",
2079
2165
  ...options
2080
2166
  });
2167
+ var postWebhookDeliveriesStats = (options) => (options.client ?? client).post({
2168
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2169
+ security: [{ scheme: "bearer", type: "http" }],
2170
+ url: "/webhook_deliveries/stats",
2171
+ ...options,
2172
+ headers: {
2173
+ "Content-Type": "application/vnd.api+json",
2174
+ ...options.headers
2175
+ }
2176
+ });
2081
2177
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
2082
2178
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2083
2179
  security: [{ scheme: "bearer", type: "http" }],
@@ -2829,6 +2925,17 @@ var deleteAiGraphNodesById = (options) => (options.client ?? client).delete({
2829
2925
  url: "/ai/graph/nodes/{id}",
2830
2926
  ...options
2831
2927
  });
2928
+ var getWorkspacesShared = (options) => (options.client ?? client).get({
2929
+ querySerializer: {
2930
+ parameters: {
2931
+ filter: { object: { style: "form" } },
2932
+ fields: { object: { style: "form" } }
2933
+ }
2934
+ },
2935
+ security: [{ scheme: "bearer", type: "http" }],
2936
+ url: "/workspaces/shared",
2937
+ ...options
2938
+ });
2832
2939
  var patchWalletAddonsByAddonSlugCancel = (options) => (options.client ?? client).patch({
2833
2940
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2834
2941
  security: [{ scheme: "bearer", type: "http" }],
@@ -3719,6 +3826,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
3719
3826
  ...options.headers
3720
3827
  }
3721
3828
  });
3829
+ var postAgentsByIdExport = (options) => (options.client ?? client).post({
3830
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3831
+ security: [{ scheme: "bearer", type: "http" }],
3832
+ url: "/agents/{id}/export",
3833
+ ...options,
3834
+ headers: {
3835
+ "Content-Type": "application/vnd.api+json",
3836
+ ...options.headers
3837
+ }
3838
+ });
3722
3839
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
3723
3840
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3724
3841
  security: [{ scheme: "bearer", type: "http" }],
@@ -4447,6 +4564,7 @@ var index_default = gptCore;
4447
4564
  getApplicationsByApplicationIdEmailTemplatesBySlug,
4448
4565
  getApplicationsById,
4449
4566
  getApplicationsBySlugBySlug,
4567
+ getApplicationsCurrent,
4450
4568
  getAuditLogs,
4451
4569
  getBuckets,
4452
4570
  getBucketsById,
@@ -4539,6 +4657,7 @@ var index_default = gptCore;
4539
4657
  getWorkspacesByWorkspaceIdExtractionExportsById,
4540
4658
  getWorkspacesByWorkspaceIdTrainingAnalytics,
4541
4659
  getWorkspacesMine,
4660
+ getWorkspacesShared,
4542
4661
  handleApiError,
4543
4662
  isRetryableError,
4544
4663
  paginateAll,
@@ -4600,13 +4719,16 @@ var index_default = gptCore;
4600
4719
  postAgents,
4601
4720
  postAgentsByIdClone,
4602
4721
  postAgentsByIdDiscoverSchema,
4722
+ postAgentsByIdExport,
4603
4723
  postAgentsByIdPublishVersion,
4604
4724
  postAgentsByIdSchemaVersions,
4605
4725
  postAgentsByIdSchemaVersionsByVersionIdActivate,
4726
+ postAgentsByIdStats,
4606
4727
  postAgentsByIdTeach,
4607
4728
  postAgentsByIdTest,
4608
4729
  postAgentsByIdValidate,
4609
4730
  postAgentsCloneForWorkspace,
4731
+ postAgentsImport,
4610
4732
  postAgentsPredict,
4611
4733
  postAiChunksSearch,
4612
4734
  postAiConversations,
@@ -4666,8 +4788,13 @@ var index_default = gptCore;
4666
4788
  postUsersAuthResendConfirmation,
4667
4789
  postUsersRegisterIsv,
4668
4790
  postWebhookConfigs,
4791
+ postWebhookConfigsBulkDisable,
4792
+ postWebhookConfigsBulkEnable,
4669
4793
  postWebhookConfigsByIdTest,
4794
+ postWebhookConfigsStats,
4795
+ postWebhookDeliveriesBulkRetry,
4670
4796
  postWebhookDeliveriesByIdRetry,
4797
+ postWebhookDeliveriesStats,
4671
4798
  postWorkspaceMemberships,
4672
4799
  postWorkspaces,
4673
4800
  postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
package/dist/index.mjs CHANGED
@@ -51,6 +51,7 @@ __export(sdk_gen_exports, {
51
51
  getApplicationsByApplicationIdEmailTemplatesBySlug: () => getApplicationsByApplicationIdEmailTemplatesBySlug,
52
52
  getApplicationsById: () => getApplicationsById,
53
53
  getApplicationsBySlugBySlug: () => getApplicationsBySlugBySlug,
54
+ getApplicationsCurrent: () => getApplicationsCurrent,
54
55
  getAuditLogs: () => getAuditLogs,
55
56
  getBuckets: () => getBuckets,
56
57
  getBucketsById: () => getBucketsById,
@@ -143,6 +144,7 @@ __export(sdk_gen_exports, {
143
144
  getWorkspacesByWorkspaceIdExtractionExportsById: () => getWorkspacesByWorkspaceIdExtractionExportsById,
144
145
  getWorkspacesByWorkspaceIdTrainingAnalytics: () => getWorkspacesByWorkspaceIdTrainingAnalytics,
145
146
  getWorkspacesMine: () => getWorkspacesMine,
147
+ getWorkspacesShared: () => getWorkspacesShared,
146
148
  patchAgentsById: () => patchAgentsById,
147
149
  patchAgentsByIdSchemaVersionsByVersionId: () => patchAgentsByIdSchemaVersionsByVersionId,
148
150
  patchApiKeysById: () => patchApiKeysById,
@@ -200,13 +202,16 @@ __export(sdk_gen_exports, {
200
202
  postAgents: () => postAgents,
201
203
  postAgentsByIdClone: () => postAgentsByIdClone,
202
204
  postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
205
+ postAgentsByIdExport: () => postAgentsByIdExport,
203
206
  postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
204
207
  postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
205
208
  postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
209
+ postAgentsByIdStats: () => postAgentsByIdStats,
206
210
  postAgentsByIdTeach: () => postAgentsByIdTeach,
207
211
  postAgentsByIdTest: () => postAgentsByIdTest,
208
212
  postAgentsByIdValidate: () => postAgentsByIdValidate,
209
213
  postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
214
+ postAgentsImport: () => postAgentsImport,
210
215
  postAgentsPredict: () => postAgentsPredict,
211
216
  postAiChunksSearch: () => postAiChunksSearch,
212
217
  postAiConversations: () => postAiConversations,
@@ -266,8 +271,13 @@ __export(sdk_gen_exports, {
266
271
  postUsersAuthResendConfirmation: () => postUsersAuthResendConfirmation,
267
272
  postUsersRegisterIsv: () => postUsersRegisterIsv,
268
273
  postWebhookConfigs: () => postWebhookConfigs,
274
+ postWebhookConfigsBulkDisable: () => postWebhookConfigsBulkDisable,
275
+ postWebhookConfigsBulkEnable: () => postWebhookConfigsBulkEnable,
269
276
  postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
277
+ postWebhookConfigsStats: () => postWebhookConfigsStats,
278
+ postWebhookDeliveriesBulkRetry: () => postWebhookDeliveriesBulkRetry,
270
279
  postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
280
+ postWebhookDeliveriesStats: () => postWebhookDeliveriesStats,
271
281
  postWorkspaceMemberships: () => postWorkspaceMemberships,
272
282
  postWorkspaces: () => postWorkspaces,
273
283
  postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
@@ -1182,6 +1192,22 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
1182
1192
  ...options.headers
1183
1193
  }
1184
1194
  });
1195
+ var postWebhookConfigsStats = (options) => (options.client ?? client).post({
1196
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1197
+ security: [{ scheme: "bearer", type: "http" }],
1198
+ url: "/webhook_configs/stats",
1199
+ ...options,
1200
+ headers: {
1201
+ "Content-Type": "application/vnd.api+json",
1202
+ ...options.headers
1203
+ }
1204
+ });
1205
+ var getApplicationsCurrent = (options) => (options.client ?? client).get({
1206
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1207
+ security: [{ scheme: "bearer", type: "http" }],
1208
+ url: "/applications/current",
1209
+ ...options
1210
+ });
1185
1211
  var getWorkspaces = (options) => (options.client ?? client).get({
1186
1212
  querySerializer: {
1187
1213
  parameters: {
@@ -1203,6 +1229,16 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1203
1229
  ...options.headers
1204
1230
  }
1205
1231
  });
1232
+ var postAgentsByIdStats = (options) => (options.client ?? client).post({
1233
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1234
+ security: [{ scheme: "bearer", type: "http" }],
1235
+ url: "/agents/{id}/stats",
1236
+ ...options,
1237
+ headers: {
1238
+ "Content-Type": "application/vnd.api+json",
1239
+ ...options.headers
1240
+ }
1241
+ });
1206
1242
  var getDocumentsStats = (options) => (options.client ?? client).get({
1207
1243
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1208
1244
  security: [{ scheme: "bearer", type: "http" }],
@@ -1256,6 +1292,16 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
1256
1292
  url: "/search/indexes",
1257
1293
  ...options
1258
1294
  });
1295
+ var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
1296
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1297
+ security: [{ scheme: "bearer", type: "http" }],
1298
+ url: "/webhook_configs/bulk-disable",
1299
+ ...options,
1300
+ headers: {
1301
+ "Content-Type": "application/vnd.api+json",
1302
+ ...options.headers
1303
+ }
1304
+ });
1259
1305
  var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
1260
1306
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1261
1307
  security: [{ scheme: "bearer", type: "http" }],
@@ -1308,6 +1354,16 @@ var postPayments = (options) => (options.client ?? client).post({
1308
1354
  ...options.headers
1309
1355
  }
1310
1356
  });
1357
+ var postAgentsImport = (options) => (options.client ?? client).post({
1358
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1359
+ security: [{ scheme: "bearer", type: "http" }],
1360
+ url: "/agents/import",
1361
+ ...options,
1362
+ headers: {
1363
+ "Content-Type": "application/vnd.api+json",
1364
+ ...options.headers
1365
+ }
1366
+ });
1311
1367
  var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1312
1368
  querySerializer: {
1313
1369
  parameters: {
@@ -1433,6 +1489,16 @@ var postTokens = (options) => (options.client ?? client).post({
1433
1489
  ...options.headers
1434
1490
  }
1435
1491
  });
1492
+ var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
1493
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1494
+ security: [{ scheme: "bearer", type: "http" }],
1495
+ url: "/webhook_configs/bulk-enable",
1496
+ ...options,
1497
+ headers: {
1498
+ "Content-Type": "application/vnd.api+json",
1499
+ ...options.headers
1500
+ }
1501
+ });
1436
1502
  var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
1437
1503
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1438
1504
  security: [{ scheme: "bearer", type: "http" }],
@@ -1465,6 +1531,16 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
1465
1531
  ...options.headers
1466
1532
  }
1467
1533
  });
1534
+ var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
1535
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1536
+ security: [{ scheme: "bearer", type: "http" }],
1537
+ url: "/webhook_deliveries/bulk-retry",
1538
+ ...options,
1539
+ headers: {
1540
+ "Content-Type": "application/vnd.api+json",
1541
+ ...options.headers
1542
+ }
1543
+ });
1468
1544
  var deleteSearchSavedById = (options) => (options.client ?? client).delete({
1469
1545
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1470
1546
  security: [{ scheme: "bearer", type: "http" }],
@@ -1751,6 +1827,16 @@ var getExtractionResultsById = (options) => (options.client ?? client).get({
1751
1827
  url: "/extraction/results/{id}",
1752
1828
  ...options
1753
1829
  });
1830
+ var postWebhookDeliveriesStats = (options) => (options.client ?? client).post({
1831
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1832
+ security: [{ scheme: "bearer", type: "http" }],
1833
+ url: "/webhook_deliveries/stats",
1834
+ ...options,
1835
+ headers: {
1836
+ "Content-Type": "application/vnd.api+json",
1837
+ ...options.headers
1838
+ }
1839
+ });
1754
1840
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
1755
1841
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1756
1842
  security: [{ scheme: "bearer", type: "http" }],
@@ -2502,6 +2588,17 @@ var deleteAiGraphNodesById = (options) => (options.client ?? client).delete({
2502
2588
  url: "/ai/graph/nodes/{id}",
2503
2589
  ...options
2504
2590
  });
2591
+ var getWorkspacesShared = (options) => (options.client ?? client).get({
2592
+ querySerializer: {
2593
+ parameters: {
2594
+ filter: { object: { style: "form" } },
2595
+ fields: { object: { style: "form" } }
2596
+ }
2597
+ },
2598
+ security: [{ scheme: "bearer", type: "http" }],
2599
+ url: "/workspaces/shared",
2600
+ ...options
2601
+ });
2505
2602
  var patchWalletAddonsByAddonSlugCancel = (options) => (options.client ?? client).patch({
2506
2603
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2507
2604
  security: [{ scheme: "bearer", type: "http" }],
@@ -3392,6 +3489,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
3392
3489
  ...options.headers
3393
3490
  }
3394
3491
  });
3492
+ var postAgentsByIdExport = (options) => (options.client ?? client).post({
3493
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3494
+ security: [{ scheme: "bearer", type: "http" }],
3495
+ url: "/agents/{id}/export",
3496
+ ...options,
3497
+ headers: {
3498
+ "Content-Type": "application/vnd.api+json",
3499
+ ...options.headers
3500
+ }
3501
+ });
3395
3502
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
3396
3503
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3397
3504
  security: [{ scheme: "bearer", type: "http" }],
@@ -4120,6 +4227,7 @@ export {
4120
4227
  getApplicationsByApplicationIdEmailTemplatesBySlug,
4121
4228
  getApplicationsById,
4122
4229
  getApplicationsBySlugBySlug,
4230
+ getApplicationsCurrent,
4123
4231
  getAuditLogs,
4124
4232
  getBuckets,
4125
4233
  getBucketsById,
@@ -4212,6 +4320,7 @@ export {
4212
4320
  getWorkspacesByWorkspaceIdExtractionExportsById,
4213
4321
  getWorkspacesByWorkspaceIdTrainingAnalytics,
4214
4322
  getWorkspacesMine,
4323
+ getWorkspacesShared,
4215
4324
  handleApiError,
4216
4325
  isRetryableError,
4217
4326
  paginateAll,
@@ -4273,13 +4382,16 @@ export {
4273
4382
  postAgents,
4274
4383
  postAgentsByIdClone,
4275
4384
  postAgentsByIdDiscoverSchema,
4385
+ postAgentsByIdExport,
4276
4386
  postAgentsByIdPublishVersion,
4277
4387
  postAgentsByIdSchemaVersions,
4278
4388
  postAgentsByIdSchemaVersionsByVersionIdActivate,
4389
+ postAgentsByIdStats,
4279
4390
  postAgentsByIdTeach,
4280
4391
  postAgentsByIdTest,
4281
4392
  postAgentsByIdValidate,
4282
4393
  postAgentsCloneForWorkspace,
4394
+ postAgentsImport,
4283
4395
  postAgentsPredict,
4284
4396
  postAiChunksSearch,
4285
4397
  postAiConversations,
@@ -4339,8 +4451,13 @@ export {
4339
4451
  postUsersAuthResendConfirmation,
4340
4452
  postUsersRegisterIsv,
4341
4453
  postWebhookConfigs,
4454
+ postWebhookConfigsBulkDisable,
4455
+ postWebhookConfigsBulkEnable,
4342
4456
  postWebhookConfigsByIdTest,
4457
+ postWebhookConfigsStats,
4458
+ postWebhookDeliveriesBulkRetry,
4343
4459
  postWebhookDeliveriesByIdRetry,
4460
+ postWebhookDeliveriesStats,
4344
4461
  postWorkspaceMemberships,
4345
4462
  postWorkspaces,
4346
4463
  postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.7.95",
3
+ "version": "0.8.1",
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",
@@ -43,15 +43,6 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "scripts": {
47
- "generate": "openapi-ts",
48
- "typecheck": "tsc --noEmit",
49
- "build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
50
- "test": "vitest run",
51
- "test:watch": "vitest",
52
- "test:ui": "vitest --ui",
53
- "test:coverage": "vitest run --coverage"
54
- },
55
46
  "dependencies": {
56
47
  "eventsource-parser": "^3.0.6",
57
48
  "zod": "^3.25.76"
@@ -63,5 +54,14 @@
63
54
  "tsup": "^8.5.1",
64
55
  "typescript": "^5.9.3",
65
56
  "vitest": "^4.0.15"
57
+ },
58
+ "scripts": {
59
+ "generate": "openapi-ts",
60
+ "typecheck": "tsc --noEmit",
61
+ "build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
62
+ "test": "vitest run",
63
+ "test:watch": "vitest",
64
+ "test:ui": "vitest --ui",
65
+ "test:coverage": "vitest run --coverage"
66
66
  }
67
- }
67
+ }