@happyvertical/smrt-cli 0.51.30 → 0.51.32
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/{ApiKey-BZmbOTnL-Cy3Kfsyg.js → ApiKey-BZmbOTnL-DrxlAZO2.js} +2 -2
- package/dist/ApiKeyCollection-Bfb_nw81-DP5f5QpC.js +2 -0
- package/dist/AuditLogCollection-B1YonCAP-CZBxKq4A.js +2 -0
- package/dist/{NostrIdentity-n70E0vck-BzFNdjyD.js → NostrIdentity-n70E0vck-5rGYvFIY.js} +3 -3
- package/dist/NostrIdentityCollection-Ca74dkaL-C6qq3z-e.js +2 -0
- package/dist/{OidcIdentity-K8V4u0CR-0fzWgMg2.js → OidcIdentity-K8V4u0CR-dzykFMgp.js} +2 -2
- package/dist/OidcIdentityCollection-gnrLoF08-CtNhKu9y.js +2 -0
- package/dist/ProfileAssetCollection-CmbeSgDi-C7T6rlyL.js +2 -0
- package/dist/{ProfileCollection-DTT4KNpQ-CKbLXJAt.js → ProfileCollection-DTT4KNpQ-C3tIYhbK.js} +25 -25
- package/dist/{ProfileMetadataCollection-DxX_BJKV-DuYcLRE_.js → ProfileMetadataCollection-DxX_BJKV-B3TOG70O.js} +1 -1
- package/dist/{ProfileMetafieldCollection-CMKhVi2I-D30CmHhr.js → ProfileMetafieldCollection-CMKhVi2I-C6uF97rV.js} +1 -1
- package/dist/{ProfileRelationshipCollection-DUVgaIqf-r6OJgXIe.js → ProfileRelationshipCollection-DUVgaIqf-DhrHpup7.js} +1 -1
- package/dist/{ProfileRelationshipTermCollection-DtA9OM23-ClClYBWy.js → ProfileRelationshipTermCollection-DtA9OM23-aafuXvJi.js} +1 -1
- package/dist/{ProfileRelationshipType-BRiRka6t-zF_lWa_V.js → ProfileRelationshipType-BRiRka6t-CiAcDP3Y.js} +1 -1
- package/dist/{ProfileRelationshipTypeCollection-BdXwd7Kf-CX_RDnuT.js → ProfileRelationshipTypeCollection-BdXwd7Kf-Y4bfpu34.js} +1 -1
- package/dist/{commands-2L2jWijo.js → commands-Aw8Wv-GM.js} +2 -2
- package/dist/{dist-ClIipAIn.js → dist-CcLtprDR.js} +25 -25
- package/dist/{dist-a3eTNio7.js → dist-D4TtU64x.js} +2 -2
- package/dist/{dist-MLnuGsFv.js → dist-DC1d_zi0.js} +4 -4
- package/dist/{dist-DSSub46F.js → dist-DXDf5-e6.js} +3 -3
- package/dist/index.js +10 -9
- package/dist/{oidcProvisioningPrimitives-0-3n3D6f-j3MWhVLA.js → oidcProvisioningPrimitives-0-3n3D6f-D9PpE0-s.js} +4 -4
- package/dist/resolveIdentity-BrJDCjYi-BafhqSQm.js +2 -0
- package/package.json +14 -14
- package/dist/ApiKeyCollection-Bfb_nw81-BwO1aazA.js +0 -2
- package/dist/AuditLogCollection-B1YonCAP-1ThlbIKu.js +0 -2
- package/dist/NostrIdentityCollection-Ca74dkaL-BgP5Ysnf.js +0 -2
- package/dist/OidcIdentityCollection-gnrLoF08-CZ-6OM8b.js +0 -2
- package/dist/ProfileAssetCollection-CmbeSgDi-BB-z_9t1.js +0 -2
- package/dist/resolveIdentity-BrJDCjYi-gHHwIwi2.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-
|
|
2
|
+
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-5rGYvFIY.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-
|
|
130
|
+
const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-DP5f5QpC.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;
|
|
@@ -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-
|
|
4100
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6qq3z-e.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-
|
|
4107
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6qq3z-e.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-
|
|
4114
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6qq3z-e.js").then((n) => n.n);
|
|
4115
4115
|
return await (await NostrIdentityCollection.create(options)).findOne({ where: { nip05Username: username.toLowerCase() } });
|
|
4116
4116
|
}
|
|
4117
4117
|
/**
|
|
@@ -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-
|
|
38
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-CtNhKu9y.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-
|
|
61
|
+
const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-BrJDCjYi-BafhqSQm.js").then((n) => n.i);
|
|
62
62
|
const profileOptions = profile.options ?? {};
|
|
63
63
|
return (await reuseExistingOidcIdentityForProfile(profileId, {
|
|
64
64
|
email: oidcData.email,
|
package/dist/{ProfileCollection-DTT4KNpQ-CKbLXJAt.js → ProfileCollection-DTT4KNpQ-C3tIYhbK.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { a as queryGlobal, c as withSystemContext, i as tenantId, n as resolvePrompt, o as queryWithGlobals, r as TenantScoped, t as definePrompt } from "./dist-
|
|
3
|
-
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-
|
|
4
|
-
import { a as removeOwnedAssetFromCollection, i as getOwnedAssetsFromCollection, n as assertValidOwnedAssetRelationship, o as resolveOwnedAssetsById, r as assertValidOwnedAssetSortOrder, t as addOwnedAssetFromCollection } from "./dist-
|
|
2
|
+
import { a as queryGlobal, c as withSystemContext, i as tenantId, n as resolvePrompt, o as queryWithGlobals, r as TenantScoped, t as definePrompt } from "./dist-D4TtU64x.js";
|
|
3
|
+
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-5rGYvFIY.js";
|
|
4
|
+
import { a as removeOwnedAssetFromCollection, i as getOwnedAssetsFromCollection, n as assertValidOwnedAssetRelationship, o as resolveOwnedAssetsById, r as assertValidOwnedAssetSortOrder, t as addOwnedAssetFromCollection } from "./dist-DXDf5-e6.js";
|
|
5
5
|
import { RuntimeError, SmrtCollection, SmrtObject, ValidationError, field, foreignKey, isAbortedTransactionError, oneToMany, smrt } from "@happyvertical/smrt-core";
|
|
6
6
|
import { BackfillTableUnavailableError, BackfillTracker } from "@happyvertical/smrt-core/migrations";
|
|
7
7
|
//#region ../profiles/dist/chunks/ProfileCollection-DTT4KNpQ.js
|
|
@@ -428,8 +428,8 @@ var Profile = class extends SmrtObject {
|
|
|
428
428
|
* @param value - The value to set
|
|
429
429
|
*/
|
|
430
430
|
async addMetadata(metafieldSlug, value) {
|
|
431
|
-
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-
|
|
432
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-
|
|
431
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-C6uF97rV.js").then((n) => n.n);
|
|
432
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B3TOG70O.js").then((n) => n.n);
|
|
433
433
|
const metafield = await (await ProfileMetafieldCollection.create(this.options)).getBySlug(metafieldSlug);
|
|
434
434
|
if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
|
|
435
435
|
await metafield.validateValue(value);
|
|
@@ -460,7 +460,7 @@ var Profile = class extends SmrtObject {
|
|
|
460
460
|
* @returns Object with metafield slugs as keys
|
|
461
461
|
*/
|
|
462
462
|
async getMetadata() {
|
|
463
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-
|
|
463
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B3TOG70O.js").then((n) => n.n);
|
|
464
464
|
return await (await ProfileMetadataCollection.create(this.options)).getMetadataObject(this.id);
|
|
465
465
|
}
|
|
466
466
|
/**
|
|
@@ -477,8 +477,8 @@ var Profile = class extends SmrtObject {
|
|
|
477
477
|
* @param metafieldSlug - The slug of the metafield to remove
|
|
478
478
|
*/
|
|
479
479
|
async removeMetadata(metafieldSlug) {
|
|
480
|
-
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-
|
|
481
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-
|
|
480
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-C6uF97rV.js").then((n) => n.n);
|
|
481
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B3TOG70O.js").then((n) => n.n);
|
|
482
482
|
const metafield = await (await ProfileMetafieldCollection.create(this.options)).getBySlug(metafieldSlug);
|
|
483
483
|
if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
|
|
484
484
|
const existing = await (await ProfileMetadataCollection.create(this.options)).list({
|
|
@@ -491,7 +491,7 @@ var Profile = class extends SmrtObject {
|
|
|
491
491
|
if (existing.length > 0) await existing[0].delete();
|
|
492
492
|
}
|
|
493
493
|
async getProfileAssetCollection() {
|
|
494
|
-
const { ProfileAssetCollection } = await import("./ProfileAssetCollection-CmbeSgDi-
|
|
494
|
+
const { ProfileAssetCollection } = await import("./ProfileAssetCollection-CmbeSgDi-C7T6rlyL.js").then((n) => n.n);
|
|
495
495
|
return ProfileAssetCollection.create({ db: this.db });
|
|
496
496
|
}
|
|
497
497
|
async getAssets(relationship) {
|
|
@@ -521,9 +521,9 @@ var Profile = class extends SmrtObject {
|
|
|
521
521
|
* @param contextProfile - Optional context profile for tertiary relationships
|
|
522
522
|
*/
|
|
523
523
|
async addRelationship(toProfile, relationshipSlug, contextProfile) {
|
|
524
|
-
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-
|
|
525
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-
|
|
526
|
-
const { ProfileRelationshipType } = await import("./ProfileRelationshipType-BRiRka6t-
|
|
524
|
+
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-Y4bfpu34.js").then((n) => n.n);
|
|
525
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DhrHpup7.js").then((n) => n.n);
|
|
526
|
+
const { ProfileRelationshipType } = await import("./ProfileRelationshipType-BRiRka6t-CiAcDP3Y.js").then((n) => n.n).then((n) => n.n);
|
|
527
527
|
const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
|
|
528
528
|
if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
|
|
529
529
|
const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
|
|
@@ -547,8 +547,8 @@ var Profile = class extends SmrtObject {
|
|
|
547
547
|
* @returns Array of ProfileRelationship instances
|
|
548
548
|
*/
|
|
549
549
|
async getRelationships(options) {
|
|
550
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-
|
|
551
|
-
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-
|
|
550
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DhrHpup7.js").then((n) => n.n);
|
|
551
|
+
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-Y4bfpu34.js").then((n) => n.n);
|
|
552
552
|
const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
|
|
553
553
|
const direction = options?.direction || "all";
|
|
554
554
|
let typeId;
|
|
@@ -591,8 +591,8 @@ var Profile = class extends SmrtObject {
|
|
|
591
591
|
* @param relationshipSlug - The type of relationship to remove
|
|
592
592
|
*/
|
|
593
593
|
async removeRelationship(toProfile, relationshipSlug) {
|
|
594
|
-
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-
|
|
595
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-
|
|
594
|
+
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-Y4bfpu34.js").then((n) => n.n);
|
|
595
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DhrHpup7.js").then((n) => n.n);
|
|
596
596
|
const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
|
|
597
597
|
if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
|
|
598
598
|
const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
|
|
@@ -685,7 +685,7 @@ var Profile = class extends SmrtObject {
|
|
|
685
685
|
* @returns Array of API keys
|
|
686
686
|
*/
|
|
687
687
|
async getApiKeys() {
|
|
688
|
-
const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-
|
|
688
|
+
const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-DP5f5QpC.js").then((n) => n.n);
|
|
689
689
|
return await (await ApiKeyCollection.create(this.options)).findByProfile(this.id);
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
@@ -694,7 +694,7 @@ var Profile = class extends SmrtObject {
|
|
|
694
694
|
* @returns Array of active API keys
|
|
695
695
|
*/
|
|
696
696
|
async getActiveApiKeys() {
|
|
697
|
-
const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-
|
|
697
|
+
const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-DP5f5QpC.js").then((n) => n.n);
|
|
698
698
|
return await (await ApiKeyCollection.create(this.options)).findActiveByProfile(this.id);
|
|
699
699
|
}
|
|
700
700
|
/**
|
|
@@ -704,7 +704,7 @@ var Profile = class extends SmrtObject {
|
|
|
704
704
|
* @returns The generated key (plaintext) and ApiKey record
|
|
705
705
|
*/
|
|
706
706
|
async generateApiKey(options) {
|
|
707
|
-
const { ApiKey } = await import("./ApiKey-BZmbOTnL-
|
|
707
|
+
const { ApiKey } = await import("./ApiKey-BZmbOTnL-DrxlAZO2.js").then((n) => n.n).then((n) => n.n);
|
|
708
708
|
return await ApiKey.generate(this, {
|
|
709
709
|
...options,
|
|
710
710
|
db: this.options?.db
|
|
@@ -716,7 +716,7 @@ var Profile = class extends SmrtObject {
|
|
|
716
716
|
* @returns Array of OIDC identity records
|
|
717
717
|
*/
|
|
718
718
|
async getOidcIdentities() {
|
|
719
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-
|
|
719
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-CtNhKu9y.js").then((n) => n.r);
|
|
720
720
|
return await (await OidcIdentityCollection.create(this.options)).findByProfile(this.id);
|
|
721
721
|
}
|
|
722
722
|
/**
|
|
@@ -729,7 +729,7 @@ var Profile = class extends SmrtObject {
|
|
|
729
729
|
* type, but refuses to create or rebind authority.
|
|
730
730
|
*/
|
|
731
731
|
async linkOidcIdentity(oidcData) {
|
|
732
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-
|
|
732
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-CtNhKu9y.js").then((n) => n.r);
|
|
733
733
|
return await (await OidcIdentityCollection.create(this.options)).linkToProfile(this, oidcData);
|
|
734
734
|
}
|
|
735
735
|
/**
|
|
@@ -738,7 +738,7 @@ var Profile = class extends SmrtObject {
|
|
|
738
738
|
* @returns Array of Nostr identity records
|
|
739
739
|
*/
|
|
740
740
|
async getNostrIdentities() {
|
|
741
|
-
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-
|
|
741
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6qq3z-e.js").then((n) => n.n);
|
|
742
742
|
return await (await NostrIdentityCollection.create(this.options)).findByProfile(this.id);
|
|
743
743
|
}
|
|
744
744
|
/**
|
|
@@ -748,7 +748,7 @@ var Profile = class extends SmrtObject {
|
|
|
748
748
|
* @returns The linked Nostr identity record
|
|
749
749
|
*/
|
|
750
750
|
async linkNostrIdentity(nostrData) {
|
|
751
|
-
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-
|
|
751
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-C6qq3z-e.js").then((n) => n.n);
|
|
752
752
|
return await (await NostrIdentityCollection.create(this.options)).linkToProfile(this, nostrData);
|
|
753
753
|
}
|
|
754
754
|
/**
|
|
@@ -758,7 +758,7 @@ var Profile = class extends SmrtObject {
|
|
|
758
758
|
* @returns Array of audit log entries
|
|
759
759
|
*/
|
|
760
760
|
async getAuditLogs(limit = 50) {
|
|
761
|
-
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-
|
|
761
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-CZBxKq4A.js").then((n) => n.n);
|
|
762
762
|
return await (await AuditLogCollection.create(this.options)).getRecentActivity(this.id, limit);
|
|
763
763
|
}
|
|
764
764
|
/**
|
|
@@ -768,7 +768,7 @@ var Profile = class extends SmrtObject {
|
|
|
768
768
|
* @returns The created audit log entry
|
|
769
769
|
*/
|
|
770
770
|
async recordAction(options) {
|
|
771
|
-
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-
|
|
771
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-CZBxKq4A.js").then((n) => n.n);
|
|
772
772
|
return await (await AuditLogCollection.create(this.options)).record({
|
|
773
773
|
profile: this,
|
|
774
774
|
...options
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { v as ProfileMetadataCollection_exports } from "./dist-
|
|
1
|
+
import { v as ProfileMetadataCollection_exports } from "./dist-CcLtprDR.js";
|
|
2
2
|
export { ProfileMetadataCollection_exports as n };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { h as ProfileMetafieldCollection_exports } from "./dist-
|
|
1
|
+
import { h as ProfileMetafieldCollection_exports } from "./dist-CcLtprDR.js";
|
|
2
2
|
export { ProfileMetafieldCollection_exports as n };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { f as ProfileRelationshipCollection_exports } from "./dist-
|
|
1
|
+
import { f as ProfileRelationshipCollection_exports } from "./dist-CcLtprDR.js";
|
|
2
2
|
export { ProfileRelationshipCollection_exports as n };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { l as ProfileRelationshipTermCollection_exports } from "./dist-
|
|
1
|
+
import { l as ProfileRelationshipTermCollection_exports } from "./dist-CcLtprDR.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-
|
|
2
|
+
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-5rGYvFIY.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-
|
|
1
|
+
import { o as ProfileRelationshipTypeCollection_exports } from "./dist-CcLtprDR.js";
|
|
2
2
|
export { ProfileRelationshipTypeCollection_exports as n };
|
|
@@ -6948,7 +6948,7 @@ var dbMaterializeTenantHierarchyCommand = {
|
|
|
6948
6948
|
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).");
|
|
6949
6949
|
const dbType = config.database.type || "sqlite";
|
|
6950
6950
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
6951
|
-
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-
|
|
6951
|
+
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-CcLtprDR.js");
|
|
6952
6952
|
db = await getDatabase({
|
|
6953
6953
|
type: dbType,
|
|
6954
6954
|
url: config.database.url
|
|
@@ -7157,7 +7157,7 @@ var dbMigrateLedgerAccountsCommand = {
|
|
|
7157
7157
|
if (dbType !== "postgres") throw new Error("db:migrate-ledger-accounts currently supports PostgreSQL only; no changes were made. See the smrt-ledgers README for SQLite.");
|
|
7158
7158
|
await autoDiscoverAndLoad();
|
|
7159
7159
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
7160
|
-
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-
|
|
7160
|
+
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-DC1d_zi0.js");
|
|
7161
7161
|
db = await getDatabase({
|
|
7162
7162
|
type: dbType,
|
|
7163
7163
|
url: config.database.url
|