@happyvertical/smrt-secrets 0.68.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{ConnectState-zO-HSHX8.js → ConnectState-cQjtchvr.js} +9 -3
- package/dist/chunks/ConnectState-cQjtchvr.js.map +1 -0
- package/dist/chunks/{SecretService-BgeVM_1z.js → SecretService-BrzDnPkm.js} +3 -3
- package/dist/chunks/{SecretService-BgeVM_1z.js.map → SecretService-BrzDnPkm.js.map} +1 -1
- package/dist/chunks/{TenantKey-CvR5Gldq.js → TenantKey-DYrZuYaN.js} +2 -2
- package/dist/chunks/{TenantKey-CvR5Gldq.js.map → TenantKey-DYrZuYaN.js.map} +1 -1
- package/dist/chunks/{dist-DKn4tXy7.js → dist-BKPYRnyl.js} +2 -2
- package/dist/chunks/{dist-DKn4tXy7.js.map → dist-BKPYRnyl.js.map} +1 -1
- package/dist/connect/index.js +2 -2
- package/dist/index.js +3 -3
- package/dist/manifest.json +1 -1
- package/dist/models/index.js +3 -3
- package/dist/services/SecretService.js +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/package.json +4 -4
- package/dist/chunks/ConnectState-zO-HSHX8.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dist-DKn4tXy7.js","names":[],"sources":["../../src/__smrt-register__.ts","../../../../node_modules/.pnpm/@happyvertical+logger@0.116.6_@sentry+node@10.75.0_@opentelemetry+core@2.11.0_@opentele_6e4e06560e788ebddf52867aeefbd11d/node_modules/@happyvertical/logger/dist/index.js"],"sourcesContent":["// Generated by @happyvertical/smrt-core smrtPlugin at library build time.\n// The package manifest is inlined so self-registration cannot miss when a\n// downstream bundler relocates this module away from dist/manifest.json\n// (https://github.com/happyvertical/smrt/issues/1506,\n// https://github.com/happyvertical/smrt/issues/1507).\nimport { ObjectRegistry } from '@happyvertical/smrt-core';\n\nObjectRegistry.registerPackageManifest(JSON.parse(\"{\\\"version\\\":\\\"1.0.0\\\",\\\"timestamp\\\":0,\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"packageVersion\\\":\\\"0.68.0\\\",\\\"objects\\\":{\\\"@happyvertical/smrt-secrets:ConnectStateCollection\\\":{\\\"name\\\":\\\"connectstatecollection\\\",\\\"className\\\":\\\"ConnectStateCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:ConnectStateCollection\\\",\\\"collection\\\":\\\"connectstates\\\",\\\"filePath\\\":\\\"src/collections/ConnectStateCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"asStore\\\":{\\\"name\\\":\\\"asStore\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"ConnectStateStore\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"findByState\\\":{\\\"name\\\":\\\"findByState\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"state\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<ConnectState | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"consume\\\":{\\\"name\\\":\\\"consume\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"record\\\",\\\"type\\\":\\\"ConnectStateRecord\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<boolean>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"deleteExpired\\\":{\\\"name\\\":\\\"deleteExpired\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"now\\\",\\\"type\\\":\\\"Date\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<number>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":false,\\\"mcp\\\":false,\\\"cli\\\":false},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"ConnectState\\\",\\\"exportName\\\":\\\"ConnectStateCollection\\\",\\\"collectionExportName\\\":\\\"ConnectStateCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:ConnectState\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"connect_states\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"connect_states\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"kind\\\\\\\" TEXT,\\\\n \\\\\\\"state\\\\\\\" TEXT,\\\\n \\\\\\\"code_verifier\\\\\\\" TEXT,\\\\n \\\\\\\"redirect_uri\\\\\\\" TEXT,\\\\n \\\\\\\"scopes\\\\\\\" JSON DEFAULT '[]',\\\\n \\\\\\\"initiated_by_user_id\\\\\\\" UUID,\\\\n \\\\\\\"return_to\\\\\\\" TEXT,\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"kind\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"state\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"code_verifier\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"redirect_uri\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"scopes\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":[]},\\\"initiated_by_user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"return_to\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"connect_states_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"connect_states_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"connect_states_initiated_by_user_id_idx\\\",\\\"columns\\\":[\\\"initiated_by_user_id\\\"]}],\\\"version\\\":\\\"6be71f00\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:SecretAuditLogCollection\\\":{\\\"name\\\":\\\"secretauditlogcollection\\\",\\\"className\\\":\\\"SecretAuditLogCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:SecretAuditLogCollection\\\",\\\"collection\\\":\\\"secretauditlogs\\\",\\\"description\\\":\\\"Collection for managing SecretAuditLog objects\\\",\\\"filePath\\\":\\\"src/collections/SecretAuditLogCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"listLogs\\\":{\\\"name\\\":\\\"listLogs\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"options\\\",\\\"type\\\":\\\"ListAuditLogsOptions\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getSecretHistory\\\":{\\\"name\\\":\\\"getSecretHistory\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"secretName\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getUserActivity\\\":{\\\"name\\\":\\\"getUserActivity\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"userId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getRecentFailures\\\":{\\\"name\\\":\\\"getRecentFailures\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getRecentDenials\\\":{\\\"name\\\":\\\"getRecentDenials\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByAction\\\":{\\\"name\\\":\\\"countByAction\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"since\\\",\\\"type\\\":\\\"Date\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Record<SecretAuditAction, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByResult\\\":{\\\"name\\\":\\\"countByResult\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"since\\\",\\\"type\\\":\\\"Date\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Record<SecretAuditResult, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"cleanup\\\":{\\\"name\\\":\\\"cleanup\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"olderThanDays\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<number>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true}},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"SecretAuditLog\\\",\\\"exportName\\\":\\\"SecretAuditLogCollection\\\",\\\"collectionExportName\\\":\\\"SecretAuditLogCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:SecretAuditLog\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"secret_audit_logs\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secret_audit_logs\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"secret_id\\\\\\\" UUID,\\\\n \\\\\\\"secret_name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_id\\\\\\\" UUID,\\\\n \\\\\\\"action\\\\\\\" TEXT DEFAULT 'read',\\\\n \\\\\\\"result\\\\\\\" TEXT DEFAULT 'success',\\\\n \\\\\\\"ip_address\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_agent\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"details\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"secret_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"foreignKey\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"secret_name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"action\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"read\\\"},\\\"result\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"success\\\"},\\\"ip_address\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_agent\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"details\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secret_audit_logs_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secret_audit_logs_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"secret_audit_logs_secret_id_idx\\\",\\\"columns\\\":[\\\"secret_id\\\"]},{\\\"name\\\":\\\"secret_audit_logs_user_id_idx\\\",\\\"columns\\\":[\\\"user_id\\\"]}],\\\"version\\\":\\\"d879ab74\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:SecretCollection\\\":{\\\"name\\\":\\\"secretcollection\\\",\\\"className\\\":\\\"SecretCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:SecretCollection\\\",\\\"collection\\\":\\\"secrets\\\",\\\"description\\\":\\\"Collection for managing Secret objects\\\",\\\"filePath\\\":\\\"src/collections/SecretCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"findByName\\\":{\\\"name\\\":\\\"findByName\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Secret | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listSecrets\\\":{\\\"name\\\":\\\"listSecrets\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"options\\\",\\\"type\\\":\\\"ListSecretsOptions\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listActive\\\":{\\\"name\\\":\\\"listActive\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listByCategory\\\":{\\\"name\\\":\\\"listByCategory\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"category\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listExpiring\\\":{\\\"name\\\":\\\"listExpiring\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"daysAhead\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getCategories\\\":{\\\"name\\\":\\\"getCategories\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<string[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByStatus\\\":{\\\"name\\\":\\\"countByStatus\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Record<SecretStatus, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"deleteByName\\\":{\\\"name\\\":\\\"deleteByName\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<boolean>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true}},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"Secret\\\",\\\"exportName\\\":\\\"SecretCollection\\\",\\\"collectionExportName\\\":\\\"SecretCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:Secret\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"secrets\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secrets\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"description\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"category\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"encrypted_value\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"key_version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"last_accessed_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"access_count\\\\\\\" INTEGER DEFAULT 0,\\\\n \\\\\\\"metadata\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"description\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"category\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"encrypted_value\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"key_version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"last_accessed_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"access_count\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":0},\\\"metadata\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secrets_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secrets_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]}],\\\"version\\\":\\\"68e22a05\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:TenantKeyCollection\\\":{\\\"name\\\":\\\"tenantkeycollection\\\",\\\"className\\\":\\\"TenantKeyCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:TenantKeyCollection\\\",\\\"collection\\\":\\\"tenantkeys\\\",\\\"description\\\":\\\"Collection for managing TenantKey objects\\\",\\\"filePath\\\":\\\"src/collections/TenantKeyCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"getActiveKey\\\":{\\\"name\\\":\\\"getActiveKey\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<TenantKey | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listKeyVersions\\\":{\\\"name\\\":\\\"listKeyVersions\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<TenantKey[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getKeyVersion\\\":{\\\"name\\\":\\\"getKeyVersion\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"version\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<TenantKey | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"findKeysNeedingRotation\\\":{\\\"name\\\":\\\"findKeysNeedingRotation\\\",\\\"async\\\":true,\\\"parameters\\\":[],\\\"returnType\\\":\\\"Promise<TenantKey[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listAllActiveKeys\\\":{\\\"name\\\":\\\"listAllActiveKeys\\\",\\\"async\\\":true,\\\"parameters\\\":[],\\\"returnType\\\":\\\"Promise<TenantKey[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByStatus\\\":{\\\"name\\\":\\\"countByStatus\\\",\\\"async\\\":true,\\\"parameters\\\":[],\\\"returnType\\\":\\\"Promise<Record<TenantKeyStatus, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"markCompromised\\\":{\\\"name\\\":\\\"markCompromised\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"keyId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<boolean>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"cleanupRetiredKeys\\\":{\\\"name\\\":\\\"cleanupRetiredKeys\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"olderThanDays\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<number>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\",\\\"get\\\"],\\\"skipApiCheck\\\":true}},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"TenantKey\\\",\\\"exportName\\\":\\\"TenantKeyCollection\\\",\\\"collectionExportName\\\":\\\"TenantKeyCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:TenantKey\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"tenant_keys\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"tenant_keys\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"wrapped_key\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"amk_key_id\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"rotate_after\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"retired_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"wrapped_key\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"amk_key_id\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"rotate_after\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"retired_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"tenant_keys_tenant_id_slug_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"tenant_keys_created_at_idx\\\",\\\"columns\\\":[\\\"created_at\\\"]}],\\\"version\\\":\\\"aad5d79f\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:ConnectState\\\":{\\\"name\\\":\\\"connectstate\\\",\\\"className\\\":\\\"ConnectState\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:ConnectState\\\",\\\"collection\\\":\\\"connectstates\\\",\\\"description\\\":\\\"A single-use, tenant- and user-bound record that carries a connect across a provider redirect: the CSRF state, the PKCE verifier, the redirect URI and the signed-in user who started it.\\\",\\\"filePath\\\":\\\"src/models/ConnectState.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__tenancy\\\":{\\\"isTenantIdField\\\":true,\\\"autoFilter\\\":true,\\\"required\\\":false,\\\"autoPopulate\\\":true,\\\"nullable\\\":true,\\\"mode\\\":\\\"optional\\\",\\\"field\\\":\\\"tenantId\\\",\\\"allowSuperAdminBypass\\\":false},\\\"__statedOptions\\\":[\\\"sqlType\\\",\\\"nullable\\\",\\\"__tenancy\\\",\\\"required\\\"],\\\"sqlType\\\":\\\"UUID\\\",\\\"nullable\\\":true,\\\"required\\\":false},\\\"required\\\":false},\\\"kind\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The provider or flow this connect belongs to.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The provider or flow this connect belongs to.\\\"},\\\"state\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The CSRF value sent to the provider.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The CSRF value sent to the provider.\\\"},\\\"codeVerifier\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\",\\\"sensitive\\\"],\\\"description\\\":\\\"The PKCE code verifier.\\\",\\\"sensitive\\\":true},\\\"required\\\":false,\\\"description\\\":\\\"The PKCE code verifier.\\\",\\\"sensitive\\\":true},\\\"redirectUri\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The callback URL the provider returns to.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The callback URL the provider returns to.\\\"},\\\"scopes\\\":{\\\"type\\\":\\\"json\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\",\\\"default\\\"],\\\"description\\\":\\\"The OAuth scopes requested.\\\"},\\\"required\\\":false,\\\"default\\\":[],\\\"description\\\":\\\"The OAuth scopes requested.\\\"},\\\"initiatedByUserId\\\":{\\\"type\\\":\\\"crossPackageRef\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"related\\\"]},\\\"required\\\":false,\\\"related\\\":\\\"@happyvertical/smrt-users:User\\\"},\\\"returnTo\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The same-origin path to return to afterwards.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The same-origin path to return to afterwards.\\\"},\\\"expiresAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"When this connect link stops working.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"When this connect link stops working.\\\"}},\\\"methods\\\":{},\\\"decoratorConfig\\\":{\\\"api\\\":false,\\\"mcp\\\":false,\\\"cli\\\":false,\\\"tenantScoped\\\":{\\\"mode\\\":\\\"optional\\\"},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"ConnectState\\\",\\\"collectionExportName\\\":\\\"ConnectStateCollection\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"connect_states\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"connect_states\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"kind\\\\\\\" TEXT,\\\\n \\\\\\\"state\\\\\\\" TEXT,\\\\n \\\\\\\"code_verifier\\\\\\\" TEXT,\\\\n \\\\\\\"redirect_uri\\\\\\\" TEXT,\\\\n \\\\\\\"scopes\\\\\\\" JSON DEFAULT '[]',\\\\n \\\\\\\"initiated_by_user_id\\\\\\\" UUID,\\\\n \\\\\\\"return_to\\\\\\\" TEXT,\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"kind\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"state\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"code_verifier\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"redirect_uri\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"scopes\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":[]},\\\"initiated_by_user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"return_to\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"connect_states_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"connect_states_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"connect_states_initiated_by_user_id_idx\\\",\\\"columns\\\":[\\\"initiated_by_user_id\\\"]}],\\\"version\\\":\\\"6be71f00\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"},\\\"@happyvertical/smrt-secrets:Secret\\\":{\\\"name\\\":\\\"secret\\\",\\\"className\\\":\\\"Secret\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:Secret\\\",\\\"collection\\\":\\\"secrets\\\",\\\"filePath\\\":\\\"src/models/Secret.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"],\\\"__tenancy\\\":{\\\"isTenantIdField\\\":true,\\\"mode\\\":\\\"required\\\",\\\"field\\\":\\\"tenantId\\\",\\\"autoFilter\\\":true,\\\"autoPopulate\\\":true,\\\"allowSuperAdminBypass\\\":false},\\\"sqlType\\\":\\\"UUID\\\"},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"name\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"description\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"category\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"encryptedValue\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"keyVersion\\\":{\\\"type\\\":\\\"integer\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":1},\\\"status\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"active\\\",\\\"enum\\\":[\\\"active\\\",\\\"disabled\\\",\\\"expired\\\"]},\\\"expiresAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false},\\\"lastAccessedAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false},\\\"accessCount\\\":{\\\"type\\\":\\\"integer\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":0},\\\"metadata\\\":{\\\"type\\\":\\\"json\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":{}}},\\\"methods\\\":{\\\"isActive\\\":{\\\"name\\\":\\\"isActive\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isExpired\\\":{\\\"name\\\":\\\"isExpired\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isUsable\\\":{\\\"name\\\":\\\"isUsable\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"recordAccess\\\":{\\\"name\\\":\\\"recordAccess\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"disable\\\":{\\\"name\\\":\\\"disable\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"enable\\\":{\\\"name\\\":\\\"enable\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"sensitive\\\":true,\\\"tenantScoped\\\":true,\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"Secret\\\",\\\"collectionExportName\\\":\\\"SecretCollection\\\",\\\"displayLabelField\\\":\\\"name\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"secrets\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secrets\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"description\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"category\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"encrypted_value\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"key_version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"last_accessed_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"access_count\\\\\\\" INTEGER DEFAULT 0,\\\\n \\\\\\\"metadata\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"description\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"category\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"encrypted_value\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"key_version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"last_accessed_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"access_count\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":0},\\\"metadata\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secrets_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secrets_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]}],\\\"version\\\":\\\"68e22a05\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"},\\\"@happyvertical/smrt-secrets:SecretAuditLog\\\":{\\\"name\\\":\\\"secretauditlog\\\",\\\"className\\\":\\\"SecretAuditLog\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:SecretAuditLog\\\",\\\"collection\\\":\\\"secretauditlogs\\\",\\\"filePath\\\":\\\"src/models/SecretAuditLog.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[],\\\"__tenancy\\\":{\\\"isTenantIdField\\\":true,\\\"mode\\\":\\\"required\\\",\\\"field\\\":\\\"tenantId\\\",\\\"autoFilter\\\":true,\\\"autoPopulate\\\":true,\\\"allowSuperAdminBypass\\\":false},\\\"sqlType\\\":\\\"UUID\\\"},\\\"required\\\":false},\\\"secretId\\\":{\\\"type\\\":\\\"foreignKey\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"constraint\\\",\\\"related\\\"],\\\"constraint\\\":false},\\\"required\\\":false,\\\"related\\\":\\\"Secret\\\"},\\\"secretName\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"userId\\\":{\\\"type\\\":\\\"crossPackageRef\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"related\\\"]},\\\"required\\\":false,\\\"related\\\":\\\"@happyvertical/smrt-users:User\\\"},\\\"action\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"read\\\",\\\"enum\\\":[\\\"create\\\",\\\"read\\\",\\\"update\\\",\\\"delete\\\",\\\"rotate_key\\\",\\\"disable\\\",\\\"enable\\\",\\\"expire\\\"]},\\\"result\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"success\\\",\\\"enum\\\":[\\\"success\\\",\\\"failure\\\",\\\"denied\\\"]},\\\"ipAddress\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"userAgent\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"details\\\":{\\\"type\\\":\\\"json\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":{}}},\\\"methods\\\":{\\\"isSuccess\\\":{\\\"name\\\":\\\"isSuccess\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isFailure\\\":{\\\"name\\\":\\\"isFailure\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isDenied\\\":{\\\"name\\\":\\\"isDenied\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isReadAction\\\":{\\\"name\\\":\\\"isReadAction\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isWriteAction\\\":{\\\"name\\\":\\\"isWriteAction\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isKeyOperation\\\":{\\\"name\\\":\\\"isKeyOperation\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"tenantScoped\\\":true,\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"SecretAuditLog\\\",\\\"collectionExportName\\\":\\\"SecretAuditLogCollection\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"secret_audit_logs\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secret_audit_logs\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"secret_id\\\\\\\" UUID,\\\\n \\\\\\\"secret_name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_id\\\\\\\" UUID,\\\\n \\\\\\\"action\\\\\\\" TEXT DEFAULT 'read',\\\\n \\\\\\\"result\\\\\\\" TEXT DEFAULT 'success',\\\\n \\\\\\\"ip_address\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_agent\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"details\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"secret_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"foreignKey\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"secret_name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"action\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"read\\\"},\\\"result\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"success\\\"},\\\"ip_address\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_agent\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"details\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secret_audit_logs_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secret_audit_logs_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"secret_audit_logs_secret_id_idx\\\",\\\"columns\\\":[\\\"secret_id\\\"]},{\\\"name\\\":\\\"secret_audit_logs_user_id_idx\\\",\\\"columns\\\":[\\\"user_id\\\"]}],\\\"version\\\":\\\"d879ab74\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"},\\\"@happyvertical/smrt-secrets:TenantKey\\\":{\\\"name\\\":\\\"tenantkey\\\",\\\"className\\\":\\\"TenantKey\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:TenantKey\\\",\\\"collection\\\":\\\"tenantkeys\\\",\\\"filePath\\\":\\\"src/models/TenantKey.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"sqlType\\\",\\\"default\\\"],\\\"sqlType\\\":\\\"UUID\\\"},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"wrappedKey\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"amkKeyId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"status\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"active\\\",\\\"enum\\\":[\\\"active\\\",\\\"rotating\\\",\\\"retired\\\",\\\"compromised\\\"]},\\\"version\\\":{\\\"type\\\":\\\"integer\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":1},\\\"rotateAfter\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false},\\\"retiredAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false}},\\\"methods\\\":{\\\"isActive\\\":{\\\"name\\\":\\\"isActive\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"needsRotation\\\":{\\\"name\\\":\\\"needsRotation\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isRetired\\\":{\\\"name\\\":\\\"isRetired\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isCompromised\\\":{\\\"name\\\":\\\"isCompromised\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"canDecrypt\\\":{\\\"name\\\":\\\"canDecrypt\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"canEncrypt\\\":{\\\"name\\\":\\\"canEncrypt\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"retire\\\":{\\\"name\\\":\\\"retire\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"markCompromised\\\":{\\\"name\\\":\\\"markCompromised\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"sensitive\\\":true,\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\",\\\"get\\\"],\\\"skipApiCheck\\\":true},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"TenantKey\\\",\\\"collectionExportName\\\":\\\"TenantKeyCollection\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"tenant_keys\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"tenant_keys\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"wrapped_key\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"amk_key_id\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"rotate_after\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"retired_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"wrapped_key\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"amk_key_id\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"rotate_after\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"retired_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"tenant_keys_tenant_id_slug_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"tenant_keys_created_at_idx\\\",\\\"columns\\\":[\\\"created_at\\\"]}],\\\"version\\\":\\\"aad5d79f\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"}},\\\"moduleType\\\":\\\"smrt\\\",\\\"smrtDependencies\\\":[\\\"@happyvertical/smrt-core\\\",\\\"@happyvertical/smrt-tenancy\\\"],\\\"browser\\\":{\\\"status\\\":\\\"server-only\\\",\\\"issues\\\":[\\\"#3624\\\",\\\"#3627\\\"],\\\"reason\\\":\\\"@happyvertical/secrets (node:child_process, node:crypto) and sql\\\",\\\"via\\\":[\\\"@happyvertical/smrt-tenancy\\\"]},\\\"stampsConstructors\\\":true}\"));\n","import { loadEnvConfig } from \"@happyvertical/utils\";\n//#region src/adapter.ts\n/**\n* Logger Adapter - Converts signals to structured log messages\n*\n* Transforms signals from the SMRT framework into structured log entries.\n* Each signal type is mapped to an appropriate log level:\n* - start → debug\n* - step → debug\n* - end → info\n* - error → error\n*\n* @example\n* ```typescript\n* const logger = new ConsoleLogger('info');\n* const adapter = new LoggerAdapter(logger);\n* signalBus.register(adapter);\n* ```\n*/\nvar LoggerAdapter = class {\n\tlogger;\n\tconstructor(logger) {\n\t\tthis.logger = logger;\n\t}\n\t/**\n\t* Handle a signal and log appropriately\n\t*\n\t* @param signal - Signal to log\n\t*/\n\tasync handle(signal) {\n\t\tconst context = {\n\t\t\tid: signal.id,\n\t\t\tobjectId: signal.objectId,\n\t\t\tclassName: signal.className,\n\t\t\tmethod: signal.method,\n\t\t\ttimestamp: signal.timestamp\n\t\t};\n\t\tif (signal.duration !== void 0) context.duration = signal.duration;\n\t\tif (signal.metadata) context.metadata = signal.metadata;\n\t\tswitch (signal.type) {\n\t\t\tcase \"start\":\n\t\t\t\tthis.logger.debug(`${signal.className}.${signal.method}() started`, context);\n\t\t\t\tbreak;\n\t\t\tcase \"step\":\n\t\t\t\tthis.logger.debug(`${signal.className}.${signal.method}() step: ${signal.step || \"unknown\"}`, context);\n\t\t\t\tbreak;\n\t\t\tcase \"end\":\n\t\t\t\tthis.logger.info(`${signal.className}.${signal.method}() completed in ${signal.duration}ms`, {\n\t\t\t\t\t...context,\n\t\t\t\t\tresult: signal.result !== void 0 ? \"present\" : \"none\"\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase \"error\":\n\t\t\t\tthis.logger.error(`${signal.className}.${signal.method}() failed: ${signal.error?.message || \"Unknown error\"}`, {\n\t\t\t\t\t...context,\n\t\t\t\t\terror: signal.error ? {\n\t\t\t\t\t\tmessage: signal.error.message,\n\t\t\t\t\t\tname: signal.error.name,\n\t\t\t\t\t\tstack: signal.error.stack\n\t\t\t\t\t} : void 0\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t}\n\t}\n};\n//#endregion\n//#region src/console.ts\n/**\n* Console-based logger with level filtering\n*\n* Logs are written to console with appropriate severity levels.\n* Messages are only output if they meet the configured log level threshold.\n*\n* @example\n* ```typescript\n* const logger = new ConsoleLogger('info');\n* logger.debug('Debug message'); // Not output (below 'info')\n* logger.info('Info message'); // Output\n* logger.error('Error message'); // Output\n* ```\n*/\nvar ConsoleLogger = class ConsoleLogger {\n\tlevel;\n\tstatic LEVELS = [\n\t\t\"debug\",\n\t\t\"info\",\n\t\t\"warn\",\n\t\t\"error\"\n\t];\n\tconstructor(level = \"info\") {\n\t\tthis.level = level;\n\t}\n\t/**\n\t* Check if a log level should be output\n\t*\n\t* @param level - Log level to check\n\t* @returns True if level meets threshold\n\t*/\n\tshouldLog(level) {\n\t\tconst currentIndex = ConsoleLogger.LEVELS.indexOf(this.level);\n\t\treturn ConsoleLogger.LEVELS.indexOf(level) >= currentIndex;\n\t}\n\t/**\n\t* Format context for console output\n\t*\n\t* @param context - Structured metadata\n\t* @returns Formatted context string\n\t*/\n\tformatContext(context) {\n\t\tif (!context || Object.keys(context).length === 0) return \"\";\n\t\treturn ` ${JSON.stringify(context)}`;\n\t}\n\tdebug(message, context) {\n\t\tif (this.shouldLog(\"debug\")) console.debug(`[DEBUG] ${message}${this.formatContext(context)}`);\n\t}\n\tinfo(message, context) {\n\t\tif (this.shouldLog(\"info\")) console.info(`[INFO] ${message}${this.formatContext(context)}`);\n\t}\n\twarn(message, context) {\n\t\tif (this.shouldLog(\"warn\")) console.warn(`[WARN] ${message}${this.formatContext(context)}`);\n\t}\n\terror(message, context) {\n\t\tif (this.shouldLog(\"error\")) console.error(`[ERROR] ${message}${this.formatContext(context)}`);\n\t}\n};\n//#endregion\n//#region src/index.ts\n/**\n* No-op logger that discards all log messages\n*\n* Used when logging is disabled (config: false)\n*/\nvar NoopLogger = class {\n\tdebug(_message, _context) {}\n\tinfo(_message, _context) {}\n\twarn(_message, _context) {}\n\terror(_message, _context) {}\n};\n/**\n* Create a logger from configuration\n*\n* Supports environment variable configuration via HAVE_LOGGER_LEVEL.\n* User-provided options take precedence over environment variables.\n*\n* @param config - Logger configuration (boolean or object)\n* @returns Configured logger instance\n*\n* @example\n* ```typescript\n* // Console logger with 'info' level (default)\n* const logger1 = createLogger(true);\n*\n* // Console logger with level from HAVE_LOGGER_LEVEL env var\n* process.env.HAVE_LOGGER_LEVEL = 'debug';\n* const logger2 = createLogger(true); // Uses 'debug' from env\n*\n* // No-op logger (all log calls are discarded)\n* const logger3 = createLogger(false);\n*\n* // Console logger with 'debug' level (overrides env)\n* const logger4 = createLogger({ level: 'debug' });\n*\n* // Custom log level (user options take precedence)\n* process.env.HAVE_LOGGER_LEVEL = 'info';\n* const logger5 = createLogger({ level: 'warn' }); // Uses 'warn' not 'info'\n* ```\n*/\nfunction createLogger(config) {\n\tif (typeof config === \"boolean\") {\n\t\tif (!config) return new NoopLogger();\n\t\treturn new ConsoleLogger(loadEnvConfig({}, {\n\t\t\tpackageName: \"logger\",\n\t\t\tschema: { level: \"string\" }\n\t\t}).level || \"info\");\n\t}\n\treturn new ConsoleLogger(loadEnvConfig(config, {\n\t\tpackageName: \"logger\",\n\t\tschema: { level: \"string\" }\n\t}).level || \"info\");\n}\n/** @internal */\nvar PACKAGE_VERSION_INITIALIZED = true;\n//#endregion\nexport { ConsoleLogger, LoggerAdapter, PACKAGE_VERSION_INITIALIZED, createLogger };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[1],"mappings":";;;AAOA,eAAe,wBAAwB,KAAK,MAAM,gmxCAAgmxC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AC0EnpxC,IAAI,gBAAgB,MAAM,cAAc;CACvC;CACA,OAAO,SAAS;EACf;EACA;EACA;EACA;CACD;CACA,YAAY,QAAQ,QAAQ;EAC3B,KAAK,QAAQ;CACd;;;;;;;CAOA,UAAU,OAAO;EAChB,MAAM,eAAe,cAAc,OAAO,QAAQ,KAAK,KAAK;EAC5D,OAAO,cAAc,OAAO,QAAQ,KAAK,KAAK;CAC/C;;;;;;;CAOA,cAAc,SAAS;EACtB,IAAI,CAAC,WAAW,OAAO,KAAK,OAAO,CAAC,CAAC,WAAW,GAAG,OAAO;EAC1D,OAAO,IAAI,KAAK,UAAU,OAAO;CAClC;CACA,MAAM,SAAS,SAAS;EACvB,IAAI,KAAK,UAAU,OAAO,GAAG,QAAQ,MAAM,WAAW,UAAU,KAAK,cAAc,OAAO,GAAG;CAC9F;CACA,KAAK,SAAS,SAAS;EACtB,IAAI,KAAK,UAAU,MAAM,GAAG,QAAQ,KAAK,UAAU,UAAU,KAAK,cAAc,OAAO,GAAG;CAC3F;CACA,KAAK,SAAS,SAAS;EACtB,IAAI,KAAK,UAAU,MAAM,GAAG,QAAQ,KAAK,UAAU,UAAU,KAAK,cAAc,OAAO,GAAG;CAC3F;CACA,MAAM,SAAS,SAAS;EACvB,IAAI,KAAK,UAAU,OAAO,GAAG,QAAQ,MAAM,WAAW,UAAU,KAAK,cAAc,OAAO,GAAG;CAC9F;AACD;;;;;;AAQA,IAAI,aAAa,MAAM;CACtB,MAAM,UAAU,UAAU,CAAC;CAC3B,KAAK,UAAU,UAAU,CAAC;CAC1B,KAAK,UAAU,UAAU,CAAC;CAC1B,MAAM,UAAU,UAAU,CAAC;AAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAS,aAAa,QAAQ;CAC7B,IAAI,OAAO,WAAW,WAAW;EAChC,IAAI,CAAC,QAAQ,OAAO,IAAI,WAAW;EACnC,OAAO,IAAI,cAAc,cAAc,CAAC,GAAG;GAC1C,aAAa;GACb,QAAQ,EAAE,OAAO,SAAS;EAC3B,CAAC,CAAC,CAAC,SAAS,MAAM;CACnB;CACA,OAAO,IAAI,cAAc,cAAc,QAAQ;EAC9C,aAAa;EACb,QAAQ,EAAE,OAAO,SAAS;CAC3B,CAAC,CAAC,CAAC,SAAS,MAAM;AACnB"}
|
|
1
|
+
{"version":3,"file":"dist-BKPYRnyl.js","names":[],"sources":["../../src/__smrt-register__.ts","../../../../node_modules/.pnpm/@happyvertical+logger@0.116.6_@sentry+node@10.75.0_@opentelemetry+core@2.11.0_@opentele_6e4e06560e788ebddf52867aeefbd11d/node_modules/@happyvertical/logger/dist/index.js"],"sourcesContent":["// Generated by @happyvertical/smrt-core smrtPlugin at library build time.\n// The package manifest is inlined so self-registration cannot miss when a\n// downstream bundler relocates this module away from dist/manifest.json\n// (https://github.com/happyvertical/smrt/issues/1506,\n// https://github.com/happyvertical/smrt/issues/1507).\nimport { ObjectRegistry } from '@happyvertical/smrt-core';\n\nObjectRegistry.registerPackageManifest(JSON.parse(\"{\\\"version\\\":\\\"1.0.0\\\",\\\"timestamp\\\":0,\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"packageVersion\\\":\\\"0.70.0\\\",\\\"objects\\\":{\\\"@happyvertical/smrt-secrets:ConnectStateCollection\\\":{\\\"name\\\":\\\"connectstatecollection\\\",\\\"className\\\":\\\"ConnectStateCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:ConnectStateCollection\\\",\\\"collection\\\":\\\"connectstates\\\",\\\"filePath\\\":\\\"src/collections/ConnectStateCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"asStore\\\":{\\\"name\\\":\\\"asStore\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"ConnectStateStore\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"findByState\\\":{\\\"name\\\":\\\"findByState\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"state\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<ConnectState | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"consume\\\":{\\\"name\\\":\\\"consume\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"record\\\",\\\"type\\\":\\\"ConnectStateRecord\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<boolean>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"deleteExpired\\\":{\\\"name\\\":\\\"deleteExpired\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"now\\\",\\\"type\\\":\\\"Date\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<number>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":false,\\\"mcp\\\":false,\\\"cli\\\":false},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"ConnectState\\\",\\\"exportName\\\":\\\"ConnectStateCollection\\\",\\\"collectionExportName\\\":\\\"ConnectStateCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:ConnectState\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"connect_states\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"connect_states\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"kind\\\\\\\" TEXT,\\\\n \\\\\\\"state\\\\\\\" TEXT,\\\\n \\\\\\\"code_verifier\\\\\\\" TEXT,\\\\n \\\\\\\"redirect_uri\\\\\\\" TEXT,\\\\n \\\\\\\"scopes\\\\\\\" JSON DEFAULT '[]',\\\\n \\\\\\\"initiated_by_user_id\\\\\\\" UUID,\\\\n \\\\\\\"return_to\\\\\\\" TEXT,\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"kind\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"state\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"code_verifier\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"redirect_uri\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"scopes\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":[]},\\\"initiated_by_user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"return_to\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"connect_states_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"connect_states_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"connect_states_initiated_by_user_id_idx\\\",\\\"columns\\\":[\\\"initiated_by_user_id\\\"]}],\\\"version\\\":\\\"6be71f00\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:SecretAuditLogCollection\\\":{\\\"name\\\":\\\"secretauditlogcollection\\\",\\\"className\\\":\\\"SecretAuditLogCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:SecretAuditLogCollection\\\",\\\"collection\\\":\\\"secretauditlogs\\\",\\\"description\\\":\\\"Collection for managing SecretAuditLog objects\\\",\\\"filePath\\\":\\\"src/collections/SecretAuditLogCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"listLogs\\\":{\\\"name\\\":\\\"listLogs\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"options\\\",\\\"type\\\":\\\"ListAuditLogsOptions\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getSecretHistory\\\":{\\\"name\\\":\\\"getSecretHistory\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"secretName\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getUserActivity\\\":{\\\"name\\\":\\\"getUserActivity\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"userId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getRecentFailures\\\":{\\\"name\\\":\\\"getRecentFailures\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getRecentDenials\\\":{\\\"name\\\":\\\"getRecentDenials\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"limit\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<SecretAuditLog[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByAction\\\":{\\\"name\\\":\\\"countByAction\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"since\\\",\\\"type\\\":\\\"Date\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Record<SecretAuditAction, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByResult\\\":{\\\"name\\\":\\\"countByResult\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string | null\\\",\\\"optional\\\":false,\\\"unionBranches\\\":[{\\\"type\\\":\\\"string\\\"},{\\\"type\\\":\\\"null\\\"}]},{\\\"name\\\":\\\"since\\\",\\\"type\\\":\\\"Date\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Record<SecretAuditResult, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"cleanup\\\":{\\\"name\\\":\\\"cleanup\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"olderThanDays\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<number>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true}},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"SecretAuditLog\\\",\\\"exportName\\\":\\\"SecretAuditLogCollection\\\",\\\"collectionExportName\\\":\\\"SecretAuditLogCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:SecretAuditLog\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"secret_audit_logs\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secret_audit_logs\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"secret_id\\\\\\\" UUID,\\\\n \\\\\\\"secret_name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_id\\\\\\\" UUID,\\\\n \\\\\\\"action\\\\\\\" TEXT DEFAULT 'read',\\\\n \\\\\\\"result\\\\\\\" TEXT DEFAULT 'success',\\\\n \\\\\\\"ip_address\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_agent\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"details\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"secret_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"foreignKey\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"secret_name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"action\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"read\\\"},\\\"result\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"success\\\"},\\\"ip_address\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_agent\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"details\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secret_audit_logs_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secret_audit_logs_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"secret_audit_logs_secret_id_idx\\\",\\\"columns\\\":[\\\"secret_id\\\"]},{\\\"name\\\":\\\"secret_audit_logs_user_id_idx\\\",\\\"columns\\\":[\\\"user_id\\\"]}],\\\"version\\\":\\\"d879ab74\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:SecretCollection\\\":{\\\"name\\\":\\\"secretcollection\\\",\\\"className\\\":\\\"SecretCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:SecretCollection\\\",\\\"collection\\\":\\\"secrets\\\",\\\"description\\\":\\\"Collection for managing Secret objects\\\",\\\"filePath\\\":\\\"src/collections/SecretCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"findByName\\\":{\\\"name\\\":\\\"findByName\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Secret | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listSecrets\\\":{\\\"name\\\":\\\"listSecrets\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"options\\\",\\\"type\\\":\\\"ListSecretsOptions\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listActive\\\":{\\\"name\\\":\\\"listActive\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listByCategory\\\":{\\\"name\\\":\\\"listByCategory\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"category\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listExpiring\\\":{\\\"name\\\":\\\"listExpiring\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"daysAhead\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<Secret[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getCategories\\\":{\\\"name\\\":\\\"getCategories\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<string[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByStatus\\\":{\\\"name\\\":\\\"countByStatus\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<Record<SecretStatus, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"deleteByName\\\":{\\\"name\\\":\\\"deleteByName\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<boolean>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true}},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"Secret\\\",\\\"exportName\\\":\\\"SecretCollection\\\",\\\"collectionExportName\\\":\\\"SecretCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:Secret\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"secrets\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secrets\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"description\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"category\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"encrypted_value\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"key_version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"last_accessed_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"access_count\\\\\\\" INTEGER DEFAULT 0,\\\\n \\\\\\\"metadata\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"description\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"category\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"encrypted_value\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"key_version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"last_accessed_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"access_count\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":0},\\\"metadata\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secrets_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secrets_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]}],\\\"version\\\":\\\"68e22a05\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:TenantKeyCollection\\\":{\\\"name\\\":\\\"tenantkeycollection\\\",\\\"className\\\":\\\"TenantKeyCollection\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:TenantKeyCollection\\\",\\\"collection\\\":\\\"tenantkeys\\\",\\\"description\\\":\\\"Collection for managing TenantKey objects\\\",\\\"filePath\\\":\\\"src/collections/TenantKeyCollection.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{},\\\"methods\\\":{\\\"getActiveKey\\\":{\\\"name\\\":\\\"getActiveKey\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<TenantKey | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listKeyVersions\\\":{\\\"name\\\":\\\"listKeyVersions\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<TenantKey[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"getKeyVersion\\\":{\\\"name\\\":\\\"getKeyVersion\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"version\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<TenantKey | null>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"findKeysNeedingRotation\\\":{\\\"name\\\":\\\"findKeysNeedingRotation\\\",\\\"async\\\":true,\\\"parameters\\\":[],\\\"returnType\\\":\\\"Promise<TenantKey[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"listAllActiveKeys\\\":{\\\"name\\\":\\\"listAllActiveKeys\\\",\\\"async\\\":true,\\\"parameters\\\":[],\\\"returnType\\\":\\\"Promise<TenantKey[]>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"countByStatus\\\":{\\\"name\\\":\\\"countByStatus\\\",\\\"async\\\":true,\\\"parameters\\\":[],\\\"returnType\\\":\\\"Promise<Record<TenantKeyStatus, number>>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"markCompromised\\\":{\\\"name\\\":\\\"markCompromised\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"tenantId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false},{\\\"name\\\":\\\"keyId\\\",\\\"type\\\":\\\"string\\\",\\\"optional\\\":false}],\\\"returnType\\\":\\\"Promise<boolean>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"cleanupRetiredKeys\\\":{\\\"name\\\":\\\"cleanupRetiredKeys\\\",\\\"async\\\":true,\\\"parameters\\\":[{\\\"name\\\":\\\"olderThanDays\\\",\\\"type\\\":\\\"number\\\",\\\"optional\\\":true}],\\\"returnType\\\":\\\"Promise<number>\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\",\\\"get\\\"],\\\"skipApiCheck\\\":true}},\\\"extends\\\":\\\"SmrtCollection\\\",\\\"extendsTypeArg\\\":\\\"TenantKey\\\",\\\"exportName\\\":\\\"TenantKeyCollection\\\",\\\"collectionExportName\\\":\\\"TenantKeyCollectionCollection\\\",\\\"collectionOf\\\":\\\"@happyvertical/smrt-secrets:TenantKey\\\",\\\"inheritedExposure\\\":[\\\"api\\\",\\\"mcp\\\",\\\"cli\\\"],\\\"schema\\\":{\\\"tableName\\\":\\\"tenant_keys\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"tenant_keys\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"wrapped_key\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"amk_key_id\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"rotate_after\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"retired_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"wrapped_key\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"amk_key_id\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"rotate_after\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"retired_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"tenant_keys_tenant_id_slug_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"tenant_keys_created_at_idx\\\",\\\"columns\\\":[\\\"created_at\\\"]}],\\\"version\\\":\\\"aad5d79f\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets\\\"},\\\"@happyvertical/smrt-secrets:ConnectState\\\":{\\\"name\\\":\\\"connectstate\\\",\\\"className\\\":\\\"ConnectState\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:ConnectState\\\",\\\"collection\\\":\\\"connectstates\\\",\\\"description\\\":\\\"A single-use, tenant- and user-bound record that carries a connect across a provider redirect: the CSRF state, the PKCE verifier, the redirect URI and the signed-in user who started it.\\\",\\\"filePath\\\":\\\"src/models/ConnectState.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__tenancy\\\":{\\\"isTenantIdField\\\":true,\\\"autoFilter\\\":true,\\\"required\\\":false,\\\"autoPopulate\\\":true,\\\"nullable\\\":true,\\\"mode\\\":\\\"optional\\\",\\\"field\\\":\\\"tenantId\\\",\\\"allowSuperAdminBypass\\\":false},\\\"__statedOptions\\\":[\\\"sqlType\\\",\\\"nullable\\\",\\\"__tenancy\\\",\\\"required\\\"],\\\"sqlType\\\":\\\"UUID\\\",\\\"nullable\\\":true,\\\"required\\\":false},\\\"required\\\":false},\\\"kind\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The provider or flow this connect belongs to.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The provider or flow this connect belongs to.\\\"},\\\"state\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The CSRF value sent to the provider.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The CSRF value sent to the provider.\\\"},\\\"codeVerifier\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\",\\\"sensitive\\\"],\\\"description\\\":\\\"The PKCE code verifier.\\\",\\\"sensitive\\\":true},\\\"required\\\":false,\\\"description\\\":\\\"The PKCE code verifier.\\\",\\\"sensitive\\\":true},\\\"redirectUri\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The callback URL the provider returns to.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The callback URL the provider returns to.\\\"},\\\"scopes\\\":{\\\"type\\\":\\\"json\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\",\\\"default\\\"],\\\"description\\\":\\\"The OAuth scopes requested.\\\"},\\\"required\\\":false,\\\"default\\\":[],\\\"description\\\":\\\"The OAuth scopes requested.\\\"},\\\"initiatedByUserId\\\":{\\\"type\\\":\\\"crossPackageRef\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"related\\\"]},\\\"required\\\":false,\\\"related\\\":\\\"@happyvertical/smrt-users:User\\\"},\\\"returnTo\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"The same-origin path to return to afterwards.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"The same-origin path to return to afterwards.\\\"},\\\"expiresAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"description\\\"],\\\"description\\\":\\\"When this connect link stops working.\\\"},\\\"required\\\":false,\\\"description\\\":\\\"When this connect link stops working.\\\"}},\\\"methods\\\":{},\\\"decoratorConfig\\\":{\\\"api\\\":false,\\\"mcp\\\":false,\\\"cli\\\":false,\\\"tenantScoped\\\":{\\\"mode\\\":\\\"optional\\\"},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"ConnectState\\\",\\\"collectionExportName\\\":\\\"ConnectStateCollection\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"connect_states\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"connect_states\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"kind\\\\\\\" TEXT,\\\\n \\\\\\\"state\\\\\\\" TEXT,\\\\n \\\\\\\"code_verifier\\\\\\\" TEXT,\\\\n \\\\\\\"redirect_uri\\\\\\\" TEXT,\\\\n \\\\\\\"scopes\\\\\\\" JSON DEFAULT '[]',\\\\n \\\\\\\"initiated_by_user_id\\\\\\\" UUID,\\\\n \\\\\\\"return_to\\\\\\\" TEXT,\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"kind\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"state\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"code_verifier\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"redirect_uri\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"scopes\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":[]},\\\"initiated_by_user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"return_to\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"connect_states_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"connect_states_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"connect_states_initiated_by_user_id_idx\\\",\\\"columns\\\":[\\\"initiated_by_user_id\\\"]}],\\\"version\\\":\\\"6be71f00\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"},\\\"@happyvertical/smrt-secrets:Secret\\\":{\\\"name\\\":\\\"secret\\\",\\\"className\\\":\\\"Secret\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:Secret\\\",\\\"collection\\\":\\\"secrets\\\",\\\"filePath\\\":\\\"src/models/Secret.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"],\\\"__tenancy\\\":{\\\"isTenantIdField\\\":true,\\\"mode\\\":\\\"required\\\",\\\"field\\\":\\\"tenantId\\\",\\\"autoFilter\\\":true,\\\"autoPopulate\\\":true,\\\"allowSuperAdminBypass\\\":false},\\\"sqlType\\\":\\\"UUID\\\"},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"name\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"description\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"category\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"encryptedValue\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"keyVersion\\\":{\\\"type\\\":\\\"integer\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":1},\\\"status\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"active\\\",\\\"enum\\\":[\\\"active\\\",\\\"disabled\\\",\\\"expired\\\"]},\\\"expiresAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false},\\\"lastAccessedAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false},\\\"accessCount\\\":{\\\"type\\\":\\\"integer\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":0},\\\"metadata\\\":{\\\"type\\\":\\\"json\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":{}}},\\\"methods\\\":{\\\"isActive\\\":{\\\"name\\\":\\\"isActive\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isExpired\\\":{\\\"name\\\":\\\"isExpired\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isUsable\\\":{\\\"name\\\":\\\"isUsable\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"recordAccess\\\":{\\\"name\\\":\\\"recordAccess\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"disable\\\":{\\\"name\\\":\\\"disable\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"enable\\\":{\\\"name\\\":\\\"enable\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"sensitive\\\":true,\\\"tenantScoped\\\":true,\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"Secret\\\",\\\"collectionExportName\\\":\\\"SecretCollection\\\",\\\"displayLabelField\\\":\\\"name\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"secrets\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secrets\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"description\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"category\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"encrypted_value\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"key_version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"expires_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"last_accessed_at\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"access_count\\\\\\\" INTEGER DEFAULT 0,\\\\n \\\\\\\"metadata\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"description\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"category\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"encrypted_value\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"key_version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"expires_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"last_accessed_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"access_count\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":0},\\\"metadata\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secrets_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secrets_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]}],\\\"version\\\":\\\"68e22a05\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"},\\\"@happyvertical/smrt-secrets:SecretAuditLog\\\":{\\\"name\\\":\\\"secretauditlog\\\",\\\"className\\\":\\\"SecretAuditLog\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:SecretAuditLog\\\",\\\"collection\\\":\\\"secretauditlogs\\\",\\\"filePath\\\":\\\"src/models/SecretAuditLog.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[],\\\"__tenancy\\\":{\\\"isTenantIdField\\\":true,\\\"mode\\\":\\\"required\\\",\\\"field\\\":\\\"tenantId\\\",\\\"autoFilter\\\":true,\\\"autoPopulate\\\":true,\\\"allowSuperAdminBypass\\\":false},\\\"sqlType\\\":\\\"UUID\\\"},\\\"required\\\":false},\\\"secretId\\\":{\\\"type\\\":\\\"foreignKey\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"constraint\\\",\\\"related\\\"],\\\"constraint\\\":false},\\\"required\\\":false,\\\"related\\\":\\\"Secret\\\"},\\\"secretName\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"userId\\\":{\\\"type\\\":\\\"crossPackageRef\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"related\\\"]},\\\"required\\\":false,\\\"related\\\":\\\"@happyvertical/smrt-users:User\\\"},\\\"action\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"read\\\",\\\"enum\\\":[\\\"create\\\",\\\"read\\\",\\\"update\\\",\\\"delete\\\",\\\"rotate_key\\\",\\\"disable\\\",\\\"enable\\\",\\\"expire\\\"]},\\\"result\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"success\\\",\\\"enum\\\":[\\\"success\\\",\\\"failure\\\",\\\"denied\\\"]},\\\"ipAddress\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"userAgent\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"details\\\":{\\\"type\\\":\\\"json\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":{}}},\\\"methods\\\":{\\\"isSuccess\\\":{\\\"name\\\":\\\"isSuccess\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isFailure\\\":{\\\"name\\\":\\\"isFailure\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isDenied\\\":{\\\"name\\\":\\\"isDenied\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isReadAction\\\":{\\\"name\\\":\\\"isReadAction\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isWriteAction\\\":{\\\"name\\\":\\\"isWriteAction\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isKeyOperation\\\":{\\\"name\\\":\\\"isKeyOperation\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"tenantScoped\\\":true,\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\"],\\\"skipApiCheck\\\":true},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"SecretAuditLog\\\",\\\"collectionExportName\\\":\\\"SecretAuditLogCollection\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"secret_audit_logs\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"secret_audit_logs\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"secret_id\\\\\\\" UUID,\\\\n \\\\\\\"secret_name\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_id\\\\\\\" UUID,\\\\n \\\\\\\"action\\\\\\\" TEXT DEFAULT 'read',\\\\n \\\\\\\"result\\\\\\\" TEXT DEFAULT 'success',\\\\n \\\\\\\"ip_address\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"user_agent\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"details\\\\\\\" JSON DEFAULT '{}'\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\":false,\\\"unique\\\":false},\\\"secret_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"foreignKey\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"secret_name\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_id\\\":{\\\"type\\\":\\\"UUID\\\",\\\"referenceKind\\\":\\\"crossPackageRef\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"action\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"read\\\"},\\\"result\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"success\\\"},\\\"ip_address\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"user_agent\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"details\\\":{\\\"type\\\":\\\"JSON\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":{}}},\\\"indexes\\\":[{\\\"name\\\":\\\"secret_audit_logs_slug_context_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"secret_audit_logs_tenant_id_created_at_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"created_at\\\"]},{\\\"name\\\":\\\"secret_audit_logs_secret_id_idx\\\",\\\"columns\\\":[\\\"secret_id\\\"]},{\\\"name\\\":\\\"secret_audit_logs_user_id_idx\\\",\\\"columns\\\":[\\\"user_id\\\"]}],\\\"version\\\":\\\"d879ab74\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"},\\\"@happyvertical/smrt-secrets:TenantKey\\\":{\\\"name\\\":\\\"tenantkey\\\",\\\"className\\\":\\\"TenantKey\\\",\\\"qualifiedName\\\":\\\"@happyvertical/smrt-secrets:TenantKey\\\",\\\"collection\\\":\\\"tenantkeys\\\",\\\"filePath\\\":\\\"src/models/TenantKey.ts\\\",\\\"packageName\\\":\\\"@happyvertical/smrt-secrets\\\",\\\"fields\\\":{\\\"tenantId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"sqlType\\\",\\\"default\\\"],\\\"sqlType\\\":\\\"UUID\\\"},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"wrappedKey\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"amkKeyId\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"\\\"},\\\"status\\\":{\\\"type\\\":\\\"text\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\",\\\"enum\\\"]},\\\"required\\\":false,\\\"default\\\":\\\"active\\\",\\\"enum\\\":[\\\"active\\\",\\\"rotating\\\",\\\"retired\\\",\\\"compromised\\\"]},\\\"version\\\":{\\\"type\\\":\\\"integer\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[\\\"default\\\"]},\\\"required\\\":false,\\\"default\\\":1},\\\"rotateAfter\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false},\\\"retiredAt\\\":{\\\"type\\\":\\\"datetime\\\",\\\"_meta\\\":{\\\"__statedOptions\\\":[]},\\\"required\\\":false}},\\\"methods\\\":{\\\"isActive\\\":{\\\"name\\\":\\\"isActive\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"needsRotation\\\":{\\\"name\\\":\\\"needsRotation\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isRetired\\\":{\\\"name\\\":\\\"isRetired\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"isCompromised\\\":{\\\"name\\\":\\\"isCompromised\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"canDecrypt\\\":{\\\"name\\\":\\\"canDecrypt\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"canEncrypt\\\":{\\\"name\\\":\\\"canEncrypt\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"boolean\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"retire\\\":{\\\"name\\\":\\\"retire\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true},\\\"markCompromised\\\":{\\\"name\\\":\\\"markCompromised\\\",\\\"async\\\":false,\\\"parameters\\\":[],\\\"returnType\\\":\\\"void\\\",\\\"isStatic\\\":false,\\\"isPublic\\\":true}},\\\"decoratorConfig\\\":{\\\"sensitive\\\":true,\\\"api\\\":{\\\"include\\\":[]},\\\"mcp\\\":{\\\"include\\\":[]},\\\"cli\\\":{\\\"include\\\":[\\\"list\\\",\\\"get\\\"],\\\"skipApiCheck\\\":true},\\\"conflictColumns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"]},\\\"extends\\\":\\\"SmrtObject\\\",\\\"exportName\\\":\\\"TenantKey\\\",\\\"collectionExportName\\\":\\\"TenantKeyCollection\\\",\\\"schema\\\":{\\\"tableName\\\":\\\"tenant_keys\\\",\\\"ddl\\\":\\\"CREATE TABLE IF NOT EXISTS \\\\\\\"tenant_keys\\\\\\\" (\\\\n \\\\\\\"_sync_origin_device_id\\\\\\\" TEXT,\\\\n \\\\\\\"_sync_revision\\\\\\\" INTEGER,\\\\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,\\\\n \\\\\\\"wrapped_key\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"amk_key_id\\\\\\\" TEXT DEFAULT '',\\\\n \\\\\\\"status\\\\\\\" TEXT DEFAULT 'active',\\\\n \\\\\\\"version\\\\\\\" INTEGER DEFAULT 1,\\\\n \\\\\\\"rotate_after\\\\\\\" TIMESTAMP,\\\\n \\\\\\\"retired_at\\\\\\\" TIMESTAMP\\\\n);\\\",\\\"columns\\\":{\\\"_sync_origin_device_id\\\":{\\\"type\\\":\\\"TEXT\\\"},\\\"_sync_revision\\\":{\\\"type\\\":\\\"INTEGER\\\"},\\\"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\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"wrapped_key\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"amk_key_id\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"\\\"},\\\"status\\\":{\\\"type\\\":\\\"TEXT\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":\\\"active\\\"},\\\"version\\\":{\\\"type\\\":\\\"INTEGER\\\",\\\"notNull\\\":false,\\\"unique\\\":false,\\\"default\\\":1},\\\"rotate_after\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false},\\\"retired_at\\\":{\\\"type\\\":\\\"TIMESTAMP\\\",\\\"notNull\\\":false,\\\"unique\\\":false}},\\\"indexes\\\":[{\\\"name\\\":\\\"tenant_keys_tenant_id_slug_idx\\\",\\\"columns\\\":[\\\"tenant_id\\\",\\\"slug\\\",\\\"context\\\"],\\\"unique\\\":true,\\\"nullsNotDistinct\\\":true},{\\\"name\\\":\\\"tenant_keys_created_at_idx\\\",\\\"columns\\\":[\\\"created_at\\\"]}],\\\"version\\\":\\\"aad5d79f\\\"},\\\"importPath\\\":\\\"@happyvertical/smrt-secrets/models\\\"}},\\\"moduleType\\\":\\\"smrt\\\",\\\"smrtDependencies\\\":[\\\"@happyvertical/smrt-core\\\",\\\"@happyvertical/smrt-tenancy\\\"],\\\"browser\\\":{\\\"status\\\":\\\"server-only\\\",\\\"issues\\\":[\\\"#3624\\\",\\\"#3627\\\"],\\\"reason\\\":\\\"@happyvertical/secrets (node:child_process, node:crypto) and sql\\\",\\\"via\\\":[\\\"@happyvertical/smrt-tenancy\\\"]},\\\"stampsConstructors\\\":true}\"));\n","import { loadEnvConfig } from \"@happyvertical/utils\";\n//#region src/adapter.ts\n/**\n* Logger Adapter - Converts signals to structured log messages\n*\n* Transforms signals from the SMRT framework into structured log entries.\n* Each signal type is mapped to an appropriate log level:\n* - start → debug\n* - step → debug\n* - end → info\n* - error → error\n*\n* @example\n* ```typescript\n* const logger = new ConsoleLogger('info');\n* const adapter = new LoggerAdapter(logger);\n* signalBus.register(adapter);\n* ```\n*/\nvar LoggerAdapter = class {\n\tlogger;\n\tconstructor(logger) {\n\t\tthis.logger = logger;\n\t}\n\t/**\n\t* Handle a signal and log appropriately\n\t*\n\t* @param signal - Signal to log\n\t*/\n\tasync handle(signal) {\n\t\tconst context = {\n\t\t\tid: signal.id,\n\t\t\tobjectId: signal.objectId,\n\t\t\tclassName: signal.className,\n\t\t\tmethod: signal.method,\n\t\t\ttimestamp: signal.timestamp\n\t\t};\n\t\tif (signal.duration !== void 0) context.duration = signal.duration;\n\t\tif (signal.metadata) context.metadata = signal.metadata;\n\t\tswitch (signal.type) {\n\t\t\tcase \"start\":\n\t\t\t\tthis.logger.debug(`${signal.className}.${signal.method}() started`, context);\n\t\t\t\tbreak;\n\t\t\tcase \"step\":\n\t\t\t\tthis.logger.debug(`${signal.className}.${signal.method}() step: ${signal.step || \"unknown\"}`, context);\n\t\t\t\tbreak;\n\t\t\tcase \"end\":\n\t\t\t\tthis.logger.info(`${signal.className}.${signal.method}() completed in ${signal.duration}ms`, {\n\t\t\t\t\t...context,\n\t\t\t\t\tresult: signal.result !== void 0 ? \"present\" : \"none\"\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase \"error\":\n\t\t\t\tthis.logger.error(`${signal.className}.${signal.method}() failed: ${signal.error?.message || \"Unknown error\"}`, {\n\t\t\t\t\t...context,\n\t\t\t\t\terror: signal.error ? {\n\t\t\t\t\t\tmessage: signal.error.message,\n\t\t\t\t\t\tname: signal.error.name,\n\t\t\t\t\t\tstack: signal.error.stack\n\t\t\t\t\t} : void 0\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t}\n\t}\n};\n//#endregion\n//#region src/console.ts\n/**\n* Console-based logger with level filtering\n*\n* Logs are written to console with appropriate severity levels.\n* Messages are only output if they meet the configured log level threshold.\n*\n* @example\n* ```typescript\n* const logger = new ConsoleLogger('info');\n* logger.debug('Debug message'); // Not output (below 'info')\n* logger.info('Info message'); // Output\n* logger.error('Error message'); // Output\n* ```\n*/\nvar ConsoleLogger = class ConsoleLogger {\n\tlevel;\n\tstatic LEVELS = [\n\t\t\"debug\",\n\t\t\"info\",\n\t\t\"warn\",\n\t\t\"error\"\n\t];\n\tconstructor(level = \"info\") {\n\t\tthis.level = level;\n\t}\n\t/**\n\t* Check if a log level should be output\n\t*\n\t* @param level - Log level to check\n\t* @returns True if level meets threshold\n\t*/\n\tshouldLog(level) {\n\t\tconst currentIndex = ConsoleLogger.LEVELS.indexOf(this.level);\n\t\treturn ConsoleLogger.LEVELS.indexOf(level) >= currentIndex;\n\t}\n\t/**\n\t* Format context for console output\n\t*\n\t* @param context - Structured metadata\n\t* @returns Formatted context string\n\t*/\n\tformatContext(context) {\n\t\tif (!context || Object.keys(context).length === 0) return \"\";\n\t\treturn ` ${JSON.stringify(context)}`;\n\t}\n\tdebug(message, context) {\n\t\tif (this.shouldLog(\"debug\")) console.debug(`[DEBUG] ${message}${this.formatContext(context)}`);\n\t}\n\tinfo(message, context) {\n\t\tif (this.shouldLog(\"info\")) console.info(`[INFO] ${message}${this.formatContext(context)}`);\n\t}\n\twarn(message, context) {\n\t\tif (this.shouldLog(\"warn\")) console.warn(`[WARN] ${message}${this.formatContext(context)}`);\n\t}\n\terror(message, context) {\n\t\tif (this.shouldLog(\"error\")) console.error(`[ERROR] ${message}${this.formatContext(context)}`);\n\t}\n};\n//#endregion\n//#region src/index.ts\n/**\n* No-op logger that discards all log messages\n*\n* Used when logging is disabled (config: false)\n*/\nvar NoopLogger = class {\n\tdebug(_message, _context) {}\n\tinfo(_message, _context) {}\n\twarn(_message, _context) {}\n\terror(_message, _context) {}\n};\n/**\n* Create a logger from configuration\n*\n* Supports environment variable configuration via HAVE_LOGGER_LEVEL.\n* User-provided options take precedence over environment variables.\n*\n* @param config - Logger configuration (boolean or object)\n* @returns Configured logger instance\n*\n* @example\n* ```typescript\n* // Console logger with 'info' level (default)\n* const logger1 = createLogger(true);\n*\n* // Console logger with level from HAVE_LOGGER_LEVEL env var\n* process.env.HAVE_LOGGER_LEVEL = 'debug';\n* const logger2 = createLogger(true); // Uses 'debug' from env\n*\n* // No-op logger (all log calls are discarded)\n* const logger3 = createLogger(false);\n*\n* // Console logger with 'debug' level (overrides env)\n* const logger4 = createLogger({ level: 'debug' });\n*\n* // Custom log level (user options take precedence)\n* process.env.HAVE_LOGGER_LEVEL = 'info';\n* const logger5 = createLogger({ level: 'warn' }); // Uses 'warn' not 'info'\n* ```\n*/\nfunction createLogger(config) {\n\tif (typeof config === \"boolean\") {\n\t\tif (!config) return new NoopLogger();\n\t\treturn new ConsoleLogger(loadEnvConfig({}, {\n\t\t\tpackageName: \"logger\",\n\t\t\tschema: { level: \"string\" }\n\t\t}).level || \"info\");\n\t}\n\treturn new ConsoleLogger(loadEnvConfig(config, {\n\t\tpackageName: \"logger\",\n\t\tschema: { level: \"string\" }\n\t}).level || \"info\");\n}\n/** @internal */\nvar PACKAGE_VERSION_INITIALIZED = true;\n//#endregion\nexport { ConsoleLogger, LoggerAdapter, PACKAGE_VERSION_INITIALIZED, createLogger };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[1],"mappings":";;;AAOA,eAAe,wBAAwB,KAAK,MAAM,gmxCAAgmxC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AC0EnpxC,IAAI,gBAAgB,MAAM,cAAc;CACvC;CACA,OAAO,SAAS;EACf;EACA;EACA;EACA;CACD;CACA,YAAY,QAAQ,QAAQ;EAC3B,KAAK,QAAQ;CACd;;;;;;;CAOA,UAAU,OAAO;EAChB,MAAM,eAAe,cAAc,OAAO,QAAQ,KAAK,KAAK;EAC5D,OAAO,cAAc,OAAO,QAAQ,KAAK,KAAK;CAC/C;;;;;;;CAOA,cAAc,SAAS;EACtB,IAAI,CAAC,WAAW,OAAO,KAAK,OAAO,CAAC,CAAC,WAAW,GAAG,OAAO;EAC1D,OAAO,IAAI,KAAK,UAAU,OAAO;CAClC;CACA,MAAM,SAAS,SAAS;EACvB,IAAI,KAAK,UAAU,OAAO,GAAG,QAAQ,MAAM,WAAW,UAAU,KAAK,cAAc,OAAO,GAAG;CAC9F;CACA,KAAK,SAAS,SAAS;EACtB,IAAI,KAAK,UAAU,MAAM,GAAG,QAAQ,KAAK,UAAU,UAAU,KAAK,cAAc,OAAO,GAAG;CAC3F;CACA,KAAK,SAAS,SAAS;EACtB,IAAI,KAAK,UAAU,MAAM,GAAG,QAAQ,KAAK,UAAU,UAAU,KAAK,cAAc,OAAO,GAAG;CAC3F;CACA,MAAM,SAAS,SAAS;EACvB,IAAI,KAAK,UAAU,OAAO,GAAG,QAAQ,MAAM,WAAW,UAAU,KAAK,cAAc,OAAO,GAAG;CAC9F;AACD;;;;;;AAQA,IAAI,aAAa,MAAM;CACtB,MAAM,UAAU,UAAU,CAAC;CAC3B,KAAK,UAAU,UAAU,CAAC;CAC1B,KAAK,UAAU,UAAU,CAAC;CAC1B,MAAM,UAAU,UAAU,CAAC;AAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAS,aAAa,QAAQ;CAC7B,IAAI,OAAO,WAAW,WAAW;EAChC,IAAI,CAAC,QAAQ,OAAO,IAAI,WAAW;EACnC,OAAO,IAAI,cAAc,cAAc,CAAC,GAAG;GAC1C,aAAa;GACb,QAAQ,EAAE,OAAO,SAAS;EAC3B,CAAC,CAAC,CAAC,SAAS,MAAM;CACnB;CACA,OAAO,IAAI,cAAc,cAAc,QAAQ;EAC9C,aAAa;EACb,QAAQ,EAAE,OAAO,SAAS;CAC3B,CAAC,CAAC,CAAC,SAAS,MAAM;AACnB"}
|
package/dist/connect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../chunks/dist-
|
|
2
|
-
import { t as ConnectState } from "../chunks/ConnectState-
|
|
1
|
+
import "../chunks/dist-BKPYRnyl.js";
|
|
2
|
+
import { t as ConnectState } from "../chunks/ConnectState-cQjtchvr.js";
|
|
3
3
|
import { RuntimeError, SmrtCollection } from "@happyvertical/smrt-core";
|
|
4
4
|
//#region src/collections/ConnectStateCollection.ts
|
|
5
5
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./chunks/dist-
|
|
2
|
-
import { i as createAuditEntry, n as Secret, r as SecretAuditLog, t as TenantKey } from "./chunks/TenantKey-
|
|
3
|
-
import { a as SecretAuditLogCollection, i as SecretCollection, n as SecretService, r as TenantKeyCollection, t as SecretKeyDriftError } from "./chunks/SecretService-
|
|
1
|
+
import "./chunks/dist-BKPYRnyl.js";
|
|
2
|
+
import { i as createAuditEntry, n as Secret, r as SecretAuditLog, t as TenantKey } from "./chunks/TenantKey-DYrZuYaN.js";
|
|
3
|
+
import { a as SecretAuditLogCollection, i as SecretCollection, n as SecretService, r as TenantKeyCollection, t as SecretKeyDriftError } from "./chunks/SecretService-BrzDnPkm.js";
|
|
4
4
|
import { AMKUnavailableError, DecryptionError, EncryptionError, InvalidKeyFormatError, KeyNotFoundError, KeyRotationError, SecretError, StoreNotInitializedError, TenantKeyMissingError } from "@happyvertical/secrets";
|
|
5
5
|
//#region src/index.ts
|
|
6
6
|
/** @internal */
|
package/dist/manifest.json
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunks/dist-
|
|
2
|
-
import { i as createAuditEntry, n as Secret, r as SecretAuditLog, t as TenantKey } from "../chunks/TenantKey-
|
|
3
|
-
import { t as ConnectState } from "../chunks/ConnectState-
|
|
1
|
+
import "../chunks/dist-BKPYRnyl.js";
|
|
2
|
+
import { i as createAuditEntry, n as Secret, r as SecretAuditLog, t as TenantKey } from "../chunks/TenantKey-DYrZuYaN.js";
|
|
3
|
+
import { t as ConnectState } from "../chunks/ConnectState-cQjtchvr.js";
|
|
4
4
|
export { ConnectState, Secret, SecretAuditLog, TenantKey, createAuditEntry };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SecretService, t as SecretKeyDriftError } from "../chunks/SecretService-
|
|
1
|
+
import { n as SecretService, t as SecretKeyDriftError } from "../chunks/SecretService-BrzDnPkm.js";
|
|
2
2
|
export { SecretKeyDriftError, SecretService };
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-secrets",
|
|
6
|
-
"packageVersion": "0.
|
|
6
|
+
"packageVersion": "0.70.0",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "afddfa3580e8312c1093b9a077dda3d4f9a7344e0b051977e91f9da1c5df15e9",
|
|
11
|
+
"packageJson": "021a6941a9b6643da30478951eca10f00ada9b0d95de296bf50e6a3fabbec46c",
|
|
12
12
|
"agents": "4ca469421dea5d10616d2c79dc5a862480a55799bfe4ecdf088556b89e3b5ebe"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-secrets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"description": "Per-tenant secret management with envelope encryption for SMRT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@happyvertical/logger": "^0.116.6",
|
|
35
35
|
"@happyvertical/secrets": "^0.116.6",
|
|
36
|
-
"@happyvertical/smrt-core": "0.
|
|
37
|
-
"@happyvertical/smrt-tenancy": "0.
|
|
36
|
+
"@happyvertical/smrt-core": "0.70.0",
|
|
37
|
+
"@happyvertical/smrt-tenancy": "0.70.0",
|
|
38
38
|
"@happyvertical/sql": "^0.116.6",
|
|
39
39
|
"@happyvertical/utils": "^0.116.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@happyvertical/smrt-vitest": "0.
|
|
42
|
+
"@happyvertical/smrt-vitest": "0.70.0",
|
|
43
43
|
"@types/node": "24.13.6",
|
|
44
44
|
"typescript": "6.0.3",
|
|
45
45
|
"vite": "8.1.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectState-zO-HSHX8.js","names":[],"sources":["../../../tenancy/dist/chunks/registry-DH0v5Efm.js","../../../tenancy/dist/decorators.js","../../src/models/ConnectState.ts"],"sourcesContent":["import { ObjectRegistry, toSnakeCase } from \"@happyvertical/smrt-core\";\nimport { createLogger } from \"@happyvertical/logger\";\n//#region src/registry.ts\nvar logger = createLogger({ level: \"info\" });\nvar DEFAULT_CONFIG = {\n\tmode: \"required\",\n\tfield: \"tenantId\",\n\tautoFilter: true,\n\tautoPopulate: true,\n\tallowSuperAdminBypass: false\n};\nvar tenantScopedClasses = /* @__PURE__ */ new Map();\nvar directSimpleRegistrations = /* @__PURE__ */ new Map();\nvar directQualifiedRegistrations = /* @__PURE__ */ new Map();\nvar directSimpleBindings = /* @__PURE__ */ new Map();\nvar unregisteredDecoratorRegistrations = /* @__PURE__ */ new Map();\nvar auditedSelectors = /* @__PURE__ */ new Set();\nfunction isQualifiedClassName(className) {\n\treturn className.includes(\":\");\n}\nfunction isCurrentDirectSimpleBinding(binding) {\n\treturn ObjectRegistry.getClassByQualifiedName(binding.qualifiedName)?.constructor === binding.constructor;\n}\nfunction bindDirectSimpleRegistration(className) {\n\tif (!directSimpleRegistrations.get(className) || directSimpleBindings.has(className)) return;\n\tconst matches = ObjectRegistry.findClassesByName(className);\n\tif (matches.length !== 1 || !matches[0].qualifiedName) return;\n\tdirectSimpleBindings.set(className, {\n\t\tqualifiedName: matches[0].qualifiedName,\n\t\tconstructor: matches[0].constructor\n\t});\n\twarnOnRegistrationMismatch(className);\n}\nfunction getDirectSimpleRegistration(className) {\n\tconst config = directSimpleRegistrations.get(className);\n\tif (!config) return void 0;\n\tconst binding = directSimpleBindings.get(className);\n\tif (binding && !isCurrentDirectSimpleBinding(binding)) throw new Error(`Stale tenant-scoped class registration '${className}'; unregister and register it again for the current constructor.`);\n\tif (ObjectRegistry.findClassesByName(className).length > 1) throw new Error(`Ambiguous tenant-scoped class registration '${className}'; register an explicit qualified class name instead.`);\n\treturn config;\n}\nfunction registerTenantScopedConstructor(target, config = {}) {\n\tconst resolved = {\n\t\t...DEFAULT_CONFIG,\n\t\t...config\n\t};\n\tunregisteredDecoratorRegistrations.set(target.name, resolved);\n\ttenantScopedClasses.set(target.name, resolved);\n}\nfunction registerTenantScopedClass(className, config = {}) {\n\tconst resolved = {\n\t\t...DEFAULT_CONFIG,\n\t\t...config\n\t};\n\ttenantScopedClasses.set(className, resolved);\n\tauditedSelectors.delete(className);\n\tif (isQualifiedClassName(className)) {\n\t\tdirectQualifiedRegistrations.set(className, resolved);\n\t\twarnOnRegistrationMismatch(className);\n\t\treturn;\n\t}\n\tdirectSimpleRegistrations.set(className, resolved);\n\tconst existingBinding = directSimpleBindings.get(className);\n\tif (existingBinding && !isCurrentDirectSimpleBinding(existingBinding)) directSimpleBindings.delete(className);\n\tbindDirectSimpleRegistration(className);\n\twarnOnRegistrationMismatch(className);\n}\nfunction unregisterTenantScopedClass(className) {\n\tauditedSelectors.delete(className);\n\ttenantScopedClasses.delete(className);\n\tif (isQualifiedClassName(className)) {\n\t\tdirectQualifiedRegistrations.delete(className);\n\t\treturn;\n\t}\n\tdirectSimpleRegistrations.delete(className);\n\tdirectSimpleBindings.delete(className);\n\tunregisteredDecoratorRegistrations.delete(className);\n}\nfunction cloneConfig(config) {\n\treturn { ...config };\n}\nfunction getDirectTenantScopedConfig(className) {\n\tconst direct = getDeclaredTenantScopedConfig(className);\n\tconst qualifiedName = ObjectRegistry.getClass(className)?.qualifiedName;\n\tif (direct && qualifiedName && ObjectRegistry.getRuntimeOverride(qualifiedName)?.tenancy) return {\n\t\t...direct,\n\t\tmode: \"required\"\n\t};\n\treturn direct;\n}\nfunction getDeclaredTenantScopedConfig(className) {\n\tObjectRegistry.assertTenantScopedRegistrationValid(className);\n\tconst directQualified = directQualifiedRegistrations.get(className);\n\tif (directQualified) {\n\t\tif (!auditedSelectors.has(className)) warnOnRegistrationMismatch(className);\n\t\treturn cloneConfig(directQualified);\n\t}\n\tconst registered = isQualifiedClassName(className) ? ObjectRegistry.getClassByQualifiedName(className) : ObjectRegistry.getClass(className);\n\tif (registered) {\n\t\tconst simple = registered.name;\n\t\tconst bound = directSimpleBindings.get(simple);\n\t\tif (bound) {\n\t\t\tif (bound.qualifiedName === className && bound.constructor === registered.constructor) return cloneConfig(directSimpleRegistrations.get(simple));\n\t\t\tif (!isCurrentDirectSimpleBinding(bound)) throw new Error(`Stale tenant-scoped class registration '${simple}'; unregister and register it again for the current constructor.`);\n\t\t}\n\t\tif (!bound && directSimpleRegistrations.has(simple)) {\n\t\t\tif (ObjectRegistry.findClassesByName(simple).length > 1) throw new Error(`Ambiguous tenant-scoped class registration '${simple}'; register an explicit qualified class name instead.`);\n\t\t\tbindDirectSimpleRegistration(simple);\n\t\t\tconst rebound = directSimpleBindings.get(simple);\n\t\t\tif (rebound?.qualifiedName === className && rebound.constructor === registered.constructor) return cloneConfig(directSimpleRegistrations.get(simple));\n\t\t}\n\t}\n\tif (!isQualifiedClassName(className)) {\n\t\tconst directSimple = getDirectSimpleRegistration(className);\n\t\tif (directSimple) return cloneConfig(directSimple);\n\t}\n\tconst coreConfig = ObjectRegistry.getTenantScopedConfig(className);\n\tif (coreConfig) return {\n\t\tmode: coreConfig.mode,\n\t\tfield: coreConfig.field,\n\t\tautoFilter: coreConfig.autoFilter,\n\t\tautoPopulate: coreConfig.autoPopulate,\n\t\tallowSuperAdminBypass: coreConfig.allowSuperAdminBypass\n\t};\n\tif (!registered && !isQualifiedClassName(className)) {\n\t\tconst decoratorConfig = unregisteredDecoratorRegistrations.get(className);\n\t\tif (decoratorConfig) return cloneConfig(decoratorConfig);\n\t}\n}\nfunction getInheritedTenantScopedConfig(className) {\n\tconst chain = ObjectRegistry.getInheritanceChain(className);\n\tfor (let i = chain.length - 2; i >= 0; i--) {\n\t\tconst ancestor = chain[i];\n\t\tconst direct = getDirectTenantScopedConfig(ancestor);\n\t\tif (direct) return direct;\n\t}\n}\nfunction getTenantScopedConfig(className) {\n\tconst direct = getDirectTenantScopedConfig(className);\n\tif (direct) return direct;\n\treturn getInheritedTenantScopedConfig(className);\n}\nObjectRegistry.registerOwnershipColumnSource((qualifiedName) => {\n\tconst config = getTenantScopedConfig(qualifiedName);\n\treturn config ? [toSnakeCase(config.field)] : void 0;\n});\nfunction isTenantScopedClass(className) {\n\treturn getTenantScopedConfig(className) !== void 0;\n}\nfunction getAllTenantScopedClasses() {\n\treturn new Map(tenantScopedClasses);\n}\nfunction clearTenantScopedRegistry() {\n\tauditedSelectors.clear();\n\ttenantScopedClasses.clear();\n\tdirectSimpleRegistrations.clear();\n\tdirectQualifiedRegistrations.clear();\n\tdirectSimpleBindings.clear();\n\tunregisteredDecoratorRegistrations.clear();\n}\nfunction resolveSelectorClass(selector) {\n\tif (isQualifiedClassName(selector)) return ObjectRegistry.getClassByQualifiedName(selector);\n\tconst bound = directSimpleBindings.get(selector);\n\tif (bound) return ObjectRegistry.getClassByQualifiedName(bound.qualifiedName);\n\tconst matches = ObjectRegistry.findClassesByName(selector);\n\treturn matches.length === 1 ? matches[0] : void 0;\n}\nfunction declaresFieldInChain(registered, fieldName) {\n\tif (registered.fields.has(fieldName)) return true;\n\tif (registered.inheritedFields?.has(fieldName)) return true;\n\tconst visited = /* @__PURE__ */ new Set([registered.constructor]);\n\tlet ctor = Object.getPrototypeOf(registered.constructor);\n\twhile (typeof ctor === \"function\" && !visited.has(ctor)) {\n\t\tvisited.add(ctor);\n\t\tif (ObjectRegistry.getClassByConstructor(ctor)?.fields.has(fieldName)) return true;\n\t\tctor = Object.getPrototypeOf(ctor);\n\t}\n\treturn false;\n}\nfunction auditSelector(selector, config) {\n\tconst registered = resolveSelectorClass(selector);\n\tif (!registered) return [];\n\tconst className = registered.qualifiedName || registered.name;\n\tconst findings = [];\n\tif (!declaresFieldInChain(registered, config.field)) {\n\t\tfindings.push({\n\t\t\tselector,\n\t\t\tclassName,\n\t\t\tkind: \"missing_tenant_field\",\n\t\t\tseverity: \"error\",\n\t\t\tmessage: `${className} is registered tenant-scoped on field '${config.field}', but the model declares no such field. Tenant filtering and population target a column its manifest and schema do not have. Add the field (or declare \\`@smrt({ tenantScoped })\\`) and regenerate the manifest.`\n\t\t});\n\t\treturn findings;\n\t}\n\tif (!ObjectRegistry.getTenantScopedConfig(className)) findings.push({\n\t\tselector,\n\t\tclassName,\n\t\tkind: \"undeclared_tenant_scope\",\n\t\tseverity: \"info\",\n\t\tmessage: `${className} is tenant-scoped only by runtime registration; its manifest declares no tenancy. Declare \\`@smrt({ tenantScoped })\\` so schema, generated surfaces and knowledge agree with the read policy.`\n\t});\n\tconst tenantColumn = toSnakeCase(config.field);\n\tconst conflictColumns = ObjectRegistry.getConflictColumns(className);\n\tif (!(conflictColumns.length === 1 && conflictColumns[0] === \"id\") && !conflictColumns.includes(tenantColumn)) findings.push({\n\t\tselector,\n\t\tclassName,\n\t\tkind: \"natural_key_not_tenant_scoped\",\n\t\tseverity: \"warning\",\n\t\tmessage: `${className} is registered tenant-scoped, but its natural key (${conflictColumns.join(\", \")}) omits '${tenantColumn}', so it is unique across tenants: a second tenant cannot store a key another tenant already uses. A new object saved on such a key is refused (TENANT_ISOLATION_VIOLATION) when the row it collides with has a different '${tenantColumn}'; one whose slug was derived from its name moves to a free slug instead. Include '${tenantColumn}' in the conflict columns (or drop the explicit conflictColumns) and run \\`smrt db:migrate\\`.`\n\t});\n\treturn findings;\n}\nfunction auditTenantScopedRegistrations() {\n\tconst findings = [];\n\tfor (const [selector, config] of directQualifiedRegistrations) findings.push(...auditSelector(selector, config));\n\tfor (const [selector, config] of directSimpleRegistrations) findings.push(...auditSelector(selector, config));\n\treturn findings;\n}\nfunction warnOnRegistrationMismatch(selector) {\n\tif (auditedSelectors.has(selector)) return;\n\tconst config = directQualifiedRegistrations.get(selector) ?? directSimpleRegistrations.get(selector);\n\tif (!config) return;\n\tlet findings;\n\ttry {\n\t\tfindings = auditSelector(selector, config);\n\t} catch {\n\t\treturn;\n\t}\n\tif (!resolveSelectorClass(selector)) return;\n\tauditedSelectors.add(selector);\n\tfor (const finding of findings) {\n\t\tif (finding.severity === \"info\") continue;\n\t\tlogger.warn(`[smrt-tenancy] ${finding.message}`);\n\t}\n}\n//#endregion\nexport { isTenantScopedClass as a, unregisterTenantScopedClass as c, getTenantScopedConfig as i, clearTenantScopedRegistry as n, registerTenantScopedClass as o, getAllTenantScopedClasses as r, registerTenantScopedConstructor as s, auditTenantScopedRegistrations as t };\n\n//# sourceMappingURL=registry-DH0v5Efm.js.map","import { s as registerTenantScopedConstructor } from \"./chunks/registry-DH0v5Efm.js\";\nimport { ObjectRegistry, applyPendingDecoratorRegistrations, registerCompatibleFieldDecorator } from \"@happyvertical/smrt-core\";\n//#region src/decorators.ts\nfunction TenantScoped(options = {}) {\n\treturn (target, decoratorContext) => {\n\t\tapplyPendingDecoratorRegistrations(target, decoratorContext);\n\t\tconst config = {\n\t\t\tmode: options.mode ?? \"required\",\n\t\t\tfield: options.field ?? \"tenantId\",\n\t\t\tautoFilter: options.autoFilter ?? true,\n\t\t\tautoPopulate: options.autoPopulate ?? true,\n\t\t\tallowSuperAdminBypass: options.allowSuperAdminBypass ?? false\n\t\t};\n\t\tregisterTenantScopedConstructor(target, config);\n\t\tObjectRegistry.reconcileTenantScopedConfig(target, {\n\t\t\tmode: config.mode ?? \"required\",\n\t\t\tfield: config.field ?? \"tenantId\",\n\t\t\tautoFilter: config.autoFilter ?? true,\n\t\t\tautoPopulate: config.autoPopulate ?? true,\n\t\t\tallowSuperAdminBypass: config.allowSuperAdminBypass ?? false\n\t\t});\n\t\treturn target;\n\t};\n}\nfunction tenantId(options = {}) {\n\tconst opts = {\n\t\tautoFilter: true,\n\t\trequired: true,\n\t\tautoPopulate: true,\n\t\tnullable: false,\n\t\t...options\n\t};\n\treturn ((targetOrValue, propertyKeyOrContext) => {\n\t\tregisterCompatibleFieldDecorator(targetOrValue, propertyKeyOrContext, (className, propertyKey, ctor) => {\n\t\t\tconst fieldOptions = {\n\t\t\t\ttype: \"foreignKey\",\n\t\t\t\trelated: \"Tenant\",\n\t\t\t\tsqlType: \"UUID\",\n\t\t\t\trequired: opts.required,\n\t\t\t\tnullable: opts.nullable,\n\t\t\t\t...opts.required && !opts.nullable ? { requiredFor: \"tenant-scope\" } : {},\n\t\t\t\t__tenancy: {\n\t\t\t\t\t...opts,\n\t\t\t\t\tisTenantIdField: true\n\t\t\t\t}\n\t\t\t};\n\t\t\tObjectRegistry.registerFieldDecorator(className, propertyKey, fieldOptions, ctor);\n\t\t});\n\t});\n}\n//#endregion\nexport { TenantScoped, tenantId };\n\n//# sourceMappingURL=decorators.js.map","/**\n * ConnectState: one in-flight credential connect (OAuth 2.0 / OIDC redirect).\n * @packageDocumentation\n */\n\nimport type { SmrtObjectOptions } from '@happyvertical/smrt-core';\nimport {\n crossPackageRef,\n field,\n SmrtObject,\n smrt,\n} from '@happyvertical/smrt-core';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy/decorators';\n\nexport interface ConnectStateOptions extends SmrtObjectOptions {\n tenantId?: string | null;\n kind?: string;\n state?: string;\n codeVerifier?: string | null;\n redirectUri?: string;\n scopes?: string[];\n initiatedByUserId?: string | null;\n returnTo?: string | null;\n expiresAt?: Date;\n}\n\n/**\n * A single-use, tenant- and user-bound record that carries a connect across a\n * provider redirect: the CSRF state, the PKCE verifier, the redirect URI and\n * the signed-in user who started it. Created by `beginConnect`, burned by\n * `consumeConnect`. Never exposed through generated REST, MCP or CLI: the\n * verifier and state are credentials.\n */\n@TenantScoped({ mode: 'optional' })\n@smrt({\n api: false,\n mcp: false,\n cli: false,\n})\nexport class ConnectState extends SmrtObject { static __smrtPackage__ = \"@happyvertical/smrt-secrets\";\n @tenantId({ nullable: true })\n tenantId: string | null = null;\n\n /** The provider or flow this state belongs to, for example `x` or `mail:stalwart`. */\n @field({ description: 'The provider or flow this connect belongs to.' })\n kind = '';\n\n /** The unguessable CSRF value round-tripped through the provider. */\n @field({ description: 'The CSRF value sent to the provider.' })\n state = '';\n\n @field({ description: 'The PKCE code verifier.', sensitive: true })\n codeVerifier: string | null = null;\n\n @field({ description: 'The callback URL the provider returns to.' })\n redirectUri = '';\n\n @field({ description: 'The OAuth scopes requested.' })\n scopes: string[] = [];\n\n /** The user who started the connect; the callback must be made by the same user. */\n @crossPackageRef('@happyvertical/smrt-users:User')\n initiatedByUserId: string | null = null;\n\n /** A same-origin path to return to; the host validates before redirecting. */\n @field({ description: 'The same-origin path to return to afterwards.' })\n returnTo: string | null = null;\n\n @field({ description: 'When this connect link stops working.' })\n expiresAt: Date = new Date(Date.now() + 10 * 60 * 1000);\n\n constructor(options: ConnectStateOptions = {}) {\n super(options);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n if (options.kind !== undefined) this.kind = options.kind;\n if (options.state !== undefined) this.state = options.state;\n if (options.codeVerifier !== undefined)\n this.codeVerifier = options.codeVerifier;\n if (options.redirectUri !== undefined)\n this.redirectUri = options.redirectUri;\n if (options.scopes !== undefined) this.scopes = options.scopes;\n if (options.initiatedByUserId !== undefined)\n this.initiatedByUserId = options.initiatedByUserId;\n if (options.returnTo !== undefined) this.returnTo = options.returnTo;\n if (options.expiresAt !== undefined) this.expiresAt = options.expiresAt;\n }\n\n get isExpired(): boolean {\n return Date.now() >= this.expiresAt.getTime();\n }\n}\n"],"mappings":";;;AAGA,IAAI,SAAS,aAAa,EAAE,OAAO,OAAO,CAAC;AAC3C,IAAI,iBAAiB;CACpB,MAAM;CACN,OAAO;CACP,YAAY;CACZ,cAAc;CACd,uBAAuB;AACxB;AACA,IAAI,sCAAsC,IAAI,IAAI;AAClD,IAAI,4CAA4C,IAAI,IAAI;AACxD,IAAI,+CAA+C,IAAI,IAAI;AAC3D,IAAI,uCAAuC,IAAI,IAAI;AACnD,IAAI,qDAAqD,IAAI,IAAI;AACjE,IAAI,mCAAmC,IAAI,IAAI;AAC/C,SAAS,qBAAqB,WAAW;CACxC,OAAO,UAAU,SAAS,GAAG;AAC9B;AACA,SAAS,6BAA6B,SAAS;CAC9C,OAAO,eAAe,wBAAwB,QAAQ,aAAa,CAAC,EAAE,gBAAgB,QAAQ;AAC/F;AACA,SAAS,6BAA6B,WAAW;CAChD,IAAI,CAAC,0BAA0B,IAAI,SAAS,KAAK,qBAAqB,IAAI,SAAS,GAAG;CACtF,MAAM,UAAU,eAAe,kBAAkB,SAAS;CAC1D,IAAI,QAAQ,WAAW,KAAK,CAAC,QAAQ,EAAE,CAAC,eAAe;CACvD,qBAAqB,IAAI,WAAW;EACnC,eAAe,QAAQ,EAAE,CAAC;EAC1B,aAAa,QAAQ,EAAE,CAAC;CACzB,CAAC;CACD,2BAA2B,SAAS;AACrC;AACA,SAAS,4BAA4B,WAAW;CAC/C,MAAM,SAAS,0BAA0B,IAAI,SAAS;CACtD,IAAI,CAAC,QAAQ,OAAO,KAAK;CACzB,MAAM,UAAU,qBAAqB,IAAI,SAAS;CAClD,IAAI,WAAW,CAAC,6BAA6B,OAAO,GAAG,MAAM,IAAI,MAAM,2CAA2C,UAAU,iEAAiE;CAC7L,IAAI,eAAe,kBAAkB,SAAS,CAAC,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,+CAA+C,UAAU,sDAAsD;CAC3L,OAAO;AACR;AACA,SAAS,gCAAgC,QAAQ,SAAS,CAAC,GAAG;CAC7D,MAAM,WAAW;EAChB,GAAG;EACH,GAAG;CACJ;CACA,mCAAmC,IAAI,OAAO,MAAM,QAAQ;CAC5D,oBAAoB,IAAI,OAAO,MAAM,QAAQ;AAC9C;AA8BA,SAAS,YAAY,QAAQ;CAC5B,OAAO,EAAE,GAAG,OAAO;AACpB;AACA,SAAS,4BAA4B,WAAW;CAC/C,MAAM,SAAS,8BAA8B,SAAS;CACtD,MAAM,gBAAgB,eAAe,SAAS,SAAS,CAAC,EAAE;CAC1D,IAAI,UAAU,iBAAiB,eAAe,mBAAmB,aAAa,CAAC,EAAE,SAAS,OAAO;EAChG,GAAG;EACH,MAAM;CACP;CACA,OAAO;AACR;AACA,SAAS,8BAA8B,WAAW;CACjD,eAAe,oCAAoC,SAAS;CAC5D,MAAM,kBAAkB,6BAA6B,IAAI,SAAS;CAClE,IAAI,iBAAiB;EACpB,IAAI,CAAC,iBAAiB,IAAI,SAAS,GAAG,2BAA2B,SAAS;EAC1E,OAAO,YAAY,eAAe;CACnC;CACA,MAAM,aAAa,qBAAqB,SAAS,IAAI,eAAe,wBAAwB,SAAS,IAAI,eAAe,SAAS,SAAS;CAC1I,IAAI,YAAY;EACf,MAAM,SAAS,WAAW;EAC1B,MAAM,QAAQ,qBAAqB,IAAI,MAAM;EAC7C,IAAI,OAAO;GACV,IAAI,MAAM,kBAAkB,aAAa,MAAM,gBAAgB,WAAW,aAAa,OAAO,YAAY,0BAA0B,IAAI,MAAM,CAAC;GAC/I,IAAI,CAAC,6BAA6B,KAAK,GAAG,MAAM,IAAI,MAAM,2CAA2C,OAAO,iEAAiE;EAC9K;EACA,IAAI,CAAC,SAAS,0BAA0B,IAAI,MAAM,GAAG;GACpD,IAAI,eAAe,kBAAkB,MAAM,CAAC,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,+CAA+C,OAAO,sDAAsD;GACrL,6BAA6B,MAAM;GACnC,MAAM,UAAU,qBAAqB,IAAI,MAAM;GAC/C,IAAI,SAAS,kBAAkB,aAAa,QAAQ,gBAAgB,WAAW,aAAa,OAAO,YAAY,0BAA0B,IAAI,MAAM,CAAC;EACrJ;CACD;CACA,IAAI,CAAC,qBAAqB,SAAS,GAAG;EACrC,MAAM,eAAe,4BAA4B,SAAS;EAC1D,IAAI,cAAc,OAAO,YAAY,YAAY;CAClD;CACA,MAAM,aAAa,eAAe,sBAAsB,SAAS;CACjE,IAAI,YAAY,OAAO;EACtB,MAAM,WAAW;EACjB,OAAO,WAAW;EAClB,YAAY,WAAW;EACvB,cAAc,WAAW;EACzB,uBAAuB,WAAW;CACnC;CACA,IAAI,CAAC,cAAc,CAAC,qBAAqB,SAAS,GAAG;EACpD,MAAM,kBAAkB,mCAAmC,IAAI,SAAS;EACxE,IAAI,iBAAiB,OAAO,YAAY,eAAe;CACxD;AACD;AACA,SAAS,+BAA+B,WAAW;CAClD,MAAM,QAAQ,eAAe,oBAAoB,SAAS;CAC1D,KAAK,IAAI,IAAI,MAAM,SAAS,GAAG,KAAK,GAAG,KAAK;EAC3C,MAAM,WAAW,MAAM;EACvB,MAAM,SAAS,4BAA4B,QAAQ;EACnD,IAAI,QAAQ,OAAO;CACpB;AACD;AACA,SAAS,sBAAsB,WAAW;CACzC,MAAM,SAAS,4BAA4B,SAAS;CACpD,IAAI,QAAQ,OAAO;CACnB,OAAO,+BAA+B,SAAS;AAChD;AACA,eAAe,+BAA+B,kBAAkB;CAC/D,MAAM,SAAS,sBAAsB,aAAa;CAClD,OAAO,SAAS,CAAC,YAAY,OAAO,KAAK,CAAC,IAAI,KAAK;AACpD,CAAC;AAeD,SAAS,qBAAqB,UAAU;CACvC,IAAI,qBAAqB,QAAQ,GAAG,OAAO,eAAe,wBAAwB,QAAQ;CAC1F,MAAM,QAAQ,qBAAqB,IAAI,QAAQ;CAC/C,IAAI,OAAO,OAAO,eAAe,wBAAwB,MAAM,aAAa;CAC5E,MAAM,UAAU,eAAe,kBAAkB,QAAQ;CACzD,OAAO,QAAQ,WAAW,IAAI,QAAQ,KAAK,KAAK;AACjD;AACA,SAAS,qBAAqB,YAAY,WAAW;CACpD,IAAI,WAAW,OAAO,IAAI,SAAS,GAAG,OAAO;CAC7C,IAAI,WAAW,iBAAiB,IAAI,SAAS,GAAG,OAAO;CACvD,MAAM,0BAA0B,IAAI,IAAI,CAAC,WAAW,WAAW,CAAC;CAChE,IAAI,OAAO,OAAO,eAAe,WAAW,WAAW;CACvD,OAAO,OAAO,SAAS,cAAc,CAAC,QAAQ,IAAI,IAAI,GAAG;EACxD,QAAQ,IAAI,IAAI;EAChB,IAAI,eAAe,sBAAsB,IAAI,CAAC,EAAE,OAAO,IAAI,SAAS,GAAG,OAAO;EAC9E,OAAO,OAAO,eAAe,IAAI;CAClC;CACA,OAAO;AACR;AACA,SAAS,cAAc,UAAU,QAAQ;CACxC,MAAM,aAAa,qBAAqB,QAAQ;CAChD,IAAI,CAAC,YAAY,OAAO,CAAC;CACzB,MAAM,YAAY,WAAW,iBAAiB,WAAW;CACzD,MAAM,WAAW,CAAC;CAClB,IAAI,CAAC,qBAAqB,YAAY,OAAO,KAAK,GAAG;EACpD,SAAS,KAAK;GACb;GACA;GACA,MAAM;GACN,UAAU;GACV,SAAS,GAAG,UAAU,yCAAyC,OAAO,MAAM;EAC7E,CAAC;EACD,OAAO;CACR;CACA,IAAI,CAAC,eAAe,sBAAsB,SAAS,GAAG,SAAS,KAAK;EACnE;EACA;EACA,MAAM;EACN,UAAU;EACV,SAAS,GAAG,UAAU;CACvB,CAAC;CACD,MAAM,eAAe,YAAY,OAAO,KAAK;CAC7C,MAAM,kBAAkB,eAAe,mBAAmB,SAAS;CACnE,IAAI,EAAE,gBAAgB,WAAW,KAAK,gBAAgB,OAAO,SAAS,CAAC,gBAAgB,SAAS,YAAY,GAAG,SAAS,KAAK;EAC5H;EACA;EACA,MAAM;EACN,UAAU;EACV,SAAS,GAAG,UAAU,qDAAqD,gBAAgB,KAAK,IAAI,EAAE,WAAW,aAAa,6NAA6N,aAAa,qFAAqF,aAAa;CAC3c,CAAC;CACD,OAAO;AACR;AAOA,SAAS,2BAA2B,UAAU;CAC7C,IAAI,iBAAiB,IAAI,QAAQ,GAAG;CACpC,MAAM,SAAS,6BAA6B,IAAI,QAAQ,KAAK,0BAA0B,IAAI,QAAQ;CACnG,IAAI,CAAC,QAAQ;CACb,IAAI;CACJ,IAAI;EACH,WAAW,cAAc,UAAU,MAAM;CAC1C,QAAQ;EACP;CACD;CACA,IAAI,CAAC,qBAAqB,QAAQ,GAAG;CACrC,iBAAiB,IAAI,QAAQ;CAC7B,KAAK,MAAM,WAAW,UAAU;EAC/B,IAAI,QAAQ,aAAa,QAAQ;EACjC,OAAO,KAAK,kBAAkB,QAAQ,SAAS;CAChD;AACD;;;ACvOA,SAAS,aAAa,UAAU,CAAC,GAAG;CACnC,QAAQ,QAAQ,qBAAqB;EACpC,mCAAmC,QAAQ,gBAAgB;EAC3D,MAAM,SAAS;GACd,MAAM,QAAQ,QAAQ;GACtB,OAAO,QAAQ,SAAS;GACxB,YAAY,QAAQ,cAAc;GAClC,cAAc,QAAQ,gBAAgB;GACtC,uBAAuB,QAAQ,yBAAyB;EACzD;EACA,gCAAgC,QAAQ,MAAM;EAC9C,eAAe,4BAA4B,QAAQ;GAClD,MAAM,OAAO,QAAQ;GACrB,OAAO,OAAO,SAAS;GACvB,YAAY,OAAO,cAAc;GACjC,cAAc,OAAO,gBAAgB;GACrC,uBAAuB,OAAO,yBAAyB;EACxD,CAAC;EACD,OAAO;CACR;AACD;AACA,SAAS,SAAS,UAAU,CAAC,GAAG;CAC/B,MAAM,OAAO;EACZ,YAAY;EACZ,UAAU;EACV,cAAc;EACd,UAAU;EACV,GAAG;CACJ;CACA,SAAS,eAAe,yBAAyB;EAChD,iCAAiC,eAAe,uBAAuB,WAAW,aAAa,SAAS;GACvG,MAAM,eAAe;IACpB,MAAM;IACN,SAAS;IACT,SAAS;IACT,UAAU,KAAK;IACf,UAAU,KAAK;IACf,GAAG,KAAK,YAAY,CAAC,KAAK,WAAW,EAAE,aAAa,eAAe,IAAI,CAAC;IACxE,WAAW;KACV,GAAG;KACH,iBAAiB;IAClB;GACD;GACA,eAAe,uBAAuB,WAAW,aAAa,cAAc,IAAI;EACjF,CAAC;CACF;AACD;;;ACVO,IAAA,eAAA,MAAM,qBAAqB,WAAW;CAAE,OAAO,kBAAkB;CACtE,WAC0B;;CAG1B,OACO;;CAGP,QACQ;CAER,eAC8B;CAE9B,cACc;CAEd,SACmB,CAAC;;CAGpB,oBACmC;;CAGnC,WAC0B;CAE1B,YACkB,IAAI,KAAK,KAAK,IAAI,IAAI,MAAU,GAAI;CAEtD,YAAY,UAA+B,CAAC,GAAG;EAC7C,MAAM,OAAO;EACb,IAAI,QAAQ,aAAa,KAAA,GAAW,KAAK,WAAW,QAAQ;EAC5D,IAAI,QAAQ,SAAS,KAAA,GAAW,KAAK,OAAO,QAAQ;EACpD,IAAI,QAAQ,UAAU,KAAA,GAAW,KAAK,QAAQ,QAAQ;EACtD,IAAI,QAAQ,iBAAiB,KAAA,GAC3B,KAAK,eAAe,QAAQ;EAC9B,IAAI,QAAQ,gBAAgB,KAAA,GAC1B,KAAK,cAAc,QAAQ;EAC7B,IAAI,QAAQ,WAAW,KAAA,GAAW,KAAK,SAAS,QAAQ;EACxD,IAAI,QAAQ,sBAAsB,KAAA,GAChC,KAAK,oBAAoB,QAAQ;EACnC,IAAI,QAAQ,aAAa,KAAA,GAAW,KAAK,WAAW,QAAQ;EAC5D,IAAI,QAAQ,cAAc,KAAA,GAAW,KAAK,YAAY,QAAQ;CAChE;CAEA,IAAI,YAAqB;EACvB,OAAO,KAAK,IAAI,KAAK,KAAK,UAAU,QAAQ;CAC9C;AACF;YAlDG,SAAS,EAAE,UAAU,KAAK,CAAC,CAAA,GAAA,aAAA,WAAA,YAAA,KAAA,CAAA;YAI3B,MAAM,EAAE,aAAa,gDAAgD,CAAC,CAAA,GAAA,aAAA,WAAA,QAAA,KAAA,CAAA;YAItE,MAAM,EAAE,aAAa,uCAAuC,CAAC,CAAA,GAAA,aAAA,WAAA,SAAA,KAAA,CAAA;YAG7D,MAAM;CAAE,aAAa;CAA2B,WAAW;AAAK,CAAC,CAAA,GAAA,aAAA,WAAA,gBAAA,KAAA,CAAA;YAGjE,MAAM,EAAE,aAAa,4CAA4C,CAAC,CAAA,GAAA,aAAA,WAAA,eAAA,KAAA,CAAA;YAGlE,MAAM,EAAE,aAAa,8BAA8B,CAAC,CAAA,GAAA,aAAA,WAAA,UAAA,KAAA,CAAA;YAIpD,gBAAgB,gCAAgC,CAAA,GAAA,aAAA,WAAA,qBAAA,KAAA,CAAA;YAIhD,MAAM,EAAE,aAAa,gDAAgD,CAAC,CAAA,GAAA,aAAA,WAAA,YAAA,KAAA,CAAA;YAGtE,MAAM,EAAE,aAAa,wCAAwC,CAAC,CAAA,GAAA,aAAA,WAAA,aAAA,KAAA,CAAA;2BAnChE,aAAa,EAAE,MAAM,WAAW,CAAC,GACjC,KAAK;CACJ,KAAK;CACL,KAAK;CACL,KAAK;AACP,CAAC,CAAA,GAAA,YAAA"}
|