@gpt-core/client 0.7.41 → 0.7.52

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
@@ -274,10 +274,6 @@ type WorkspaceSettingsInputCreateType = {
274
274
  review_train?: {
275
275
  confidence_threshold?: number | unknown;
276
276
  } | unknown;
277
- scheduling?: {
278
- enabled?: boolean | unknown;
279
- interval_minutes?: number | unknown;
280
- } | unknown;
281
277
  storage?: unknown | {
282
278
  errors?: {
283
279
  bucket_id?: string | unknown;
@@ -300,6 +296,15 @@ type WorkspaceSettingsInputCreateType = {
300
296
  input?: unknown;
301
297
  output?: unknown;
302
298
  };
299
+ watcher?: {
300
+ claim_expiry_minutes?: number | unknown;
301
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
302
+ enabled?: boolean | unknown;
303
+ log_retention_days?: number | unknown;
304
+ max_retries?: number | unknown;
305
+ retry_delay_ms?: number | unknown;
306
+ source_type?: "local" | "cloud" | unknown;
307
+ } | unknown;
303
308
  };
304
309
  /**
305
310
  * A "Resource object" representing a webhook_config
@@ -1438,10 +1443,6 @@ type WorkspaceSettingsInputUpdateType = {
1438
1443
  review_train?: {
1439
1444
  confidence_threshold?: number | unknown;
1440
1445
  } | unknown;
1441
- scheduling?: {
1442
- enabled?: boolean | unknown;
1443
- interval_minutes?: number | unknown;
1444
- } | unknown;
1445
1446
  storage?: unknown | {
1446
1447
  errors?: {
1447
1448
  bucket_id?: string | unknown;
@@ -1464,6 +1465,15 @@ type WorkspaceSettingsInputUpdateType = {
1464
1465
  input?: unknown;
1465
1466
  output?: unknown;
1466
1467
  };
1468
+ watcher?: {
1469
+ claim_expiry_minutes?: number | unknown;
1470
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
1471
+ enabled?: boolean | unknown;
1472
+ log_retention_days?: number | unknown;
1473
+ max_retries?: number | unknown;
1474
+ retry_delay_ms?: number | unknown;
1475
+ source_type?: "local" | "cloud" | unknown;
1476
+ } | unknown;
1467
1477
  };
1468
1478
  /**
1469
1479
  * A "Resource object" representing a training_analytics
@@ -1688,6 +1698,12 @@ type Tenant = {
1688
1698
  * Cost in credits for training on a single document. Field included by default.
1689
1699
  */
1690
1700
  training_price_credits: number;
1701
+ /**
1702
+ * Training pricing info for this tenant
1703
+ */
1704
+ training_pricing?: {
1705
+ [key: string]: unknown;
1706
+ } | null | unknown;
1691
1707
  };
1692
1708
  id: string;
1693
1709
  /**
@@ -3211,19 +3227,6 @@ type Workspace = {
3211
3227
  */
3212
3228
  confidence_threshold: number;
3213
3229
  };
3214
- /**
3215
- * Field included by default.
3216
- */
3217
- scheduling: {
3218
- /**
3219
- * Field included by default.
3220
- */
3221
- enabled: boolean;
3222
- /**
3223
- * Field included by default.
3224
- */
3225
- interval_minutes: number;
3226
- };
3227
3230
  /**
3228
3231
  * Field included by default.
3229
3232
  */
@@ -3284,6 +3287,39 @@ type Workspace = {
3284
3287
  retention_minutes?: number | null | unknown;
3285
3288
  };
3286
3289
  };
3290
+ /**
3291
+ * Field included by default.
3292
+ */
3293
+ watcher: {
3294
+ /**
3295
+ * Field included by default.
3296
+ */
3297
+ claim_expiry_minutes?: number | null | unknown;
3298
+ /**
3299
+ * Field included by default.
3300
+ */
3301
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
3302
+ /**
3303
+ * Field included by default.
3304
+ */
3305
+ enabled: boolean;
3306
+ /**
3307
+ * Field included by default.
3308
+ */
3309
+ log_retention_days?: number | null | unknown;
3310
+ /**
3311
+ * Field included by default.
3312
+ */
3313
+ max_retries?: number | null | unknown;
3314
+ /**
3315
+ * Field included by default.
3316
+ */
3317
+ retry_delay_ms?: number | null | unknown;
3318
+ /**
3319
+ * Field included by default.
3320
+ */
3321
+ source_type?: "local" | "cloud" | unknown;
3322
+ };
3287
3323
  };
3288
3324
  /**
3289
3325
  * Field included by default.
@@ -3401,6 +3437,14 @@ type ExtractionDocument = {
3401
3437
  * Field included by default.
3402
3438
  */
3403
3439
  progress?: number | null | unknown;
3440
+ /**
3441
+ * Timestamp when document was moved to output/error bucket. Field included by default.
3442
+ */
3443
+ moved_at?: unknown;
3444
+ /**
3445
+ * Full path (bucket/key) where document was copied after successful extraction. Field included by default.
3446
+ */
3447
+ output_storage_path?: string | null | unknown;
3404
3448
  /**
3405
3449
  * Metadata about the training session for this document (trained_at, user_id, scores). Field included by default.
3406
3450
  */
@@ -3449,6 +3493,10 @@ type ExtractionDocument = {
3449
3493
  * State or province code (2-letter). Field included by default.
3450
3494
  */
3451
3495
  state?: string | null | unknown;
3496
+ /**
3497
+ * Full path (bucket/key) where document was copied after failed extraction. Field included by default.
3498
+ */
3499
+ error_storage_path?: string | null | unknown;
3452
3500
  /**
3453
3501
  * Document domain from specialty agent (legal, financial, medical, etc.). Field included by default.
3454
3502
  */
package/dist/index.d.ts CHANGED
@@ -274,10 +274,6 @@ type WorkspaceSettingsInputCreateType = {
274
274
  review_train?: {
275
275
  confidence_threshold?: number | unknown;
276
276
  } | unknown;
277
- scheduling?: {
278
- enabled?: boolean | unknown;
279
- interval_minutes?: number | unknown;
280
- } | unknown;
281
277
  storage?: unknown | {
282
278
  errors?: {
283
279
  bucket_id?: string | unknown;
@@ -300,6 +296,15 @@ type WorkspaceSettingsInputCreateType = {
300
296
  input?: unknown;
301
297
  output?: unknown;
302
298
  };
299
+ watcher?: {
300
+ claim_expiry_minutes?: number | unknown;
301
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
302
+ enabled?: boolean | unknown;
303
+ log_retention_days?: number | unknown;
304
+ max_retries?: number | unknown;
305
+ retry_delay_ms?: number | unknown;
306
+ source_type?: "local" | "cloud" | unknown;
307
+ } | unknown;
303
308
  };
304
309
  /**
305
310
  * A "Resource object" representing a webhook_config
@@ -1438,10 +1443,6 @@ type WorkspaceSettingsInputUpdateType = {
1438
1443
  review_train?: {
1439
1444
  confidence_threshold?: number | unknown;
1440
1445
  } | unknown;
1441
- scheduling?: {
1442
- enabled?: boolean | unknown;
1443
- interval_minutes?: number | unknown;
1444
- } | unknown;
1445
1446
  storage?: unknown | {
1446
1447
  errors?: {
1447
1448
  bucket_id?: string | unknown;
@@ -1464,6 +1465,15 @@ type WorkspaceSettingsInputUpdateType = {
1464
1465
  input?: unknown;
1465
1466
  output?: unknown;
1466
1467
  };
1468
+ watcher?: {
1469
+ claim_expiry_minutes?: number | unknown;
1470
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
1471
+ enabled?: boolean | unknown;
1472
+ log_retention_days?: number | unknown;
1473
+ max_retries?: number | unknown;
1474
+ retry_delay_ms?: number | unknown;
1475
+ source_type?: "local" | "cloud" | unknown;
1476
+ } | unknown;
1467
1477
  };
1468
1478
  /**
1469
1479
  * A "Resource object" representing a training_analytics
@@ -1688,6 +1698,12 @@ type Tenant = {
1688
1698
  * Cost in credits for training on a single document. Field included by default.
1689
1699
  */
1690
1700
  training_price_credits: number;
1701
+ /**
1702
+ * Training pricing info for this tenant
1703
+ */
1704
+ training_pricing?: {
1705
+ [key: string]: unknown;
1706
+ } | null | unknown;
1691
1707
  };
1692
1708
  id: string;
1693
1709
  /**
@@ -3211,19 +3227,6 @@ type Workspace = {
3211
3227
  */
3212
3228
  confidence_threshold: number;
3213
3229
  };
3214
- /**
3215
- * Field included by default.
3216
- */
3217
- scheduling: {
3218
- /**
3219
- * Field included by default.
3220
- */
3221
- enabled: boolean;
3222
- /**
3223
- * Field included by default.
3224
- */
3225
- interval_minutes: number;
3226
- };
3227
3230
  /**
3228
3231
  * Field included by default.
3229
3232
  */
@@ -3284,6 +3287,39 @@ type Workspace = {
3284
3287
  retention_minutes?: number | null | unknown;
3285
3288
  };
3286
3289
  };
3290
+ /**
3291
+ * Field included by default.
3292
+ */
3293
+ watcher: {
3294
+ /**
3295
+ * Field included by default.
3296
+ */
3297
+ claim_expiry_minutes?: number | null | unknown;
3298
+ /**
3299
+ * Field included by default.
3300
+ */
3301
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
3302
+ /**
3303
+ * Field included by default.
3304
+ */
3305
+ enabled: boolean;
3306
+ /**
3307
+ * Field included by default.
3308
+ */
3309
+ log_retention_days?: number | null | unknown;
3310
+ /**
3311
+ * Field included by default.
3312
+ */
3313
+ max_retries?: number | null | unknown;
3314
+ /**
3315
+ * Field included by default.
3316
+ */
3317
+ retry_delay_ms?: number | null | unknown;
3318
+ /**
3319
+ * Field included by default.
3320
+ */
3321
+ source_type?: "local" | "cloud" | unknown;
3322
+ };
3287
3323
  };
3288
3324
  /**
3289
3325
  * Field included by default.
@@ -3401,6 +3437,14 @@ type ExtractionDocument = {
3401
3437
  * Field included by default.
3402
3438
  */
3403
3439
  progress?: number | null | unknown;
3440
+ /**
3441
+ * Timestamp when document was moved to output/error bucket. Field included by default.
3442
+ */
3443
+ moved_at?: unknown;
3444
+ /**
3445
+ * Full path (bucket/key) where document was copied after successful extraction. Field included by default.
3446
+ */
3447
+ output_storage_path?: string | null | unknown;
3404
3448
  /**
3405
3449
  * Metadata about the training session for this document (trained_at, user_id, scores). Field included by default.
3406
3450
  */
@@ -3449,6 +3493,10 @@ type ExtractionDocument = {
3449
3493
  * State or province code (2-letter). Field included by default.
3450
3494
  */
3451
3495
  state?: string | null | unknown;
3496
+ /**
3497
+ * Full path (bucket/key) where document was copied after failed extraction. Field included by default.
3498
+ */
3499
+ error_storage_path?: string | null | unknown;
3452
3500
  /**
3453
3501
  * Document domain from specialty agent (legal, financial, medical, etc.). Field included by default.
3454
3502
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.7.41",
3
+ "version": "0.7.52",
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,6 +43,14 @@
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
+ },
46
54
  "dependencies": {
47
55
  "eventsource-parser": "^3.0.6",
48
56
  "zod": "^3.25.76"
@@ -54,13 +62,5 @@
54
62
  "tsup": "^8.5.1",
55
63
  "typescript": "^5.9.3",
56
64
  "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
+ }