@gpt-core/client 0.7.66 → 0.7.68

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.d.mts CHANGED
@@ -22060,6 +22060,9 @@ type PostAgentsByIdDiscoverSchemaData = {
22060
22060
  "x-application-key": string;
22061
22061
  };
22062
22062
  path: {
22063
+ /**
22064
+ * Agent ID (automatically mapped from route)
22065
+ */
22063
22066
  id: string;
22064
22067
  };
22065
22068
  query?: never;
@@ -26297,6 +26300,7 @@ declare class GptCoreError extends Error {
26297
26300
  readonly requestId?: string;
26298
26301
  readonly headers?: Record<string, string>;
26299
26302
  readonly body?: any;
26303
+ cause?: Error;
26300
26304
  constructor(message: string, options?: {
26301
26305
  statusCode?: number;
26302
26306
  code?: string;
package/dist/index.d.ts CHANGED
@@ -22060,6 +22060,9 @@ type PostAgentsByIdDiscoverSchemaData = {
22060
22060
  "x-application-key": string;
22061
22061
  };
22062
22062
  path: {
22063
+ /**
22064
+ * Agent ID (automatically mapped from route)
22065
+ */
22063
22066
  id: string;
22064
22067
  };
22065
22068
  query?: never;
@@ -26297,6 +26300,7 @@ declare class GptCoreError extends Error {
26297
26300
  readonly requestId?: string;
26298
26301
  readonly headers?: Record<string, string>;
26299
26302
  readonly body?: any;
26303
+ cause?: Error;
26300
26304
  constructor(message: string, options?: {
26301
26305
  statusCode?: number;
26302
26306
  code?: string;
package/dist/index.js CHANGED
@@ -3673,9 +3673,7 @@ var GptCoreError = class extends Error {
3673
3673
  this.requestId = options?.requestId;
3674
3674
  this.headers = options?.headers;
3675
3675
  this.body = options?.body;
3676
- if (options?.cause) {
3677
- this.cause = options.cause;
3678
- }
3676
+ this.cause = options?.cause;
3679
3677
  if (Error.captureStackTrace) {
3680
3678
  Error.captureStackTrace(this, this.constructor);
3681
3679
  }
package/dist/index.mjs CHANGED
@@ -3359,9 +3359,7 @@ var GptCoreError = class extends Error {
3359
3359
  this.requestId = options?.requestId;
3360
3360
  this.headers = options?.headers;
3361
3361
  this.body = options?.body;
3362
- if (options?.cause) {
3363
- this.cause = options.cause;
3364
- }
3362
+ this.cause = options?.cause;
3365
3363
  if (Error.captureStackTrace) {
3366
3364
  Error.captureStackTrace(this, this.constructor);
3367
3365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.7.66",
3
+ "version": "0.7.68",
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,14 @@
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
+ "typecheck": "tsc --noEmit",
61
+ "build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
62
+ "test": "vitest run",
63
+ "test:watch": "vitest",
64
+ "test:ui": "vitest --ui",
65
+ "test:coverage": "vitest run --coverage"
65
66
  }
66
- }
67
+ }