@gpt-core/client 0.7.23 → 0.7.41

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
@@ -196,6 +196,7 @@ __export(index_exports, {
196
196
  patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
197
197
  patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
198
198
  patchApiKeysByIdRotate: () => patchApiKeysByIdRotate,
199
+ patchApiKeysByIdSetBudget: () => patchApiKeysByIdSetBudget,
199
200
  patchApplicationsById: () => patchApplicationsById,
200
201
  patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
201
202
  patchBucketsById: () => patchBucketsById,
@@ -465,6 +466,7 @@ __export(sdk_gen_exports, {
465
466
  patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
466
467
  patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
467
468
  patchApiKeysByIdRotate: () => patchApiKeysByIdRotate,
469
+ patchApiKeysByIdSetBudget: () => patchApiKeysByIdSetBudget,
468
470
  patchApplicationsById: () => patchApplicationsById,
469
471
  patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
470
472
  patchBucketsById: () => patchBucketsById,
@@ -1730,6 +1732,16 @@ var postTokens = (options) => (options.client ?? client).post({
1730
1732
  ...options.headers
1731
1733
  }
1732
1734
  });
1735
+ var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
1736
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1737
+ security: [{ scheme: "bearer", type: "http" }],
1738
+ url: "/api_keys/{id}/set_budget",
1739
+ ...options,
1740
+ headers: {
1741
+ "Content-Type": "application/vnd.api+json",
1742
+ ...options.headers
1743
+ }
1744
+ });
1733
1745
  var deleteTrainingExamplesById = (options) => (options.client ?? client).delete({
1734
1746
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1735
1747
  security: [{ scheme: "bearer", type: "http" }],
@@ -4466,6 +4478,7 @@ var index_default = gptCore;
4466
4478
  patchApiKeysByIdAllocate,
4467
4479
  patchApiKeysByIdRevoke,
4468
4480
  patchApiKeysByIdRotate,
4481
+ patchApiKeysByIdSetBudget,
4469
4482
  patchApplicationsById,
4470
4483
  patchApplicationsByIdGrantCredits,
4471
4484
  patchBucketsById,
package/dist/index.mjs CHANGED
@@ -146,6 +146,7 @@ __export(sdk_gen_exports, {
146
146
  patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
147
147
  patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
148
148
  patchApiKeysByIdRotate: () => patchApiKeysByIdRotate,
149
+ patchApiKeysByIdSetBudget: () => patchApiKeysByIdSetBudget,
149
150
  patchApplicationsById: () => patchApplicationsById,
150
151
  patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
151
152
  patchBucketsById: () => patchBucketsById,
@@ -1411,6 +1412,16 @@ var postTokens = (options) => (options.client ?? client).post({
1411
1412
  ...options.headers
1412
1413
  }
1413
1414
  });
1415
+ var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
1416
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1417
+ security: [{ scheme: "bearer", type: "http" }],
1418
+ url: "/api_keys/{id}/set_budget",
1419
+ ...options,
1420
+ headers: {
1421
+ "Content-Type": "application/vnd.api+json",
1422
+ ...options.headers
1423
+ }
1424
+ });
1414
1425
  var deleteTrainingExamplesById = (options) => (options.client ?? client).delete({
1415
1426
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1416
1427
  security: [{ scheme: "bearer", type: "http" }],
@@ -4147,6 +4158,7 @@ export {
4147
4158
  patchApiKeysByIdAllocate,
4148
4159
  patchApiKeysByIdRevoke,
4149
4160
  patchApiKeysByIdRotate,
4161
+ patchApiKeysByIdSetBudget,
4150
4162
  patchApplicationsById,
4151
4163
  patchApplicationsByIdGrantCredits,
4152
4164
  patchBucketsById,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.7.23",
3
+ "version": "0.7.41",
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",
@@ -43,14 +43,6 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "scripts": {
47
- "generate": "openapi-ts",
48
- "build": "tsup src/index.ts --format cjs,esm --dts",
49
- "test": "vitest run",
50
- "test:watch": "vitest",
51
- "test:ui": "vitest --ui",
52
- "test:coverage": "vitest run --coverage"
53
- },
54
46
  "dependencies": {
55
47
  "eventsource-parser": "^3.0.6",
56
48
  "zod": "^3.25.76"
@@ -62,5 +54,13 @@
62
54
  "tsup": "^8.5.1",
63
55
  "typescript": "^5.9.3",
64
56
  "vitest": "^4.0.15"
57
+ },
58
+ "scripts": {
59
+ "generate": "openapi-ts",
60
+ "build": "tsup src/index.ts --format cjs,esm --dts",
61
+ "test": "vitest run",
62
+ "test:watch": "vitest",
63
+ "test:ui": "vitest --ui",
64
+ "test:coverage": "vitest run --coverage"
65
65
  }
66
- }
66
+ }