@toolproof-npm/schema 0.1.45 → 0.1.46

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.
@@ -510,7 +510,7 @@ export interface StrategyStateWrapper {
510
510
  * This interface was referenced by `GenesisJson`'s JSON-Schema
511
511
  * via the `definition` "StrategyState".
512
512
  */
513
- export type StrategyState = Record<ExecutionIdentity, Record<ResourceRoleIdentity, ResourcePotentialInput | ResourcePotentialOutput | Resource>>;
513
+ export type StrategyState = Record<ExecutionIdentity, Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>>;
514
514
 
515
515
  export type Normalized =
516
516
  {
@@ -728,7 +728,7 @@ export interface Conditional {
728
728
  export interface StrategyStateWrapper {
729
729
  strategyState: StrategyState;
730
730
  }
731
- export type StrategyState = Record<ExecutionIdentity, Record<ResourceRoleIdentity, ResourcePotentialInput | ResourcePotentialOutput | Resource>>;
731
+ export type StrategyState = Record<ExecutionIdentity, Record<ResourceRoleIdentity, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>>;
732
732
  export interface ResourceKind {
733
733
  kind: "missing" | "potential-input" | "potential-output" | "materialized";
734
734
  }
@@ -394,7 +394,7 @@ async function main() {
394
394
  const executionKeyType = 'ExecutionIdentity';
395
395
  ts = ts.replace(/export interface RoleMap\s*{[^}]*}/g, `export type RoleMap = Record<${resourceRoleKeyType}, ResourceRoleValue>;`);
396
396
  ts = ts.replace(/export interface RoleBindingMap\s*{[^}]*}/g, `export type RoleBindingMap = Record<${resourceRoleKeyType}, ${resourceKeyType}>;`);
397
- ts = ts.replace(/export interface StrategyState\s*\{[^}]*\{[^}]*\}[^}]*\}/gs, `export type StrategyState = Record<${executionKeyType}, Record<${resourceRoleKeyType}, ResourcePotentialInput | ResourcePotentialOutput | Resource>>;`);
397
+ ts = ts.replace(/export interface StrategyState\s*\{[^}]*\{[^}]*\}[^}]*\}/gs, `export type StrategyState = Record<${executionKeyType}, Record<${resourceRoleKeyType}, ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource>>;`);
398
398
  parts.push(ts);
399
399
  let output = parts.join('\n');
400
400
  // Final guard: strip any lingering `[k: string]: unknown;` that might have been
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-npm/schema",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "JSON schemas and TypeScript types for ToolProof",
5
5
  "keywords": [
6
6
  "toolproof",