@gpt-core/client 0.5.91 → 0.5.93

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
@@ -49,6 +49,7 @@ __export(index_exports, {
49
49
  calculateBackoff: () => calculateBackoff,
50
50
  client: () => client,
51
51
  collectStreamedMessage: () => collectStreamedMessage,
52
+ deleteAgentsById: () => deleteAgentsById,
52
53
  deleteAiConversationsById: () => deleteAiConversationsById,
53
54
  deleteAiGraphEdgesById: () => deleteAiGraphEdgesById,
54
55
  deleteAiGraphNodesById: () => deleteAiGraphNodesById,
@@ -99,6 +100,7 @@ __export(index_exports, {
99
100
  getExtractionDocuments: () => getExtractionDocuments,
100
101
  getExtractionDocumentsById: () => getExtractionDocumentsById,
101
102
  getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
103
+ getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
102
104
  getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
103
105
  getExtractionResultsById: () => getExtractionResultsById,
104
106
  getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
@@ -169,6 +171,7 @@ __export(index_exports, {
169
171
  isRetryableError: () => isRetryableError,
170
172
  paginateAll: () => paginateAll,
171
173
  paginateToArray: () => paginateToArray,
174
+ patchAgentsById: () => patchAgentsById,
172
175
  patchApiKeysById: () => patchApiKeysById,
173
176
  patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
174
177
  patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
@@ -194,7 +197,8 @@ __export(index_exports, {
194
197
  patchTrainingExamplesById: () => patchTrainingExamplesById,
195
198
  patchUserProfilesById: () => patchUserProfilesById,
196
199
  patchUsersAuthResetPassword: () => patchUsersAuthResetPassword,
197
- patchUsersById: () => patchUsersById,
200
+ patchUsersByIdAdmin: () => patchUsersByIdAdmin,
201
+ patchUsersByIdAdminEmail: () => patchUsersByIdAdminEmail,
198
202
  patchUsersByIdConfirmEmail: () => patchUsersByIdConfirmEmail,
199
203
  patchUsersByIdResetPassword: () => patchUsersByIdResetPassword,
200
204
  patchWalletAddons: () => patchWalletAddons,
@@ -205,6 +209,7 @@ __export(index_exports, {
205
209
  patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
206
210
  patchWorkspacesById: () => patchWorkspacesById,
207
211
  patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
212
+ postAgents: () => postAgents,
208
213
  postAgentsByIdClone: () => postAgentsByIdClone,
209
214
  postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
210
215
  postAgentsByIdTest: () => postAgentsByIdTest,
@@ -227,7 +232,6 @@ __export(index_exports, {
227
232
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
228
233
  postExtractionBatches: () => postExtractionBatches,
229
234
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
230
- postExtractionDocumentsByIdView: () => postExtractionDocumentsByIdView,
231
235
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
232
236
  postExtractionResults: () => postExtractionResults,
233
237
  postExtractionSchemaFields: () => postExtractionSchemaFields,
@@ -1401,6 +1405,16 @@ var deleteSearchSavedById = (options) => (options.client ?? client).delete({
1401
1405
  url: "/search/saved/{id}",
1402
1406
  ...options
1403
1407
  });
1408
+ var patchUsersByIdAdminEmail = (options) => (options.client ?? client).patch({
1409
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1410
+ security: [{ scheme: "bearer", type: "http" }],
1411
+ url: "/users/{id}/admin/email",
1412
+ ...options,
1413
+ headers: {
1414
+ "Content-Type": "application/vnd.api+json",
1415
+ ...options.headers
1416
+ }
1417
+ });
1404
1418
  var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch({
1405
1419
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1406
1420
  security: [{ scheme: "bearer", type: "http" }],
@@ -1570,16 +1584,6 @@ var getUsersById = (options) => (options.client ?? client).get({
1570
1584
  url: "/users/{id}",
1571
1585
  ...options
1572
1586
  });
1573
- var patchUsersById = (options) => (options.client ?? client).patch({
1574
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1575
- security: [{ scheme: "bearer", type: "http" }],
1576
- url: "/users/{id}",
1577
- ...options,
1578
- headers: {
1579
- "Content-Type": "application/vnd.api+json",
1580
- ...options.headers
1581
- }
1582
- });
1583
1587
  var getExtractionResultsById = (options) => (options.client ?? client).get({
1584
1588
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1585
1589
  security: [{ scheme: "bearer", type: "http" }],
@@ -1983,15 +1987,11 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
1983
1987
  url: "/notification_logs/{id}",
1984
1988
  ...options
1985
1989
  });
1986
- var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
1990
+ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
1987
1991
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1988
1992
  security: [{ scheme: "bearer", type: "http" }],
1989
1993
  url: "/extraction/documents/{id}/view",
1990
- ...options,
1991
- headers: {
1992
- "Content-Type": "application/vnd.api+json",
1993
- ...options.headers
1994
- }
1994
+ ...options
1995
1995
  });
1996
1996
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
1997
1997
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -2141,12 +2141,38 @@ var postApiKeys = (options) => (options.client ?? client).post({
2141
2141
  ...options.headers
2142
2142
  }
2143
2143
  });
2144
+ var patchUsersByIdAdmin = (options) => (options.client ?? client).patch({
2145
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2146
+ security: [{ scheme: "bearer", type: "http" }],
2147
+ url: "/users/{id}/admin",
2148
+ ...options,
2149
+ headers: {
2150
+ "Content-Type": "application/vnd.api+json",
2151
+ ...options.headers
2152
+ }
2153
+ });
2154
+ var deleteAgentsById = (options) => (options.client ?? client).delete({
2155
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2156
+ security: [{ scheme: "bearer", type: "http" }],
2157
+ url: "/agents/{id}",
2158
+ ...options
2159
+ });
2144
2160
  var getAgentsById = (options) => (options.client ?? client).get({
2145
2161
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2146
2162
  security: [{ scheme: "bearer", type: "http" }],
2147
2163
  url: "/agents/{id}",
2148
2164
  ...options
2149
2165
  });
2166
+ var patchAgentsById = (options) => (options.client ?? client).patch({
2167
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2168
+ security: [{ scheme: "bearer", type: "http" }],
2169
+ url: "/agents/{id}",
2170
+ ...options,
2171
+ headers: {
2172
+ "Content-Type": "application/vnd.api+json",
2173
+ ...options.headers
2174
+ }
2175
+ });
2150
2176
  var deleteApiKeysById = (options) => (options.client ?? client).delete({
2151
2177
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2152
2178
  security: [{ scheme: "bearer", type: "http" }],
@@ -2980,6 +3006,7 @@ var getAgents = (options) => (options.client ?? client).get({
2980
3006
  querySerializer: {
2981
3007
  parameters: {
2982
3008
  filter: { object: { style: "form" } },
3009
+ page: { object: { style: "form" } },
2983
3010
  fields: { object: { style: "form" } }
2984
3011
  }
2985
3012
  },
@@ -2987,6 +3014,16 @@ var getAgents = (options) => (options.client ?? client).get({
2987
3014
  url: "/agents",
2988
3015
  ...options
2989
3016
  });
3017
+ var postAgents = (options) => (options.client ?? client).post({
3018
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3019
+ security: [{ scheme: "bearer", type: "http" }],
3020
+ url: "/agents",
3021
+ ...options,
3022
+ headers: {
3023
+ "Content-Type": "application/vnd.api+json",
3024
+ ...options.headers
3025
+ }
3026
+ });
2990
3027
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2991
3028
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2992
3029
  security: [{ scheme: "bearer", type: "http" }],
@@ -3444,6 +3481,7 @@ async function collectStreamedMessage(stream) {
3444
3481
  calculateBackoff,
3445
3482
  client,
3446
3483
  collectStreamedMessage,
3484
+ deleteAgentsById,
3447
3485
  deleteAiConversationsById,
3448
3486
  deleteAiGraphEdgesById,
3449
3487
  deleteAiGraphNodesById,
@@ -3494,6 +3532,7 @@ async function collectStreamedMessage(stream) {
3494
3532
  getExtractionDocuments,
3495
3533
  getExtractionDocumentsById,
3496
3534
  getExtractionDocumentsByIdStatus,
3535
+ getExtractionDocumentsByIdView,
3497
3536
  getExtractionDocumentsWorkspaceByWorkspaceId,
3498
3537
  getExtractionResultsById,
3499
3538
  getExtractionResultsDocumentByDocumentId,
@@ -3564,6 +3603,7 @@ async function collectStreamedMessage(stream) {
3564
3603
  isRetryableError,
3565
3604
  paginateAll,
3566
3605
  paginateToArray,
3606
+ patchAgentsById,
3567
3607
  patchApiKeysById,
3568
3608
  patchApiKeysByIdAllocate,
3569
3609
  patchApiKeysByIdRevoke,
@@ -3589,7 +3629,8 @@ async function collectStreamedMessage(stream) {
3589
3629
  patchTrainingExamplesById,
3590
3630
  patchUserProfilesById,
3591
3631
  patchUsersAuthResetPassword,
3592
- patchUsersById,
3632
+ patchUsersByIdAdmin,
3633
+ patchUsersByIdAdminEmail,
3593
3634
  patchUsersByIdConfirmEmail,
3594
3635
  patchUsersByIdResetPassword,
3595
3636
  patchWalletAddons,
@@ -3600,6 +3641,7 @@ async function collectStreamedMessage(stream) {
3600
3641
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
3601
3642
  patchWorkspacesById,
3602
3643
  patchWorkspacesByIdAllocate,
3644
+ postAgents,
3603
3645
  postAgentsByIdClone,
3604
3646
  postAgentsByIdLearnFromDocument,
3605
3647
  postAgentsByIdTest,
@@ -3622,7 +3664,6 @@ async function collectStreamedMessage(stream) {
3622
3664
  postDocumentsPresignedUpload,
3623
3665
  postExtractionBatches,
3624
3666
  postExtractionDocumentsBeginUpload,
3625
- postExtractionDocumentsByIdView,
3626
3667
  postExtractionDocumentsUpload,
3627
3668
  postExtractionResults,
3628
3669
  postExtractionSchemaFields,
package/dist/index.mjs CHANGED
@@ -1119,6 +1119,16 @@ var deleteSearchSavedById = (options) => (options.client ?? client).delete({
1119
1119
  url: "/search/saved/{id}",
1120
1120
  ...options
1121
1121
  });
1122
+ var patchUsersByIdAdminEmail = (options) => (options.client ?? client).patch({
1123
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1124
+ security: [{ scheme: "bearer", type: "http" }],
1125
+ url: "/users/{id}/admin/email",
1126
+ ...options,
1127
+ headers: {
1128
+ "Content-Type": "application/vnd.api+json",
1129
+ ...options.headers
1130
+ }
1131
+ });
1122
1132
  var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch({
1123
1133
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1124
1134
  security: [{ scheme: "bearer", type: "http" }],
@@ -1288,16 +1298,6 @@ var getUsersById = (options) => (options.client ?? client).get({
1288
1298
  url: "/users/{id}",
1289
1299
  ...options
1290
1300
  });
1291
- var patchUsersById = (options) => (options.client ?? client).patch({
1292
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1293
- security: [{ scheme: "bearer", type: "http" }],
1294
- url: "/users/{id}",
1295
- ...options,
1296
- headers: {
1297
- "Content-Type": "application/vnd.api+json",
1298
- ...options.headers
1299
- }
1300
- });
1301
1301
  var getExtractionResultsById = (options) => (options.client ?? client).get({
1302
1302
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1303
1303
  security: [{ scheme: "bearer", type: "http" }],
@@ -1701,15 +1701,11 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
1701
1701
  url: "/notification_logs/{id}",
1702
1702
  ...options
1703
1703
  });
1704
- var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
1704
+ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
1705
1705
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1706
1706
  security: [{ scheme: "bearer", type: "http" }],
1707
1707
  url: "/extraction/documents/{id}/view",
1708
- ...options,
1709
- headers: {
1710
- "Content-Type": "application/vnd.api+json",
1711
- ...options.headers
1712
- }
1708
+ ...options
1713
1709
  });
1714
1710
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
1715
1711
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -1859,12 +1855,38 @@ var postApiKeys = (options) => (options.client ?? client).post({
1859
1855
  ...options.headers
1860
1856
  }
1861
1857
  });
1858
+ var patchUsersByIdAdmin = (options) => (options.client ?? client).patch({
1859
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1860
+ security: [{ scheme: "bearer", type: "http" }],
1861
+ url: "/users/{id}/admin",
1862
+ ...options,
1863
+ headers: {
1864
+ "Content-Type": "application/vnd.api+json",
1865
+ ...options.headers
1866
+ }
1867
+ });
1868
+ var deleteAgentsById = (options) => (options.client ?? client).delete({
1869
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1870
+ security: [{ scheme: "bearer", type: "http" }],
1871
+ url: "/agents/{id}",
1872
+ ...options
1873
+ });
1862
1874
  var getAgentsById = (options) => (options.client ?? client).get({
1863
1875
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1864
1876
  security: [{ scheme: "bearer", type: "http" }],
1865
1877
  url: "/agents/{id}",
1866
1878
  ...options
1867
1879
  });
1880
+ var patchAgentsById = (options) => (options.client ?? client).patch({
1881
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1882
+ security: [{ scheme: "bearer", type: "http" }],
1883
+ url: "/agents/{id}",
1884
+ ...options,
1885
+ headers: {
1886
+ "Content-Type": "application/vnd.api+json",
1887
+ ...options.headers
1888
+ }
1889
+ });
1868
1890
  var deleteApiKeysById = (options) => (options.client ?? client).delete({
1869
1891
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1870
1892
  security: [{ scheme: "bearer", type: "http" }],
@@ -2698,6 +2720,7 @@ var getAgents = (options) => (options.client ?? client).get({
2698
2720
  querySerializer: {
2699
2721
  parameters: {
2700
2722
  filter: { object: { style: "form" } },
2723
+ page: { object: { style: "form" } },
2701
2724
  fields: { object: { style: "form" } }
2702
2725
  }
2703
2726
  },
@@ -2705,6 +2728,16 @@ var getAgents = (options) => (options.client ?? client).get({
2705
2728
  url: "/agents",
2706
2729
  ...options
2707
2730
  });
2731
+ var postAgents = (options) => (options.client ?? client).post({
2732
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2733
+ security: [{ scheme: "bearer", type: "http" }],
2734
+ url: "/agents",
2735
+ ...options,
2736
+ headers: {
2737
+ "Content-Type": "application/vnd.api+json",
2738
+ ...options.headers
2739
+ }
2740
+ });
2708
2741
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2709
2742
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2710
2743
  security: [{ scheme: "bearer", type: "http" }],
@@ -3161,6 +3194,7 @@ export {
3161
3194
  calculateBackoff,
3162
3195
  client,
3163
3196
  collectStreamedMessage,
3197
+ deleteAgentsById,
3164
3198
  deleteAiConversationsById,
3165
3199
  deleteAiGraphEdgesById,
3166
3200
  deleteAiGraphNodesById,
@@ -3211,6 +3245,7 @@ export {
3211
3245
  getExtractionDocuments,
3212
3246
  getExtractionDocumentsById,
3213
3247
  getExtractionDocumentsByIdStatus,
3248
+ getExtractionDocumentsByIdView,
3214
3249
  getExtractionDocumentsWorkspaceByWorkspaceId,
3215
3250
  getExtractionResultsById,
3216
3251
  getExtractionResultsDocumentByDocumentId,
@@ -3281,6 +3316,7 @@ export {
3281
3316
  isRetryableError,
3282
3317
  paginateAll,
3283
3318
  paginateToArray,
3319
+ patchAgentsById,
3284
3320
  patchApiKeysById,
3285
3321
  patchApiKeysByIdAllocate,
3286
3322
  patchApiKeysByIdRevoke,
@@ -3306,7 +3342,8 @@ export {
3306
3342
  patchTrainingExamplesById,
3307
3343
  patchUserProfilesById,
3308
3344
  patchUsersAuthResetPassword,
3309
- patchUsersById,
3345
+ patchUsersByIdAdmin,
3346
+ patchUsersByIdAdminEmail,
3310
3347
  patchUsersByIdConfirmEmail,
3311
3348
  patchUsersByIdResetPassword,
3312
3349
  patchWalletAddons,
@@ -3317,6 +3354,7 @@ export {
3317
3354
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
3318
3355
  patchWorkspacesById,
3319
3356
  patchWorkspacesByIdAllocate,
3357
+ postAgents,
3320
3358
  postAgentsByIdClone,
3321
3359
  postAgentsByIdLearnFromDocument,
3322
3360
  postAgentsByIdTest,
@@ -3339,7 +3377,6 @@ export {
3339
3377
  postDocumentsPresignedUpload,
3340
3378
  postExtractionBatches,
3341
3379
  postExtractionDocumentsBeginUpload,
3342
- postExtractionDocumentsByIdView,
3343
3380
  postExtractionDocumentsUpload,
3344
3381
  postExtractionResults,
3345
3382
  postExtractionSchemaFields,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.5.91",
3
+ "version": "0.5.93",
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",