@happyvertical/smrt-ingestion 0.57.7 → 0.57.8

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-ingestion",
5
- "packageVersion": "0.57.7",
5
+ "packageVersion": "0.57.8",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-ingestion:IntakeItem": {
8
8
  "name": "intakeitem",
package/dist/models.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ObjectRegistry, SmrtObject, crossPackageRef, field, foreignKey, smrt } from "@happyvertical/smrt-core";
2
2
  import { TenantScoped, tenantId } from "@happyvertical/smrt-tenancy";
3
3
  //#region src/__smrt-register__.ts
4
- ObjectRegistry.registerPackageManifest(JSON.parse(`{"version":"1.0.0","timestamp":0,"packageName":"@happyvertical/smrt-ingestion","packageVersion":"0.57.7","objects":{"@happyvertical/smrt-ingestion:IntakeItem":{"name":"intakeitem","className":"IntakeItem","qualifiedName":"@happyvertical/smrt-ingestion:IntakeItem","collection":"intakeitems","description":"Durable IntakeItem record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"sourceId":{"type":"text","required":true,"_meta":{"required":true}},"sourceVersion":{"type":"text","required":true,"_meta":{"required":true}},"deliveryKey":{"type":"text","required":true,"_meta":{"required":true}},"payloadDigest":{"type":"text","required":true,"_meta":{"required":true}},"scopeDigest":{"type":"text","required":true,"_meta":{"required":true}},"receiptState":{"type":"text","required":true,"_meta":{"required":true}},"processingState":{"type":"text","required":true,"_meta":{"required":true}},"visibility":{"type":"text","required":true,"_meta":{"required":true}},"receiptVersion":{"type":"integer","required":true,"_meta":{"required":true}},"analysisRevision":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"leaseToken":{"type":"text","required":true,"_meta":{"required":true}},"leaseUntil":{"type":"datetime","required":false,"_meta":{"nullable":true}},"expiresAt":{"type":"datetime","required":true,"_meta":{"required":true}},"replayUntil":{"type":"datetime","required":true,"_meta":{"required":true}},"cancelled":{"type":"boolean","required":true,"_meta":{"required":true}},"traceId":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_items","conflictColumns":["tenant_id","source_id","delivery_key"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_items_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_items_expiry_idx","columns":["tenantId","expiresAt"]},{"name":"intake_items_receipt_idx","columns":["tenantId","receiptState","leaseUntil"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeItem","collectionExportName":"IntakeItemCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"sourceId","rule":"required","fieldType":"text"},{"field":"sourceVersion","rule":"required","fieldType":"text"},{"field":"deliveryKey","rule":"required","fieldType":"text"},{"field":"payloadDigest","rule":"required","fieldType":"text"},{"field":"scopeDigest","rule":"required","fieldType":"text"},{"field":"receiptState","rule":"required","fieldType":"text"},{"field":"processingState","rule":"required","fieldType":"text"},{"field":"visibility","rule":"required","fieldType":"text"},{"field":"receiptVersion","rule":"required","fieldType":"integer"},{"field":"analysisRevision","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"leaseToken","rule":"required","fieldType":"text"},{"field":"expiresAt","rule":"required","fieldType":"datetime"},{"field":"replayUntil","rule":"required","fieldType":"datetime"},{"field":"cancelled","rule":"required","fieldType":"boolean"},{"field":"traceId","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_items","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_items\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"source_id\\" TEXT NOT NULL,\\n \\"source_version\\" TEXT NOT NULL,\\n \\"delivery_key\\" TEXT NOT NULL,\\n \\"payload_digest\\" TEXT NOT NULL,\\n \\"scope_digest\\" TEXT NOT NULL,\\n \\"receipt_state\\" TEXT NOT NULL,\\n \\"processing_state\\" TEXT NOT NULL,\\n \\"visibility\\" TEXT NOT NULL,\\n \\"receipt_version\\" INTEGER NOT NULL,\\n \\"analysis_revision\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"lease_token\\" TEXT NOT NULL,\\n \\"lease_until\\" TIMESTAMP,\\n \\"expires_at\\" TIMESTAMP NOT NULL,\\n \\"replay_until\\" TIMESTAMP NOT NULL,\\n \\"cancelled\\" BOOLEAN NOT NULL,\\n \\"trace_id\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"source_id":{"type":"TEXT","notNull":true,"unique":false},"source_version":{"type":"TEXT","notNull":true,"unique":false},"delivery_key":{"type":"TEXT","notNull":true,"unique":false},"payload_digest":{"type":"TEXT","notNull":true,"unique":false},"scope_digest":{"type":"TEXT","notNull":true,"unique":false},"receipt_state":{"type":"TEXT","notNull":true,"unique":false},"processing_state":{"type":"TEXT","notNull":true,"unique":false},"visibility":{"type":"TEXT","notNull":true,"unique":false},"receipt_version":{"type":"INTEGER","notNull":true,"unique":false},"analysis_revision":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"lease_token":{"type":"TEXT","notNull":true,"unique":false},"lease_until":{"type":"TIMESTAMP","notNull":false,"unique":false},"expires_at":{"type":"TIMESTAMP","notNull":true,"unique":false},"replay_until":{"type":"TIMESTAMP","notNull":true,"unique":false},"cancelled":{"type":"BOOLEAN","notNull":true,"unique":false},"trace_id":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_items_tenant_id_source_id_idx","columns":["tenant_id","source_id","delivery_key"],"unique":true},{"name":"intake_items_slug_context_idx","columns":["slug","context"]},{"name":"intake_items_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_items_expiry_idx","columns":["tenant_id","expires_at"]},{"name":"intake_items_receipt_idx","columns":["tenant_id","receipt_state","lease_until"]},{"name":"intake_items_tenant_id_created_at_idx","columns":["tenant_id","created_at"]}],"version":"c1267254"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeEvidence":{"name":"intakeevidence","className":"IntakeEvidence","qualifiedName":"@happyvertical/smrt-ingestion:IntakeEvidence","collection":"intakeevidences","description":"Durable IntakeEvidence record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"partId":{"type":"text","required":true,"_meta":{"required":true}},"parentEvidenceId":{"type":"foreignKey","required":false,"related":"IntakeEvidence","_meta":{"nullable":true}},"assetId":{"type":"crossPackageRef","required":false,"related":"@happyvertical/smrt-assets:Asset","_meta":{"nullable":true,"onDelete":"SET NULL"}},"state":{"type":"text","required":true,"_meta":{"required":true}},"contentHash":{"type":"text","required":true,"_meta":{"required":true}},"byteLength":{"type":"integer","required":true,"_meta":{"required":true}},"mediaType":{"type":"text","required":true,"_meta":{"required":true}},"sourceUri":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_evidence","conflictColumns":["tenant_id","item_id","part_id"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_evidence_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_evidence_item_idx","columns":["tenantId","itemId"]},{"name":"intake_evidence_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeEvidence","collectionExportName":"IntakeEvidenceCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"partId","rule":"required","fieldType":"text"},{"field":"state","rule":"required","fieldType":"text"},{"field":"contentHash","rule":"required","fieldType":"text"},{"field":"byteLength","rule":"required","fieldType":"integer"},{"field":"mediaType","rule":"required","fieldType":"text"},{"field":"sourceUri","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_evidence","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_evidence\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"part_id\\" TEXT NOT NULL,\\n \\"parent_evidence_id\\" UUID,\\n \\"asset_id\\" UUID,\\n \\"state\\" TEXT NOT NULL,\\n \\"content_hash\\" TEXT NOT NULL,\\n \\"byte_length\\" INTEGER NOT NULL,\\n \\"media_type\\" TEXT NOT NULL,\\n \\"source_uri\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"part_id":{"type":"TEXT","notNull":true,"unique":false},"parent_evidence_id":{"type":"UUID","referenceKind":"foreignKey","notNull":false,"unique":false,"foreignKey":{"table":"intake_evidence","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"asset_id":{"type":"UUID","referenceKind":"crossPackageRef","notNull":false,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"content_hash":{"type":"TEXT","notNull":true,"unique":false},"byte_length":{"type":"INTEGER","notNull":true,"unique":false},"media_type":{"type":"TEXT","notNull":true,"unique":false},"source_uri":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_evidence_tenant_id_item_id_idx","columns":["tenant_id","item_id","part_id"],"unique":true},{"name":"intake_evidence_slug_context_idx","columns":["slug","context"]},{"name":"intake_evidence_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_evidence_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_evidence_state_idx","columns":["tenant_id","state"]},{"name":"intake_evidence_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_evidence_item_id_idx","columns":["item_id"]},{"name":"intake_evidence_parent_evidence_id_idx","columns":["parent_evidence_id"]},{"name":"intake_evidence_asset_id_idx","columns":["asset_id"]}],"version":"503a292c"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeAnalysis":{"name":"intakeanalysis","className":"IntakeAnalysis","qualifiedName":"@happyvertical/smrt-ingestion:IntakeAnalysis","collection":"intakeanalysises","description":"Durable IntakeAnalysis record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"attemptNumber":{"type":"integer","required":true,"_meta":{"required":true}},"currentAttemptId":{"type":"foreignKey","required":false,"related":"IntakeAnalysisAttempt","_meta":{"nullable":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"inputDigest":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_analyses","conflictColumns":["tenant_id","item_id","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_analyses_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_analyses_item_idx","columns":["tenantId","itemId"]},{"name":"intake_analyses_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeAnalysis","collectionExportName":"IntakeAnalysisCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"attemptNumber","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"inputDigest","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_analyses","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_analyses\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"attempt_number\\" INTEGER NOT NULL,\\n \\"current_attempt_id\\" UUID,\\n \\"state\\" TEXT NOT NULL,\\n \\"input_digest\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"revision":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"attempt_number":{"type":"INTEGER","notNull":true,"unique":false},"current_attempt_id":{"type":"UUID","referenceKind":"foreignKey","notNull":false,"unique":false,"foreignKey":{"table":"intake_analysis_attempts","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"state":{"type":"TEXT","notNull":true,"unique":false},"input_digest":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_analyses_tenant_id_item_id_idx","columns":["tenant_id","item_id","revision"],"unique":true},{"name":"intake_analyses_slug_context_idx","columns":["slug","context"]},{"name":"intake_analyses_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_analyses_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_analyses_state_idx","columns":["tenant_id","state"]},{"name":"intake_analyses_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_analyses_item_id_idx","columns":["item_id"]},{"name":"intake_analyses_current_attempt_id_idx","columns":["current_attempt_id"]}],"version":"7c76601a"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeAnalysisAttempt":{"name":"intakeanalysisattempt","className":"IntakeAnalysisAttempt","qualifiedName":"@happyvertical/smrt-ingestion:IntakeAnalysisAttempt","collection":"intakeanalysisattempts","description":"Durable IntakeAnalysisAttempt record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"analysisId":{"type":"foreignKey","required":true,"related":"IntakeAnalysis","_meta":{"required":true}},"attemptNumber":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"leaseToken":{"type":"text","required":true,"_meta":{"required":true}},"leaseUntil":{"type":"datetime","required":false,"_meta":{"nullable":true}},"outputDigest":{"type":"text","required":true,"_meta":{"required":true}},"safeError":{"type":"text","required":true,"_meta":{"required":true}},"confidence":{"type":"decimal","required":false,"_meta":{"nullable":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_analysis_attempts","conflictColumns":["tenant_id","analysis_id","attempt_number"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_analysis_attempts_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_analysis_attempts_item_idx","columns":["tenantId","itemId"]},{"name":"intake_analysis_attempts_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeAnalysisAttempt","collectionExportName":"IntakeAnalysisAttemptCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"analysisId","rule":"required","fieldType":"foreignKey"},{"field":"attemptNumber","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"leaseToken","rule":"required","fieldType":"text"},{"field":"outputDigest","rule":"required","fieldType":"text"},{"field":"safeError","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_analysis_attempts","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_analysis_attempts\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"analysis_id\\" UUID NOT NULL,\\n \\"attempt_number\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"lease_token\\" TEXT NOT NULL,\\n \\"lease_until\\" TIMESTAMP,\\n \\"output_digest\\" TEXT NOT NULL,\\n \\"safe_error\\" TEXT NOT NULL,\\n \\"confidence\\" REAL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"analysis_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_analyses","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"attempt_number":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"lease_token":{"type":"TEXT","notNull":true,"unique":false},"lease_until":{"type":"TIMESTAMP","notNull":false,"unique":false},"output_digest":{"type":"TEXT","notNull":true,"unique":false},"safe_error":{"type":"TEXT","notNull":true,"unique":false},"confidence":{"type":"REAL","notNull":false,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_analysis_attempts_tenant_id_analysis_id_idx","columns":["tenant_id","analysis_id","attempt_number"],"unique":true},{"name":"intake_analysis_attempts_slug_context_idx","columns":["slug","context"]},{"name":"intake_analysis_attempts_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_analysis_attempts_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_analysis_attempts_state_idx","columns":["tenant_id","state"]},{"name":"intake_analysis_attempts_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_analysis_attempts_item_id_idx","columns":["item_id"]},{"name":"intake_analysis_attempts_analysis_id_idx","columns":["analysis_id"]}],"version":"b51f7c2d"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakePlan":{"name":"intakeplan","className":"IntakePlan","qualifiedName":"@happyvertical/smrt-ingestion:IntakePlan","collection":"intakeplans","description":"Durable IntakePlan record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"planKey":{"type":"text","required":true,"_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"digest":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_plans","conflictColumns":["tenant_id","item_id","plan_key","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_plans_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_plans_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakePlan","collectionExportName":"IntakePlanCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"planKey","rule":"required","fieldType":"text"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"digest","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_plans","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_plans\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"plan_key\\" TEXT NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"digest\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"plan_key":{"type":"TEXT","notNull":true,"unique":false},"revision":{"type":"INTEGER","notNull":true,"unique":false},"digest":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_plans_tenant_id_item_id_idx","columns":["tenant_id","item_id","plan_key","revision"],"unique":true},{"name":"intake_plans_slug_context_idx","columns":["slug","context"]},{"name":"intake_plans_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_plans_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_plans_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_plans_item_id_idx","columns":["item_id"]}],"version":"ade3ae21"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeAction":{"name":"intakeaction","className":"IntakeAction","qualifiedName":"@happyvertical/smrt-ingestion:IntakeAction","collection":"intakeactions","description":"Durable IntakeAction record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionKey":{"type":"text","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"proposalRevision":{"type":"integer","required":true,"_meta":{"required":true}},"reviewVersion":{"type":"integer","required":true,"_meta":{"required":true}},"executionAttempt":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"resultDigest":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_actions","conflictColumns":["tenant_id","item_id","action_key"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_actions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_actions_item_idx","columns":["tenantId","itemId"]},{"name":"intake_actions_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeAction","collectionExportName":"IntakeActionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionKey","rule":"required","fieldType":"text"},{"field":"state","rule":"required","fieldType":"text"},{"field":"proposalRevision","rule":"required","fieldType":"integer"},{"field":"reviewVersion","rule":"required","fieldType":"integer"},{"field":"executionAttempt","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"resultDigest","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_actions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_actions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_key\\" TEXT NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"proposal_revision\\" INTEGER NOT NULL,\\n \\"review_version\\" INTEGER NOT NULL,\\n \\"execution_attempt\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"result_digest\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"action_key":{"type":"TEXT","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"proposal_revision":{"type":"INTEGER","notNull":true,"unique":false},"review_version":{"type":"INTEGER","notNull":true,"unique":false},"execution_attempt":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"result_digest":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_actions_tenant_id_item_id_idx","columns":["tenant_id","item_id","action_key"],"unique":true},{"name":"intake_actions_slug_context_idx","columns":["slug","context"]},{"name":"intake_actions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_actions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_actions_state_idx","columns":["tenant_id","state"]},{"name":"intake_actions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_actions_item_id_idx","columns":["item_id"]}],"version":"a6d52621"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeProposal":{"name":"intakeproposal","className":"IntakeProposal","qualifiedName":"@happyvertical/smrt-ingestion:IntakeProposal","collection":"intakeproposals","description":"Durable IntakeProposal record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionId":{"type":"foreignKey","required":true,"related":"IntakeAction","_meta":{"required":true}},"analysisId":{"type":"foreignKey","required":true,"related":"IntakeAnalysis","_meta":{"required":true}},"analysisAttemptId":{"type":"foreignKey","required":true,"related":"IntakeAnalysisAttempt","_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"bindingHash":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_proposals","conflictColumns":["tenant_id","action_id","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_proposals_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_proposals_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeProposal","collectionExportName":"IntakeProposalCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionId","rule":"required","fieldType":"foreignKey"},{"field":"analysisId","rule":"required","fieldType":"foreignKey"},{"field":"analysisAttemptId","rule":"required","fieldType":"foreignKey"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"bindingHash","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_proposals","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_proposals\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_id\\" UUID NOT NULL,\\n \\"analysis_id\\" UUID NOT NULL,\\n \\"analysis_attempt_id\\" UUID NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"binding_hash\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"action_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_actions","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"analysis_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_analyses","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"analysis_attempt_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_analysis_attempts","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"revision":{"type":"INTEGER","notNull":true,"unique":false},"binding_hash":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_proposals_tenant_id_action_id_idx","columns":["tenant_id","action_id","revision"],"unique":true},{"name":"intake_proposals_slug_context_idx","columns":["slug","context"]},{"name":"intake_proposals_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_proposals_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_proposals_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_proposals_item_id_idx","columns":["item_id"]},{"name":"intake_proposals_action_id_idx","columns":["action_id"]},{"name":"intake_proposals_analysis_id_idx","columns":["analysis_id"]},{"name":"intake_proposals_analysis_attempt_id_idx","columns":["analysis_attempt_id"]}],"version":"fe602385"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeReviewDecision":{"name":"intakereviewdecision","className":"IntakeReviewDecision","qualifiedName":"@happyvertical/smrt-ingestion:IntakeReviewDecision","collection":"intakereviewdecisions","description":"Durable IntakeReviewDecision record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionId":{"type":"foreignKey","required":true,"related":"IntakeAction","_meta":{"required":true}},"proposalId":{"type":"foreignKey","required":true,"related":"IntakeProposal","_meta":{"required":true}},"reviewVersion":{"type":"integer","required":true,"_meta":{"required":true}},"bindingHash":{"type":"text","required":true,"_meta":{"required":true}},"decision":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_review_decisions","conflictColumns":["tenant_id","action_id","review_version"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_review_decisions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_review_decisions_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeReviewDecision","collectionExportName":"IntakeReviewDecisionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionId","rule":"required","fieldType":"foreignKey"},{"field":"proposalId","rule":"required","fieldType":"foreignKey"},{"field":"reviewVersion","rule":"required","fieldType":"integer"},{"field":"bindingHash","rule":"required","fieldType":"text"},{"field":"decision","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_review_decisions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_review_decisions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_id\\" UUID NOT NULL,\\n \\"proposal_id\\" UUID NOT NULL,\\n \\"review_version\\" INTEGER NOT NULL,\\n \\"binding_hash\\" TEXT NOT NULL,\\n \\"decision\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"action_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_actions","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"proposal_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_proposals","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"review_version":{"type":"INTEGER","notNull":true,"unique":false},"binding_hash":{"type":"TEXT","notNull":true,"unique":false},"decision":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_review_decisions_tenant_id_action_id_idx","columns":["tenant_id","action_id","review_version"],"unique":true},{"name":"intake_review_decisions_slug_context_idx","columns":["slug","context"]},{"name":"intake_review_decisions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_review_decisions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_review_decisions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_review_decisions_item_id_idx","columns":["item_id"]},{"name":"intake_review_decisions_action_id_idx","columns":["action_id"]},{"name":"intake_review_decisions_proposal_id_idx","columns":["proposal_id"]}],"version":"80f24292"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeExecution":{"name":"intakeexecution","className":"IntakeExecution","qualifiedName":"@happyvertical/smrt-ingestion:IntakeExecution","collection":"intakeexecutions","description":"Durable IntakeExecution record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionId":{"type":"foreignKey","required":true,"related":"IntakeAction","_meta":{"required":true}},"attemptNumber":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"bindingHash":{"type":"text","required":true,"_meta":{"required":true}},"resultDigest":{"type":"text","required":true,"_meta":{"required":true}},"idempotencyKey":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_executions","conflictColumns":["tenant_id","action_id","attempt_number"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_executions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_executions_item_idx","columns":["tenantId","itemId"]},{"name":"intake_executions_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeExecution","collectionExportName":"IntakeExecutionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionId","rule":"required","fieldType":"foreignKey"},{"field":"attemptNumber","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"bindingHash","rule":"required","fieldType":"text"},{"field":"resultDigest","rule":"required","fieldType":"text"},{"field":"idempotencyKey","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_executions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_executions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_id\\" UUID NOT NULL,\\n \\"attempt_number\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"binding_hash\\" TEXT NOT NULL,\\n \\"result_digest\\" TEXT NOT NULL,\\n \\"idempotency_key\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"action_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_actions","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"attempt_number":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"binding_hash":{"type":"TEXT","notNull":true,"unique":false},"result_digest":{"type":"TEXT","notNull":true,"unique":false},"idempotency_key":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_executions_tenant_id_action_id_idx","columns":["tenant_id","action_id","attempt_number"],"unique":true},{"name":"intake_executions_slug_context_idx","columns":["slug","context"]},{"name":"intake_executions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_executions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_executions_state_idx","columns":["tenant_id","state"]},{"name":"intake_executions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_executions_item_id_idx","columns":["item_id"]},{"name":"intake_executions_action_id_idx","columns":["action_id"]}],"version":"6a14ec3c"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeFeedback":{"name":"intakefeedback","className":"IntakeFeedback","qualifiedName":"@happyvertical/smrt-ingestion:IntakeFeedback","collection":"intakefeedbacks","description":"Durable IntakeFeedback record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"requestKey":{"type":"text","required":true,"_meta":{"required":true}},"supersedesId":{"type":"foreignKey","required":false,"related":"IntakeFeedback","_meta":{"nullable":true}},"kind":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_feedback","conflictColumns":["tenant_id","item_id","request_key"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_feedback_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_feedback_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeFeedback","collectionExportName":"IntakeFeedbackCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"requestKey","rule":"required","fieldType":"text"},{"field":"kind","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_feedback","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_feedback\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"request_key\\" TEXT NOT NULL,\\n \\"supersedes_id\\" UUID,\\n \\"kind\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"request_key":{"type":"TEXT","notNull":true,"unique":false},"supersedes_id":{"type":"UUID","referenceKind":"foreignKey","notNull":false,"unique":false,"foreignKey":{"table":"intake_feedback","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"kind":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_feedback_tenant_id_item_id_idx","columns":["tenant_id","item_id","request_key"],"unique":true},{"name":"intake_feedback_slug_context_idx","columns":["slug","context"]},{"name":"intake_feedback_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_feedback_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_feedback_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_feedback_item_id_idx","columns":["item_id"]},{"name":"intake_feedback_supersedes_id_idx","columns":["supersedes_id"]}],"version":"087279a0"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeDispatch":{"name":"intakedispatch","className":"IntakeDispatch","qualifiedName":"@happyvertical/smrt-ingestion:IntakeDispatch","collection":"intakedispatches","description":"Durable IntakeDispatch record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"stage":{"type":"text","required":true,"_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"jobId":{"type":"text","required":true,"_meta":{"required":true}},"deliveries":{"type":"integer","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_dispatches","conflictColumns":["tenant_id","item_id","stage","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_dispatches_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_dispatches_item_idx","columns":["tenantId","itemId"]},{"name":"intake_dispatches_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeDispatch","collectionExportName":"IntakeDispatchCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"stage","rule":"required","fieldType":"text"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"jobId","rule":"required","fieldType":"text"},{"field":"deliveries","rule":"required","fieldType":"integer"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_dispatches","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_dispatches\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"stage\\" TEXT NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"job_id\\" TEXT NOT NULL,\\n \\"deliveries\\" INTEGER NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"stage":{"type":"TEXT","notNull":true,"unique":false},"revision":{"type":"INTEGER","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"job_id":{"type":"TEXT","notNull":true,"unique":false},"deliveries":{"type":"INTEGER","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_dispatches_tenant_id_item_id_idx","columns":["tenant_id","item_id","stage","revision"],"unique":true},{"name":"intake_dispatches_slug_context_idx","columns":["slug","context"]},{"name":"intake_dispatches_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_dispatches_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_dispatches_state_idx","columns":["tenant_id","state"]},{"name":"intake_dispatches_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_dispatches_item_id_idx","columns":["item_id"]}],"version":"037a8ea3"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeDeletion":{"name":"intakedeletion","className":"IntakeDeletion","qualifiedName":"@happyvertical/smrt-ingestion:IntakeDeletion","collection":"intakedeletions","description":"Durable IntakeDeletion record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_deletions","conflictColumns":["tenant_id","item_id"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_deletions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_deletions_item_idx","columns":["tenantId","itemId"]},{"name":"intake_deletions_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeDeletion","collectionExportName":"IntakeDeletionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"state","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_deletions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_deletions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"state":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_deletions_tenant_id_item_id_idx","columns":["tenant_id","item_id"],"unique":true},{"name":"intake_deletions_slug_context_idx","columns":["slug","context"]},{"name":"intake_deletions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_deletions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_deletions_state_idx","columns":["tenant_id","state"]},{"name":"intake_deletions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_deletions_item_id_idx","columns":["item_id"]}],"version":"474ffa09"},"importPath":"@happyvertical/smrt-ingestion/models"}},"moduleType":"smrt","recipes":[{"id":"ingestion.inbox","className":"IngestionInboxRecipe","label":"Ingestion inbox","summary":"Review incoming material and see which items need attention.","synonyms":["intake inbox","incoming documents","review queue"],"models":["@happyvertical/smrt-ingestion:IntakeItem","@happyvertical/smrt-ingestion:IntakeEvidence"],"nav":[],"requires":[],"group":{"id":"ingestion","label":"Ingestion","summary":"Review incoming material safely before it can change records."},"section":{"id":"ingestion","label":"Ingestion","icon":"archive","description":"Incoming material and its authenticated review workflow."},"help":{"markdown":"## Overview\\n\\nThe ingestion inbox is where an authenticated reviewer finds incoming material\\nthat needs attention. It keeps the original material and its related evidence\\ntogether, so a reviewer can understand what arrived before choosing a next\\nstep.\\n\\n## Tasks\\n\\n### Check items that need attention\\n\\n1. Open the ingestion inbox in an application that has configured an\\n authenticated review host.\\n2. Choose an item to inspect its evidence and current review state.\\n3. Open the item in Ingestion review when it has a proposed action.\\n\\n### Keep uncertain material for review\\n\\n1. Leave material in the inbox when there is not enough information to decide.\\n2. Return after the application has new information or a reviewer can make a\\n decision.\\n3. Do not treat an inbox item as permission to change another record.\\n\\n## Preview status\\n\\nThis recipe describes a preview workflow. The published evaluation did not meet\\nquality gates and did not establish safety, so automation remains disabled. It\\ndoes not configure a source, provider, generic record route, or automatic\\naction. Applications continue to use the scoped callbacks described in the\\ningestion review documentation.\\n","fieldRefs":[]},"surfaces":[{"kind":"route","path":"/ingestion/inbox","export":"@happyvertical/smrt-ingestion/svelte#IntakeInbox","label":"Ingestion inbox"}],"runtime":"both","demo":{"mode":"server","reasons":["Needs a server because its package depends on @happyvertical/smrt-agents, @happyvertical/smrt-jobs, @happyvertical/smrt-profiles, @happyvertical/smrt-reports, @happyvertical/smrt-secrets, @happyvertical/smrt-tenancy, @happyvertical/smrt-users, which do not build for a browser (#3615, #3617, #3624, #3625, #3626, #3627)."]}},{"id":"ingestion.review","className":"IngestionReviewRecipe","label":"Ingestion review","summary":"Inspect evidence and approve, change, reject, or defer proposed actions.","synonyms":["intake review","proposal review","human approval"],"models":["@happyvertical/smrt-ingestion:IntakeItem","@happyvertical/smrt-ingestion:IntakeEvidence","@happyvertical/smrt-ingestion:IntakeAnalysis","@happyvertical/smrt-ingestion:IntakeAction","@happyvertical/smrt-ingestion:IntakeReviewDecision"],"nav":[],"requires":[],"group":{"id":"ingestion","label":"Ingestion","summary":"Review incoming material safely before it can change records."},"section":{"id":"ingestion","label":"Ingestion","icon":"archive","description":"Incoming material and its authenticated review workflow."},"help":{"markdown":"## Overview\\n\\nIngestion review lets an authorized person inspect the evidence behind a\\nproposed action before it can affect another record. A decision is tied to the\\nspecific material and proposal that the reviewer saw.\\n\\n## Tasks\\n\\n### Review a proposed action\\n\\n1. Open an inbox item that has a proposed action.\\n2. Read the evidence and the proposed result in the authenticated review host.\\n3. Approve, change, reject, or defer the proposal according to the current\\n application policy.\\n\\n### Return to an item after it changes\\n\\n1. Refresh the review when the host indicates that the material or proposal has\\n changed.\\n2. Review the current proposal before making a decision.\\n3. Leave a proposal deferred when its evidence or destination is still\\n uncertain.\\n\\n## Preview status\\n\\nThis recipe describes a preview workflow. The published evaluation did not meet\\nquality gates and did not establish safety, so automation remains disabled. It\\ndoes not create a generic editing surface or enable automatic execution. A host\\nrechecks the reviewer, scope, and current proposal before it accepts a decision.\\n","fieldRefs":[]},"surfaces":[{"kind":"route","path":"/ingestion/review","export":"@happyvertical/smrt-ingestion/svelte#IntakeReview","label":"Ingestion review"}],"runtime":"both","demo":{"mode":"server","reasons":["Needs a server because its package depends on @happyvertical/smrt-agents, @happyvertical/smrt-jobs, @happyvertical/smrt-profiles, @happyvertical/smrt-reports, @happyvertical/smrt-secrets, @happyvertical/smrt-tenancy, @happyvertical/smrt-users, which do not build for a browser (#3615, #3617, #3624, #3625, #3626, #3627)."]}}],"smrtDependencies":["@happyvertical/smrt-agents","@happyvertical/smrt-assets","@happyvertical/smrt-content","@happyvertical/smrt-core","@happyvertical/smrt-jobs","@happyvertical/smrt-messages","@happyvertical/smrt-playbooks","@happyvertical/smrt-tenancy","@happyvertical/smrt-users"],"browser":{"status":"server-only","issues":["#3615","#3617","#3624","#3625","#3626","#3627"],"via":["@happyvertical/smrt-agents","@happyvertical/smrt-jobs","@happyvertical/smrt-profiles","@happyvertical/smrt-reports","@happyvertical/smrt-secrets","@happyvertical/smrt-tenancy","@happyvertical/smrt-users"]},"stampsConstructors":true}`));
4
+ ObjectRegistry.registerPackageManifest(JSON.parse(`{"version":"1.0.0","timestamp":0,"packageName":"@happyvertical/smrt-ingestion","packageVersion":"0.57.8","objects":{"@happyvertical/smrt-ingestion:IntakeItem":{"name":"intakeitem","className":"IntakeItem","qualifiedName":"@happyvertical/smrt-ingestion:IntakeItem","collection":"intakeitems","description":"Durable IntakeItem record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"sourceId":{"type":"text","required":true,"_meta":{"required":true}},"sourceVersion":{"type":"text","required":true,"_meta":{"required":true}},"deliveryKey":{"type":"text","required":true,"_meta":{"required":true}},"payloadDigest":{"type":"text","required":true,"_meta":{"required":true}},"scopeDigest":{"type":"text","required":true,"_meta":{"required":true}},"receiptState":{"type":"text","required":true,"_meta":{"required":true}},"processingState":{"type":"text","required":true,"_meta":{"required":true}},"visibility":{"type":"text","required":true,"_meta":{"required":true}},"receiptVersion":{"type":"integer","required":true,"_meta":{"required":true}},"analysisRevision":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"leaseToken":{"type":"text","required":true,"_meta":{"required":true}},"leaseUntil":{"type":"datetime","required":false,"_meta":{"nullable":true}},"expiresAt":{"type":"datetime","required":true,"_meta":{"required":true}},"replayUntil":{"type":"datetime","required":true,"_meta":{"required":true}},"cancelled":{"type":"boolean","required":true,"_meta":{"required":true}},"traceId":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_items","conflictColumns":["tenant_id","source_id","delivery_key"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_items_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_items_expiry_idx","columns":["tenantId","expiresAt"]},{"name":"intake_items_receipt_idx","columns":["tenantId","receiptState","leaseUntil"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeItem","collectionExportName":"IntakeItemCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"sourceId","rule":"required","fieldType":"text"},{"field":"sourceVersion","rule":"required","fieldType":"text"},{"field":"deliveryKey","rule":"required","fieldType":"text"},{"field":"payloadDigest","rule":"required","fieldType":"text"},{"field":"scopeDigest","rule":"required","fieldType":"text"},{"field":"receiptState","rule":"required","fieldType":"text"},{"field":"processingState","rule":"required","fieldType":"text"},{"field":"visibility","rule":"required","fieldType":"text"},{"field":"receiptVersion","rule":"required","fieldType":"integer"},{"field":"analysisRevision","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"leaseToken","rule":"required","fieldType":"text"},{"field":"expiresAt","rule":"required","fieldType":"datetime"},{"field":"replayUntil","rule":"required","fieldType":"datetime"},{"field":"cancelled","rule":"required","fieldType":"boolean"},{"field":"traceId","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_items","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_items\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"source_id\\" TEXT NOT NULL,\\n \\"source_version\\" TEXT NOT NULL,\\n \\"delivery_key\\" TEXT NOT NULL,\\n \\"payload_digest\\" TEXT NOT NULL,\\n \\"scope_digest\\" TEXT NOT NULL,\\n \\"receipt_state\\" TEXT NOT NULL,\\n \\"processing_state\\" TEXT NOT NULL,\\n \\"visibility\\" TEXT NOT NULL,\\n \\"receipt_version\\" INTEGER NOT NULL,\\n \\"analysis_revision\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"lease_token\\" TEXT NOT NULL,\\n \\"lease_until\\" TIMESTAMP,\\n \\"expires_at\\" TIMESTAMP NOT NULL,\\n \\"replay_until\\" TIMESTAMP NOT NULL,\\n \\"cancelled\\" BOOLEAN NOT NULL,\\n \\"trace_id\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"source_id":{"type":"TEXT","notNull":true,"unique":false},"source_version":{"type":"TEXT","notNull":true,"unique":false},"delivery_key":{"type":"TEXT","notNull":true,"unique":false},"payload_digest":{"type":"TEXT","notNull":true,"unique":false},"scope_digest":{"type":"TEXT","notNull":true,"unique":false},"receipt_state":{"type":"TEXT","notNull":true,"unique":false},"processing_state":{"type":"TEXT","notNull":true,"unique":false},"visibility":{"type":"TEXT","notNull":true,"unique":false},"receipt_version":{"type":"INTEGER","notNull":true,"unique":false},"analysis_revision":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"lease_token":{"type":"TEXT","notNull":true,"unique":false},"lease_until":{"type":"TIMESTAMP","notNull":false,"unique":false},"expires_at":{"type":"TIMESTAMP","notNull":true,"unique":false},"replay_until":{"type":"TIMESTAMP","notNull":true,"unique":false},"cancelled":{"type":"BOOLEAN","notNull":true,"unique":false},"trace_id":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_items_tenant_id_source_id_idx","columns":["tenant_id","source_id","delivery_key"],"unique":true},{"name":"intake_items_slug_context_idx","columns":["slug","context"]},{"name":"intake_items_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_items_expiry_idx","columns":["tenant_id","expires_at"]},{"name":"intake_items_receipt_idx","columns":["tenant_id","receipt_state","lease_until"]},{"name":"intake_items_tenant_id_created_at_idx","columns":["tenant_id","created_at"]}],"version":"c1267254"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeEvidence":{"name":"intakeevidence","className":"IntakeEvidence","qualifiedName":"@happyvertical/smrt-ingestion:IntakeEvidence","collection":"intakeevidences","description":"Durable IntakeEvidence record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"partId":{"type":"text","required":true,"_meta":{"required":true}},"parentEvidenceId":{"type":"foreignKey","required":false,"related":"IntakeEvidence","_meta":{"nullable":true}},"assetId":{"type":"crossPackageRef","required":false,"related":"@happyvertical/smrt-assets:Asset","_meta":{"nullable":true,"onDelete":"SET NULL"}},"state":{"type":"text","required":true,"_meta":{"required":true}},"contentHash":{"type":"text","required":true,"_meta":{"required":true}},"byteLength":{"type":"integer","required":true,"_meta":{"required":true}},"mediaType":{"type":"text","required":true,"_meta":{"required":true}},"sourceUri":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_evidence","conflictColumns":["tenant_id","item_id","part_id"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_evidence_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_evidence_item_idx","columns":["tenantId","itemId"]},{"name":"intake_evidence_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeEvidence","collectionExportName":"IntakeEvidenceCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"partId","rule":"required","fieldType":"text"},{"field":"state","rule":"required","fieldType":"text"},{"field":"contentHash","rule":"required","fieldType":"text"},{"field":"byteLength","rule":"required","fieldType":"integer"},{"field":"mediaType","rule":"required","fieldType":"text"},{"field":"sourceUri","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_evidence","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_evidence\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"part_id\\" TEXT NOT NULL,\\n \\"parent_evidence_id\\" UUID,\\n \\"asset_id\\" UUID,\\n \\"state\\" TEXT NOT NULL,\\n \\"content_hash\\" TEXT NOT NULL,\\n \\"byte_length\\" INTEGER NOT NULL,\\n \\"media_type\\" TEXT NOT NULL,\\n \\"source_uri\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"part_id":{"type":"TEXT","notNull":true,"unique":false},"parent_evidence_id":{"type":"UUID","referenceKind":"foreignKey","notNull":false,"unique":false,"foreignKey":{"table":"intake_evidence","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"asset_id":{"type":"UUID","referenceKind":"crossPackageRef","notNull":false,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"content_hash":{"type":"TEXT","notNull":true,"unique":false},"byte_length":{"type":"INTEGER","notNull":true,"unique":false},"media_type":{"type":"TEXT","notNull":true,"unique":false},"source_uri":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_evidence_tenant_id_item_id_idx","columns":["tenant_id","item_id","part_id"],"unique":true},{"name":"intake_evidence_slug_context_idx","columns":["slug","context"]},{"name":"intake_evidence_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_evidence_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_evidence_state_idx","columns":["tenant_id","state"]},{"name":"intake_evidence_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_evidence_item_id_idx","columns":["item_id"]},{"name":"intake_evidence_parent_evidence_id_idx","columns":["parent_evidence_id"]},{"name":"intake_evidence_asset_id_idx","columns":["asset_id"]}],"version":"503a292c"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeAnalysis":{"name":"intakeanalysis","className":"IntakeAnalysis","qualifiedName":"@happyvertical/smrt-ingestion:IntakeAnalysis","collection":"intakeanalysises","description":"Durable IntakeAnalysis record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"attemptNumber":{"type":"integer","required":true,"_meta":{"required":true}},"currentAttemptId":{"type":"foreignKey","required":false,"related":"IntakeAnalysisAttempt","_meta":{"nullable":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"inputDigest":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_analyses","conflictColumns":["tenant_id","item_id","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_analyses_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_analyses_item_idx","columns":["tenantId","itemId"]},{"name":"intake_analyses_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeAnalysis","collectionExportName":"IntakeAnalysisCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"attemptNumber","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"inputDigest","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_analyses","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_analyses\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"attempt_number\\" INTEGER NOT NULL,\\n \\"current_attempt_id\\" UUID,\\n \\"state\\" TEXT NOT NULL,\\n \\"input_digest\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"revision":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"attempt_number":{"type":"INTEGER","notNull":true,"unique":false},"current_attempt_id":{"type":"UUID","referenceKind":"foreignKey","notNull":false,"unique":false,"foreignKey":{"table":"intake_analysis_attempts","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"state":{"type":"TEXT","notNull":true,"unique":false},"input_digest":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_analyses_tenant_id_item_id_idx","columns":["tenant_id","item_id","revision"],"unique":true},{"name":"intake_analyses_slug_context_idx","columns":["slug","context"]},{"name":"intake_analyses_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_analyses_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_analyses_state_idx","columns":["tenant_id","state"]},{"name":"intake_analyses_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_analyses_item_id_idx","columns":["item_id"]},{"name":"intake_analyses_current_attempt_id_idx","columns":["current_attempt_id"]}],"version":"7c76601a"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeAnalysisAttempt":{"name":"intakeanalysisattempt","className":"IntakeAnalysisAttempt","qualifiedName":"@happyvertical/smrt-ingestion:IntakeAnalysisAttempt","collection":"intakeanalysisattempts","description":"Durable IntakeAnalysisAttempt record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"analysisId":{"type":"foreignKey","required":true,"related":"IntakeAnalysis","_meta":{"required":true}},"attemptNumber":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"leaseToken":{"type":"text","required":true,"_meta":{"required":true}},"leaseUntil":{"type":"datetime","required":false,"_meta":{"nullable":true}},"outputDigest":{"type":"text","required":true,"_meta":{"required":true}},"safeError":{"type":"text","required":true,"_meta":{"required":true}},"confidence":{"type":"decimal","required":false,"_meta":{"nullable":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_analysis_attempts","conflictColumns":["tenant_id","analysis_id","attempt_number"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_analysis_attempts_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_analysis_attempts_item_idx","columns":["tenantId","itemId"]},{"name":"intake_analysis_attempts_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeAnalysisAttempt","collectionExportName":"IntakeAnalysisAttemptCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"analysisId","rule":"required","fieldType":"foreignKey"},{"field":"attemptNumber","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"leaseToken","rule":"required","fieldType":"text"},{"field":"outputDigest","rule":"required","fieldType":"text"},{"field":"safeError","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_analysis_attempts","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_analysis_attempts\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"analysis_id\\" UUID NOT NULL,\\n \\"attempt_number\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"lease_token\\" TEXT NOT NULL,\\n \\"lease_until\\" TIMESTAMP,\\n \\"output_digest\\" TEXT NOT NULL,\\n \\"safe_error\\" TEXT NOT NULL,\\n \\"confidence\\" REAL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"analysis_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_analyses","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"attempt_number":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"lease_token":{"type":"TEXT","notNull":true,"unique":false},"lease_until":{"type":"TIMESTAMP","notNull":false,"unique":false},"output_digest":{"type":"TEXT","notNull":true,"unique":false},"safe_error":{"type":"TEXT","notNull":true,"unique":false},"confidence":{"type":"REAL","notNull":false,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_analysis_attempts_tenant_id_analysis_id_idx","columns":["tenant_id","analysis_id","attempt_number"],"unique":true},{"name":"intake_analysis_attempts_slug_context_idx","columns":["slug","context"]},{"name":"intake_analysis_attempts_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_analysis_attempts_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_analysis_attempts_state_idx","columns":["tenant_id","state"]},{"name":"intake_analysis_attempts_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_analysis_attempts_item_id_idx","columns":["item_id"]},{"name":"intake_analysis_attempts_analysis_id_idx","columns":["analysis_id"]}],"version":"b51f7c2d"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakePlan":{"name":"intakeplan","className":"IntakePlan","qualifiedName":"@happyvertical/smrt-ingestion:IntakePlan","collection":"intakeplans","description":"Durable IntakePlan record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"planKey":{"type":"text","required":true,"_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"digest":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_plans","conflictColumns":["tenant_id","item_id","plan_key","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_plans_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_plans_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakePlan","collectionExportName":"IntakePlanCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"planKey","rule":"required","fieldType":"text"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"digest","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_plans","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_plans\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"plan_key\\" TEXT NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"digest\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"plan_key":{"type":"TEXT","notNull":true,"unique":false},"revision":{"type":"INTEGER","notNull":true,"unique":false},"digest":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_plans_tenant_id_item_id_idx","columns":["tenant_id","item_id","plan_key","revision"],"unique":true},{"name":"intake_plans_slug_context_idx","columns":["slug","context"]},{"name":"intake_plans_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_plans_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_plans_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_plans_item_id_idx","columns":["item_id"]}],"version":"ade3ae21"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeAction":{"name":"intakeaction","className":"IntakeAction","qualifiedName":"@happyvertical/smrt-ingestion:IntakeAction","collection":"intakeactions","description":"Durable IntakeAction record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionKey":{"type":"text","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"proposalRevision":{"type":"integer","required":true,"_meta":{"required":true}},"reviewVersion":{"type":"integer","required":true,"_meta":{"required":true}},"executionAttempt":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"resultDigest":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_actions","conflictColumns":["tenant_id","item_id","action_key"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_actions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_actions_item_idx","columns":["tenantId","itemId"]},{"name":"intake_actions_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeAction","collectionExportName":"IntakeActionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionKey","rule":"required","fieldType":"text"},{"field":"state","rule":"required","fieldType":"text"},{"field":"proposalRevision","rule":"required","fieldType":"integer"},{"field":"reviewVersion","rule":"required","fieldType":"integer"},{"field":"executionAttempt","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"resultDigest","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_actions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_actions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_key\\" TEXT NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"proposal_revision\\" INTEGER NOT NULL,\\n \\"review_version\\" INTEGER NOT NULL,\\n \\"execution_attempt\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"result_digest\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"action_key":{"type":"TEXT","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"proposal_revision":{"type":"INTEGER","notNull":true,"unique":false},"review_version":{"type":"INTEGER","notNull":true,"unique":false},"execution_attempt":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"result_digest":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_actions_tenant_id_item_id_idx","columns":["tenant_id","item_id","action_key"],"unique":true},{"name":"intake_actions_slug_context_idx","columns":["slug","context"]},{"name":"intake_actions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_actions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_actions_state_idx","columns":["tenant_id","state"]},{"name":"intake_actions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_actions_item_id_idx","columns":["item_id"]}],"version":"a6d52621"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeProposal":{"name":"intakeproposal","className":"IntakeProposal","qualifiedName":"@happyvertical/smrt-ingestion:IntakeProposal","collection":"intakeproposals","description":"Durable IntakeProposal record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionId":{"type":"foreignKey","required":true,"related":"IntakeAction","_meta":{"required":true}},"analysisId":{"type":"foreignKey","required":true,"related":"IntakeAnalysis","_meta":{"required":true}},"analysisAttemptId":{"type":"foreignKey","required":true,"related":"IntakeAnalysisAttempt","_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"bindingHash":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_proposals","conflictColumns":["tenant_id","action_id","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_proposals_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_proposals_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeProposal","collectionExportName":"IntakeProposalCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionId","rule":"required","fieldType":"foreignKey"},{"field":"analysisId","rule":"required","fieldType":"foreignKey"},{"field":"analysisAttemptId","rule":"required","fieldType":"foreignKey"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"bindingHash","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_proposals","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_proposals\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_id\\" UUID NOT NULL,\\n \\"analysis_id\\" UUID NOT NULL,\\n \\"analysis_attempt_id\\" UUID NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"binding_hash\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"action_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_actions","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"analysis_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_analyses","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"analysis_attempt_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_analysis_attempts","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"revision":{"type":"INTEGER","notNull":true,"unique":false},"binding_hash":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_proposals_tenant_id_action_id_idx","columns":["tenant_id","action_id","revision"],"unique":true},{"name":"intake_proposals_slug_context_idx","columns":["slug","context"]},{"name":"intake_proposals_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_proposals_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_proposals_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_proposals_item_id_idx","columns":["item_id"]},{"name":"intake_proposals_action_id_idx","columns":["action_id"]},{"name":"intake_proposals_analysis_id_idx","columns":["analysis_id"]},{"name":"intake_proposals_analysis_attempt_id_idx","columns":["analysis_attempt_id"]}],"version":"fe602385"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeReviewDecision":{"name":"intakereviewdecision","className":"IntakeReviewDecision","qualifiedName":"@happyvertical/smrt-ingestion:IntakeReviewDecision","collection":"intakereviewdecisions","description":"Durable IntakeReviewDecision record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionId":{"type":"foreignKey","required":true,"related":"IntakeAction","_meta":{"required":true}},"proposalId":{"type":"foreignKey","required":true,"related":"IntakeProposal","_meta":{"required":true}},"reviewVersion":{"type":"integer","required":true,"_meta":{"required":true}},"bindingHash":{"type":"text","required":true,"_meta":{"required":true}},"decision":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_review_decisions","conflictColumns":["tenant_id","action_id","review_version"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_review_decisions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_review_decisions_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeReviewDecision","collectionExportName":"IntakeReviewDecisionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionId","rule":"required","fieldType":"foreignKey"},{"field":"proposalId","rule":"required","fieldType":"foreignKey"},{"field":"reviewVersion","rule":"required","fieldType":"integer"},{"field":"bindingHash","rule":"required","fieldType":"text"},{"field":"decision","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_review_decisions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_review_decisions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_id\\" UUID NOT NULL,\\n \\"proposal_id\\" UUID NOT NULL,\\n \\"review_version\\" INTEGER NOT NULL,\\n \\"binding_hash\\" TEXT NOT NULL,\\n \\"decision\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"action_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_actions","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"proposal_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_proposals","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"review_version":{"type":"INTEGER","notNull":true,"unique":false},"binding_hash":{"type":"TEXT","notNull":true,"unique":false},"decision":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_review_decisions_tenant_id_action_id_idx","columns":["tenant_id","action_id","review_version"],"unique":true},{"name":"intake_review_decisions_slug_context_idx","columns":["slug","context"]},{"name":"intake_review_decisions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_review_decisions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_review_decisions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_review_decisions_item_id_idx","columns":["item_id"]},{"name":"intake_review_decisions_action_id_idx","columns":["action_id"]},{"name":"intake_review_decisions_proposal_id_idx","columns":["proposal_id"]}],"version":"80f24292"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeExecution":{"name":"intakeexecution","className":"IntakeExecution","qualifiedName":"@happyvertical/smrt-ingestion:IntakeExecution","collection":"intakeexecutions","description":"Durable IntakeExecution record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"actionId":{"type":"foreignKey","required":true,"related":"IntakeAction","_meta":{"required":true}},"attemptNumber":{"type":"integer","required":true,"_meta":{"required":true}},"fence":{"type":"integer","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"bindingHash":{"type":"text","required":true,"_meta":{"required":true}},"resultDigest":{"type":"text","required":true,"_meta":{"required":true}},"idempotencyKey":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_executions","conflictColumns":["tenant_id","action_id","attempt_number"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_executions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_executions_item_idx","columns":["tenantId","itemId"]},{"name":"intake_executions_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeExecution","collectionExportName":"IntakeExecutionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"actionId","rule":"required","fieldType":"foreignKey"},{"field":"attemptNumber","rule":"required","fieldType":"integer"},{"field":"fence","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"bindingHash","rule":"required","fieldType":"text"},{"field":"resultDigest","rule":"required","fieldType":"text"},{"field":"idempotencyKey","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_executions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_executions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"action_id\\" UUID NOT NULL,\\n \\"attempt_number\\" INTEGER NOT NULL,\\n \\"fence\\" INTEGER NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"binding_hash\\" TEXT NOT NULL,\\n \\"result_digest\\" TEXT NOT NULL,\\n \\"idempotency_key\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"action_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_actions","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"attempt_number":{"type":"INTEGER","notNull":true,"unique":false},"fence":{"type":"INTEGER","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"binding_hash":{"type":"TEXT","notNull":true,"unique":false},"result_digest":{"type":"TEXT","notNull":true,"unique":false},"idempotency_key":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_executions_tenant_id_action_id_idx","columns":["tenant_id","action_id","attempt_number"],"unique":true},{"name":"intake_executions_slug_context_idx","columns":["slug","context"]},{"name":"intake_executions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_executions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_executions_state_idx","columns":["tenant_id","state"]},{"name":"intake_executions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_executions_item_id_idx","columns":["item_id"]},{"name":"intake_executions_action_id_idx","columns":["action_id"]}],"version":"6a14ec3c"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeFeedback":{"name":"intakefeedback","className":"IntakeFeedback","qualifiedName":"@happyvertical/smrt-ingestion:IntakeFeedback","collection":"intakefeedbacks","description":"Durable IntakeFeedback record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"requestKey":{"type":"text","required":true,"_meta":{"required":true}},"supersedesId":{"type":"foreignKey","required":false,"related":"IntakeFeedback","_meta":{"nullable":true}},"kind":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_feedback","conflictColumns":["tenant_id","item_id","request_key"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_feedback_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_feedback_item_idx","columns":["tenantId","itemId"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeFeedback","collectionExportName":"IntakeFeedbackCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"requestKey","rule":"required","fieldType":"text"},{"field":"kind","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_feedback","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_feedback\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"request_key\\" TEXT NOT NULL,\\n \\"supersedes_id\\" UUID,\\n \\"kind\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"request_key":{"type":"TEXT","notNull":true,"unique":false},"supersedes_id":{"type":"UUID","referenceKind":"foreignKey","notNull":false,"unique":false,"foreignKey":{"table":"intake_feedback","column":"id","onDelete":"NO ACTION","onUpdate":"CASCADE"}},"kind":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_feedback_tenant_id_item_id_idx","columns":["tenant_id","item_id","request_key"],"unique":true},{"name":"intake_feedback_slug_context_idx","columns":["slug","context"]},{"name":"intake_feedback_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_feedback_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_feedback_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_feedback_item_id_idx","columns":["item_id"]},{"name":"intake_feedback_supersedes_id_idx","columns":["supersedes_id"]}],"version":"087279a0"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeDispatch":{"name":"intakedispatch","className":"IntakeDispatch","qualifiedName":"@happyvertical/smrt-ingestion:IntakeDispatch","collection":"intakedispatches","description":"Durable IntakeDispatch record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"stage":{"type":"text","required":true,"_meta":{"required":true}},"revision":{"type":"integer","required":true,"_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"jobId":{"type":"text","required":true,"_meta":{"required":true}},"deliveries":{"type":"integer","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_dispatches","conflictColumns":["tenant_id","item_id","stage","revision"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_dispatches_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_dispatches_item_idx","columns":["tenantId","itemId"]},{"name":"intake_dispatches_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeDispatch","collectionExportName":"IntakeDispatchCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"stage","rule":"required","fieldType":"text"},{"field":"revision","rule":"required","fieldType":"integer"},{"field":"state","rule":"required","fieldType":"text"},{"field":"jobId","rule":"required","fieldType":"text"},{"field":"deliveries","rule":"required","fieldType":"integer"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_dispatches","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_dispatches\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"stage\\" TEXT NOT NULL,\\n \\"revision\\" INTEGER NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"job_id\\" TEXT NOT NULL,\\n \\"deliveries\\" INTEGER NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"stage":{"type":"TEXT","notNull":true,"unique":false},"revision":{"type":"INTEGER","notNull":true,"unique":false},"state":{"type":"TEXT","notNull":true,"unique":false},"job_id":{"type":"TEXT","notNull":true,"unique":false},"deliveries":{"type":"INTEGER","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_dispatches_tenant_id_item_id_idx","columns":["tenant_id","item_id","stage","revision"],"unique":true},{"name":"intake_dispatches_slug_context_idx","columns":["slug","context"]},{"name":"intake_dispatches_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_dispatches_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_dispatches_state_idx","columns":["tenant_id","state"]},{"name":"intake_dispatches_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_dispatches_item_id_idx","columns":["item_id"]}],"version":"037a8ea3"},"importPath":"@happyvertical/smrt-ingestion/models"},"@happyvertical/smrt-ingestion:IntakeDeletion":{"name":"intakedeletion","className":"IntakeDeletion","qualifiedName":"@happyvertical/smrt-ingestion:IntakeDeletion","collection":"intakedeletions","description":"Durable IntakeDeletion record; mutations belong to the server service.","filePath":"/home/runner/work/smrt/smrt/packages/ingestion/src/models.ts","packageName":"@happyvertical/smrt-ingestion","fields":{"tenantId":{"type":"text","required":true,"_meta":{"sqlType":"UUID","__tenancy":{"isTenantIdField":true,"autoFilter":true,"required":true,"autoPopulate":true,"nullable":false,"mode":"required","field":"tenantId","allowSuperAdminBypass":false}}},"confidentialScopeId":{"type":"text","required":true,"_meta":{"required":true}},"itemId":{"type":"foreignKey","required":true,"related":"IntakeItem","_meta":{"required":true}},"state":{"type":"text","required":true,"_meta":{"required":true}},"data":{"type":"json","required":true,"_meta":{"required":true}}},"methods":{"getData":{"name":"getData","async":false,"parameters":[],"returnType":"Record<string, unknown>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"intake_deletions","conflictColumns":["tenant_id","item_id"],"api":false,"cli":false,"mcp":false,"indexes":[{"name":"intake_deletions_scope_idx","columns":["tenantId","confidentialScopeId"]},{"name":"intake_deletions_item_idx","columns":["tenantId","itemId"]},{"name":"intake_deletions_state_idx","columns":["tenantId","state"]}],"tenantScoped":{"mode":"required"}},"extends":"SmrtObject","exportName":"IntakeDeletion","collectionExportName":"IntakeDeletionCollection","validationRules":[{"field":"confidentialScopeId","rule":"required","fieldType":"text"},{"field":"itemId","rule":"required","fieldType":"foreignKey"},{"field":"state","rule":"required","fieldType":"text"},{"field":"data","rule":"required","fieldType":"json"}],"schema":{"tableName":"intake_deletions","ddl":"CREATE TABLE IF NOT EXISTS \\"intake_deletions\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"tenant_id\\" UUID NOT NULL,\\n \\"confidential_scope_id\\" TEXT NOT NULL,\\n \\"item_id\\" UUID NOT NULL,\\n \\"state\\" TEXT NOT NULL,\\n \\"data\\" JSON NOT NULL\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"tenant_id":{"type":"UUID","referenceKind":"tenantId","notNull":true,"unique":false},"confidential_scope_id":{"type":"TEXT","notNull":true,"unique":false},"item_id":{"type":"UUID","referenceKind":"foreignKey","notNull":true,"unique":false,"foreignKey":{"table":"intake_items","column":"id","onDelete":"CASCADE","onUpdate":"CASCADE"}},"state":{"type":"TEXT","notNull":true,"unique":false},"data":{"type":"JSON","notNull":true,"unique":false}},"indexes":[{"name":"intake_deletions_tenant_id_item_id_idx","columns":["tenant_id","item_id"],"unique":true},{"name":"intake_deletions_slug_context_idx","columns":["slug","context"]},{"name":"intake_deletions_scope_idx","columns":["tenant_id","confidential_scope_id"]},{"name":"intake_deletions_item_idx","columns":["tenant_id","item_id"]},{"name":"intake_deletions_state_idx","columns":["tenant_id","state"]},{"name":"intake_deletions_tenant_id_created_at_idx","columns":["tenant_id","created_at"]},{"name":"intake_deletions_item_id_idx","columns":["item_id"]}],"version":"474ffa09"},"importPath":"@happyvertical/smrt-ingestion/models"}},"moduleType":"smrt","recipes":[{"id":"ingestion.inbox","className":"IngestionInboxRecipe","label":"Ingestion inbox","summary":"Review incoming material and see which items need attention.","synonyms":["intake inbox","incoming documents","review queue"],"models":["@happyvertical/smrt-ingestion:IntakeItem","@happyvertical/smrt-ingestion:IntakeEvidence"],"nav":[],"requires":[],"group":{"id":"ingestion","label":"Ingestion","summary":"Review incoming material safely before it can change records."},"section":{"id":"ingestion","label":"Ingestion","icon":"archive","description":"Incoming material and its authenticated review workflow."},"help":{"markdown":"## Overview\\n\\nThe ingestion inbox is where an authenticated reviewer finds incoming material\\nthat needs attention. It keeps the original material and its related evidence\\ntogether, so a reviewer can understand what arrived before choosing a next\\nstep.\\n\\n## Tasks\\n\\n### Check items that need attention\\n\\n1. Open the ingestion inbox in an application that has configured an\\n authenticated review host.\\n2. Choose an item to inspect its evidence and current review state.\\n3. Open the item in Ingestion review when it has a proposed action.\\n\\n### Keep uncertain material for review\\n\\n1. Leave material in the inbox when there is not enough information to decide.\\n2. Return after the application has new information or a reviewer can make a\\n decision.\\n3. Do not treat an inbox item as permission to change another record.\\n\\n## Preview status\\n\\nThis recipe describes a preview workflow. The published evaluation did not meet\\nquality gates and did not establish safety, so automation remains disabled. It\\ndoes not configure a source, provider, generic record route, or automatic\\naction. Applications continue to use the scoped callbacks described in the\\ningestion review documentation.\\n","fieldRefs":[]},"surfaces":[{"kind":"route","path":"/ingestion/inbox","export":"@happyvertical/smrt-ingestion/svelte#IntakeInbox","label":"Ingestion inbox"}],"runtime":"both","demo":{"mode":"server","reasons":["Needs a server because its package depends on @happyvertical/smrt-agents, @happyvertical/smrt-jobs, @happyvertical/smrt-profiles, @happyvertical/smrt-reports, @happyvertical/smrt-secrets, @happyvertical/smrt-tenancy, @happyvertical/smrt-users, which do not build for a browser (#3615, #3617, #3624, #3625, #3626, #3627)."]}},{"id":"ingestion.review","className":"IngestionReviewRecipe","label":"Ingestion review","summary":"Inspect evidence and approve, change, reject, or defer proposed actions.","synonyms":["intake review","proposal review","human approval"],"models":["@happyvertical/smrt-ingestion:IntakeItem","@happyvertical/smrt-ingestion:IntakeEvidence","@happyvertical/smrt-ingestion:IntakeAnalysis","@happyvertical/smrt-ingestion:IntakeAction","@happyvertical/smrt-ingestion:IntakeReviewDecision"],"nav":[],"requires":[],"group":{"id":"ingestion","label":"Ingestion","summary":"Review incoming material safely before it can change records."},"section":{"id":"ingestion","label":"Ingestion","icon":"archive","description":"Incoming material and its authenticated review workflow."},"help":{"markdown":"## Overview\\n\\nIngestion review lets an authorized person inspect the evidence behind a\\nproposed action before it can affect another record. A decision is tied to the\\nspecific material and proposal that the reviewer saw.\\n\\n## Tasks\\n\\n### Review a proposed action\\n\\n1. Open an inbox item that has a proposed action.\\n2. Read the evidence and the proposed result in the authenticated review host.\\n3. Approve, change, reject, or defer the proposal according to the current\\n application policy.\\n\\n### Return to an item after it changes\\n\\n1. Refresh the review when the host indicates that the material or proposal has\\n changed.\\n2. Review the current proposal before making a decision.\\n3. Leave a proposal deferred when its evidence or destination is still\\n uncertain.\\n\\n## Preview status\\n\\nThis recipe describes a preview workflow. The published evaluation did not meet\\nquality gates and did not establish safety, so automation remains disabled. It\\ndoes not create a generic editing surface or enable automatic execution. A host\\nrechecks the reviewer, scope, and current proposal before it accepts a decision.\\n","fieldRefs":[]},"surfaces":[{"kind":"route","path":"/ingestion/review","export":"@happyvertical/smrt-ingestion/svelte#IntakeReview","label":"Ingestion review"}],"runtime":"both","demo":{"mode":"server","reasons":["Needs a server because its package depends on @happyvertical/smrt-agents, @happyvertical/smrt-jobs, @happyvertical/smrt-profiles, @happyvertical/smrt-reports, @happyvertical/smrt-secrets, @happyvertical/smrt-tenancy, @happyvertical/smrt-users, which do not build for a browser (#3615, #3617, #3624, #3625, #3626, #3627)."]}}],"smrtDependencies":["@happyvertical/smrt-agents","@happyvertical/smrt-assets","@happyvertical/smrt-content","@happyvertical/smrt-core","@happyvertical/smrt-jobs","@happyvertical/smrt-messages","@happyvertical/smrt-playbooks","@happyvertical/smrt-tenancy","@happyvertical/smrt-users"],"browser":{"status":"server-only","issues":["#3615","#3617","#3624","#3625","#3626","#3627"],"via":["@happyvertical/smrt-agents","@happyvertical/smrt-jobs","@happyvertical/smrt-profiles","@happyvertical/smrt-reports","@happyvertical/smrt-secrets","@happyvertical/smrt-tenancy","@happyvertical/smrt-users"]},"stampsConstructors":true}`));
5
5
  //#endregion
6
6
  //#region src/models.ts
7
7
  var __defProp = Object.defineProperty;