@happyvertical/smrt-cli 0.51.22 → 0.51.23

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.
Files changed (30) hide show
  1. package/dist/{ApiKey-BZmbOTnL-Bh6JKaMR.js → ApiKey-BZmbOTnL-Bo7tbG1k.js} +2 -2
  2. package/dist/ApiKeyCollection-Bfb_nw81-CNAaLULe.js +2 -0
  3. package/dist/AuditLogCollection-B1YonCAP-yweHrz14.js +2 -0
  4. package/dist/{NostrIdentity-n70E0vck-CT-nxh8i.js → NostrIdentity-n70E0vck-G4M4P2GW.js} +3 -3
  5. package/dist/NostrIdentityCollection-Ca74dkaL-aM_-cerc.js +2 -0
  6. package/dist/{OidcIdentity-K8V4u0CR-Dxc19RdC.js → OidcIdentity-K8V4u0CR-D3Zc7yju.js} +2 -2
  7. package/dist/OidcIdentityCollection-gnrLoF08-B5y4FHI0.js +2 -0
  8. package/dist/ProfileAssetCollection-CmbeSgDi-mMSqxPLS.js +2 -0
  9. package/dist/{ProfileCollection-DTT4KNpQ-DJ8R0Qiq.js → ProfileCollection-DTT4KNpQ-CFn9nEde.js} +26 -26
  10. package/dist/ProfileMetadataCollection-DxX_BJKV-CXKXBRtU.js +2 -0
  11. package/dist/{ProfileMetafieldCollection-CMKhVi2I-Eetis1fL.js → ProfileMetafieldCollection-CMKhVi2I-NPA4NfPL.js} +1 -1
  12. package/dist/{ProfileRelationshipCollection-DUVgaIqf-1G9r7ynI.js → ProfileRelationshipCollection-DUVgaIqf-BlH89282.js} +1 -1
  13. package/dist/{ProfileRelationshipTermCollection-DtA9OM23-BCOA32_G.js → ProfileRelationshipTermCollection-DtA9OM23-D3KSY2OS.js} +1 -1
  14. package/dist/{ProfileRelationshipType-BRiRka6t-BfxUmbEW.js → ProfileRelationshipType-BRiRka6t-sguU4oDf.js} +1 -1
  15. package/dist/{ProfileRelationshipTypeCollection-BdXwd7Kf-BvXi93Xw.js → ProfileRelationshipTypeCollection-BdXwd7Kf-DGHj5NYL.js} +1 -1
  16. package/dist/{commands-DcY3h_fL.js → commands-CdijcyQl.js} +1 -1
  17. package/dist/{dist-DPTHNU_a.js → dist-B5ngi39H.js} +1 -1
  18. package/dist/{dist-ZoW3o9NN.js → dist-Cm7M-US-.js} +25 -25
  19. package/dist/{dist-BtlCj19g.js → dist-DPN8zVvb.js} +3 -3
  20. package/dist/index.js +9 -9
  21. package/dist/{oidcProvisioningPrimitives-0-3n3D6f-DA3Utmoe.js → oidcProvisioningPrimitives-0-3n3D6f-2uN0TAcP.js} +4 -4
  22. package/dist/resolveIdentity-BrJDCjYi-CX_TCtNl.js +2 -0
  23. package/package.json +13 -13
  24. package/dist/ApiKeyCollection-Bfb_nw81-D71rVVaT.js +0 -2
  25. package/dist/AuditLogCollection-B1YonCAP-ChMjBVW2.js +0 -2
  26. package/dist/NostrIdentityCollection-Ca74dkaL-C6yDobbt.js +0 -2
  27. package/dist/OidcIdentityCollection-gnrLoF08-B_LTfG3b.js +0 -2
  28. package/dist/ProfileAssetCollection-CmbeSgDi-CsmvaJet.js +0 -2
  29. package/dist/ProfileMetadataCollection-DxX_BJKV-B9ojoPDL.js +0 -2
  30. package/dist/resolveIdentity-BrJDCjYi-DWBEZlWu.js +0 -2
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-CT-nxh8i.js";
2
+ import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-G4M4P2GW.js";
3
3
  import { SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
4
4
  import { createHash, randomBytes } from "node:crypto";
5
5
  //#region ../profiles/dist/chunks/ApiKey-BZmbOTnL.js
@@ -127,7 +127,7 @@ var ApiKey = class extends SmrtObject {
127
127
  */
128
128
  static async verify(key, options = {}) {
129
129
  const keyHash = ApiKey.hashKey(key);
130
- const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-D71rVVaT.js").then((n) => n.n);
130
+ const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-CNAaLULe.js").then((n) => n.n);
131
131
  const apiKey = await (await ApiKeyCollection.create(options)).findOne({ where: { keyHash } });
132
132
  if (!apiKey) return null;
133
133
  if (!apiKey.isValid()) return null;
@@ -0,0 +1,2 @@
1
+ import { j as ApiKeyCollection_exports } from "./dist-Cm7M-US-.js";
2
+ export { ApiKeyCollection_exports as n };
@@ -0,0 +1,2 @@
1
+ import { k as AuditLogCollection_exports } from "./dist-Cm7M-US-.js";
2
+ export { AuditLogCollection_exports as n };
@@ -4097,21 +4097,21 @@ var NostrIdentity = class extends SmrtObject {
4097
4097
  * Find identity by public key
4098
4098
  */
4099
4099
  static async findByPubkey(pubkey, options = {}) {
4100
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6yDobbt.js").then((n) => n.n);
4100
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-aM_-cerc.js").then((n) => n.n);
4101
4101
  return await (await NostrIdentityCollection.create(options)).findOne({ where: { pubkey } });
4102
4102
  }
4103
4103
  /**
4104
4104
  * Find identity by email
4105
4105
  */
4106
4106
  static async findByEmail(email, options = {}) {
4107
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6yDobbt.js").then((n) => n.n);
4107
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-aM_-cerc.js").then((n) => n.n);
4108
4108
  return await (await NostrIdentityCollection.create(options)).findOne({ where: { email: email.toLowerCase() } });
4109
4109
  }
4110
4110
  /**
4111
4111
  * Find identity by NIP-05 username
4112
4112
  */
4113
4113
  static async findByNip05(username, options = {}) {
4114
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6yDobbt.js").then((n) => n.n);
4114
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-aM_-cerc.js").then((n) => n.n);
4115
4115
  return await (await NostrIdentityCollection.create(options)).findOne({ where: { nip05Username: username.toLowerCase() } });
4116
4116
  }
4117
4117
  /**
@@ -0,0 +1,2 @@
1
+ import { E as NostrIdentityCollection_exports } from "./dist-Cm7M-US-.js";
2
+ export { NostrIdentityCollection_exports as n };
@@ -35,7 +35,7 @@ var OidcIdentity = class extends SmrtObject {
35
35
  * Find identity by issuer and subject
36
36
  */
37
37
  static async findBySubject(issuer, subject, options = {}) {
38
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-B_LTfG3b.js").then((n) => n.r);
38
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-B5y4FHI0.js").then((n) => n.r);
39
39
  return await (await OidcIdentityCollection.create(options)).findBySubject(issuer, subject);
40
40
  }
41
41
  /** Build the collision-free natural key for one OIDC issuer subject. */
@@ -58,7 +58,7 @@ var OidcIdentity = class extends SmrtObject {
58
58
  static async findOrCreate(profile, oidcData, options = {}) {
59
59
  const profileId = profile.id;
60
60
  if (typeof profileId !== "string" || !profileId) throw new Error("OidcIdentity.findOrCreate() requires a saved Profile.");
61
- const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-BrJDCjYi-DWBEZlWu.js").then((n) => n.i);
61
+ const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-BrJDCjYi-CX_TCtNl.js").then((n) => n.i);
62
62
  const profileOptions = profile.options ?? {};
63
63
  return (await reuseExistingOidcIdentityForProfile(profileId, {
64
64
  email: oidcData.email,
@@ -0,0 +1,2 @@
1
+ import { w as OidcIdentityCollection_exports } from "./dist-Cm7M-US-.js";
2
+ export { OidcIdentityCollection_exports as r };
@@ -0,0 +1,2 @@
1
+ import { x as ProfileAssetCollection_exports } from "./dist-Cm7M-US-.js";
2
+ export { ProfileAssetCollection_exports as n };
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll$1 } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { n as __exportAll$2 } from "./NostrIdentity-n70E0vck-CT-nxh8i.js";
3
- import { a as getTenantId, i as queryWithGlobals, n as tenantId, r as queryGlobal, s as withSystemContext, t as TenantScoped } from "./dist-DPTHNU_a.js";
4
- import { a as removeOwnedAssetFromCollection, i as getOwnedAssetsFromCollection, n as assertValidOwnedAssetRelationship, o as resolveOwnedAssetsById, r as assertValidOwnedAssetSortOrder, t as addOwnedAssetFromCollection } from "./dist-BtlCj19g.js";
2
+ import { n as __exportAll$2 } from "./NostrIdentity-n70E0vck-G4M4P2GW.js";
3
+ import { a as getTenantId, i as queryWithGlobals, n as tenantId, r as queryGlobal, s as withSystemContext, t as TenantScoped } from "./dist-B5ngi39H.js";
4
+ import { a as removeOwnedAssetFromCollection, i as getOwnedAssetsFromCollection, n as assertValidOwnedAssetRelationship, o as resolveOwnedAssetsById, r as assertValidOwnedAssetSortOrder, t as addOwnedAssetFromCollection } from "./dist-DPN8zVvb.js";
5
5
  import { ObjectRegistry, RuntimeError, SmrtCollection, SmrtObject, ValidationError, field, foreignKey, isAbortedTransactionError, oneToMany, smrt } from "@happyvertical/smrt-core";
6
6
  import { getPackageConfig } from "@happyvertical/smrt-config";
7
7
  import { BackfillTableUnavailableError, BackfillTracker } from "@happyvertical/smrt-core/migrations";
@@ -16,7 +16,7 @@ var __exportAll = (all, no_symbols) => {
16
16
  if (!no_symbols) __defProp$1$1(target, Symbol.toStringTag, { value: "Module" });
17
17
  return target;
18
18
  };
19
- ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-prompts\",\"packageVersion\":\"0.51.22\",\"objects\":{\"@happyvertical/smrt-prompts:PromptOverrideCollection\":{\"name\":\"promptoverridecollection\",\"className\":\"PromptOverrideCollection\",\"qualifiedName\":\"@happyvertical/smrt-prompts:PromptOverrideCollection\",\"collection\":\"promptoverrides\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/prompts/src/collections/PromptOverrideCollection.ts\",\"packageName\":\"@happyvertical/smrt-prompts\",\"fields\":{},\"methods\":{\"getAppOverride\":{\"name\":\"getAppOverride\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true,\"memberTypes\":[\"string\"]}],\"returnType\":\"Promise<PromptOverride | null>\",\"isStatic\":false,\"isPublic\":true},\"getTenantOverride\":{\"name\":\"getTenantOverride\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true,\"memberTypes\":[\"string\"]}],\"returnType\":\"Promise<PromptOverride | null>\",\"isStatic\":false,\"isPublic\":true},\"getResolutionLayers\":{\"name\":\"getResolutionLayers\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true,\"unionBranches\":[{\"type\":\"string\"},{\"type\":\"null\"}]},{\"name\":\"options\",\"type\":\"object\",\"optional\":true,\"memberTypes\":[\"string\"]}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"_smrt_prompt_overrides\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"PromptOverride\",\"exportName\":\"PromptOverrideCollection\",\"collectionExportName\":\"PromptOverrideCollectionCollection\",\"schema\":{\"tableName\":\"_smrt_prompt_overrides\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_prompt_overrides\\\" (\\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 \\\"key\\\" TEXT NOT NULL DEFAULT '',\\n \\\"tenant_id\\\" TEXT,\\n \\\"template\\\" TEXT,\\n \\\"profile\\\" TEXT,\\n \\\"model\\\" TEXT,\\n \\\"params\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"template\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"profile\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"model\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"params\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"_smrt_prompt_overrides_key_context_idx\",\"columns\":[\"key\",\"context\"],\"unique\":true},{\"name\":\"_smrt_prompt_overrides_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_prompt_overrides_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"6f475427\"},\"importPath\":\"@happyvertical/smrt-prompts\"},\"@happyvertical/smrt-prompts:PromptOverride\":{\"name\":\"promptoverride\",\"className\":\"PromptOverride\",\"qualifiedName\":\"@happyvertical/smrt-prompts:PromptOverride\",\"collection\":\"promptoverrides\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/prompts/src/models/PromptOverride.ts\",\"packageName\":\"@happyvertical/smrt-prompts\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"template\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"profile\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"model\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"params\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}}},\"methods\":{\"getParams\":{\"name\":\"getParams\",\"async\":false,\"parameters\":[],\"returnType\":\"PromptParams\",\"isStatic\":false,\"isPublic\":true},\"setParams\":{\"name\":\"setParams\",\"async\":false,\"parameters\":[{\"name\":\"params\",\"type\":\"PromptParams | null\",\"optional\":false,\"unionBranches\":[{\"type\":\"PromptParams\"},{\"type\":\"null\"}]}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"toPromptLayer\":{\"name\":\"toPromptLayer\",\"async\":false,\"parameters\":[],\"returnType\":\"PromptLayer\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this>\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"_smrt_prompt_overrides\",\"conflictColumns\":[\"key\",\"context\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"],\"exclude\":[\"getParams\",\"setParams\",\"toPromptLayer\"]},\"mcp\":{\"include\":[]}},\"extends\":\"SmrtObject\",\"exportName\":\"PromptOverride\",\"collectionExportName\":\"PromptOverrideCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"_smrt_prompt_overrides\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_prompt_overrides\\\" (\\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 \\\"key\\\" TEXT NOT NULL DEFAULT '',\\n \\\"tenant_id\\\" TEXT,\\n \\\"template\\\" TEXT,\\n \\\"profile\\\" TEXT,\\n \\\"model\\\" TEXT,\\n \\\"params\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"template\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"profile\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"model\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"params\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"_smrt_prompt_overrides_key_context_idx\",\"columns\":[\"key\",\"context\"],\"unique\":true},{\"name\":\"_smrt_prompt_overrides_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_prompt_overrides_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"6f475427\"},\"importPath\":\"@happyvertical/smrt-prompts\"}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-tenancy\"]}"));
19
+ ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-prompts\",\"packageVersion\":\"0.51.23\",\"objects\":{\"@happyvertical/smrt-prompts:PromptOverrideCollection\":{\"name\":\"promptoverridecollection\",\"className\":\"PromptOverrideCollection\",\"qualifiedName\":\"@happyvertical/smrt-prompts:PromptOverrideCollection\",\"collection\":\"promptoverrides\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/prompts/src/collections/PromptOverrideCollection.ts\",\"packageName\":\"@happyvertical/smrt-prompts\",\"fields\":{},\"methods\":{\"getAppOverride\":{\"name\":\"getAppOverride\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true,\"memberTypes\":[\"string\"]}],\"returnType\":\"Promise<PromptOverride | null>\",\"isStatic\":false,\"isPublic\":true},\"getTenantOverride\":{\"name\":\"getTenantOverride\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"object\",\"optional\":true,\"memberTypes\":[\"string\"]}],\"returnType\":\"Promise<PromptOverride | null>\",\"isStatic\":false,\"isPublic\":true},\"getResolutionLayers\":{\"name\":\"getResolutionLayers\",\"async\":true,\"parameters\":[{\"name\":\"key\",\"type\":\"string\",\"optional\":false},{\"name\":\"tenantId\",\"type\":\"string | null\",\"optional\":true,\"unionBranches\":[{\"type\":\"string\"},{\"type\":\"null\"}]},{\"name\":\"options\",\"type\":\"object\",\"optional\":true,\"memberTypes\":[\"string\"]}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"_smrt_prompt_overrides\"},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"PromptOverride\",\"exportName\":\"PromptOverrideCollection\",\"collectionExportName\":\"PromptOverrideCollectionCollection\",\"schema\":{\"tableName\":\"_smrt_prompt_overrides\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_prompt_overrides\\\" (\\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 \\\"key\\\" TEXT NOT NULL DEFAULT '',\\n \\\"tenant_id\\\" TEXT,\\n \\\"template\\\" TEXT,\\n \\\"profile\\\" TEXT,\\n \\\"model\\\" TEXT,\\n \\\"params\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"template\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"profile\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"model\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"params\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"_smrt_prompt_overrides_key_context_idx\",\"columns\":[\"key\",\"context\"],\"unique\":true},{\"name\":\"_smrt_prompt_overrides_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_prompt_overrides_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"6f475427\"},\"importPath\":\"@happyvertical/smrt-prompts\"},\"@happyvertical/smrt-prompts:PromptOverride\":{\"name\":\"promptoverride\",\"className\":\"PromptOverride\",\"qualifiedName\":\"@happyvertical/smrt-prompts:PromptOverride\",\"collection\":\"promptoverrides\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/prompts/src/models/PromptOverride.ts\",\"packageName\":\"@happyvertical/smrt-prompts\",\"fields\":{\"key\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"template\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"profile\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"model\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}},\"params\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"nullable\":true}}},\"methods\":{\"getParams\":{\"name\":\"getParams\",\"async\":false,\"parameters\":[],\"returnType\":\"PromptParams\",\"isStatic\":false,\"isPublic\":true},\"setParams\":{\"name\":\"setParams\",\"async\":false,\"parameters\":[{\"name\":\"params\",\"type\":\"PromptParams | null\",\"optional\":false,\"unionBranches\":[{\"type\":\"PromptParams\"},{\"type\":\"null\"}]}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"toPromptLayer\":{\"name\":\"toPromptLayer\",\"async\":false,\"parameters\":[],\"returnType\":\"PromptLayer\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this>\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableName\":\"_smrt_prompt_overrides\",\"conflictColumns\":[\"key\",\"context\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"cli\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"],\"exclude\":[\"getParams\",\"setParams\",\"toPromptLayer\"]},\"mcp\":{\"include\":[]}},\"extends\":\"SmrtObject\",\"exportName\":\"PromptOverride\",\"collectionExportName\":\"PromptOverrideCollection\",\"validationRules\":[{\"field\":\"key\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"_smrt_prompt_overrides\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_prompt_overrides\\\" (\\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 \\\"key\\\" TEXT NOT NULL DEFAULT '',\\n \\\"tenant_id\\\" TEXT,\\n \\\"template\\\" TEXT,\\n \\\"profile\\\" TEXT,\\n \\\"model\\\" TEXT,\\n \\\"params\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"key\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"template\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"profile\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"model\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"params\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"_smrt_prompt_overrides_key_context_idx\",\"columns\":[\"key\",\"context\"],\"unique\":true},{\"name\":\"_smrt_prompt_overrides_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_prompt_overrides_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"6f475427\"},\"importPath\":\"@happyvertical/smrt-prompts\"}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-tenancy\"]}"));
20
20
  var PROMPT_CACHE_TTL_MS = 3e4;
21
21
  var promptCache = /* @__PURE__ */ new Map();
22
22
  var cacheGenerations = /* @__PURE__ */ new Map();
@@ -1051,8 +1051,8 @@ var Profile = class extends SmrtObject {
1051
1051
  * @param value - The value to set
1052
1052
  */
1053
1053
  async addMetadata(metafieldSlug, value) {
1054
- const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-Eetis1fL.js").then((n) => n.n);
1055
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B9ojoPDL.js").then((n) => n.n);
1054
+ const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-NPA4NfPL.js").then((n) => n.n);
1055
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-CXKXBRtU.js").then((n) => n.n);
1056
1056
  const metafield = await (await ProfileMetafieldCollection.create(this.options)).getBySlug(metafieldSlug);
1057
1057
  if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
1058
1058
  await metafield.validateValue(value);
@@ -1083,7 +1083,7 @@ var Profile = class extends SmrtObject {
1083
1083
  * @returns Object with metafield slugs as keys
1084
1084
  */
1085
1085
  async getMetadata() {
1086
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B9ojoPDL.js").then((n) => n.n);
1086
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-CXKXBRtU.js").then((n) => n.n);
1087
1087
  return await (await ProfileMetadataCollection.create(this.options)).getMetadataObject(this.id);
1088
1088
  }
1089
1089
  /**
@@ -1100,8 +1100,8 @@ var Profile = class extends SmrtObject {
1100
1100
  * @param metafieldSlug - The slug of the metafield to remove
1101
1101
  */
1102
1102
  async removeMetadata(metafieldSlug) {
1103
- const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-Eetis1fL.js").then((n) => n.n);
1104
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B9ojoPDL.js").then((n) => n.n);
1103
+ const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-NPA4NfPL.js").then((n) => n.n);
1104
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-CXKXBRtU.js").then((n) => n.n);
1105
1105
  const metafield = await (await ProfileMetafieldCollection.create(this.options)).getBySlug(metafieldSlug);
1106
1106
  if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
1107
1107
  const existing = await (await ProfileMetadataCollection.create(this.options)).list({
@@ -1114,7 +1114,7 @@ var Profile = class extends SmrtObject {
1114
1114
  if (existing.length > 0) await existing[0].delete();
1115
1115
  }
1116
1116
  async getProfileAssetCollection() {
1117
- const { ProfileAssetCollection } = await import("./ProfileAssetCollection-CmbeSgDi-CsmvaJet.js").then((n) => n.n);
1117
+ const { ProfileAssetCollection } = await import("./ProfileAssetCollection-CmbeSgDi-mMSqxPLS.js").then((n) => n.n);
1118
1118
  return ProfileAssetCollection.create({ db: this.db });
1119
1119
  }
1120
1120
  async getAssets(relationship) {
@@ -1144,9 +1144,9 @@ var Profile = class extends SmrtObject {
1144
1144
  * @param contextProfile - Optional context profile for tertiary relationships
1145
1145
  */
1146
1146
  async addRelationship(toProfile, relationshipSlug, contextProfile) {
1147
- const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-BvXi93Xw.js").then((n) => n.n);
1148
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-1G9r7ynI.js").then((n) => n.n);
1149
- const { ProfileRelationshipType } = await import("./ProfileRelationshipType-BRiRka6t-BfxUmbEW.js").then((n) => n.n).then((n) => n.n);
1147
+ const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-DGHj5NYL.js").then((n) => n.n);
1148
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-BlH89282.js").then((n) => n.n);
1149
+ const { ProfileRelationshipType } = await import("./ProfileRelationshipType-BRiRka6t-sguU4oDf.js").then((n) => n.n).then((n) => n.n);
1150
1150
  const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
1151
1151
  if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
1152
1152
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
@@ -1170,8 +1170,8 @@ var Profile = class extends SmrtObject {
1170
1170
  * @returns Array of ProfileRelationship instances
1171
1171
  */
1172
1172
  async getRelationships(options) {
1173
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-1G9r7ynI.js").then((n) => n.n);
1174
- const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-BvXi93Xw.js").then((n) => n.n);
1173
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-BlH89282.js").then((n) => n.n);
1174
+ const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-DGHj5NYL.js").then((n) => n.n);
1175
1175
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
1176
1176
  const direction = options?.direction || "all";
1177
1177
  let typeId;
@@ -1214,8 +1214,8 @@ var Profile = class extends SmrtObject {
1214
1214
  * @param relationshipSlug - The type of relationship to remove
1215
1215
  */
1216
1216
  async removeRelationship(toProfile, relationshipSlug) {
1217
- const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-BvXi93Xw.js").then((n) => n.n);
1218
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-1G9r7ynI.js").then((n) => n.n);
1217
+ const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-DGHj5NYL.js").then((n) => n.n);
1218
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-BlH89282.js").then((n) => n.n);
1219
1219
  const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
1220
1220
  if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
1221
1221
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
@@ -1308,7 +1308,7 @@ var Profile = class extends SmrtObject {
1308
1308
  * @returns Array of API keys
1309
1309
  */
1310
1310
  async getApiKeys() {
1311
- const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-D71rVVaT.js").then((n) => n.n);
1311
+ const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-CNAaLULe.js").then((n) => n.n);
1312
1312
  return await (await ApiKeyCollection.create(this.options)).findByProfile(this.id);
1313
1313
  }
1314
1314
  /**
@@ -1317,7 +1317,7 @@ var Profile = class extends SmrtObject {
1317
1317
  * @returns Array of active API keys
1318
1318
  */
1319
1319
  async getActiveApiKeys() {
1320
- const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-D71rVVaT.js").then((n) => n.n);
1320
+ const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-CNAaLULe.js").then((n) => n.n);
1321
1321
  return await (await ApiKeyCollection.create(this.options)).findActiveByProfile(this.id);
1322
1322
  }
1323
1323
  /**
@@ -1327,7 +1327,7 @@ var Profile = class extends SmrtObject {
1327
1327
  * @returns The generated key (plaintext) and ApiKey record
1328
1328
  */
1329
1329
  async generateApiKey(options) {
1330
- const { ApiKey } = await import("./ApiKey-BZmbOTnL-Bh6JKaMR.js").then((n) => n.n).then((n) => n.n);
1330
+ const { ApiKey } = await import("./ApiKey-BZmbOTnL-Bo7tbG1k.js").then((n) => n.n).then((n) => n.n);
1331
1331
  return await ApiKey.generate(this, {
1332
1332
  ...options,
1333
1333
  db: this.options?.db
@@ -1339,7 +1339,7 @@ var Profile = class extends SmrtObject {
1339
1339
  * @returns Array of OIDC identity records
1340
1340
  */
1341
1341
  async getOidcIdentities() {
1342
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-B_LTfG3b.js").then((n) => n.r);
1342
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-B5y4FHI0.js").then((n) => n.r);
1343
1343
  return await (await OidcIdentityCollection.create(this.options)).findByProfile(this.id);
1344
1344
  }
1345
1345
  /**
@@ -1352,7 +1352,7 @@ var Profile = class extends SmrtObject {
1352
1352
  * type, but refuses to create or rebind authority.
1353
1353
  */
1354
1354
  async linkOidcIdentity(oidcData) {
1355
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-B_LTfG3b.js").then((n) => n.r);
1355
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-B5y4FHI0.js").then((n) => n.r);
1356
1356
  return await (await OidcIdentityCollection.create(this.options)).linkToProfile(this, oidcData);
1357
1357
  }
1358
1358
  /**
@@ -1361,7 +1361,7 @@ var Profile = class extends SmrtObject {
1361
1361
  * @returns Array of Nostr identity records
1362
1362
  */
1363
1363
  async getNostrIdentities() {
1364
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6yDobbt.js").then((n) => n.n);
1364
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-aM_-cerc.js").then((n) => n.n);
1365
1365
  return await (await NostrIdentityCollection.create(this.options)).findByProfile(this.id);
1366
1366
  }
1367
1367
  /**
@@ -1371,7 +1371,7 @@ var Profile = class extends SmrtObject {
1371
1371
  * @returns The linked Nostr identity record
1372
1372
  */
1373
1373
  async linkNostrIdentity(nostrData) {
1374
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6yDobbt.js").then((n) => n.n);
1374
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-aM_-cerc.js").then((n) => n.n);
1375
1375
  return await (await NostrIdentityCollection.create(this.options)).linkToProfile(this, nostrData);
1376
1376
  }
1377
1377
  /**
@@ -1381,7 +1381,7 @@ var Profile = class extends SmrtObject {
1381
1381
  * @returns Array of audit log entries
1382
1382
  */
1383
1383
  async getAuditLogs(limit = 50) {
1384
- const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-ChMjBVW2.js").then((n) => n.n);
1384
+ const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-yweHrz14.js").then((n) => n.n);
1385
1385
  return await (await AuditLogCollection.create(this.options)).getRecentActivity(this.id, limit);
1386
1386
  }
1387
1387
  /**
@@ -1391,7 +1391,7 @@ var Profile = class extends SmrtObject {
1391
1391
  * @returns The created audit log entry
1392
1392
  */
1393
1393
  async recordAction(options) {
1394
- const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-ChMjBVW2.js").then((n) => n.n);
1394
+ const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-yweHrz14.js").then((n) => n.n);
1395
1395
  return await (await AuditLogCollection.create(this.options)).record({
1396
1396
  profile: this,
1397
1397
  ...options
@@ -0,0 +1,2 @@
1
+ import { v as ProfileMetadataCollection_exports } from "./dist-Cm7M-US-.js";
2
+ export { ProfileMetadataCollection_exports as n };
@@ -1,2 +1,2 @@
1
- import { h as ProfileMetafieldCollection_exports } from "./dist-ZoW3o9NN.js";
1
+ import { h as ProfileMetafieldCollection_exports } from "./dist-Cm7M-US-.js";
2
2
  export { ProfileMetafieldCollection_exports as n };
@@ -1,2 +1,2 @@
1
- import { f as ProfileRelationshipCollection_exports } from "./dist-ZoW3o9NN.js";
1
+ import { f as ProfileRelationshipCollection_exports } from "./dist-Cm7M-US-.js";
2
2
  export { ProfileRelationshipCollection_exports as n };
@@ -1,2 +1,2 @@
1
- import { l as ProfileRelationshipTermCollection_exports } from "./dist-ZoW3o9NN.js";
1
+ import { l as ProfileRelationshipTermCollection_exports } from "./dist-Cm7M-US-.js";
2
2
  export { ProfileRelationshipTermCollection_exports as n };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-CT-nxh8i.js";
2
+ import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-G4M4P2GW.js";
3
3
  import { SmrtObject, field, smrt } from "@happyvertical/smrt-core";
4
4
  //#region ../profiles/dist/chunks/ProfileRelationshipType-BRiRka6t.js
5
5
  var ProfileRelationshipType_BRiRka6t_exports = /* @__PURE__ */ __exportAll({
@@ -1,2 +1,2 @@
1
- import { o as ProfileRelationshipTypeCollection_exports } from "./dist-ZoW3o9NN.js";
1
+ import { o as ProfileRelationshipTypeCollection_exports } from "./dist-Cm7M-US-.js";
2
2
  export { ProfileRelationshipTypeCollection_exports as n };
@@ -6943,7 +6943,7 @@ var dbMaterializeTenantHierarchyCommand = {
6943
6943
  if (!config.database?.url || config.database.url === ":memory:") throw new Error("Database configuration required for db:materialize-tenant-hierarchy. Configure database.url in smrt.config.ts (or DATABASE_URL).");
6944
6944
  const dbType = config.database.type || "sqlite";
6945
6945
  const { getDatabase } = await import("@happyvertical/sql");
6946
- const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-ZoW3o9NN.js");
6946
+ const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-Cm7M-US-.js");
6947
6947
  db = await getDatabase({
6948
6948
  type: dbType,
6949
6949
  url: config.database.url
@@ -91,7 +91,7 @@ async function queryWithGlobals(collection, tenantId, label) {
91
91
  createLogger({ level: "info" });
92
92
  //#endregion
93
93
  //#region ../tenancy/dist/index.js
94
- ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-tenancy\",\"packageVersion\":\"0.51.22\",\"objects\":{\"@happyvertical/smrt-tenancy:BillingRelationship\":{\"name\":\"billingrelationship\",\"className\":\"BillingRelationship\",\"qualifiedName\":\"@happyvertical/smrt-tenancy:BillingRelationship\",\"collection\":\"billingrelationships\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/tenancy/src/billing-relationship.ts\",\"packageName\":\"@happyvertical/smrt-tenancy\",\"fields\":{\"childTenantId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-users:Tenant\",\"_meta\":{\"required\":true}},\"resellerTenantId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-users:Tenant\",\"_meta\":{\"required\":true}},\"billingOwnerMode\":{\"type\":\"text\",\"required\":false,\"default\":\"self\"}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"_smrt_billing_relationships\",\"conflictColumns\":[\"child_tenant_id\"],\"api\":false,\"cli\":false,\"mcp\":false},\"extends\":\"SmrtObject\",\"exportName\":\"BillingRelationship\",\"collectionExportName\":\"BillingRelationshipCollection\",\"validationRules\":[{\"field\":\"childTenantId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"},{\"field\":\"resellerTenantId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"}],\"schema\":{\"tableName\":\"_smrt_billing_relationships\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_billing_relationships\\\" (\\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 \\\"child_tenant_id\\\" UUID NOT NULL,\\n \\\"reseller_tenant_id\\\" UUID NOT NULL,\\n \\\"billing_owner_mode\\\" TEXT DEFAULT 'self'\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"child_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"reseller_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"billing_owner_mode\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"self\"}},\"indexes\":[{\"name\":\"_smrt_billing_relationships_child_tenant_id_idx\",\"columns\":[\"child_tenant_id\"],\"unique\":true},{\"name\":\"_smrt_billing_relationships_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_billing_relationships_created_at_idx\",\"columns\":[\"created_at\"]},{\"name\":\"_smrt_billing_relationships_reseller_tenant_id_idx\",\"columns\":[\"reseller_tenant_id\"]}],\"version\":\"4d7f410a\"},\"importPath\":\"@happyvertical/smrt-tenancy\"},\"@happyvertical/smrt-tenancy:BillingRelationshipCollection\":{\"name\":\"billingrelationshipcollection\",\"className\":\"BillingRelationshipCollection\",\"qualifiedName\":\"@happyvertical/smrt-tenancy:BillingRelationshipCollection\",\"collection\":\"billingrelationships\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/tenancy/src/billing-relationship.ts\",\"packageName\":\"@happyvertical/smrt-tenancy\",\"fields\":{},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"_smrt_billing_relationships\",\"api\":false,\"mcp\":false,\"cli\":false},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"BillingRelationship\",\"exportName\":\"BillingRelationshipCollection\",\"collectionExportName\":\"BillingRelationshipCollectionCollection\",\"schema\":{\"tableName\":\"_smrt_billing_relationships\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_billing_relationships\\\" (\\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 \\\"child_tenant_id\\\" UUID NOT NULL,\\n \\\"reseller_tenant_id\\\" UUID NOT NULL,\\n \\\"billing_owner_mode\\\" TEXT DEFAULT 'self'\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"child_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"reseller_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"billing_owner_mode\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"self\"}},\"indexes\":[{\"name\":\"_smrt_billing_relationships_child_tenant_id_idx\",\"columns\":[\"child_tenant_id\"],\"unique\":true},{\"name\":\"_smrt_billing_relationships_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_billing_relationships_created_at_idx\",\"columns\":[\"created_at\"]},{\"name\":\"_smrt_billing_relationships_reseller_tenant_id_idx\",\"columns\":[\"reseller_tenant_id\"]}],\"version\":\"4d7f410a\"},\"importPath\":\"@happyvertical/smrt-tenancy\"}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\"]}"));
94
+ ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-tenancy\",\"packageVersion\":\"0.51.23\",\"objects\":{\"@happyvertical/smrt-tenancy:BillingRelationship\":{\"name\":\"billingrelationship\",\"className\":\"BillingRelationship\",\"qualifiedName\":\"@happyvertical/smrt-tenancy:BillingRelationship\",\"collection\":\"billingrelationships\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/tenancy/src/billing-relationship.ts\",\"packageName\":\"@happyvertical/smrt-tenancy\",\"fields\":{\"childTenantId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-users:Tenant\",\"_meta\":{\"required\":true}},\"resellerTenantId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-users:Tenant\",\"_meta\":{\"required\":true}},\"billingOwnerMode\":{\"type\":\"text\",\"required\":false,\"default\":\"self\"}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"_smrt_billing_relationships\",\"conflictColumns\":[\"child_tenant_id\"],\"api\":false,\"cli\":false,\"mcp\":false},\"extends\":\"SmrtObject\",\"exportName\":\"BillingRelationship\",\"collectionExportName\":\"BillingRelationshipCollection\",\"validationRules\":[{\"field\":\"childTenantId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"},{\"field\":\"resellerTenantId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"}],\"schema\":{\"tableName\":\"_smrt_billing_relationships\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_billing_relationships\\\" (\\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 \\\"child_tenant_id\\\" UUID NOT NULL,\\n \\\"reseller_tenant_id\\\" UUID NOT NULL,\\n \\\"billing_owner_mode\\\" TEXT DEFAULT 'self'\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"child_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"reseller_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"billing_owner_mode\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"self\"}},\"indexes\":[{\"name\":\"_smrt_billing_relationships_child_tenant_id_idx\",\"columns\":[\"child_tenant_id\"],\"unique\":true},{\"name\":\"_smrt_billing_relationships_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_billing_relationships_created_at_idx\",\"columns\":[\"created_at\"]},{\"name\":\"_smrt_billing_relationships_reseller_tenant_id_idx\",\"columns\":[\"reseller_tenant_id\"]}],\"version\":\"4d7f410a\"},\"importPath\":\"@happyvertical/smrt-tenancy\"},\"@happyvertical/smrt-tenancy:BillingRelationshipCollection\":{\"name\":\"billingrelationshipcollection\",\"className\":\"BillingRelationshipCollection\",\"qualifiedName\":\"@happyvertical/smrt-tenancy:BillingRelationshipCollection\",\"collection\":\"billingrelationships\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/tenancy/src/billing-relationship.ts\",\"packageName\":\"@happyvertical/smrt-tenancy\",\"fields\":{},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"_smrt_billing_relationships\",\"api\":false,\"mcp\":false,\"cli\":false},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"BillingRelationship\",\"exportName\":\"BillingRelationshipCollection\",\"collectionExportName\":\"BillingRelationshipCollectionCollection\",\"schema\":{\"tableName\":\"_smrt_billing_relationships\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"_smrt_billing_relationships\\\" (\\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 \\\"child_tenant_id\\\" UUID NOT NULL,\\n \\\"reseller_tenant_id\\\" UUID NOT NULL,\\n \\\"billing_owner_mode\\\" TEXT DEFAULT 'self'\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"child_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"reseller_tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"billing_owner_mode\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"self\"}},\"indexes\":[{\"name\":\"_smrt_billing_relationships_child_tenant_id_idx\",\"columns\":[\"child_tenant_id\"],\"unique\":true},{\"name\":\"_smrt_billing_relationships_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"_smrt_billing_relationships_created_at_idx\",\"columns\":[\"created_at\"]},{\"name\":\"_smrt_billing_relationships_reseller_tenant_id_idx\",\"columns\":[\"reseller_tenant_id\"]}],\"version\":\"4d7f410a\"},\"importPath\":\"@happyvertical/smrt-tenancy\"}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\"]}"));
95
95
  var __defProp = Object.defineProperty;
96
96
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
97
97
  var __decorateClass = (decorators, target, key, kind) => {