@gpt-core/client 0.8.0 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +625 -4
- package/dist/index.d.ts +625 -4
- package/dist/index.js +90 -0
- package/dist/index.mjs +81 -0
- package/package.json +11 -11
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,
|
|
@@ -251,13 +252,16 @@ __export(index_exports, {
|
|
|
251
252
|
postAgents: () => postAgents,
|
|
252
253
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
253
254
|
postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
|
|
255
|
+
postAgentsByIdExport: () => postAgentsByIdExport,
|
|
254
256
|
postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
|
|
255
257
|
postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
|
|
256
258
|
postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
|
|
259
|
+
postAgentsByIdStats: () => postAgentsByIdStats,
|
|
257
260
|
postAgentsByIdTeach: () => postAgentsByIdTeach,
|
|
258
261
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
259
262
|
postAgentsByIdValidate: () => postAgentsByIdValidate,
|
|
260
263
|
postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
|
|
264
|
+
postAgentsImport: () => postAgentsImport,
|
|
261
265
|
postAgentsPredict: () => postAgentsPredict,
|
|
262
266
|
postAiChunksSearch: () => postAiChunksSearch,
|
|
263
267
|
postAiConversations: () => postAiConversations,
|
|
@@ -317,8 +321,13 @@ __export(index_exports, {
|
|
|
317
321
|
postUsersAuthResendConfirmation: () => postUsersAuthResendConfirmation,
|
|
318
322
|
postUsersRegisterIsv: () => postUsersRegisterIsv,
|
|
319
323
|
postWebhookConfigs: () => postWebhookConfigs,
|
|
324
|
+
postWebhookConfigsBulkDisable: () => postWebhookConfigsBulkDisable,
|
|
325
|
+
postWebhookConfigsBulkEnable: () => postWebhookConfigsBulkEnable,
|
|
320
326
|
postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
|
|
327
|
+
postWebhookConfigsStats: () => postWebhookConfigsStats,
|
|
328
|
+
postWebhookDeliveriesBulkRetry: () => postWebhookDeliveriesBulkRetry,
|
|
321
329
|
postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
|
|
330
|
+
postWebhookDeliveriesStats: () => postWebhookDeliveriesStats,
|
|
322
331
|
postWorkspaceMemberships: () => postWorkspaceMemberships,
|
|
323
332
|
postWorkspaces: () => postWorkspaces,
|
|
324
333
|
postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
|
|
@@ -379,6 +388,7 @@ __export(sdk_gen_exports, {
|
|
|
379
388
|
getApplicationsByApplicationIdEmailTemplatesBySlug: () => getApplicationsByApplicationIdEmailTemplatesBySlug,
|
|
380
389
|
getApplicationsById: () => getApplicationsById,
|
|
381
390
|
getApplicationsBySlugBySlug: () => getApplicationsBySlugBySlug,
|
|
391
|
+
getApplicationsCurrent: () => getApplicationsCurrent,
|
|
382
392
|
getAuditLogs: () => getAuditLogs,
|
|
383
393
|
getBuckets: () => getBuckets,
|
|
384
394
|
getBucketsById: () => getBucketsById,
|
|
@@ -529,13 +539,16 @@ __export(sdk_gen_exports, {
|
|
|
529
539
|
postAgents: () => postAgents,
|
|
530
540
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
531
541
|
postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
|
|
542
|
+
postAgentsByIdExport: () => postAgentsByIdExport,
|
|
532
543
|
postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
|
|
533
544
|
postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
|
|
534
545
|
postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
|
|
546
|
+
postAgentsByIdStats: () => postAgentsByIdStats,
|
|
535
547
|
postAgentsByIdTeach: () => postAgentsByIdTeach,
|
|
536
548
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
537
549
|
postAgentsByIdValidate: () => postAgentsByIdValidate,
|
|
538
550
|
postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
|
|
551
|
+
postAgentsImport: () => postAgentsImport,
|
|
539
552
|
postAgentsPredict: () => postAgentsPredict,
|
|
540
553
|
postAiChunksSearch: () => postAiChunksSearch,
|
|
541
554
|
postAiConversations: () => postAiConversations,
|
|
@@ -595,8 +608,13 @@ __export(sdk_gen_exports, {
|
|
|
595
608
|
postUsersAuthResendConfirmation: () => postUsersAuthResendConfirmation,
|
|
596
609
|
postUsersRegisterIsv: () => postUsersRegisterIsv,
|
|
597
610
|
postWebhookConfigs: () => postWebhookConfigs,
|
|
611
|
+
postWebhookConfigsBulkDisable: () => postWebhookConfigsBulkDisable,
|
|
612
|
+
postWebhookConfigsBulkEnable: () => postWebhookConfigsBulkEnable,
|
|
598
613
|
postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
|
|
614
|
+
postWebhookConfigsStats: () => postWebhookConfigsStats,
|
|
615
|
+
postWebhookDeliveriesBulkRetry: () => postWebhookDeliveriesBulkRetry,
|
|
599
616
|
postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
|
|
617
|
+
postWebhookDeliveriesStats: () => postWebhookDeliveriesStats,
|
|
600
618
|
postWorkspaceMemberships: () => postWorkspaceMemberships,
|
|
601
619
|
postWorkspaces: () => postWorkspaces,
|
|
602
620
|
postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
|
|
@@ -1511,6 +1529,17 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
|
|
|
1511
1529
|
...options.headers
|
|
1512
1530
|
}
|
|
1513
1531
|
});
|
|
1532
|
+
var postWebhookConfigsStats = (options) => (options.client ?? client).post({
|
|
1533
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1534
|
+
url: "/webhook_configs/stats",
|
|
1535
|
+
...options
|
|
1536
|
+
});
|
|
1537
|
+
var getApplicationsCurrent = (options) => (options.client ?? client).get({
|
|
1538
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1539
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1540
|
+
url: "/applications/current",
|
|
1541
|
+
...options
|
|
1542
|
+
});
|
|
1514
1543
|
var getWorkspaces = (options) => (options.client ?? client).get({
|
|
1515
1544
|
querySerializer: {
|
|
1516
1545
|
parameters: {
|
|
@@ -1532,6 +1561,11 @@ var postWorkspaces = (options) => (options.client ?? client).post({
|
|
|
1532
1561
|
...options.headers
|
|
1533
1562
|
}
|
|
1534
1563
|
});
|
|
1564
|
+
var postAgentsByIdStats = (options) => (options.client ?? client).post({
|
|
1565
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1566
|
+
url: "/agents/{id}/stats",
|
|
1567
|
+
...options
|
|
1568
|
+
});
|
|
1535
1569
|
var getDocumentsStats = (options) => (options.client ?? client).get({
|
|
1536
1570
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1537
1571
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1585,6 +1619,15 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
|
|
|
1585
1619
|
url: "/search/indexes",
|
|
1586
1620
|
...options
|
|
1587
1621
|
});
|
|
1622
|
+
var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
|
|
1623
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1624
|
+
url: "/webhook_configs/bulk-disable",
|
|
1625
|
+
...options,
|
|
1626
|
+
headers: {
|
|
1627
|
+
"Content-Type": "application/vnd.api+json",
|
|
1628
|
+
...options.headers
|
|
1629
|
+
}
|
|
1630
|
+
});
|
|
1588
1631
|
var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
|
|
1589
1632
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1590
1633
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1637,6 +1680,16 @@ var postPayments = (options) => (options.client ?? client).post({
|
|
|
1637
1680
|
...options.headers
|
|
1638
1681
|
}
|
|
1639
1682
|
});
|
|
1683
|
+
var postAgentsImport = (options) => (options.client ?? client).post({
|
|
1684
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1685
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1686
|
+
url: "/agents/import",
|
|
1687
|
+
...options,
|
|
1688
|
+
headers: {
|
|
1689
|
+
"Content-Type": "application/vnd.api+json",
|
|
1690
|
+
...options.headers
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1640
1693
|
var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1641
1694
|
querySerializer: {
|
|
1642
1695
|
parameters: {
|
|
@@ -1762,6 +1815,15 @@ var postTokens = (options) => (options.client ?? client).post({
|
|
|
1762
1815
|
...options.headers
|
|
1763
1816
|
}
|
|
1764
1817
|
});
|
|
1818
|
+
var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
|
|
1819
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1820
|
+
url: "/webhook_configs/bulk-enable",
|
|
1821
|
+
...options,
|
|
1822
|
+
headers: {
|
|
1823
|
+
"Content-Type": "application/vnd.api+json",
|
|
1824
|
+
...options.headers
|
|
1825
|
+
}
|
|
1826
|
+
});
|
|
1765
1827
|
var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
|
|
1766
1828
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1767
1829
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1794,6 +1856,15 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
|
|
|
1794
1856
|
...options.headers
|
|
1795
1857
|
}
|
|
1796
1858
|
});
|
|
1859
|
+
var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
|
|
1860
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1861
|
+
url: "/webhook_deliveries/bulk-retry",
|
|
1862
|
+
...options,
|
|
1863
|
+
headers: {
|
|
1864
|
+
"Content-Type": "application/vnd.api+json",
|
|
1865
|
+
...options.headers
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1797
1868
|
var deleteSearchSavedById = (options) => (options.client ?? client).delete({
|
|
1798
1869
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1799
1870
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2080,6 +2151,11 @@ var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
|
2080
2151
|
url: "/extraction/results/{id}",
|
|
2081
2152
|
...options
|
|
2082
2153
|
});
|
|
2154
|
+
var postWebhookDeliveriesStats = (options) => (options.client ?? client).post({
|
|
2155
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2156
|
+
url: "/webhook_deliveries/stats",
|
|
2157
|
+
...options
|
|
2158
|
+
});
|
|
2083
2159
|
var postAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
2084
2160
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2085
2161
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3732,6 +3808,11 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
|
|
|
3732
3808
|
...options.headers
|
|
3733
3809
|
}
|
|
3734
3810
|
});
|
|
3811
|
+
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
3812
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3813
|
+
url: "/agents/{id}/export",
|
|
3814
|
+
...options
|
|
3815
|
+
});
|
|
3735
3816
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
3736
3817
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3737
3818
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4460,6 +4541,7 @@ var index_default = gptCore;
|
|
|
4460
4541
|
getApplicationsByApplicationIdEmailTemplatesBySlug,
|
|
4461
4542
|
getApplicationsById,
|
|
4462
4543
|
getApplicationsBySlugBySlug,
|
|
4544
|
+
getApplicationsCurrent,
|
|
4463
4545
|
getAuditLogs,
|
|
4464
4546
|
getBuckets,
|
|
4465
4547
|
getBucketsById,
|
|
@@ -4614,13 +4696,16 @@ var index_default = gptCore;
|
|
|
4614
4696
|
postAgents,
|
|
4615
4697
|
postAgentsByIdClone,
|
|
4616
4698
|
postAgentsByIdDiscoverSchema,
|
|
4699
|
+
postAgentsByIdExport,
|
|
4617
4700
|
postAgentsByIdPublishVersion,
|
|
4618
4701
|
postAgentsByIdSchemaVersions,
|
|
4619
4702
|
postAgentsByIdSchemaVersionsByVersionIdActivate,
|
|
4703
|
+
postAgentsByIdStats,
|
|
4620
4704
|
postAgentsByIdTeach,
|
|
4621
4705
|
postAgentsByIdTest,
|
|
4622
4706
|
postAgentsByIdValidate,
|
|
4623
4707
|
postAgentsCloneForWorkspace,
|
|
4708
|
+
postAgentsImport,
|
|
4624
4709
|
postAgentsPredict,
|
|
4625
4710
|
postAiChunksSearch,
|
|
4626
4711
|
postAiConversations,
|
|
@@ -4680,8 +4765,13 @@ var index_default = gptCore;
|
|
|
4680
4765
|
postUsersAuthResendConfirmation,
|
|
4681
4766
|
postUsersRegisterIsv,
|
|
4682
4767
|
postWebhookConfigs,
|
|
4768
|
+
postWebhookConfigsBulkDisable,
|
|
4769
|
+
postWebhookConfigsBulkEnable,
|
|
4683
4770
|
postWebhookConfigsByIdTest,
|
|
4771
|
+
postWebhookConfigsStats,
|
|
4772
|
+
postWebhookDeliveriesBulkRetry,
|
|
4684
4773
|
postWebhookDeliveriesByIdRetry,
|
|
4774
|
+
postWebhookDeliveriesStats,
|
|
4685
4775
|
postWorkspaceMemberships,
|
|
4686
4776
|
postWorkspaces,
|
|
4687
4777
|
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,
|
|
@@ -201,13 +202,16 @@ __export(sdk_gen_exports, {
|
|
|
201
202
|
postAgents: () => postAgents,
|
|
202
203
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
203
204
|
postAgentsByIdDiscoverSchema: () => postAgentsByIdDiscoverSchema,
|
|
205
|
+
postAgentsByIdExport: () => postAgentsByIdExport,
|
|
204
206
|
postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
|
|
205
207
|
postAgentsByIdSchemaVersions: () => postAgentsByIdSchemaVersions,
|
|
206
208
|
postAgentsByIdSchemaVersionsByVersionIdActivate: () => postAgentsByIdSchemaVersionsByVersionIdActivate,
|
|
209
|
+
postAgentsByIdStats: () => postAgentsByIdStats,
|
|
207
210
|
postAgentsByIdTeach: () => postAgentsByIdTeach,
|
|
208
211
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
209
212
|
postAgentsByIdValidate: () => postAgentsByIdValidate,
|
|
210
213
|
postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
|
|
214
|
+
postAgentsImport: () => postAgentsImport,
|
|
211
215
|
postAgentsPredict: () => postAgentsPredict,
|
|
212
216
|
postAiChunksSearch: () => postAiChunksSearch,
|
|
213
217
|
postAiConversations: () => postAiConversations,
|
|
@@ -267,8 +271,13 @@ __export(sdk_gen_exports, {
|
|
|
267
271
|
postUsersAuthResendConfirmation: () => postUsersAuthResendConfirmation,
|
|
268
272
|
postUsersRegisterIsv: () => postUsersRegisterIsv,
|
|
269
273
|
postWebhookConfigs: () => postWebhookConfigs,
|
|
274
|
+
postWebhookConfigsBulkDisable: () => postWebhookConfigsBulkDisable,
|
|
275
|
+
postWebhookConfigsBulkEnable: () => postWebhookConfigsBulkEnable,
|
|
270
276
|
postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
|
|
277
|
+
postWebhookConfigsStats: () => postWebhookConfigsStats,
|
|
278
|
+
postWebhookDeliveriesBulkRetry: () => postWebhookDeliveriesBulkRetry,
|
|
271
279
|
postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
|
|
280
|
+
postWebhookDeliveriesStats: () => postWebhookDeliveriesStats,
|
|
272
281
|
postWorkspaceMemberships: () => postWorkspaceMemberships,
|
|
273
282
|
postWorkspaces: () => postWorkspaces,
|
|
274
283
|
postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
|
|
@@ -1183,6 +1192,17 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
|
|
|
1183
1192
|
...options.headers
|
|
1184
1193
|
}
|
|
1185
1194
|
});
|
|
1195
|
+
var postWebhookConfigsStats = (options) => (options.client ?? client).post({
|
|
1196
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1197
|
+
url: "/webhook_configs/stats",
|
|
1198
|
+
...options
|
|
1199
|
+
});
|
|
1200
|
+
var getApplicationsCurrent = (options) => (options.client ?? client).get({
|
|
1201
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1202
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1203
|
+
url: "/applications/current",
|
|
1204
|
+
...options
|
|
1205
|
+
});
|
|
1186
1206
|
var getWorkspaces = (options) => (options.client ?? client).get({
|
|
1187
1207
|
querySerializer: {
|
|
1188
1208
|
parameters: {
|
|
@@ -1204,6 +1224,11 @@ var postWorkspaces = (options) => (options.client ?? client).post({
|
|
|
1204
1224
|
...options.headers
|
|
1205
1225
|
}
|
|
1206
1226
|
});
|
|
1227
|
+
var postAgentsByIdStats = (options) => (options.client ?? client).post({
|
|
1228
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1229
|
+
url: "/agents/{id}/stats",
|
|
1230
|
+
...options
|
|
1231
|
+
});
|
|
1207
1232
|
var getDocumentsStats = (options) => (options.client ?? client).get({
|
|
1208
1233
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1209
1234
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1257,6 +1282,15 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
|
|
|
1257
1282
|
url: "/search/indexes",
|
|
1258
1283
|
...options
|
|
1259
1284
|
});
|
|
1285
|
+
var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
|
|
1286
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1287
|
+
url: "/webhook_configs/bulk-disable",
|
|
1288
|
+
...options,
|
|
1289
|
+
headers: {
|
|
1290
|
+
"Content-Type": "application/vnd.api+json",
|
|
1291
|
+
...options.headers
|
|
1292
|
+
}
|
|
1293
|
+
});
|
|
1260
1294
|
var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
|
|
1261
1295
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1262
1296
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1309,6 +1343,16 @@ var postPayments = (options) => (options.client ?? client).post({
|
|
|
1309
1343
|
...options.headers
|
|
1310
1344
|
}
|
|
1311
1345
|
});
|
|
1346
|
+
var postAgentsImport = (options) => (options.client ?? client).post({
|
|
1347
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1348
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1349
|
+
url: "/agents/import",
|
|
1350
|
+
...options,
|
|
1351
|
+
headers: {
|
|
1352
|
+
"Content-Type": "application/vnd.api+json",
|
|
1353
|
+
...options.headers
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1312
1356
|
var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1313
1357
|
querySerializer: {
|
|
1314
1358
|
parameters: {
|
|
@@ -1434,6 +1478,15 @@ var postTokens = (options) => (options.client ?? client).post({
|
|
|
1434
1478
|
...options.headers
|
|
1435
1479
|
}
|
|
1436
1480
|
});
|
|
1481
|
+
var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
|
|
1482
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1483
|
+
url: "/webhook_configs/bulk-enable",
|
|
1484
|
+
...options,
|
|
1485
|
+
headers: {
|
|
1486
|
+
"Content-Type": "application/vnd.api+json",
|
|
1487
|
+
...options.headers
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1437
1490
|
var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
|
|
1438
1491
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1439
1492
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1466,6 +1519,15 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
|
|
|
1466
1519
|
...options.headers
|
|
1467
1520
|
}
|
|
1468
1521
|
});
|
|
1522
|
+
var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
|
|
1523
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1524
|
+
url: "/webhook_deliveries/bulk-retry",
|
|
1525
|
+
...options,
|
|
1526
|
+
headers: {
|
|
1527
|
+
"Content-Type": "application/vnd.api+json",
|
|
1528
|
+
...options.headers
|
|
1529
|
+
}
|
|
1530
|
+
});
|
|
1469
1531
|
var deleteSearchSavedById = (options) => (options.client ?? client).delete({
|
|
1470
1532
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1471
1533
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1752,6 +1814,11 @@ var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
|
1752
1814
|
url: "/extraction/results/{id}",
|
|
1753
1815
|
...options
|
|
1754
1816
|
});
|
|
1817
|
+
var postWebhookDeliveriesStats = (options) => (options.client ?? client).post({
|
|
1818
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1819
|
+
url: "/webhook_deliveries/stats",
|
|
1820
|
+
...options
|
|
1821
|
+
});
|
|
1755
1822
|
var postAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
1756
1823
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1757
1824
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3404,6 +3471,11 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
|
|
|
3404
3471
|
...options.headers
|
|
3405
3472
|
}
|
|
3406
3473
|
});
|
|
3474
|
+
var postAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
3475
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3476
|
+
url: "/agents/{id}/export",
|
|
3477
|
+
...options
|
|
3478
|
+
});
|
|
3407
3479
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
3408
3480
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3409
3481
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -4132,6 +4204,7 @@ export {
|
|
|
4132
4204
|
getApplicationsByApplicationIdEmailTemplatesBySlug,
|
|
4133
4205
|
getApplicationsById,
|
|
4134
4206
|
getApplicationsBySlugBySlug,
|
|
4207
|
+
getApplicationsCurrent,
|
|
4135
4208
|
getAuditLogs,
|
|
4136
4209
|
getBuckets,
|
|
4137
4210
|
getBucketsById,
|
|
@@ -4286,13 +4359,16 @@ export {
|
|
|
4286
4359
|
postAgents,
|
|
4287
4360
|
postAgentsByIdClone,
|
|
4288
4361
|
postAgentsByIdDiscoverSchema,
|
|
4362
|
+
postAgentsByIdExport,
|
|
4289
4363
|
postAgentsByIdPublishVersion,
|
|
4290
4364
|
postAgentsByIdSchemaVersions,
|
|
4291
4365
|
postAgentsByIdSchemaVersionsByVersionIdActivate,
|
|
4366
|
+
postAgentsByIdStats,
|
|
4292
4367
|
postAgentsByIdTeach,
|
|
4293
4368
|
postAgentsByIdTest,
|
|
4294
4369
|
postAgentsByIdValidate,
|
|
4295
4370
|
postAgentsCloneForWorkspace,
|
|
4371
|
+
postAgentsImport,
|
|
4296
4372
|
postAgentsPredict,
|
|
4297
4373
|
postAiChunksSearch,
|
|
4298
4374
|
postAiConversations,
|
|
@@ -4352,8 +4428,13 @@ export {
|
|
|
4352
4428
|
postUsersAuthResendConfirmation,
|
|
4353
4429
|
postUsersRegisterIsv,
|
|
4354
4430
|
postWebhookConfigs,
|
|
4431
|
+
postWebhookConfigsBulkDisable,
|
|
4432
|
+
postWebhookConfigsBulkEnable,
|
|
4355
4433
|
postWebhookConfigsByIdTest,
|
|
4434
|
+
postWebhookConfigsStats,
|
|
4435
|
+
postWebhookDeliveriesBulkRetry,
|
|
4356
4436
|
postWebhookDeliveriesByIdRetry,
|
|
4437
|
+
postWebhookDeliveriesStats,
|
|
4357
4438
|
postWorkspaceMemberships,
|
|
4358
4439
|
postWorkspaces,
|
|
4359
4440
|
postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/client",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.11",
|
|
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,6 +43,15 @@
|
|
|
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
|
+
},
|
|
46
55
|
"dependencies": {
|
|
47
56
|
"eventsource-parser": "^3.0.6",
|
|
48
57
|
"zod": "^3.25.76"
|
|
@@ -54,14 +63,5 @@
|
|
|
54
63
|
"tsup": "^8.5.1",
|
|
55
64
|
"typescript": "^5.9.3",
|
|
56
65
|
"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
|
+
}
|