@gpt-core/client 0.5.6 → 0.5.8

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
@@ -174,6 +174,7 @@ __export(index_exports, {
174
174
  patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
175
175
  patchApiKeysByIdRotate: () => patchApiKeysByIdRotate,
176
176
  patchApplicationsById: () => patchApplicationsById,
177
+ patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
177
178
  patchBucketsById: () => patchBucketsById,
178
179
  patchConfigsByKey: () => patchConfigsByKey,
179
180
  patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
@@ -246,7 +247,9 @@ __export(index_exports, {
246
247
  postTenantMemberships: () => postTenantMemberships,
247
248
  postTenants: () => postTenants,
248
249
  postTenantsByIdBuyStorage: () => postTenantsByIdBuyStorage,
250
+ postTenantsByIdCredit: () => postTenantsByIdCredit,
249
251
  postTenantsByIdRemoveStorage: () => postTenantsByIdRemoveStorage,
252
+ postTenantsIsv: () => postTenantsIsv,
250
253
  postThreads: () => postThreads,
251
254
  postThreadsActive: () => postThreadsActive,
252
255
  postThreadsByIdMessages: () => postThreadsByIdMessages,
@@ -1619,6 +1622,16 @@ var postUsersAuthRegisterWithOidc = (options) => (options.client ?? client).post
1619
1622
  ...options.headers
1620
1623
  }
1621
1624
  });
1625
+ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
1626
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1627
+ security: [{ scheme: "bearer", type: "http" }],
1628
+ url: "/tenants/{id}/credit",
1629
+ ...options,
1630
+ headers: {
1631
+ "Content-Type": "application/vnd.api+json",
1632
+ ...options.headers
1633
+ }
1634
+ });
1622
1635
  var getTransactionsById = (options) => (options.client ?? client).get({
1623
1636
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1624
1637
  security: [{ scheme: "bearer", type: "http" }],
@@ -2340,6 +2353,16 @@ var postExtractionSchemaFields = (options) => (options.client ?? client).post({
2340
2353
  ...options.headers
2341
2354
  }
2342
2355
  });
2356
+ var patchApplicationsByIdGrantCredits = (options) => (options.client ?? client).patch({
2357
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2358
+ security: [{ scheme: "bearer", type: "http" }],
2359
+ url: "/applications/{id}/grant-credits",
2360
+ ...options,
2361
+ headers: {
2362
+ "Content-Type": "application/vnd.api+json",
2363
+ ...options.headers
2364
+ }
2365
+ });
2343
2366
  var getSearchStatus = (options) => (options.client ?? client).get({
2344
2367
  querySerializer: {
2345
2368
  parameters: {
@@ -2403,6 +2426,16 @@ var getWorkspacesMine = (options) => (options.client ?? client).get({
2403
2426
  url: "/workspaces/mine",
2404
2427
  ...options
2405
2428
  });
2429
+ var postTenantsIsv = (options) => (options.client ?? client).post({
2430
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2431
+ security: [{ scheme: "bearer", type: "http" }],
2432
+ url: "/tenants/isv",
2433
+ ...options,
2434
+ headers: {
2435
+ "Content-Type": "application/vnd.api+json",
2436
+ ...options.headers
2437
+ }
2438
+ });
2406
2439
  var postSearchReindex = (options) => (options.client ?? client).post({
2407
2440
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2408
2441
  security: [{ scheme: "bearer", type: "http" }],
@@ -3536,6 +3569,7 @@ async function collectStreamedMessage(stream) {
3536
3569
  patchApiKeysByIdRevoke,
3537
3570
  patchApiKeysByIdRotate,
3538
3571
  patchApplicationsById,
3572
+ patchApplicationsByIdGrantCredits,
3539
3573
  patchBucketsById,
3540
3574
  patchConfigsByKey,
3541
3575
  patchExtractionDocumentsByIdFinishUpload,
@@ -3608,7 +3642,9 @@ async function collectStreamedMessage(stream) {
3608
3642
  postTenantMemberships,
3609
3643
  postTenants,
3610
3644
  postTenantsByIdBuyStorage,
3645
+ postTenantsByIdCredit,
3611
3646
  postTenantsByIdRemoveStorage,
3647
+ postTenantsIsv,
3612
3648
  postThreads,
3613
3649
  postThreadsActive,
3614
3650
  postThreadsByIdMessages,
package/dist/index.mjs CHANGED
@@ -1340,6 +1340,16 @@ var postUsersAuthRegisterWithOidc = (options) => (options.client ?? client).post
1340
1340
  ...options.headers
1341
1341
  }
1342
1342
  });
1343
+ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
1344
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1345
+ security: [{ scheme: "bearer", type: "http" }],
1346
+ url: "/tenants/{id}/credit",
1347
+ ...options,
1348
+ headers: {
1349
+ "Content-Type": "application/vnd.api+json",
1350
+ ...options.headers
1351
+ }
1352
+ });
1343
1353
  var getTransactionsById = (options) => (options.client ?? client).get({
1344
1354
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1345
1355
  security: [{ scheme: "bearer", type: "http" }],
@@ -2061,6 +2071,16 @@ var postExtractionSchemaFields = (options) => (options.client ?? client).post({
2061
2071
  ...options.headers
2062
2072
  }
2063
2073
  });
2074
+ var patchApplicationsByIdGrantCredits = (options) => (options.client ?? client).patch({
2075
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2076
+ security: [{ scheme: "bearer", type: "http" }],
2077
+ url: "/applications/{id}/grant-credits",
2078
+ ...options,
2079
+ headers: {
2080
+ "Content-Type": "application/vnd.api+json",
2081
+ ...options.headers
2082
+ }
2083
+ });
2064
2084
  var getSearchStatus = (options) => (options.client ?? client).get({
2065
2085
  querySerializer: {
2066
2086
  parameters: {
@@ -2124,6 +2144,16 @@ var getWorkspacesMine = (options) => (options.client ?? client).get({
2124
2144
  url: "/workspaces/mine",
2125
2145
  ...options
2126
2146
  });
2147
+ var postTenantsIsv = (options) => (options.client ?? client).post({
2148
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2149
+ security: [{ scheme: "bearer", type: "http" }],
2150
+ url: "/tenants/isv",
2151
+ ...options,
2152
+ headers: {
2153
+ "Content-Type": "application/vnd.api+json",
2154
+ ...options.headers
2155
+ }
2156
+ });
2127
2157
  var postSearchReindex = (options) => (options.client ?? client).post({
2128
2158
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2129
2159
  security: [{ scheme: "bearer", type: "http" }],
@@ -3256,6 +3286,7 @@ export {
3256
3286
  patchApiKeysByIdRevoke,
3257
3287
  patchApiKeysByIdRotate,
3258
3288
  patchApplicationsById,
3289
+ patchApplicationsByIdGrantCredits,
3259
3290
  patchBucketsById,
3260
3291
  patchConfigsByKey,
3261
3292
  patchExtractionDocumentsByIdFinishUpload,
@@ -3328,7 +3359,9 @@ export {
3328
3359
  postTenantMemberships,
3329
3360
  postTenants,
3330
3361
  postTenantsByIdBuyStorage,
3362
+ postTenantsByIdCredit,
3331
3363
  postTenantsByIdRemoveStorage,
3364
+ postTenantsIsv,
3332
3365
  postThreads,
3333
3366
  postThreadsActive,
3334
3367
  postThreadsByIdMessages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
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",