@gpt-core/client 0.5.93 → 0.5.95

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,
@@ -108,6 +111,8 @@ __export(index_exports, {
108
111
  getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
109
112
  getExtractionSchemasById: () => getExtractionSchemasById,
110
113
  getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
114
+ getFieldTemplates: () => getFieldTemplates,
115
+ getFieldTemplatesById: () => getFieldTemplatesById,
111
116
  getInvitations: () => getInvitations,
112
117
  getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
113
118
  getLlmAnalytics: () => getLlmAnalytics,
@@ -209,9 +214,11 @@ __export(index_exports, {
209
214
  patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
210
215
  patchWorkspacesById: () => patchWorkspacesById,
211
216
  patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
217
+ postAgentVersions: () => postAgentVersions,
212
218
  postAgents: () => postAgents,
213
219
  postAgentsByIdClone: () => postAgentsByIdClone,
214
220
  postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
221
+ postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
215
222
  postAgentsByIdTest: () => postAgentsByIdTest,
216
223
  postAgentsByIdValidate: () => postAgentsByIdValidate,
217
224
  postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
@@ -236,6 +243,7 @@ __export(index_exports, {
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,
@@ -270,6 +278,7 @@ __export(index_exports, {
270
278
  postUsersAuthRegister: () => postUsersAuthRegister,
271
279
  postUsersAuthRegisterWithOidc: () => postUsersAuthRegisterWithOidc,
272
280
  postUsersRegisterIsv: () => postUsersRegisterIsv,
281
+ postWalletCredits: () => postWalletCredits,
273
282
  postWebhookConfigs: () => postWebhookConfigs,
274
283
  postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
275
284
  postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
@@ -1176,6 +1185,16 @@ var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).ge
1176
1185
  url: "/ai/chunks/document/{document_id}",
1177
1186
  ...options
1178
1187
  });
1188
+ var postWalletCredits = (options) => (options.client ?? client).post({
1189
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1190
+ security: [{ scheme: "bearer", type: "http" }],
1191
+ url: "/wallet/credits",
1192
+ ...options,
1193
+ headers: {
1194
+ "Content-Type": "application/vnd.api+json",
1195
+ ...options.headers
1196
+ }
1197
+ });
1179
1198
  var getWorkspaces = (options) => (options.client ?? client).get({
1180
1199
  querySerializer: {
1181
1200
  parameters: {
@@ -1468,6 +1487,18 @@ var postSearchSaved = (options) => (options.client ?? client).post({
1468
1487
  ...options.headers
1469
1488
  }
1470
1489
  });
1490
+ var deleteFieldTemplatesById = (options) => (options.client ?? client).delete({
1491
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1492
+ security: [{ scheme: "bearer", type: "http" }],
1493
+ url: "/field_templates/{id}",
1494
+ ...options
1495
+ });
1496
+ var getFieldTemplatesById = (options) => (options.client ?? client).get({
1497
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1498
+ security: [{ scheme: "bearer", type: "http" }],
1499
+ url: "/field_templates/{id}",
1500
+ ...options
1501
+ });
1471
1502
  var getUserProfilesMe = (options) => (options.client ?? client).get({
1472
1503
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1473
1504
  security: [{ scheme: "bearer", type: "http" }],
@@ -1484,6 +1515,27 @@ var postInvitationsInvite = (options) => (options.client ?? client).post({
1484
1515
  ...options.headers
1485
1516
  }
1486
1517
  });
1518
+ var getAgentVersions = (options) => (options.client ?? client).get({
1519
+ querySerializer: {
1520
+ parameters: {
1521
+ filter: { object: { style: "form" } },
1522
+ fields: { object: { style: "form" } }
1523
+ }
1524
+ },
1525
+ security: [{ scheme: "bearer", type: "http" }],
1526
+ url: "/agent_versions",
1527
+ ...options
1528
+ });
1529
+ var postAgentVersions = (options) => (options.client ?? client).post({
1530
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1531
+ security: [{ scheme: "bearer", type: "http" }],
1532
+ url: "/agent_versions",
1533
+ ...options,
1534
+ headers: {
1535
+ "Content-Type": "application/vnd.api+json",
1536
+ ...options.headers
1537
+ }
1538
+ });
1487
1539
  var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
1488
1540
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1489
1541
  security: [{ scheme: "bearer", type: "http" }],
@@ -1532,6 +1584,12 @@ var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
1532
1584
  ...options.headers
1533
1585
  }
1534
1586
  });
1587
+ var getAgentVersionsById = (options) => (options.client ?? client).get({
1588
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1589
+ security: [{ scheme: "bearer", type: "http" }],
1590
+ url: "/agent_versions/{id}",
1591
+ ...options
1592
+ });
1535
1593
  var postAiChunksSearch = (options) => (options.client ?? client).post({
1536
1594
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1537
1595
  security: [{ scheme: "bearer", type: "http" }],
@@ -2726,6 +2784,27 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
2726
2784
  ...options.headers
2727
2785
  }
2728
2786
  });
2787
+ var getFieldTemplates = (options) => (options.client ?? client).get({
2788
+ querySerializer: {
2789
+ parameters: {
2790
+ filter: { object: { style: "form" } },
2791
+ fields: { object: { style: "form" } }
2792
+ }
2793
+ },
2794
+ security: [{ scheme: "bearer", type: "http" }],
2795
+ url: "/field_templates",
2796
+ ...options
2797
+ });
2798
+ var postFieldTemplates = (options) => (options.client ?? client).post({
2799
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2800
+ security: [{ scheme: "bearer", type: "http" }],
2801
+ url: "/field_templates",
2802
+ ...options,
2803
+ headers: {
2804
+ "Content-Type": "application/vnd.api+json",
2805
+ ...options.headers
2806
+ }
2807
+ });
2729
2808
  var getAiMessages = (options) => (options.client ?? client).get({
2730
2809
  querySerializer: {
2731
2810
  parameters: {
@@ -2886,6 +2965,16 @@ var postWebhookConfigs = (options) => (options.client ?? client).post({
2886
2965
  ...options.headers
2887
2966
  }
2888
2967
  });
2968
+ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post({
2969
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2970
+ security: [{ scheme: "bearer", type: "http" }],
2971
+ url: "/agents/{id}/publish_version",
2972
+ ...options,
2973
+ headers: {
2974
+ "Content-Type": "application/vnd.api+json",
2975
+ ...options.headers
2976
+ }
2977
+ });
2889
2978
  var postObjectsBulkDestroy = (options) => (options.client ?? client).post({
2890
2979
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2891
2980
  security: [{ scheme: "bearer", type: "http" }],
@@ -3490,6 +3579,7 @@ async function collectStreamedMessage(stream) {
3490
3579
  deleteBucketsById,
3491
3580
  deleteExtractionDocumentsById,
3492
3581
  deleteExtractionSchemaFieldsById,
3582
+ deleteFieldTemplatesById,
3493
3583
  deleteMessagesById,
3494
3584
  deleteNotificationPreferencesById,
3495
3585
  deleteObjectsById,
@@ -3502,6 +3592,8 @@ async function collectStreamedMessage(stream) {
3502
3592
  deleteWebhookConfigsById,
3503
3593
  deleteWorkspaceMembershipsByWorkspaceIdByUserId,
3504
3594
  deleteWorkspacesById,
3595
+ getAgentVersions,
3596
+ getAgentVersionsById,
3505
3597
  getAgents,
3506
3598
  getAgentsById,
3507
3599
  getAgentsByIdTrainingStats,
@@ -3540,6 +3632,8 @@ async function collectStreamedMessage(stream) {
3540
3632
  getExtractionSchemaFieldsById,
3541
3633
  getExtractionSchemasById,
3542
3634
  getExtractionSchemasWorkspaceByWorkspaceId,
3635
+ getFieldTemplates,
3636
+ getFieldTemplatesById,
3543
3637
  getInvitations,
3544
3638
  getInvitationsConsumeByToken,
3545
3639
  getLlmAnalytics,
@@ -3641,9 +3735,11 @@ async function collectStreamedMessage(stream) {
3641
3735
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
3642
3736
  patchWorkspacesById,
3643
3737
  patchWorkspacesByIdAllocate,
3738
+ postAgentVersions,
3644
3739
  postAgents,
3645
3740
  postAgentsByIdClone,
3646
3741
  postAgentsByIdLearnFromDocument,
3742
+ postAgentsByIdPublishVersion,
3647
3743
  postAgentsByIdTest,
3648
3744
  postAgentsByIdValidate,
3649
3745
  postAgentsCloneForWorkspace,
@@ -3668,6 +3764,7 @@ async function collectStreamedMessage(stream) {
3668
3764
  postExtractionResults,
3669
3765
  postExtractionSchemaFields,
3670
3766
  postExtractionSchemas,
3767
+ postFieldTemplates,
3671
3768
  postInvitationsAcceptByToken,
3672
3769
  postInvitationsInvite,
3673
3770
  postLlmAnalytics,
@@ -3702,6 +3799,7 @@ async function collectStreamedMessage(stream) {
3702
3799
  postUsersAuthRegister,
3703
3800
  postUsersAuthRegisterWithOidc,
3704
3801
  postUsersRegisterIsv,
3802
+ postWalletCredits,
3705
3803
  postWebhookConfigs,
3706
3804
  postWebhookConfigsByIdTest,
3707
3805
  postWebhookDeliveriesByIdRetry,
package/dist/index.mjs CHANGED
@@ -890,6 +890,16 @@ var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).ge
890
890
  url: "/ai/chunks/document/{document_id}",
891
891
  ...options
892
892
  });
893
+ var postWalletCredits = (options) => (options.client ?? client).post({
894
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
895
+ security: [{ scheme: "bearer", type: "http" }],
896
+ url: "/wallet/credits",
897
+ ...options,
898
+ headers: {
899
+ "Content-Type": "application/vnd.api+json",
900
+ ...options.headers
901
+ }
902
+ });
893
903
  var getWorkspaces = (options) => (options.client ?? client).get({
894
904
  querySerializer: {
895
905
  parameters: {
@@ -1182,6 +1192,18 @@ var postSearchSaved = (options) => (options.client ?? client).post({
1182
1192
  ...options.headers
1183
1193
  }
1184
1194
  });
1195
+ var deleteFieldTemplatesById = (options) => (options.client ?? client).delete({
1196
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1197
+ security: [{ scheme: "bearer", type: "http" }],
1198
+ url: "/field_templates/{id}",
1199
+ ...options
1200
+ });
1201
+ var getFieldTemplatesById = (options) => (options.client ?? client).get({
1202
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1203
+ security: [{ scheme: "bearer", type: "http" }],
1204
+ url: "/field_templates/{id}",
1205
+ ...options
1206
+ });
1185
1207
  var getUserProfilesMe = (options) => (options.client ?? client).get({
1186
1208
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1187
1209
  security: [{ scheme: "bearer", type: "http" }],
@@ -1198,6 +1220,27 @@ var postInvitationsInvite = (options) => (options.client ?? client).post({
1198
1220
  ...options.headers
1199
1221
  }
1200
1222
  });
1223
+ var getAgentVersions = (options) => (options.client ?? client).get({
1224
+ querySerializer: {
1225
+ parameters: {
1226
+ filter: { object: { style: "form" } },
1227
+ fields: { object: { style: "form" } }
1228
+ }
1229
+ },
1230
+ security: [{ scheme: "bearer", type: "http" }],
1231
+ url: "/agent_versions",
1232
+ ...options
1233
+ });
1234
+ var postAgentVersions = (options) => (options.client ?? client).post({
1235
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1236
+ security: [{ scheme: "bearer", type: "http" }],
1237
+ url: "/agent_versions",
1238
+ ...options,
1239
+ headers: {
1240
+ "Content-Type": "application/vnd.api+json",
1241
+ ...options.headers
1242
+ }
1243
+ });
1201
1244
  var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
1202
1245
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1203
1246
  security: [{ scheme: "bearer", type: "http" }],
@@ -1246,6 +1289,12 @@ var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
1246
1289
  ...options.headers
1247
1290
  }
1248
1291
  });
1292
+ var getAgentVersionsById = (options) => (options.client ?? client).get({
1293
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1294
+ security: [{ scheme: "bearer", type: "http" }],
1295
+ url: "/agent_versions/{id}",
1296
+ ...options
1297
+ });
1249
1298
  var postAiChunksSearch = (options) => (options.client ?? client).post({
1250
1299
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1251
1300
  security: [{ scheme: "bearer", type: "http" }],
@@ -2440,6 +2489,27 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
2440
2489
  ...options.headers
2441
2490
  }
2442
2491
  });
2492
+ var getFieldTemplates = (options) => (options.client ?? client).get({
2493
+ querySerializer: {
2494
+ parameters: {
2495
+ filter: { object: { style: "form" } },
2496
+ fields: { object: { style: "form" } }
2497
+ }
2498
+ },
2499
+ security: [{ scheme: "bearer", type: "http" }],
2500
+ url: "/field_templates",
2501
+ ...options
2502
+ });
2503
+ var postFieldTemplates = (options) => (options.client ?? client).post({
2504
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2505
+ security: [{ scheme: "bearer", type: "http" }],
2506
+ url: "/field_templates",
2507
+ ...options,
2508
+ headers: {
2509
+ "Content-Type": "application/vnd.api+json",
2510
+ ...options.headers
2511
+ }
2512
+ });
2443
2513
  var getAiMessages = (options) => (options.client ?? client).get({
2444
2514
  querySerializer: {
2445
2515
  parameters: {
@@ -2600,6 +2670,16 @@ var postWebhookConfigs = (options) => (options.client ?? client).post({
2600
2670
  ...options.headers
2601
2671
  }
2602
2672
  });
2673
+ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post({
2674
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2675
+ security: [{ scheme: "bearer", type: "http" }],
2676
+ url: "/agents/{id}/publish_version",
2677
+ ...options,
2678
+ headers: {
2679
+ "Content-Type": "application/vnd.api+json",
2680
+ ...options.headers
2681
+ }
2682
+ });
2603
2683
  var postObjectsBulkDestroy = (options) => (options.client ?? client).post({
2604
2684
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2605
2685
  security: [{ scheme: "bearer", type: "http" }],
@@ -3203,6 +3283,7 @@ export {
3203
3283
  deleteBucketsById,
3204
3284
  deleteExtractionDocumentsById,
3205
3285
  deleteExtractionSchemaFieldsById,
3286
+ deleteFieldTemplatesById,
3206
3287
  deleteMessagesById,
3207
3288
  deleteNotificationPreferencesById,
3208
3289
  deleteObjectsById,
@@ -3215,6 +3296,8 @@ export {
3215
3296
  deleteWebhookConfigsById,
3216
3297
  deleteWorkspaceMembershipsByWorkspaceIdByUserId,
3217
3298
  deleteWorkspacesById,
3299
+ getAgentVersions,
3300
+ getAgentVersionsById,
3218
3301
  getAgents,
3219
3302
  getAgentsById,
3220
3303
  getAgentsByIdTrainingStats,
@@ -3253,6 +3336,8 @@ export {
3253
3336
  getExtractionSchemaFieldsById,
3254
3337
  getExtractionSchemasById,
3255
3338
  getExtractionSchemasWorkspaceByWorkspaceId,
3339
+ getFieldTemplates,
3340
+ getFieldTemplatesById,
3256
3341
  getInvitations,
3257
3342
  getInvitationsConsumeByToken,
3258
3343
  getLlmAnalytics,
@@ -3354,9 +3439,11 @@ export {
3354
3439
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
3355
3440
  patchWorkspacesById,
3356
3441
  patchWorkspacesByIdAllocate,
3442
+ postAgentVersions,
3357
3443
  postAgents,
3358
3444
  postAgentsByIdClone,
3359
3445
  postAgentsByIdLearnFromDocument,
3446
+ postAgentsByIdPublishVersion,
3360
3447
  postAgentsByIdTest,
3361
3448
  postAgentsByIdValidate,
3362
3449
  postAgentsCloneForWorkspace,
@@ -3381,6 +3468,7 @@ export {
3381
3468
  postExtractionResults,
3382
3469
  postExtractionSchemaFields,
3383
3470
  postExtractionSchemas,
3471
+ postFieldTemplates,
3384
3472
  postInvitationsAcceptByToken,
3385
3473
  postInvitationsInvite,
3386
3474
  postLlmAnalytics,
@@ -3415,6 +3503,7 @@ export {
3415
3503
  postUsersAuthRegister,
3416
3504
  postUsersAuthRegisterWithOidc,
3417
3505
  postUsersRegisterIsv,
3506
+ postWalletCredits,
3418
3507
  postWebhookConfigs,
3419
3508
  postWebhookConfigsByIdTest,
3420
3509
  postWebhookDeliveriesByIdRetry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.5.93",
3
+ "version": "0.5.95",
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",