@gpt-core/client 0.8.25 → 0.8.27

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,8 @@ __export(index_exports, {
365
370
  postObjectsCopy: () => postObjectsCopy,
366
371
  postObjectsMove: () => postObjectsMove,
367
372
  postObjectsRegister: () => postObjectsRegister,
373
+ postPaymentMethods: () => postPaymentMethods,
374
+ postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
368
375
  postPayments: () => postPayments,
369
376
  postSearchBatch: () => postSearchBatch,
370
377
  postSearchReindex: () => postSearchReindex,
@@ -442,6 +449,7 @@ __export(sdk_gen_exports, {
442
449
  deleteNotificationMethodsById: () => deleteNotificationMethodsById,
443
450
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
444
451
  deleteObjectsById: () => deleteObjectsById,
452
+ deletePaymentMethodsById: () => deletePaymentMethodsById,
445
453
  deleteSearchSavedById: () => deleteSearchSavedById,
446
454
  deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
447
455
  deleteTenantsById: () => deleteTenantsById,
@@ -535,6 +543,8 @@ __export(sdk_gen_exports, {
535
543
  getNotificationPreferencesById: () => getNotificationPreferencesById,
536
544
  getObjects: () => getObjects,
537
545
  getObjectsById: () => getObjectsById,
546
+ getPaymentMethods: () => getPaymentMethods,
547
+ getPaymentMethodsById: () => getPaymentMethodsById,
538
548
  getPermissions: () => getPermissions,
539
549
  getPermissionsById: () => getPermissionsById,
540
550
  getPermissionsMeta: () => getPermissionsMeta,
@@ -649,6 +659,8 @@ __export(sdk_gen_exports, {
649
659
  patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
650
660
  patchNotificationMethodsByIdVerify: () => patchNotificationMethodsByIdVerify,
651
661
  patchNotificationPreferencesById: () => patchNotificationPreferencesById,
662
+ patchPaymentMethodsById: () => patchPaymentMethodsById,
663
+ patchPaymentMethodsByIdDefault: () => patchPaymentMethodsByIdDefault,
652
664
  patchSearchSavedById: () => patchSearchSavedById,
653
665
  patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
654
666
  patchTenantsById: () => patchTenantsById,
@@ -733,6 +745,8 @@ __export(sdk_gen_exports, {
733
745
  postObjectsCopy: () => postObjectsCopy,
734
746
  postObjectsMove: () => postObjectsMove,
735
747
  postObjectsRegister: () => postObjectsRegister,
748
+ postPaymentMethods: () => postPaymentMethods,
749
+ postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
736
750
  postPayments: () => postPayments,
737
751
  postSearchBatch: () => postSearchBatch,
738
752
  postSearchReindex: () => postSearchReindex,
@@ -1728,6 +1742,28 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1728
1742
  ...options.headers
1729
1743
  }
1730
1744
  });
1745
+ var getPaymentMethods = (options) => (options.client ?? client).get({
1746
+ querySerializer: {
1747
+ parameters: {
1748
+ filter: { object: { style: "form" } },
1749
+ page: { object: { style: "form" } },
1750
+ fields: { object: { style: "form" } }
1751
+ }
1752
+ },
1753
+ security: [{ scheme: "bearer", type: "http" }],
1754
+ url: "/payment-methods",
1755
+ ...options
1756
+ });
1757
+ var postPaymentMethods = (options) => (options.client ?? client).post({
1758
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1759
+ security: [{ scheme: "bearer", type: "http" }],
1760
+ url: "/payment-methods",
1761
+ ...options,
1762
+ headers: {
1763
+ "Content-Type": "application/vnd.api+json",
1764
+ ...options.headers
1765
+ }
1766
+ });
1731
1767
  var getAgentsByIdStats = (options) => (options.client ?? client).get({
1732
1768
  security: [{ scheme: "bearer", type: "http" }],
1733
1769
  url: "/agents/{id}/stats",
@@ -3248,6 +3284,16 @@ var postBuckets = (options) => (options.client ?? client).post({
3248
3284
  ...options.headers
3249
3285
  }
3250
3286
  });
3287
+ var postPaymentMethodsTokenize = (options) => (options.client ?? client).post({
3288
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3289
+ security: [{ scheme: "bearer", type: "http" }],
3290
+ url: "/payment-methods/tokenize",
3291
+ ...options,
3292
+ headers: {
3293
+ "Content-Type": "application/vnd.api+json",
3294
+ ...options.headers
3295
+ }
3296
+ });
3251
3297
  var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
3252
3298
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3253
3299
  security: [{ scheme: "bearer", type: "http" }],
@@ -3956,6 +4002,28 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
3956
4002
  url: "/agents/{id}/schema_versions/{version_id}/activate",
3957
4003
  ...options
3958
4004
  });
4005
+ var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
4006
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4007
+ security: [{ scheme: "bearer", type: "http" }],
4008
+ url: "/payment-methods/{id}",
4009
+ ...options
4010
+ });
4011
+ var getPaymentMethodsById = (options) => (options.client ?? client).get({
4012
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4013
+ security: [{ scheme: "bearer", type: "http" }],
4014
+ url: "/payment-methods/{id}",
4015
+ ...options
4016
+ });
4017
+ var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
4018
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4019
+ security: [{ scheme: "bearer", type: "http" }],
4020
+ url: "/payment-methods/{id}",
4021
+ ...options,
4022
+ headers: {
4023
+ "Content-Type": "application/vnd.api+json",
4024
+ ...options.headers
4025
+ }
4026
+ });
3959
4027
  var deleteBucketsById = (options) => (options.client ?? client).delete({
3960
4028
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3961
4029
  security: [{ scheme: "bearer", type: "http" }],
@@ -4653,6 +4721,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
4653
4721
  ...options.headers
4654
4722
  }
4655
4723
  });
4724
+ var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
4725
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4726
+ security: [{ scheme: "bearer", type: "http" }],
4727
+ url: "/payment-methods/{id}/default",
4728
+ ...options,
4729
+ headers: {
4730
+ "Content-Type": "application/vnd.api+json",
4731
+ ...options.headers
4732
+ }
4733
+ });
4656
4734
  var postAgentsByIdExport = (options) => (options.client ?? client).post({
4657
4735
  security: [{ scheme: "bearer", type: "http" }],
4658
4736
  url: "/agents/{id}/export",
@@ -5378,6 +5456,7 @@ var index_default = gptCore;
5378
5456
  deleteNotificationMethodsById,
5379
5457
  deleteNotificationPreferencesById,
5380
5458
  deleteObjectsById,
5459
+ deletePaymentMethodsById,
5381
5460
  deleteSearchSavedById,
5382
5461
  deleteTenantMembershipsByTenantIdByUserId,
5383
5462
  deleteTenantsById,
@@ -5471,6 +5550,8 @@ var index_default = gptCore;
5471
5550
  getNotificationPreferencesById,
5472
5551
  getObjects,
5473
5552
  getObjectsById,
5553
+ getPaymentMethods,
5554
+ getPaymentMethodsById,
5474
5555
  getPermissions,
5475
5556
  getPermissionsById,
5476
5557
  getPermissionsMeta,
@@ -5589,6 +5670,8 @@ var index_default = gptCore;
5589
5670
  patchNotificationMethodsByIdSetPrimary,
5590
5671
  patchNotificationMethodsByIdVerify,
5591
5672
  patchNotificationPreferencesById,
5673
+ patchPaymentMethodsById,
5674
+ patchPaymentMethodsByIdDefault,
5592
5675
  patchSearchSavedById,
5593
5676
  patchTenantMembershipsByTenantIdByUserId,
5594
5677
  patchTenantsById,
@@ -5673,6 +5756,8 @@ var index_default = gptCore;
5673
5756
  postObjectsCopy,
5674
5757
  postObjectsMove,
5675
5758
  postObjectsRegister,
5759
+ postPaymentMethods,
5760
+ postPaymentMethodsTokenize,
5676
5761
  postPayments,
5677
5762
  postSearchBatch,
5678
5763
  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,8 @@ __export(sdk_gen_exports, {
315
320
  postObjectsCopy: () => postObjectsCopy,
316
321
  postObjectsMove: () => postObjectsMove,
317
322
  postObjectsRegister: () => postObjectsRegister,
323
+ postPaymentMethods: () => postPaymentMethods,
324
+ postPaymentMethodsTokenize: () => postPaymentMethodsTokenize,
318
325
  postPayments: () => postPayments,
319
326
  postSearchBatch: () => postSearchBatch,
320
327
  postSearchReindex: () => postSearchReindex,
@@ -1310,6 +1317,28 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1310
1317
  ...options.headers
1311
1318
  }
1312
1319
  });
1320
+ var getPaymentMethods = (options) => (options.client ?? client).get({
1321
+ querySerializer: {
1322
+ parameters: {
1323
+ filter: { object: { style: "form" } },
1324
+ page: { object: { style: "form" } },
1325
+ fields: { object: { style: "form" } }
1326
+ }
1327
+ },
1328
+ security: [{ scheme: "bearer", type: "http" }],
1329
+ url: "/payment-methods",
1330
+ ...options
1331
+ });
1332
+ var postPaymentMethods = (options) => (options.client ?? client).post({
1333
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1334
+ security: [{ scheme: "bearer", type: "http" }],
1335
+ url: "/payment-methods",
1336
+ ...options,
1337
+ headers: {
1338
+ "Content-Type": "application/vnd.api+json",
1339
+ ...options.headers
1340
+ }
1341
+ });
1313
1342
  var getAgentsByIdStats = (options) => (options.client ?? client).get({
1314
1343
  security: [{ scheme: "bearer", type: "http" }],
1315
1344
  url: "/agents/{id}/stats",
@@ -2830,6 +2859,16 @@ var postBuckets = (options) => (options.client ?? client).post({
2830
2859
  ...options.headers
2831
2860
  }
2832
2861
  });
2862
+ var postPaymentMethodsTokenize = (options) => (options.client ?? client).post({
2863
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2864
+ security: [{ scheme: "bearer", type: "http" }],
2865
+ url: "/payment-methods/tokenize",
2866
+ ...options,
2867
+ headers: {
2868
+ "Content-Type": "application/vnd.api+json",
2869
+ ...options.headers
2870
+ }
2871
+ });
2833
2872
  var getWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = (options) => (options.client ?? client).get({
2834
2873
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2835
2874
  security: [{ scheme: "bearer", type: "http" }],
@@ -3538,6 +3577,28 @@ var postAgentsByIdSchemaVersionsByVersionIdActivate = (options) => (options.clie
3538
3577
  url: "/agents/{id}/schema_versions/{version_id}/activate",
3539
3578
  ...options
3540
3579
  });
3580
+ var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
3581
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3582
+ security: [{ scheme: "bearer", type: "http" }],
3583
+ url: "/payment-methods/{id}",
3584
+ ...options
3585
+ });
3586
+ var getPaymentMethodsById = (options) => (options.client ?? client).get({
3587
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3588
+ security: [{ scheme: "bearer", type: "http" }],
3589
+ url: "/payment-methods/{id}",
3590
+ ...options
3591
+ });
3592
+ var patchPaymentMethodsById = (options) => (options.client ?? client).patch({
3593
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3594
+ security: [{ scheme: "bearer", type: "http" }],
3595
+ url: "/payment-methods/{id}",
3596
+ ...options,
3597
+ headers: {
3598
+ "Content-Type": "application/vnd.api+json",
3599
+ ...options.headers
3600
+ }
3601
+ });
3541
3602
  var deleteBucketsById = (options) => (options.client ?? client).delete({
3542
3603
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3543
3604
  security: [{ scheme: "bearer", type: "http" }],
@@ -4235,6 +4296,16 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
4235
4296
  ...options.headers
4236
4297
  }
4237
4298
  });
4299
+ var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
4300
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
4301
+ security: [{ scheme: "bearer", type: "http" }],
4302
+ url: "/payment-methods/{id}/default",
4303
+ ...options,
4304
+ headers: {
4305
+ "Content-Type": "application/vnd.api+json",
4306
+ ...options.headers
4307
+ }
4308
+ });
4238
4309
  var postAgentsByIdExport = (options) => (options.client ?? client).post({
4239
4310
  security: [{ scheme: "bearer", type: "http" }],
4240
4311
  url: "/agents/{id}/export",
@@ -4960,6 +5031,7 @@ export {
4960
5031
  deleteNotificationMethodsById,
4961
5032
  deleteNotificationPreferencesById,
4962
5033
  deleteObjectsById,
5034
+ deletePaymentMethodsById,
4963
5035
  deleteSearchSavedById,
4964
5036
  deleteTenantMembershipsByTenantIdByUserId,
4965
5037
  deleteTenantsById,
@@ -5053,6 +5125,8 @@ export {
5053
5125
  getNotificationPreferencesById,
5054
5126
  getObjects,
5055
5127
  getObjectsById,
5128
+ getPaymentMethods,
5129
+ getPaymentMethodsById,
5056
5130
  getPermissions,
5057
5131
  getPermissionsById,
5058
5132
  getPermissionsMeta,
@@ -5171,6 +5245,8 @@ export {
5171
5245
  patchNotificationMethodsByIdSetPrimary,
5172
5246
  patchNotificationMethodsByIdVerify,
5173
5247
  patchNotificationPreferencesById,
5248
+ patchPaymentMethodsById,
5249
+ patchPaymentMethodsByIdDefault,
5174
5250
  patchSearchSavedById,
5175
5251
  patchTenantMembershipsByTenantIdByUserId,
5176
5252
  patchTenantsById,
@@ -5255,6 +5331,8 @@ export {
5255
5331
  postObjectsCopy,
5256
5332
  postObjectsMove,
5257
5333
  postObjectsRegister,
5334
+ postPaymentMethods,
5335
+ postPaymentMethodsTokenize,
5258
5336
  postPayments,
5259
5337
  postSearchBatch,
5260
5338
  postSearchReindex,
package/llms.txt CHANGED
@@ -319,6 +319,16 @@ 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
+ - `postPayment-methodsTokenize()` - Create tokenize
328
+ - `patchPayment-methodsById()` - Update payment methods
329
+ - `patchPayment-methodsByIdDefault()` - Update default
330
+ - `deletePayment-methodsById()` - Delete payment methods
331
+
322
332
  ## Permission
323
333
 
324
334
  - `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.27",
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",