@gpt-core/client 0.10.11 → 0.10.13

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
@@ -75,6 +75,7 @@ __export(index_exports, {
75
75
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
76
76
  deleteObjectsById: () => deleteObjectsById,
77
77
  deletePaymentMethodsById: () => deletePaymentMethodsById,
78
+ deleteRolesById: () => deleteRolesById,
78
79
  deleteSearchSavedById: () => deleteSearchSavedById,
79
80
  deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
80
81
  deleteTenantsById: () => deleteTenantsById,
@@ -195,6 +196,7 @@ __export(index_exports, {
195
196
  getPlans: () => getPlans,
196
197
  getPlansById: () => getPlansById,
197
198
  getPlansSlugBySlug: () => getPlansSlugBySlug,
199
+ getRoles: () => getRoles,
198
200
  getSearch: () => getSearch,
199
201
  getSearchAnalytics: () => getSearchAnalytics,
200
202
  getSearchAnalyticsSummary: () => getSearchAnalyticsSummary,
@@ -315,6 +317,7 @@ __export(index_exports, {
315
317
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
316
318
  patchPaymentMethodsById: () => patchPaymentMethodsById,
317
319
  patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
320
+ patchRolesById: () => patchRolesById,
318
321
  patchSearchSavedById: () => patchSearchSavedById,
319
322
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
320
323
  patchTenantsById: () => patchTenantsById,
@@ -409,6 +412,7 @@ __export(index_exports, {
409
412
  postPaymentMethods: () => postPaymentMethods,
410
413
  postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
411
414
  postPayments: () => postPayments,
415
+ postRoles: () => postRoles,
412
416
  postSearchBatch: () => postSearchBatch,
413
417
  postSearchReindex: () => postSearchReindex,
414
418
  postSearchSaved: () => postSearchSaved,
@@ -489,6 +493,7 @@ __export(sdk_gen_exports, {
489
493
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
490
494
  deleteObjectsById: () => deleteObjectsById,
491
495
  deletePaymentMethodsById: () => deletePaymentMethodsById,
496
+ deleteRolesById: () => deleteRolesById,
492
497
  deleteSearchSavedById: () => deleteSearchSavedById,
493
498
  deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
494
499
  deleteTenantsById: () => deleteTenantsById,
@@ -609,6 +614,7 @@ __export(sdk_gen_exports, {
609
614
  getPlans: () => getPlans,
610
615
  getPlansById: () => getPlansById,
611
616
  getPlansSlugBySlug: () => getPlansSlugBySlug,
617
+ getRoles: () => getRoles,
612
618
  getSearch: () => getSearch,
613
619
  getSearchAnalytics: () => getSearchAnalytics,
614
620
  getSearchAnalyticsSummary: () => getSearchAnalyticsSummary,
@@ -725,6 +731,7 @@ __export(sdk_gen_exports, {
725
731
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
726
732
  patchPaymentMethodsById: () => patchPaymentMethodsById,
727
733
  patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
734
+ patchRolesById: () => patchRolesById,
728
735
  patchSearchSavedById: () => patchSearchSavedById,
729
736
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
730
737
  patchTenantsById: () => patchTenantsById,
@@ -819,6 +826,7 @@ __export(sdk_gen_exports, {
819
826
  postPaymentMethods: () => postPaymentMethods,
820
827
  postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
821
828
  postPayments: () => postPayments,
829
+ postRoles: () => postRoles,
822
830
  postSearchBatch: () => postSearchBatch,
823
831
  postSearchReindex: () => postSearchReindex,
824
832
  postSearchSaved: () => postSearchSaved,
@@ -1805,12 +1813,7 @@ var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
1805
1813
  }
1806
1814
  });
1807
1815
  var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).get({
1808
- querySerializer: {
1809
- parameters: {
1810
- filter: { object: { style: "form" } },
1811
- fields: { object: { style: "form" } }
1812
- }
1813
- },
1816
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1814
1817
  security: [{ scheme: "bearer", type: "http" }],
1815
1818
  url: "/ai/chunks/document/{document_id}",
1816
1819
  ...options
@@ -3204,6 +3207,28 @@ var getStorageStatsTenantByTenantId = (options) => (options.client ?? client).ge
3204
3207
  url: "/storage/stats/tenant/{tenant_id}",
3205
3208
  ...options
3206
3209
  });
3210
+ var getRoles = (options) => (options.client ?? client).get({
3211
+ querySerializer: {
3212
+ parameters: {
3213
+ filter: { object: { style: "form" } },
3214
+ page: { object: { style: "form" } },
3215
+ fields: { object: { style: "form" } }
3216
+ }
3217
+ },
3218
+ security: [{ scheme: "bearer", type: "http" }],
3219
+ url: "/roles",
3220
+ ...options
3221
+ });
3222
+ var postRoles = (options) => (options.client ?? client).post({
3223
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3224
+ security: [{ scheme: "bearer", type: "http" }],
3225
+ url: "/roles",
3226
+ ...options,
3227
+ headers: {
3228
+ "Content-Type": "application/vnd.api+json",
3229
+ ...options.headers
3230
+ }
3231
+ });
3207
3232
  var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
3208
3233
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3209
3234
  security: [{ scheme: "bearer", type: "http" }],
@@ -3285,12 +3310,7 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
3285
3310
  }
3286
3311
  });
3287
3312
  var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
3288
- querySerializer: {
3289
- parameters: {
3290
- filter: { object: { style: "form" } },
3291
- fields: { object: { style: "form" } }
3292
- }
3293
- },
3313
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3294
3314
  security: [{ scheme: "bearer", type: "http" }],
3295
3315
  url: "/extraction/results/document/{document_id}",
3296
3316
  ...options
@@ -4680,6 +4700,22 @@ var postAiMessages = (options) => (options.client ?? client).post({
4680
4700
  ...options.headers
4681
4701
  }
4682
4702
  });
4703
+ var deleteRolesById = (options) => (options.client ?? client).delete({
4704
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4705
+ security: [{ scheme: "bearer", type: "http" }],
4706
+ url: "/roles/{id}",
4707
+ ...options
4708
+ });
4709
+ var patchRolesById = (options) => (options.client ?? client).patch({
4710
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4711
+ security: [{ scheme: "bearer", type: "http" }],
4712
+ url: "/roles/{id}",
4713
+ ...options,
4714
+ headers: {
4715
+ "Content-Type": "application/vnd.api+json",
4716
+ ...options.headers
4717
+ }
4718
+ });
4683
4719
  var getWatcherEvents = (options) => (options.client ?? client).get({
4684
4720
  querySerializer: {
4685
4721
  parameters: {
@@ -5869,6 +5905,7 @@ var index_default = gptCore;
5869
5905
  deleteNotificationPreferencesById,
5870
5906
  deleteObjectsById,
5871
5907
  deletePaymentMethodsById,
5908
+ deleteRolesById,
5872
5909
  deleteSearchSavedById,
5873
5910
  deleteTenantMembershipsByTenantIdByUserId,
5874
5911
  deleteTenantsById,
@@ -5989,6 +6026,7 @@ var index_default = gptCore;
5989
6026
  getPlans,
5990
6027
  getPlansById,
5991
6028
  getPlansSlugBySlug,
6029
+ getRoles,
5992
6030
  getSearch,
5993
6031
  getSearchAnalytics,
5994
6032
  getSearchAnalyticsSummary,
@@ -6109,6 +6147,7 @@ var index_default = gptCore;
6109
6147
  patchNotificationPreferencesById,
6110
6148
  patchPaymentMethodsById,
6111
6149
  patchPaymentMethodsByIdDefault,
6150
+ patchRolesById,
6112
6151
  patchSearchSavedById,
6113
6152
  patchTenantMembershipsByTenantIdByUserId,
6114
6153
  patchTenantsById,
@@ -6203,6 +6242,7 @@ var index_default = gptCore;
6203
6242
  postPaymentMethods,
6204
6243
  postPaymentMethodsTokenize,
6205
6244
  postPayments,
6245
+ postRoles,
6206
6246
  postSearchBatch,
6207
6247
  postSearchReindex,
6208
6248
  postSearchSaved,
package/dist/index.mjs CHANGED
@@ -28,6 +28,7 @@ __export(sdk_gen_exports, {
28
28
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
29
29
  deleteObjectsById: () => deleteObjectsById,
30
30
  deletePaymentMethodsById: () => deletePaymentMethodsById,
31
+ deleteRolesById: () => deleteRolesById,
31
32
  deleteSearchSavedById: () => deleteSearchSavedById,
32
33
  deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
33
34
  deleteTenantsById: () => deleteTenantsById,
@@ -148,6 +149,7 @@ __export(sdk_gen_exports, {
148
149
  getPlans: () => getPlans,
149
150
  getPlansById: () => getPlansById,
150
151
  getPlansSlugBySlug: () => getPlansSlugBySlug,
152
+ getRoles: () => getRoles,
151
153
  getSearch: () => getSearch,
152
154
  getSearchAnalytics: () => getSearchAnalytics,
153
155
  getSearchAnalyticsSummary: () => getSearchAnalyticsSummary,
@@ -264,6 +266,7 @@ __export(sdk_gen_exports, {
264
266
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
265
267
  patchPaymentMethodsById: () => patchPaymentMethodsById,
266
268
  patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
269
+ patchRolesById: () => patchRolesById,
267
270
  patchSearchSavedById: () => patchSearchSavedById,
268
271
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
269
272
  patchTenantsById: () => patchTenantsById,
@@ -358,6 +361,7 @@ __export(sdk_gen_exports, {
358
361
  postPaymentMethods: () => postPaymentMethods,
359
362
  postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
360
363
  postPayments: () => postPayments,
364
+ postRoles: () => postRoles,
361
365
  postSearchBatch: () => postSearchBatch,
362
366
  postSearchReindex: () => postSearchReindex,
363
367
  postSearchSaved: () => postSearchSaved,
@@ -1344,12 +1348,7 @@ var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
1344
1348
  }
1345
1349
  });
1346
1350
  var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).get({
1347
- querySerializer: {
1348
- parameters: {
1349
- filter: { object: { style: "form" } },
1350
- fields: { object: { style: "form" } }
1351
- }
1352
- },
1351
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1353
1352
  security: [{ scheme: "bearer", type: "http" }],
1354
1353
  url: "/ai/chunks/document/{document_id}",
1355
1354
  ...options
@@ -2743,6 +2742,28 @@ var getStorageStatsTenantByTenantId = (options) => (options.client ?? client).ge
2743
2742
  url: "/storage/stats/tenant/{tenant_id}",
2744
2743
  ...options
2745
2744
  });
2745
+ var getRoles = (options) => (options.client ?? client).get({
2746
+ querySerializer: {
2747
+ parameters: {
2748
+ filter: { object: { style: "form" } },
2749
+ page: { object: { style: "form" } },
2750
+ fields: { object: { style: "form" } }
2751
+ }
2752
+ },
2753
+ security: [{ scheme: "bearer", type: "http" }],
2754
+ url: "/roles",
2755
+ ...options
2756
+ });
2757
+ var postRoles = (options) => (options.client ?? client).post({
2758
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2759
+ security: [{ scheme: "bearer", type: "http" }],
2760
+ url: "/roles",
2761
+ ...options,
2762
+ headers: {
2763
+ "Content-Type": "application/vnd.api+json",
2764
+ ...options.headers
2765
+ }
2766
+ });
2746
2767
  var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
2747
2768
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2748
2769
  security: [{ scheme: "bearer", type: "http" }],
@@ -2824,12 +2845,7 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2824
2845
  }
2825
2846
  });
2826
2847
  var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
2827
- querySerializer: {
2828
- parameters: {
2829
- filter: { object: { style: "form" } },
2830
- fields: { object: { style: "form" } }
2831
- }
2832
- },
2848
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2833
2849
  security: [{ scheme: "bearer", type: "http" }],
2834
2850
  url: "/extraction/results/document/{document_id}",
2835
2851
  ...options
@@ -4219,6 +4235,22 @@ var postAiMessages = (options) => (options.client ?? client).post({
4219
4235
  ...options.headers
4220
4236
  }
4221
4237
  });
4238
+ var deleteRolesById = (options) => (options.client ?? client).delete({
4239
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4240
+ security: [{ scheme: "bearer", type: "http" }],
4241
+ url: "/roles/{id}",
4242
+ ...options
4243
+ });
4244
+ var patchRolesById = (options) => (options.client ?? client).patch({
4245
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4246
+ security: [{ scheme: "bearer", type: "http" }],
4247
+ url: "/roles/{id}",
4248
+ ...options,
4249
+ headers: {
4250
+ "Content-Type": "application/vnd.api+json",
4251
+ ...options.headers
4252
+ }
4253
+ });
4222
4254
  var getWatcherEvents = (options) => (options.client ?? client).get({
4223
4255
  querySerializer: {
4224
4256
  parameters: {
@@ -5408,6 +5440,7 @@ export {
5408
5440
  deleteNotificationPreferencesById,
5409
5441
  deleteObjectsById,
5410
5442
  deletePaymentMethodsById,
5443
+ deleteRolesById,
5411
5444
  deleteSearchSavedById,
5412
5445
  deleteTenantMembershipsByTenantIdByUserId,
5413
5446
  deleteTenantsById,
@@ -5528,6 +5561,7 @@ export {
5528
5561
  getPlans,
5529
5562
  getPlansById,
5530
5563
  getPlansSlugBySlug,
5564
+ getRoles,
5531
5565
  getSearch,
5532
5566
  getSearchAnalytics,
5533
5567
  getSearchAnalyticsSummary,
@@ -5648,6 +5682,7 @@ export {
5648
5682
  patchNotificationPreferencesById,
5649
5683
  patchPaymentMethodsById,
5650
5684
  patchPaymentMethodsByIdDefault,
5685
+ patchRolesById,
5651
5686
  patchSearchSavedById,
5652
5687
  patchTenantMembershipsByTenantIdByUserId,
5653
5688
  patchTenantsById,
@@ -5742,6 +5777,7 @@ export {
5742
5777
  postPaymentMethods,
5743
5778
  postPaymentMethodsTokenize,
5744
5779
  postPayments,
5780
+ postRoles,
5745
5781
  postSearchBatch,
5746
5782
  postSearchReindex,
5747
5783
  postSearchSaved,
package/llms.txt CHANGED
@@ -405,6 +405,13 @@ client.setConfig({
405
405
  - `postStorageSign-download()` - Create sign download
406
406
  - `postStorageSign-upload()` - Create sign upload
407
407
 
408
+ ## Role
409
+
410
+ - `getRoles()` - List roles
411
+ - `postRoles()` - Create roles
412
+ - `patchRolesById()` - Update roles
413
+ - `deleteRolesById()` - Delete roles
414
+
408
415
  ## Schema discovery
409
416
 
410
417
  - `getExtractionSchema-discoveriesById()` - Get schema discoveries
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.10.11",
3
+ "version": "0.10.13",
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",