@happyvertical/smrt-cli 0.57.14 → 0.57.16
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-CVmlf3V6-CpkKlftW.js → ApiKey-9YuYcpWy-BdrXOe-N.js} +5 -5
- package/dist/{ApiKeyCollection-CiiDNFdD-DGZkMNy8.js → ApiKeyCollection-BrJT9vo_-C2ELjR8-.js} +5 -5
- package/dist/{AuditLogCollection-WDHL-_AF-CfRYWGys.js → AuditLogCollection-BBbvr8Qc-B_vM5Xsk.js} +5 -5
- package/dist/{NostrIdentity-AC8fAdxe-Crl0np5c.js → NostrIdentity-RJaATTCt-BbRHWyee.js} +20 -9
- package/dist/{NostrIdentityCollection-CctlECpX-COd5JbK9.js → NostrIdentityCollection-BPNgPOBE-ChIk8KoC.js} +4 -4
- package/dist/{OidcIdentity-BUblgQLs-CRp_hqHx.js → OidcIdentity-MVVO3MfG-BpGvKgjc.js} +3 -3
- package/dist/{OidcIdentityCollection-ClOyaHeF-DRzTBrqP.js → OidcIdentityCollection-s4mp3n62-CfC3l5CJ.js} +5 -5
- package/dist/{PasswordCredentialService-CyB9FmYp-DrsmayFd.js → PasswordCredentialService-CyB9FmYp-CXXViNgR.js} +22 -22
- package/dist/{ProfileAssetCollection-CRMcjLJ--DI5GHTCT.js → ProfileAssetCollection-BuVAdOiv-tCeaeksA.js} +7 -7
- package/dist/{ProfileCollection-C4INKh7Y-8JNduJAI.js → ProfileCollection-CMS9dFc0-C0fYZz7M.js} +30 -30
- package/dist/{ProfileLinkCollection-DFfZRsgv-Btq4mGnI.js → ProfileLinkCollection-ChK9iEBp-8JDlgsdy.js} +6 -6
- package/dist/{ProfileMetadataCollection-BIYKy4Y3-D89TA8sp.js → ProfileMetadataCollection-CAgJyjze-DYirlBQP.js} +5 -5
- package/dist/{ProfileMetafieldCollection-Buz7gzag-BBILArHK.js → ProfileMetafieldCollection-19ae6Lpf-DS57DJ8S.js} +5 -5
- package/dist/{ProfileRelationshipCollection-C4g_QLI4-CBO-ZFG5.js → ProfileRelationshipCollection-BFSlTQ7J-l1ZL3VaR.js} +8 -8
- package/dist/{ProfileRelationshipTermCollection-C9J7mC7P-B1qRgesq.js → ProfileRelationshipTermCollection-OluL8BGP-n4626fEI.js} +4 -4
- package/dist/{ProfileRelationshipType-U7IwF6Wf--nNtaEKl.js → ProfileRelationshipType-Cevy-vaF-G82Gg40q.js} +4 -4
- package/dist/{ProfileRelationshipTypeCollection-_n22WqTb-CvN_J6A_.js → ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js} +5 -5
- package/dist/{ProfileTypeCollection-B7kwi1mU-D0H5HsjK.js → ProfileTypeCollection-B7m698Bl-DRmJ7q9F.js} +6 -6
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/{commands-DEfGxqVh.js → commands-C43NA6mx.js} +28 -6
- package/dist/{dist-CztDzx06.js → dist-B67Y3rCx.js} +4 -4
- package/dist/{dist-DOpRHzSU.js → dist-BR5pH4Kh.js} +5 -5
- package/dist/{dist-NpXtLFZF.js → dist-U163Kr3p.js} +3 -3
- package/dist/{dist-DICoECF7.js → dist-oeSjU6C9.js} +2 -2
- package/dist/index.js +11 -11
- package/dist/{oidcProvisioningPrimitives-DNP9EZlU-DZjXyAYi.js → oidcProvisioningPrimitives-Dl9qIcYS-Bnw85qhT.js} +7 -7
- package/dist/{operator-BD6K8-ID.js → operator-CwLtJXLm.js} +2 -2
- package/dist/{resolveIdentity-CkyqvctR-C7H56d7-.js → resolveIdentity-CR5p_g7K-VvVQCKEB.js} +19 -19
- package/dist/runtime-check.d.ts +16 -0
- package/dist/runtime-check.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { n as __exportAll$1 } from "./NostrIdentity-
|
|
2
|
+
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
3
3
|
import { SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
4
4
|
import { createHash, randomBytes } from "node:crypto";
|
|
5
|
-
//#region ../profiles/dist/chunks/ApiKey-
|
|
6
|
-
var
|
|
5
|
+
//#region ../profiles/dist/chunks/ApiKey-9YuYcpWy.js
|
|
6
|
+
var ApiKey_9YuYcpWy_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
n: () => ApiKey_exports,
|
|
8
8
|
t: () => ApiKey
|
|
9
9
|
});
|
|
@@ -134,7 +134,7 @@ var ApiKey = class extends SmrtObject {
|
|
|
134
134
|
*/
|
|
135
135
|
static async verify(key, options = {}) {
|
|
136
136
|
const keyHash = ApiKey.hashKey(key);
|
|
137
|
-
const { ApiKeyCollection } = await import("./ApiKeyCollection-
|
|
137
|
+
const { ApiKeyCollection } = await import("./ApiKeyCollection-BrJT9vo_-C2ELjR8-.js").then((n) => n.t).then((n) => n.n);
|
|
138
138
|
const apiKey = await (await ApiKeyCollection.create(options)).findOne({ where: { keyHash } });
|
|
139
139
|
if (!apiKey) return null;
|
|
140
140
|
if (!apiKey.isValid()) return null;
|
|
@@ -162,4 +162,4 @@ ApiKey = __decorateClass([smrt({
|
|
|
162
162
|
}
|
|
163
163
|
})], ApiKey);
|
|
164
164
|
//#endregion
|
|
165
|
-
export {
|
|
165
|
+
export { ApiKey_9YuYcpWy_exports as n, ApiKey as t };
|
package/dist/{ApiKeyCollection-CiiDNFdD-DGZkMNy8.js → ApiKeyCollection-BrJT9vo_-C2ELjR8-.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { n as __exportAll$1 } from "./NostrIdentity-
|
|
3
|
-
import { t as ApiKey } from "./ApiKey-
|
|
2
|
+
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
3
|
+
import { t as ApiKey } from "./ApiKey-9YuYcpWy-BdrXOe-N.js";
|
|
4
4
|
import { SmrtCollection } from "@happyvertical/smrt-core";
|
|
5
|
-
//#region ../profiles/dist/chunks/ApiKeyCollection-
|
|
6
|
-
var
|
|
5
|
+
//#region ../profiles/dist/chunks/ApiKeyCollection-BrJT9vo_.js
|
|
6
|
+
var ApiKeyCollection_BrJT9vo__exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
n: () => ApiKeyCollection_exports,
|
|
8
8
|
t: () => ApiKeyCollection
|
|
9
9
|
});
|
|
@@ -84,4 +84,4 @@ var ApiKeyCollection = class extends SmrtCollection {
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
//#endregion
|
|
87
|
-
export {
|
|
87
|
+
export { ApiKeyCollection_BrJT9vo__exports as t };
|
package/dist/{AuditLogCollection-WDHL-_AF-CfRYWGys.js → AuditLogCollection-BBbvr8Qc-B_vM5Xsk.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
3
|
-
import { n as __exportAll$1 } from "./NostrIdentity-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-oeSjU6C9.js";
|
|
3
|
+
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
5
|
-
//#region ../profiles/dist/chunks/AuditLogCollection-
|
|
6
|
-
var
|
|
5
|
+
//#region ../profiles/dist/chunks/AuditLogCollection-BBbvr8Qc.js
|
|
6
|
+
var AuditLogCollection_BBbvr8Qc_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
n: () => AuditLogCollection_exports,
|
|
8
8
|
r: () => AuditLog,
|
|
9
9
|
t: () => AuditLogCollection
|
|
@@ -208,4 +208,4 @@ var AuditLogCollection = class extends SmrtCollection {
|
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
//#endregion
|
|
211
|
-
export {
|
|
211
|
+
export { AuditLogCollection_BBbvr8Qc_exports as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
2
2
|
import { createCipheriv, createDecipheriv, createHash, hkdfSync, randomBytes } from "node:crypto";
|
|
3
|
-
//#region ../profiles/dist/chunks/NostrIdentity-
|
|
3
|
+
//#region ../profiles/dist/chunks/NostrIdentity-RJaATTCt.js
|
|
4
4
|
var __defProp$1 = Object.defineProperty;
|
|
5
5
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
6
6
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -1280,10 +1280,17 @@ function validateObject(object, fields = {}, optFields = {}, title = "object") {
|
|
|
1280
1280
|
* @module
|
|
1281
1281
|
*/
|
|
1282
1282
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
1283
|
-
var _0n$4 = /* @__PURE__ */ BigInt(0)
|
|
1284
|
-
var
|
|
1285
|
-
var
|
|
1286
|
-
var
|
|
1283
|
+
var _0n$4 = /* @__PURE__ */ BigInt(0);
|
|
1284
|
+
var _1n$2 = /* @__PURE__ */ BigInt(1);
|
|
1285
|
+
var _2n$2 = /* @__PURE__ */ BigInt(2);
|
|
1286
|
+
var _3n$1 = /* @__PURE__ */ BigInt(3);
|
|
1287
|
+
var _4n$2 = /* @__PURE__ */ BigInt(4);
|
|
1288
|
+
var _5n = /* @__PURE__ */ BigInt(5);
|
|
1289
|
+
var _7n = /* @__PURE__ */ BigInt(7);
|
|
1290
|
+
var _8n = /* @__PURE__ */ BigInt(8);
|
|
1291
|
+
var _9n = /* @__PURE__ */ BigInt(9);
|
|
1292
|
+
var _15n = /* @__PURE__ */ BigInt(15);
|
|
1293
|
+
var _16n = /* @__PURE__ */ BigInt(16);
|
|
1287
1294
|
var POW_WINDOWED_MIN = /* @__PURE__ */ BigInt("0x10000000000000000");
|
|
1288
1295
|
/**
|
|
1289
1296
|
* @param a - Dividend value.
|
|
@@ -2729,7 +2736,11 @@ function validateSigOpts(opts, def) {
|
|
|
2729
2736
|
if (optsn.format !== void 0) validateSigFormat(optsn.format);
|
|
2730
2737
|
return optsn;
|
|
2731
2738
|
}
|
|
2732
|
-
var _0n$1 = /* @__PURE__ */ BigInt(0)
|
|
2739
|
+
var _0n$1 = /* @__PURE__ */ BigInt(0);
|
|
2740
|
+
var _1n = /* @__PURE__ */ BigInt(1);
|
|
2741
|
+
var _2n$1 = /* @__PURE__ */ BigInt(2);
|
|
2742
|
+
var _3n = /* @__PURE__ */ BigInt(3);
|
|
2743
|
+
var _4n = /* @__PURE__ */ BigInt(4);
|
|
2733
2744
|
/**
|
|
2734
2745
|
* Creates weierstrass Point constructor, based on specified curve options.
|
|
2735
2746
|
*
|
|
@@ -4104,21 +4115,21 @@ var NostrIdentity = class extends SmrtObject {
|
|
|
4104
4115
|
* Find identity by public key
|
|
4105
4116
|
*/
|
|
4106
4117
|
static async findByPubkey(pubkey, options = {}) {
|
|
4107
|
-
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-
|
|
4118
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-BPNgPOBE-ChIk8KoC.js").then((n) => n.t).then((n) => n.n);
|
|
4108
4119
|
return await (await NostrIdentityCollection.create(options)).findOne({ where: { pubkey } });
|
|
4109
4120
|
}
|
|
4110
4121
|
/**
|
|
4111
4122
|
* Find identity by email
|
|
4112
4123
|
*/
|
|
4113
4124
|
static async findByEmail(email, options = {}) {
|
|
4114
|
-
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-
|
|
4125
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-BPNgPOBE-ChIk8KoC.js").then((n) => n.t).then((n) => n.n);
|
|
4115
4126
|
return await (await NostrIdentityCollection.create(options)).findOne({ where: { email: email.toLowerCase() } });
|
|
4116
4127
|
}
|
|
4117
4128
|
/**
|
|
4118
4129
|
* Find identity by NIP-05 username
|
|
4119
4130
|
*/
|
|
4120
4131
|
static async findByNip05(username, options = {}) {
|
|
4121
|
-
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-
|
|
4132
|
+
const { NostrIdentityCollection } = await import("./NostrIdentityCollection-BPNgPOBE-ChIk8KoC.js").then((n) => n.t).then((n) => n.n);
|
|
4122
4133
|
return await (await NostrIdentityCollection.create(options)).findOne({ where: { nip05Username: username.toLowerCase() } });
|
|
4123
4134
|
}
|
|
4124
4135
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as generateNostrKeypair, n as __exportAll$1, r as encryptPrivkey, t as NostrIdentity } from "./NostrIdentity-
|
|
2
|
+
import { i as generateNostrKeypair, n as __exportAll$1, r as encryptPrivkey, t as NostrIdentity } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
3
3
|
import { SmrtCollection } from "@happyvertical/smrt-core";
|
|
4
|
-
//#region ../profiles/dist/chunks/NostrIdentityCollection-
|
|
5
|
-
var
|
|
4
|
+
//#region ../profiles/dist/chunks/NostrIdentityCollection-BPNgPOBE.js
|
|
5
|
+
var NostrIdentityCollection_BPNgPOBE_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
n: () => NostrIdentityCollection_exports,
|
|
7
7
|
t: () => NostrIdentityCollection
|
|
8
8
|
});
|
|
@@ -124,4 +124,4 @@ var NostrIdentityCollection = class extends SmrtCollection {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
//#endregion
|
|
127
|
-
export {
|
|
127
|
+
export { NostrIdentityCollection_BPNgPOBE_exports as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
2
|
-
//#region ../profiles/dist/chunks/OidcIdentity-
|
|
2
|
+
//#region ../profiles/dist/chunks/OidcIdentity-MVVO3MfG.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
@@ -42,7 +42,7 @@ var OidcIdentity = class extends SmrtObject {
|
|
|
42
42
|
* Find identity by issuer and subject
|
|
43
43
|
*/
|
|
44
44
|
static async findBySubject(issuer, subject, options = {}) {
|
|
45
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-
|
|
45
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-CfC3l5CJ.js").then((n) => n.r).then((n) => n.r);
|
|
46
46
|
return await (await OidcIdentityCollection.create(options)).findBySubject(issuer, subject);
|
|
47
47
|
}
|
|
48
48
|
/** Build the collision-free natural key for one OIDC issuer subject. */
|
|
@@ -65,7 +65,7 @@ var OidcIdentity = class extends SmrtObject {
|
|
|
65
65
|
static async findOrCreate(profile, oidcData, options = {}) {
|
|
66
66
|
const profileId = profile.id;
|
|
67
67
|
if (typeof profileId !== "string" || !profileId) throw new Error("OidcIdentity.findOrCreate() requires a saved Profile.");
|
|
68
|
-
const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-
|
|
68
|
+
const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-CR5p_g7K-VvVQCKEB.js").then((n) => n.t).then((n) => n.i);
|
|
69
69
|
const profileOptions = profile.options ?? {};
|
|
70
70
|
return (await reuseExistingOidcIdentityForProfile(profileId, {
|
|
71
71
|
email: oidcData.email,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { n as __exportAll$1 } from "./NostrIdentity-
|
|
3
|
-
import { t as OidcIdentity } from "./OidcIdentity-
|
|
2
|
+
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
3
|
+
import { t as OidcIdentity } from "./OidcIdentity-MVVO3MfG-BpGvKgjc.js";
|
|
4
4
|
import { SmrtCollection } from "@happyvertical/smrt-core";
|
|
5
|
-
//#region ../profiles/dist/chunks/OidcIdentityCollection-
|
|
6
|
-
var
|
|
5
|
+
//#region ../profiles/dist/chunks/OidcIdentityCollection-s4mp3n62.js
|
|
6
|
+
var OidcIdentityCollection_s4mp3n62_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
n: () => OidcIdentityCollection,
|
|
8
8
|
r: () => OidcIdentityCollection_exports,
|
|
9
9
|
t: () => AmbiguousOidcIdentityError
|
|
@@ -83,4 +83,4 @@ var OidcIdentityCollection = class extends SmrtCollection {
|
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
//#endregion
|
|
86
|
-
export { OidcIdentityCollection as n,
|
|
86
|
+
export { OidcIdentityCollection as n, OidcIdentityCollection_s4mp3n62_exports as r, AmbiguousOidcIdentityError as t };
|