@gpt-core/client 0.8.25 → 0.8.26

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
@@ -70,6 +70,7 @@ __export(index_exports, {
70
70
  deleteNotificationMethodsById: () => deleteNotificationMethodsById,
71
71
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
72
72
  deleteObjectsById: () => deleteObjectsById,
73
+ deletePaymentMethodsById: () => deletePaymentMethodsById,
73
74
  deleteSearchSavedById: () => deleteSearchSavedById,
74
75
  deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
75
76
  deleteTenantsById: () => deleteTenantsById,
@@ -163,6 +164,8 @@ __export(index_exports, {
163
164
  getNotificationPreferencesById: () => getNotificationPreferencesById,
164
165
  getObjects: () => getObjects,
165
166
  getObjectsById: () => getObjectsById,
167
+ getPaymentMethods: () => getPaymentMethods,
168
+ getPaymentMethodsById: () => getPaymentMethodsById,
166
169
  getPermissions: () => getPermissions,
167
170
  getPermissionsById: () => getPermissionsById,
168
171
  getPermissionsMeta: () => getPermissionsMeta,
@@ -281,6 +284,8 @@ __export(index_exports, {
281
284
  patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
282
285
  patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
283
286
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
287
+ patchPaymentMethodsById: () => patchPaymentMethodsById,
288
+ patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
284
289
  patchSearchSavedById: () => patchSearchSavedById,
285
290
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
286
291
  patchTenantsById: () => patchTenantsById,
@@ -365,6 +370,7 @@ __export(index_exports, {
365
370
  postObjectsCopy: () => postObjectsCopy,
366
371
  postObjectsMove: () => postObjectsMove,
367
372
  postObjectsRegister: () => postObjectsRegister,
373
+ postPaymentMethods: () => postPaymentMethods,
368
374
  postPayments: () => postPayments,
369
375
  postSearchBatch: () => postSearchBatch,
370
376
  postSearchReindex: () => postSearchReindex,
@@ -442,6 +448,7 @@ __export(sdk_gen_exports, {
442
448
  deleteNotificationMethodsById: () => deleteNotificationMethodsById,
443
449
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
444
450
  deleteObjectsById: () => deleteObjectsById,
451
+ deletePaymentMethodsById: () => deletePaymentMethodsById,
445
452
  deleteSearchSavedById: () => deleteSearchSavedById,
446
453
  deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
447
454
  deleteTenantsById: () => deleteTenantsById,
@@ -535,6 +542,8 @@ __export(sdk_gen_exports, {
535
542
  getNotificationPreferencesById: () => getNotificationPreferencesById,
536
543
  getObjects: () => getObjects,
537
544
  getObjectsById: () => getObjectsById,
545
+ getPaymentMethods: () => getPaymentMethods,
546
+ getPaymentMethodsById: () => getPaymentMethodsById,
538
547
  getPermissions: () => getPermissions,
539
548
  getPermissionsById: () => getPermissionsById,
540
549
  getPermissionsMeta: () => getPermissionsMeta,
@@ -649,6 +658,8 @@ __export(sdk_gen_exports, {
649
658
  patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
650
659
  patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
651
660
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
661
+ patchPaymentMethodsById: () => patchPaymentMethodsById,
662
+ patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
652
663
  patchSearchSavedById: () => patchSearchSavedById,
653
664
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
654
665
  patchTenantsById: () => patchTenantsById,
@@ -733,6 +744,7 @@ __export(sdk_gen_exports, {
733
744
  postObjectsCopy: () => postObjectsCopy,
734
745
  postObjectsMove: () => postObjectsMove,
735
746
  postObjectsRegister: () => postObjectsRegister,
747
+ postPaymentMethods: () => postPaymentMethods,
736
748
  postPayments: () => postPayments,
737
749
  postSearchBatch: () => postSearchBatch,
738
750
  postSearchReindex: () => postSearchReindex,
@@ -1728,6 +1740,28 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1728
1740
  ...options.headers
1729
1741
  }
1730
1742
  });
1743
+ var getPaymentMethods = (options) => (options.client ?? client).get({
1744
+ querySerializer: {
1745
+ parameters: {
1746
+ filter: { object: { style: "form" } },
1747
+ page: { object: { style: "form" } },
1748
+ fields: { object: { style: "form" } }
1749
+ }
1750
+ },
1751
+ security: [{ scheme: "bearer", type: "http" }],
1752
+ url: "/payment-methods",
1753
+ ...options
1754
+ });
1755
+ var postPaymentMethods = (options) => (options.client ?? client).post({
1756
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1757
+ security: [{ scheme: "bearer", type: "http" }],
1758
+ url: "/payment-methods",
1759
+ ...options,
1760
+ headers: {
1761
+ "Content-Type": "application/vnd.api+json",
1762
+ ...options.headers
1763
+ }
1764
+ });
1731
1765
  var getAgentsByIdStats = (options) => (options.client ?? client).get({
1732
1766
  security: [{ scheme: "bearer", type: "http" }],
1733
1767
  url: "/agents/{id}/stats",
@@ -3956,6 +3990,28 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
3956
3990
  url: "/agents/{id}/schema_versions/{version_id}/activate",
3957
3991
  ...options
3958
3992
  });
3993
+ var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
3994
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3995
+ security: [{ scheme: "bearer", type: "http" }],
3996
+ url: "/payment-methods/{id}",
3997
+ ...options
3998
+ });
3999
+ var getPaymentMethodsById = (options) => (options.client ?? client).get({
4000
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4001
+ security: [{ scheme: "bearer", type: "http" }],
4002
+ url: "/payment-methods/{id}",
4003
+ ...options
4004
+ });
4005
+ var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
4006
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4007
+ security: [{ scheme: "bearer", type: "http" }],
4008
+ url: "/payment-methods/{id}",
4009
+ ...options,
4010
+ headers: {
4011
+ "Content-Type": "application/vnd.api+json",
4012
+ ...options.headers
4013
+ }
4014
+ });
3959
4015
  var deleteBucketsById = (options) => (options.client ?? client).delete({
3960
4016
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3961
4017
  security: [{ scheme: "bearer", type: "http" }],
@@ -4653,6 +4709,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
4653
4709
  ...options.headers
4654
4710
  }
4655
4711
  });
4712
+ var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
4713
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4714
+ security: [{ scheme: "bearer", type: "http" }],
4715
+ url: "/payment-methods/{id}/default",
4716
+ ...options,
4717
+ headers: {
4718
+ "Content-Type": "application/vnd.api+json",
4719
+ ...options.headers
4720
+ }
4721
+ });
4656
4722
  var postAgentsByIdExport = (options) => (options.client ?? client).post({
4657
4723
  security: [{ scheme: "bearer", type: "http" }],
4658
4724
  url: "/agents/{id}/export",
@@ -5378,6 +5444,7 @@ var index_default = gptCore;
5378
5444
  deleteNotificationMethodsById,
5379
5445
  deleteNotificationPreferencesById,
5380
5446
  deleteObjectsById,
5447
+ deletePaymentMethodsById,
5381
5448
  deleteSearchSavedById,
5382
5449
  deleteTenantMembershipsByTenantIdByUserId,
5383
5450
  deleteTenantsById,
@@ -5471,6 +5538,8 @@ var index_default = gptCore;
5471
5538
  getNotificationPreferencesById,
5472
5539
  getObjects,
5473
5540
  getObjectsById,
5541
+ getPaymentMethods,
5542
+ getPaymentMethodsById,
5474
5543
  getPermissions,
5475
5544
  getPermissionsById,
5476
5545
  getPermissionsMeta,
@@ -5589,6 +5658,8 @@ var index_default = gptCore;
5589
5658
  patchNotificationMethodsByIdSetPrimary,
5590
5659
  patchNotificationMethodsByIdVerify,
5591
5660
  patchNotificationPreferencesById,
5661
+ patchPaymentMethodsById,
5662
+ patchPaymentMethodsByIdDefault,
5592
5663
  patchSearchSavedById,
5593
5664
  patchTenantMembershipsByTenantIdByUserId,
5594
5665
  patchTenantsById,
@@ -5673,6 +5744,7 @@ var index_default = gptCore;
5673
5744
  postObjectsCopy,
5674
5745
  postObjectsMove,
5675
5746
  postObjectsRegister,
5747
+ postPaymentMethods,
5676
5748
  postPayments,
5677
5749
  postSearchBatch,
5678
5750
  postSearchReindex,
package/dist/index.mjs CHANGED
@@ -24,6 +24,7 @@ __export(sdk_gen_exports, {
24
24
  deleteNotificationMethodsById: () => deleteNotificationMethodsById,
25
25
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
26
26
  deleteObjectsById: () => deleteObjectsById,
27
+ deletePaymentMethodsById: () => deletePaymentMethodsById,
27
28
  deleteSearchSavedById: () => deleteSearchSavedById,
28
29
  deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
29
30
  deleteTenantsById: () => deleteTenantsById,
@@ -117,6 +118,8 @@ __export(sdk_gen_exports, {
117
118
  getNotificationPreferencesById: () => getNotificationPreferencesById,
118
119
  getObjects: () => getObjects,
119
120
  getObjectsById: () => getObjectsById,
121
+ getPaymentMethods: () => getPaymentMethods,
122
+ getPaymentMethodsById: () => getPaymentMethodsById,
120
123
  getPermissions: () => getPermissions,
121
124
  getPermissionsById: () => getPermissionsById,
122
125
  getPermissionsMeta: () => getPermissionsMeta,
@@ -231,6 +234,8 @@ __export(sdk_gen_exports, {
231
234
  patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
232
235
  patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
233
236
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
237
+ patchPaymentMethodsById: () => patchPaymentMethodsById,
238
+ patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
234
239
  patchSearchSavedById: () => patchSearchSavedById,
235
240
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
236
241
  patchTenantsById: () => patchTenantsById,
@@ -315,6 +320,7 @@ __export(sdk_gen_exports, {
315
320
  postObjectsCopy: () => postObjectsCopy,
316
321
  postObjectsMove: () => postObjectsMove,
317
322
  postObjectsRegister: () => postObjectsRegister,
323
+ postPaymentMethods: () => postPaymentMethods,
318
324
  postPayments: () => postPayments,
319
325
  postSearchBatch: () => postSearchBatch,
320
326
  postSearchReindex: () => postSearchReindex,
@@ -1310,6 +1316,28 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1310
1316
  ...options.headers
1311
1317
  }
1312
1318
  });
1319
+ var getPaymentMethods = (options) => (options.client ?? client).get({
1320
+ querySerializer: {
1321
+ parameters: {
1322
+ filter: { object: { style: "form" } },
1323
+ page: { object: { style: "form" } },
1324
+ fields: { object: { style: "form" } }
1325
+ }
1326
+ },
1327
+ security: [{ scheme: "bearer", type: "http" }],
1328
+ url: "/payment-methods",
1329
+ ...options
1330
+ });
1331
+ var postPaymentMethods = (options) => (options.client ?? client).post({
1332
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1333
+ security: [{ scheme: "bearer", type: "http" }],
1334
+ url: "/payment-methods",
1335
+ ...options,
1336
+ headers: {
1337
+ "Content-Type": "application/vnd.api+json",
1338
+ ...options.headers
1339
+ }
1340
+ });
1313
1341
  var getAgentsByIdStats = (options) => (options.client ?? client).get({
1314
1342
  security: [{ scheme: "bearer", type: "http" }],
1315
1343
  url: "/agents/{id}/stats",
@@ -3538,6 +3566,28 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
3538
3566
  url: "/agents/{id}/schema_versions/{version_id}/activate",
3539
3567
  ...options
3540
3568
  });
3569
+ var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
3570
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3571
+ security: [{ scheme: "bearer", type: "http" }],
3572
+ url: "/payment-methods/{id}",
3573
+ ...options
3574
+ });
3575
+ var getPaymentMethodsById = (options) => (options.client ?? client).get({
3576
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3577
+ security: [{ scheme: "bearer", type: "http" }],
3578
+ url: "/payment-methods/{id}",
3579
+ ...options
3580
+ });
3581
+ var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
3582
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3583
+ security: [{ scheme: "bearer", type: "http" }],
3584
+ url: "/payment-methods/{id}",
3585
+ ...options,
3586
+ headers: {
3587
+ "Content-Type": "application/vnd.api+json",
3588
+ ...options.headers
3589
+ }
3590
+ });
3541
3591
  var deleteBucketsById = (options) => (options.client ?? client).delete({
3542
3592
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3543
3593
  security: [{ scheme: "bearer", type: "http" }],
@@ -4235,6 +4285,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
4235
4285
  ...options.headers
4236
4286
  }
4237
4287
  });
4288
+ var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
4289
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4290
+ security: [{ scheme: "bearer", type: "http" }],
4291
+ url: "/payment-methods/{id}/default",
4292
+ ...options,
4293
+ headers: {
4294
+ "Content-Type": "application/vnd.api+json",
4295
+ ...options.headers
4296
+ }
4297
+ });
4238
4298
  var postAgentsByIdExport = (options) => (options.client ?? client).post({
4239
4299
  security: [{ scheme: "bearer", type: "http" }],
4240
4300
  url: "/agents/{id}/export",
@@ -4960,6 +5020,7 @@ export {
4960
5020
  deleteNotificationMethodsById,
4961
5021
  deleteNotificationPreferencesById,
4962
5022
  deleteObjectsById,
5023
+ deletePaymentMethodsById,
4963
5024
  deleteSearchSavedById,
4964
5025
  deleteTenantMembershipsByTenantIdByUserId,
4965
5026
  deleteTenantsById,
@@ -5053,6 +5114,8 @@ export {
5053
5114
  getNotificationPreferencesById,
5054
5115
  getObjects,
5055
5116
  getObjectsById,
5117
+ getPaymentMethods,
5118
+ getPaymentMethodsById,
5056
5119
  getPermissions,
5057
5120
  getPermissionsById,
5058
5121
  getPermissionsMeta,
@@ -5171,6 +5234,8 @@ export {
5171
5234
  patchNotificationMethodsByIdSetPrimary,
5172
5235
  patchNotificationMethodsByIdVerify,
5173
5236
  patchNotificationPreferencesById,
5237
+ patchPaymentMethodsById,
5238
+ patchPaymentMethodsByIdDefault,
5174
5239
  patchSearchSavedById,
5175
5240
  patchTenantMembershipsByTenantIdByUserId,
5176
5241
  patchTenantsById,
@@ -5255,6 +5320,7 @@ export {
5255
5320
  postObjectsCopy,
5256
5321
  postObjectsMove,
5257
5322
  postObjectsRegister,
5323
+ postPaymentMethods,
5258
5324
  postPayments,
5259
5325
  postSearchBatch,
5260
5326
  postSearchReindex,
package/llms.txt CHANGED
@@ -319,6 +319,15 @@ client.setConfig({
319
319
 
320
320
  - `postDocumentsBulkDelete()` - Create bulk delete
321
321
 
322
+ ## Payment method
323
+
324
+ - `getPayment-methods()` - List payment methods
325
+ - `getPayment-methodsById()` - Get payment methods
326
+ - `postPayment-methods()` - Create payment methods
327
+ - `patchPayment-methodsById()` - Update payment methods
328
+ - `patchPayment-methodsByIdDefault()` - Update default
329
+ - `deletePayment-methodsById()` - Delete payment methods
330
+
322
331
  ## Permission
323
332
 
324
333
  - `getPermissions()` - List permissions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.8.25",
3
+ "version": "0.8.26",
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",