@plyaz/types 1.29.0 → 1.29.2

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.
@@ -592,6 +592,13 @@ export type CoreExtractServiceInstance<T> = T extends CoreInitializableDomainSer
592
592
  export interface CoreFeatureFlagInitConfig {
593
593
  /** Whether to enable feature flags (default: true) */
594
594
  enabled?: boolean;
595
+ /**
596
+ * Provider type for feature flags
597
+ * - 'memory': Flags stored in memory only (no API calls, for testing/local)
598
+ * - 'api': Flags fetched from API endpoint (for production)
599
+ * @default 'api'
600
+ */
601
+ provider?: 'memory' | 'api';
595
602
  /** Default flag values */
596
603
  defaults?: Record<string, FeatureFlagValue>;
597
604
  /** Polling configuration */
@@ -37,4 +37,11 @@ export interface CoreErrorOptions {
37
37
  correlationId?: string;
38
38
  /** HTTP status code override */
39
39
  statusCode?: number;
40
+ /**
41
+ * Raw error details extracted from API response.
42
+ * Used when the error is not an Error instance but contains useful data
43
+ * (e.g., validation errors array, 3rd party API error objects).
44
+ * Will be transformed through @plyaz/errors middleware.
45
+ */
46
+ details?: unknown;
40
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.29.0",
3
+ "version": "1.29.2",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",