@gpt-core/admin 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
@@ -49,10 +49,6 @@ type WorkspaceSettingsInputCreateType = {
49
49
  review_train?: {
50
50
  confidence_threshold?: number | unknown;
51
51
  } | unknown;
52
- scheduling?: {
53
- enabled?: boolean | unknown;
54
- interval_minutes?: number | unknown;
55
- } | unknown;
56
52
  storage?: unknown | {
57
53
  errors?: {
58
54
  bucket_id?: string | unknown;
@@ -75,6 +71,15 @@ type WorkspaceSettingsInputCreateType = {
75
71
  input?: unknown;
76
72
  output?: unknown;
77
73
  };
74
+ watcher?: {
75
+ claim_expiry_minutes?: number | unknown;
76
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
77
+ enabled?: boolean | unknown;
78
+ log_retention_days?: number | unknown;
79
+ max_retries?: number | unknown;
80
+ retry_delay_ms?: number | unknown;
81
+ source_type?: "local" | "cloud" | unknown;
82
+ } | unknown;
78
83
  };
79
84
  /**
80
85
  * A "Resource object" representing a webhook_config
@@ -1213,10 +1218,6 @@ type WorkspaceSettingsInputUpdateType = {
1213
1218
  review_train?: {
1214
1219
  confidence_threshold?: number | unknown;
1215
1220
  } | unknown;
1216
- scheduling?: {
1217
- enabled?: boolean | unknown;
1218
- interval_minutes?: number | unknown;
1219
- } | unknown;
1220
1221
  storage?: unknown | {
1221
1222
  errors?: {
1222
1223
  bucket_id?: string | unknown;
@@ -1239,6 +1240,15 @@ type WorkspaceSettingsInputUpdateType = {
1239
1240
  input?: unknown;
1240
1241
  output?: unknown;
1241
1242
  };
1243
+ watcher?: {
1244
+ claim_expiry_minutes?: number | unknown;
1245
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
1246
+ enabled?: boolean | unknown;
1247
+ log_retention_days?: number | unknown;
1248
+ max_retries?: number | unknown;
1249
+ retry_delay_ms?: number | unknown;
1250
+ source_type?: "local" | "cloud" | unknown;
1251
+ } | unknown;
1242
1252
  };
1243
1253
  /**
1244
1254
  * A "Resource object" representing a training_analytics
@@ -1463,6 +1473,12 @@ type Tenant = {
1463
1473
  * Cost in credits for training on a single document. Field included by default.
1464
1474
  */
1465
1475
  training_price_credits: number;
1476
+ /**
1477
+ * Training pricing info for this tenant
1478
+ */
1479
+ training_pricing?: {
1480
+ [key: string]: unknown;
1481
+ } | null | unknown;
1466
1482
  };
1467
1483
  id: string;
1468
1484
  /**
@@ -2986,19 +3002,6 @@ type Workspace = {
2986
3002
  */
2987
3003
  confidence_threshold: number;
2988
3004
  };
2989
- /**
2990
- * Field included by default.
2991
- */
2992
- scheduling: {
2993
- /**
2994
- * Field included by default.
2995
- */
2996
- enabled: boolean;
2997
- /**
2998
- * Field included by default.
2999
- */
3000
- interval_minutes: number;
3001
- };
3002
3005
  /**
3003
3006
  * Field included by default.
3004
3007
  */
@@ -3059,6 +3062,39 @@ type Workspace = {
3059
3062
  retention_minutes?: number | null | unknown;
3060
3063
  };
3061
3064
  };
3065
+ /**
3066
+ * Field included by default.
3067
+ */
3068
+ watcher: {
3069
+ /**
3070
+ * Field included by default.
3071
+ */
3072
+ claim_expiry_minutes?: number | null | unknown;
3073
+ /**
3074
+ * Field included by default.
3075
+ */
3076
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
3077
+ /**
3078
+ * Field included by default.
3079
+ */
3080
+ enabled: boolean;
3081
+ /**
3082
+ * Field included by default.
3083
+ */
3084
+ log_retention_days?: number | null | unknown;
3085
+ /**
3086
+ * Field included by default.
3087
+ */
3088
+ max_retries?: number | null | unknown;
3089
+ /**
3090
+ * Field included by default.
3091
+ */
3092
+ retry_delay_ms?: number | null | unknown;
3093
+ /**
3094
+ * Field included by default.
3095
+ */
3096
+ source_type?: "local" | "cloud" | unknown;
3097
+ };
3062
3098
  };
3063
3099
  /**
3064
3100
  * Field included by default.
@@ -3176,6 +3212,14 @@ type ExtractionDocument = {
3176
3212
  * Field included by default.
3177
3213
  */
3178
3214
  progress?: number | null | unknown;
3215
+ /**
3216
+ * Timestamp when document was moved to output/error bucket. Field included by default.
3217
+ */
3218
+ moved_at?: unknown;
3219
+ /**
3220
+ * Full path (bucket/key) where document was copied after successful extraction. Field included by default.
3221
+ */
3222
+ output_storage_path?: string | null | unknown;
3179
3223
  /**
3180
3224
  * Metadata about the training session for this document (trained_at, user_id, scores). Field included by default.
3181
3225
  */
@@ -3224,6 +3268,10 @@ type ExtractionDocument = {
3224
3268
  * State or province code (2-letter). Field included by default.
3225
3269
  */
3226
3270
  state?: string | null | unknown;
3271
+ /**
3272
+ * Full path (bucket/key) where document was copied after failed extraction. Field included by default.
3273
+ */
3274
+ error_storage_path?: string | null | unknown;
3227
3275
  /**
3228
3276
  * Document domain from specialty agent (legal, financial, medical, etc.). Field included by default.
3229
3277
  */
package/dist/index.d.ts CHANGED
@@ -49,10 +49,6 @@ type WorkspaceSettingsInputCreateType = {
49
49
  review_train?: {
50
50
  confidence_threshold?: number | unknown;
51
51
  } | unknown;
52
- scheduling?: {
53
- enabled?: boolean | unknown;
54
- interval_minutes?: number | unknown;
55
- } | unknown;
56
52
  storage?: unknown | {
57
53
  errors?: {
58
54
  bucket_id?: string | unknown;
@@ -75,6 +71,15 @@ type WorkspaceSettingsInputCreateType = {
75
71
  input?: unknown;
76
72
  output?: unknown;
77
73
  };
74
+ watcher?: {
75
+ claim_expiry_minutes?: number | unknown;
76
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
77
+ enabled?: boolean | unknown;
78
+ log_retention_days?: number | unknown;
79
+ max_retries?: number | unknown;
80
+ retry_delay_ms?: number | unknown;
81
+ source_type?: "local" | "cloud" | unknown;
82
+ } | unknown;
78
83
  };
79
84
  /**
80
85
  * A "Resource object" representing a webhook_config
@@ -1213,10 +1218,6 @@ type WorkspaceSettingsInputUpdateType = {
1213
1218
  review_train?: {
1214
1219
  confidence_threshold?: number | unknown;
1215
1220
  } | unknown;
1216
- scheduling?: {
1217
- enabled?: boolean | unknown;
1218
- interval_minutes?: number | unknown;
1219
- } | unknown;
1220
1221
  storage?: unknown | {
1221
1222
  errors?: {
1222
1223
  bucket_id?: string | unknown;
@@ -1239,6 +1240,15 @@ type WorkspaceSettingsInputUpdateType = {
1239
1240
  input?: unknown;
1240
1241
  output?: unknown;
1241
1242
  };
1243
+ watcher?: {
1244
+ claim_expiry_minutes?: number | unknown;
1245
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
1246
+ enabled?: boolean | unknown;
1247
+ log_retention_days?: number | unknown;
1248
+ max_retries?: number | unknown;
1249
+ retry_delay_ms?: number | unknown;
1250
+ source_type?: "local" | "cloud" | unknown;
1251
+ } | unknown;
1242
1252
  };
1243
1253
  /**
1244
1254
  * A "Resource object" representing a training_analytics
@@ -1463,6 +1473,12 @@ type Tenant = {
1463
1473
  * Cost in credits for training on a single document. Field included by default.
1464
1474
  */
1465
1475
  training_price_credits: number;
1476
+ /**
1477
+ * Training pricing info for this tenant
1478
+ */
1479
+ training_pricing?: {
1480
+ [key: string]: unknown;
1481
+ } | null | unknown;
1466
1482
  };
1467
1483
  id: string;
1468
1484
  /**
@@ -2986,19 +3002,6 @@ type Workspace = {
2986
3002
  */
2987
3003
  confidence_threshold: number;
2988
3004
  };
2989
- /**
2990
- * Field included by default.
2991
- */
2992
- scheduling: {
2993
- /**
2994
- * Field included by default.
2995
- */
2996
- enabled: boolean;
2997
- /**
2998
- * Field included by default.
2999
- */
3000
- interval_minutes: number;
3001
- };
3002
3005
  /**
3003
3006
  * Field included by default.
3004
3007
  */
@@ -3059,6 +3062,39 @@ type Workspace = {
3059
3062
  retention_minutes?: number | null | unknown;
3060
3063
  };
3061
3064
  };
3065
+ /**
3066
+ * Field included by default.
3067
+ */
3068
+ watcher: {
3069
+ /**
3070
+ * Field included by default.
3071
+ */
3072
+ claim_expiry_minutes?: number | null | unknown;
3073
+ /**
3074
+ * Field included by default.
3075
+ */
3076
+ duplicate_action?: "skip" | "move_to_processed" | "move_to_skipped" | unknown;
3077
+ /**
3078
+ * Field included by default.
3079
+ */
3080
+ enabled: boolean;
3081
+ /**
3082
+ * Field included by default.
3083
+ */
3084
+ log_retention_days?: number | null | unknown;
3085
+ /**
3086
+ * Field included by default.
3087
+ */
3088
+ max_retries?: number | null | unknown;
3089
+ /**
3090
+ * Field included by default.
3091
+ */
3092
+ retry_delay_ms?: number | null | unknown;
3093
+ /**
3094
+ * Field included by default.
3095
+ */
3096
+ source_type?: "local" | "cloud" | unknown;
3097
+ };
3062
3098
  };
3063
3099
  /**
3064
3100
  * Field included by default.
@@ -3176,6 +3212,14 @@ type ExtractionDocument = {
3176
3212
  * Field included by default.
3177
3213
  */
3178
3214
  progress?: number | null | unknown;
3215
+ /**
3216
+ * Timestamp when document was moved to output/error bucket. Field included by default.
3217
+ */
3218
+ moved_at?: unknown;
3219
+ /**
3220
+ * Full path (bucket/key) where document was copied after successful extraction. Field included by default.
3221
+ */
3222
+ output_storage_path?: string | null | unknown;
3179
3223
  /**
3180
3224
  * Metadata about the training session for this document (trained_at, user_id, scores). Field included by default.
3181
3225
  */
@@ -3224,6 +3268,10 @@ type ExtractionDocument = {
3224
3268
  * State or province code (2-letter). Field included by default.
3225
3269
  */
3226
3270
  state?: string | null | unknown;
3271
+ /**
3272
+ * Full path (bucket/key) where document was copied after failed extraction. Field included by default.
3273
+ */
3274
+ error_storage_path?: string | null | unknown;
3227
3275
  /**
3228
3276
  * Document domain from specialty agent (legal, financial, medical, etc.). Field included by default.
3229
3277
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/admin",
3
- "version": "0.7.41",
3
+ "version": "0.7.52",
4
4
  "description": "TypeScript SDK for GPT Core Admin API - Platform administration and ISV management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -42,6 +42,14 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
+ "scripts": {
46
+ "generate": "openapi-ts",
47
+ "build": "tsup src/index.ts --format cjs,esm --dts",
48
+ "test": "vitest run",
49
+ "test:watch": "vitest",
50
+ "test:ui": "vitest --ui",
51
+ "test:coverage": "vitest run --coverage"
52
+ },
45
53
  "dependencies": {
46
54
  "zod": "^3.25.76"
47
55
  },
@@ -53,13 +61,5 @@
53
61
  "tsup": "^8.5.1",
54
62
  "typescript": "^5.9.3",
55
63
  "vitest": "^4.0.15"
56
- },
57
- "scripts": {
58
- "generate": "openapi-ts",
59
- "build": "tsup src/index.ts --format cjs,esm --dts",
60
- "test": "vitest run",
61
- "test:watch": "vitest",
62
- "test:ui": "vitest --ui",
63
- "test:coverage": "vitest run --coverage"
64
64
  }
65
- }
65
+ }