@gpt-core/client 0.5.92 → 0.5.94

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
@@ -58,6 +58,7 @@ __export(index_exports, {
58
58
  deleteBucketsById: () => deleteBucketsById,
59
59
  deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
60
60
  deleteExtractionSchemaFieldsById: () => deleteExtractionSchemaFieldsById,
61
+ deleteFieldTemplatesById: () => deleteFieldTemplatesById,
61
62
  deleteMessagesById: () => deleteMessagesById,
62
63
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
63
64
  deleteObjectsById: () => deleteObjectsById,
@@ -70,6 +71,8 @@ __export(index_exports, {
70
71
  deleteWebhookConfigsById: () => deleteWebhookConfigsById,
71
72
  deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
72
73
  deleteWorkspacesById: () => deleteWorkspacesById,
74
+ getAgentVersions: () => getAgentVersions,
75
+ getAgentVersionsById: () => getAgentVersionsById,
73
76
  getAgents: () => getAgents,
74
77
  getAgentsById: () => getAgentsById,
75
78
  getAgentsByIdTrainingStats: () => getAgentsByIdTrainingStats,
@@ -100,6 +103,7 @@ __export(index_exports, {
100
103
  getExtractionDocuments: () => getExtractionDocuments,
101
104
  getExtractionDocumentsById: () => getExtractionDocumentsById,
102
105
  getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
106
+ getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
103
107
  getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
104
108
  getExtractionResultsById: () => getExtractionResultsById,
105
109
  getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
@@ -107,6 +111,8 @@ __export(index_exports, {
107
111
  getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
108
112
  getExtractionSchemasById: () => getExtractionSchemasById,
109
113
  getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
114
+ getFieldTemplates: () => getFieldTemplates,
115
+ getFieldTemplatesById: () => getFieldTemplatesById,
110
116
  getInvitations: () => getInvitations,
111
117
  getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
112
118
  getLlmAnalytics: () => getLlmAnalytics,
@@ -208,9 +214,11 @@ __export(index_exports, {
208
214
  patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
209
215
  patchWorkspacesById: () => patchWorkspacesById,
210
216
  patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
217
+ postAgentVersions: () => postAgentVersions,
211
218
  postAgents: () => postAgents,
212
219
  postAgentsByIdClone: () => postAgentsByIdClone,
213
220
  postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
221
+ postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
214
222
  postAgentsByIdTest: () => postAgentsByIdTest,
215
223
  postAgentsByIdValidate: () => postAgentsByIdValidate,
216
224
  postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
@@ -231,11 +239,11 @@ __export(index_exports, {
231
239
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
232
240
  postExtractionBatches: () => postExtractionBatches,
233
241
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
234
- postExtractionDocumentsByIdView: () => postExtractionDocumentsByIdView,
235
242
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
236
243
  postExtractionResults: () => postExtractionResults,
237
244
  postExtractionSchemaFields: () => postExtractionSchemaFields,
238
245
  postExtractionSchemas: () => postExtractionSchemas,
246
+ postFieldTemplates: () => postFieldTemplates,
239
247
  postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
240
248
  postInvitationsInvite: () => postInvitationsInvite,
241
249
  postLlmAnalytics: () => postLlmAnalytics,
@@ -1468,6 +1476,18 @@ var postSearchSaved = (options) => (options.client ?? client).post({
1468
1476
  ...options.headers
1469
1477
  }
1470
1478
  });
1479
+ var deleteFieldTemplatesById = (options) => (options.client ?? client).delete({
1480
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1481
+ security: [{ scheme: "bearer", type: "http" }],
1482
+ url: "/field_templates/{id}",
1483
+ ...options
1484
+ });
1485
+ var getFieldTemplatesById = (options) => (options.client ?? client).get({
1486
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1487
+ security: [{ scheme: "bearer", type: "http" }],
1488
+ url: "/field_templates/{id}",
1489
+ ...options
1490
+ });
1471
1491
  var getUserProfilesMe = (options) => (options.client ?? client).get({
1472
1492
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1473
1493
  security: [{ scheme: "bearer", type: "http" }],
@@ -1484,6 +1504,27 @@ var postInvitationsInvite = (options) => (options.client ?? client).post({
1484
1504
  ...options.headers
1485
1505
  }
1486
1506
  });
1507
+ var getAgentVersions = (options) => (options.client ?? client).get({
1508
+ querySerializer: {
1509
+ parameters: {
1510
+ filter: { object: { style: "form" } },
1511
+ fields: { object: { style: "form" } }
1512
+ }
1513
+ },
1514
+ security: [{ scheme: "bearer", type: "http" }],
1515
+ url: "/agent_versions",
1516
+ ...options
1517
+ });
1518
+ var postAgentVersions = (options) => (options.client ?? client).post({
1519
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1520
+ security: [{ scheme: "bearer", type: "http" }],
1521
+ url: "/agent_versions",
1522
+ ...options,
1523
+ headers: {
1524
+ "Content-Type": "application/vnd.api+json",
1525
+ ...options.headers
1526
+ }
1527
+ });
1487
1528
  var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
1488
1529
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1489
1530
  security: [{ scheme: "bearer", type: "http" }],
@@ -1532,6 +1573,12 @@ var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
1532
1573
  ...options.headers
1533
1574
  }
1534
1575
  });
1576
+ var getAgentVersionsById = (options) => (options.client ?? client).get({
1577
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1578
+ security: [{ scheme: "bearer", type: "http" }],
1579
+ url: "/agent_versions/{id}",
1580
+ ...options
1581
+ });
1535
1582
  var postAiChunksSearch = (options) => (options.client ?? client).post({
1536
1583
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1537
1584
  security: [{ scheme: "bearer", type: "http" }],
@@ -1987,15 +2034,11 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
1987
2034
  url: "/notification_logs/{id}",
1988
2035
  ...options
1989
2036
  });
1990
- var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
2037
+ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
1991
2038
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1992
2039
  security: [{ scheme: "bearer", type: "http" }],
1993
2040
  url: "/extraction/documents/{id}/view",
1994
- ...options,
1995
- headers: {
1996
- "Content-Type": "application/vnd.api+json",
1997
- ...options.headers
1998
- }
2041
+ ...options
1999
2042
  });
2000
2043
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
2001
2044
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -2730,6 +2773,27 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
2730
2773
  ...options.headers
2731
2774
  }
2732
2775
  });
2776
+ var getFieldTemplates = (options) => (options.client ?? client).get({
2777
+ querySerializer: {
2778
+ parameters: {
2779
+ filter: { object: { style: "form" } },
2780
+ fields: { object: { style: "form" } }
2781
+ }
2782
+ },
2783
+ security: [{ scheme: "bearer", type: "http" }],
2784
+ url: "/field_templates",
2785
+ ...options
2786
+ });
2787
+ var postFieldTemplates = (options) => (options.client ?? client).post({
2788
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2789
+ security: [{ scheme: "bearer", type: "http" }],
2790
+ url: "/field_templates",
2791
+ ...options,
2792
+ headers: {
2793
+ "Content-Type": "application/vnd.api+json",
2794
+ ...options.headers
2795
+ }
2796
+ });
2733
2797
  var getAiMessages = (options) => (options.client ?? client).get({
2734
2798
  querySerializer: {
2735
2799
  parameters: {
@@ -2890,6 +2954,16 @@ var postWebhookConfigs = (options) => (options.client ?? client).post({
2890
2954
  ...options.headers
2891
2955
  }
2892
2956
  });
2957
+ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post({
2958
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2959
+ security: [{ scheme: "bearer", type: "http" }],
2960
+ url: "/agents/{id}/publish_version",
2961
+ ...options,
2962
+ headers: {
2963
+ "Content-Type": "application/vnd.api+json",
2964
+ ...options.headers
2965
+ }
2966
+ });
2893
2967
  var postObjectsBulkDestroy = (options) => (options.client ?? client).post({
2894
2968
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2895
2969
  security: [{ scheme: "bearer", type: "http" }],
@@ -3494,6 +3568,7 @@ async function collectStreamedMessage(stream) {
3494
3568
  deleteBucketsById,
3495
3569
  deleteExtractionDocumentsById,
3496
3570
  deleteExtractionSchemaFieldsById,
3571
+ deleteFieldTemplatesById,
3497
3572
  deleteMessagesById,
3498
3573
  deleteNotificationPreferencesById,
3499
3574
  deleteObjectsById,
@@ -3506,6 +3581,8 @@ async function collectStreamedMessage(stream) {
3506
3581
  deleteWebhookConfigsById,
3507
3582
  deleteWorkspaceMembershipsByWorkspaceIdByUserId,
3508
3583
  deleteWorkspacesById,
3584
+ getAgentVersions,
3585
+ getAgentVersionsById,
3509
3586
  getAgents,
3510
3587
  getAgentsById,
3511
3588
  getAgentsByIdTrainingStats,
@@ -3536,6 +3613,7 @@ async function collectStreamedMessage(stream) {
3536
3613
  getExtractionDocuments,
3537
3614
  getExtractionDocumentsById,
3538
3615
  getExtractionDocumentsByIdStatus,
3616
+ getExtractionDocumentsByIdView,
3539
3617
  getExtractionDocumentsWorkspaceByWorkspaceId,
3540
3618
  getExtractionResultsById,
3541
3619
  getExtractionResultsDocumentByDocumentId,
@@ -3543,6 +3621,8 @@ async function collectStreamedMessage(stream) {
3543
3621
  getExtractionSchemaFieldsById,
3544
3622
  getExtractionSchemasById,
3545
3623
  getExtractionSchemasWorkspaceByWorkspaceId,
3624
+ getFieldTemplates,
3625
+ getFieldTemplatesById,
3546
3626
  getInvitations,
3547
3627
  getInvitationsConsumeByToken,
3548
3628
  getLlmAnalytics,
@@ -3644,9 +3724,11 @@ async function collectStreamedMessage(stream) {
3644
3724
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
3645
3725
  patchWorkspacesById,
3646
3726
  patchWorkspacesByIdAllocate,
3727
+ postAgentVersions,
3647
3728
  postAgents,
3648
3729
  postAgentsByIdClone,
3649
3730
  postAgentsByIdLearnFromDocument,
3731
+ postAgentsByIdPublishVersion,
3650
3732
  postAgentsByIdTest,
3651
3733
  postAgentsByIdValidate,
3652
3734
  postAgentsCloneForWorkspace,
@@ -3667,11 +3749,11 @@ async function collectStreamedMessage(stream) {
3667
3749
  postDocumentsPresignedUpload,
3668
3750
  postExtractionBatches,
3669
3751
  postExtractionDocumentsBeginUpload,
3670
- postExtractionDocumentsByIdView,
3671
3752
  postExtractionDocumentsUpload,
3672
3753
  postExtractionResults,
3673
3754
  postExtractionSchemaFields,
3674
3755
  postExtractionSchemas,
3756
+ postFieldTemplates,
3675
3757
  postInvitationsAcceptByToken,
3676
3758
  postInvitationsInvite,
3677
3759
  postLlmAnalytics,
package/dist/index.mjs CHANGED
@@ -1182,6 +1182,18 @@ var postSearchSaved = (options) => (options.client ?? client).post({
1182
1182
  ...options.headers
1183
1183
  }
1184
1184
  });
1185
+ var deleteFieldTemplatesById = (options) => (options.client ?? client).delete({
1186
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1187
+ security: [{ scheme: "bearer", type: "http" }],
1188
+ url: "/field_templates/{id}",
1189
+ ...options
1190
+ });
1191
+ var getFieldTemplatesById = (options) => (options.client ?? client).get({
1192
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1193
+ security: [{ scheme: "bearer", type: "http" }],
1194
+ url: "/field_templates/{id}",
1195
+ ...options
1196
+ });
1185
1197
  var getUserProfilesMe = (options) => (options.client ?? client).get({
1186
1198
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1187
1199
  security: [{ scheme: "bearer", type: "http" }],
@@ -1198,6 +1210,27 @@ var postInvitationsInvite = (options) => (options.client ?? client).post({
1198
1210
  ...options.headers
1199
1211
  }
1200
1212
  });
1213
+ var getAgentVersions = (options) => (options.client ?? client).get({
1214
+ querySerializer: {
1215
+ parameters: {
1216
+ filter: { object: { style: "form" } },
1217
+ fields: { object: { style: "form" } }
1218
+ }
1219
+ },
1220
+ security: [{ scheme: "bearer", type: "http" }],
1221
+ url: "/agent_versions",
1222
+ ...options
1223
+ });
1224
+ var postAgentVersions = (options) => (options.client ?? client).post({
1225
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1226
+ security: [{ scheme: "bearer", type: "http" }],
1227
+ url: "/agent_versions",
1228
+ ...options,
1229
+ headers: {
1230
+ "Content-Type": "application/vnd.api+json",
1231
+ ...options.headers
1232
+ }
1233
+ });
1201
1234
  var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
1202
1235
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1203
1236
  security: [{ scheme: "bearer", type: "http" }],
@@ -1246,6 +1279,12 @@ var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
1246
1279
  ...options.headers
1247
1280
  }
1248
1281
  });
1282
+ var getAgentVersionsById = (options) => (options.client ?? client).get({
1283
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1284
+ security: [{ scheme: "bearer", type: "http" }],
1285
+ url: "/agent_versions/{id}",
1286
+ ...options
1287
+ });
1249
1288
  var postAiChunksSearch = (options) => (options.client ?? client).post({
1250
1289
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1251
1290
  security: [{ scheme: "bearer", type: "http" }],
@@ -1701,15 +1740,11 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
1701
1740
  url: "/notification_logs/{id}",
1702
1741
  ...options
1703
1742
  });
1704
- var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
1743
+ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
1705
1744
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1706
1745
  security: [{ scheme: "bearer", type: "http" }],
1707
1746
  url: "/extraction/documents/{id}/view",
1708
- ...options,
1709
- headers: {
1710
- "Content-Type": "application/vnd.api+json",
1711
- ...options.headers
1712
- }
1747
+ ...options
1713
1748
  });
1714
1749
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
1715
1750
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -2444,6 +2479,27 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
2444
2479
  ...options.headers
2445
2480
  }
2446
2481
  });
2482
+ var getFieldTemplates = (options) => (options.client ?? client).get({
2483
+ querySerializer: {
2484
+ parameters: {
2485
+ filter: { object: { style: "form" } },
2486
+ fields: { object: { style: "form" } }
2487
+ }
2488
+ },
2489
+ security: [{ scheme: "bearer", type: "http" }],
2490
+ url: "/field_templates",
2491
+ ...options
2492
+ });
2493
+ var postFieldTemplates = (options) => (options.client ?? client).post({
2494
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2495
+ security: [{ scheme: "bearer", type: "http" }],
2496
+ url: "/field_templates",
2497
+ ...options,
2498
+ headers: {
2499
+ "Content-Type": "application/vnd.api+json",
2500
+ ...options.headers
2501
+ }
2502
+ });
2447
2503
  var getAiMessages = (options) => (options.client ?? client).get({
2448
2504
  querySerializer: {
2449
2505
  parameters: {
@@ -2604,6 +2660,16 @@ var postWebhookConfigs = (options) => (options.client ?? client).post({
2604
2660
  ...options.headers
2605
2661
  }
2606
2662
  });
2663
+ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post({
2664
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2665
+ security: [{ scheme: "bearer", type: "http" }],
2666
+ url: "/agents/{id}/publish_version",
2667
+ ...options,
2668
+ headers: {
2669
+ "Content-Type": "application/vnd.api+json",
2670
+ ...options.headers
2671
+ }
2672
+ });
2607
2673
  var postObjectsBulkDestroy = (options) => (options.client ?? client).post({
2608
2674
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2609
2675
  security: [{ scheme: "bearer", type: "http" }],
@@ -3207,6 +3273,7 @@ export {
3207
3273
  deleteBucketsById,
3208
3274
  deleteExtractionDocumentsById,
3209
3275
  deleteExtractionSchemaFieldsById,
3276
+ deleteFieldTemplatesById,
3210
3277
  deleteMessagesById,
3211
3278
  deleteNotificationPreferencesById,
3212
3279
  deleteObjectsById,
@@ -3219,6 +3286,8 @@ export {
3219
3286
  deleteWebhookConfigsById,
3220
3287
  deleteWorkspaceMembershipsByWorkspaceIdByUserId,
3221
3288
  deleteWorkspacesById,
3289
+ getAgentVersions,
3290
+ getAgentVersionsById,
3222
3291
  getAgents,
3223
3292
  getAgentsById,
3224
3293
  getAgentsByIdTrainingStats,
@@ -3249,6 +3318,7 @@ export {
3249
3318
  getExtractionDocuments,
3250
3319
  getExtractionDocumentsById,
3251
3320
  getExtractionDocumentsByIdStatus,
3321
+ getExtractionDocumentsByIdView,
3252
3322
  getExtractionDocumentsWorkspaceByWorkspaceId,
3253
3323
  getExtractionResultsById,
3254
3324
  getExtractionResultsDocumentByDocumentId,
@@ -3256,6 +3326,8 @@ export {
3256
3326
  getExtractionSchemaFieldsById,
3257
3327
  getExtractionSchemasById,
3258
3328
  getExtractionSchemasWorkspaceByWorkspaceId,
3329
+ getFieldTemplates,
3330
+ getFieldTemplatesById,
3259
3331
  getInvitations,
3260
3332
  getInvitationsConsumeByToken,
3261
3333
  getLlmAnalytics,
@@ -3357,9 +3429,11 @@ export {
3357
3429
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
3358
3430
  patchWorkspacesById,
3359
3431
  patchWorkspacesByIdAllocate,
3432
+ postAgentVersions,
3360
3433
  postAgents,
3361
3434
  postAgentsByIdClone,
3362
3435
  postAgentsByIdLearnFromDocument,
3436
+ postAgentsByIdPublishVersion,
3363
3437
  postAgentsByIdTest,
3364
3438
  postAgentsByIdValidate,
3365
3439
  postAgentsCloneForWorkspace,
@@ -3380,11 +3454,11 @@ export {
3380
3454
  postDocumentsPresignedUpload,
3381
3455
  postExtractionBatches,
3382
3456
  postExtractionDocumentsBeginUpload,
3383
- postExtractionDocumentsByIdView,
3384
3457
  postExtractionDocumentsUpload,
3385
3458
  postExtractionResults,
3386
3459
  postExtractionSchemaFields,
3387
3460
  postExtractionSchemas,
3461
+ postFieldTemplates,
3388
3462
  postInvitationsAcceptByToken,
3389
3463
  postInvitationsInvite,
3390
3464
  postLlmAnalytics,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.5.92",
3
+ "version": "0.5.94",
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",