@happyvertical/smrt-cli 0.57.15 → 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.
Files changed (31) hide show
  1. package/dist/{ApiKey-CVmlf3V6-CpkKlftW.js → ApiKey-9YuYcpWy-BdrXOe-N.js} +5 -5
  2. package/dist/{ApiKeyCollection-CiiDNFdD-DGZkMNy8.js → ApiKeyCollection-BrJT9vo_-C2ELjR8-.js} +5 -5
  3. package/dist/{AuditLogCollection-WDHL-_AF-CQXj4gM2.js → AuditLogCollection-BBbvr8Qc-B_vM5Xsk.js} +5 -5
  4. package/dist/{NostrIdentity-AC8fAdxe-Crl0np5c.js → NostrIdentity-RJaATTCt-BbRHWyee.js} +20 -9
  5. package/dist/{NostrIdentityCollection-CctlECpX-COd5JbK9.js → NostrIdentityCollection-BPNgPOBE-ChIk8KoC.js} +4 -4
  6. package/dist/{OidcIdentity-BUblgQLs-DGHZ4M7i.js → OidcIdentity-MVVO3MfG-BpGvKgjc.js} +3 -3
  7. package/dist/{OidcIdentityCollection-ClOyaHeF-B-hGW2Wl.js → OidcIdentityCollection-s4mp3n62-CfC3l5CJ.js} +5 -5
  8. package/dist/{PasswordCredentialService-CyB9FmYp-Bsni8t37.js → PasswordCredentialService-CyB9FmYp-CXXViNgR.js} +22 -22
  9. package/dist/{ProfileAssetCollection-CRMcjLJ--sqYwjhji.js → ProfileAssetCollection-BuVAdOiv-tCeaeksA.js} +7 -7
  10. package/dist/{ProfileCollection-C4INKh7Y-Df7XNoF9.js → ProfileCollection-CMS9dFc0-C0fYZz7M.js} +30 -30
  11. package/dist/{ProfileLinkCollection-DFfZRsgv-B1kKCoxt.js → ProfileLinkCollection-ChK9iEBp-8JDlgsdy.js} +6 -6
  12. package/dist/{ProfileMetadataCollection-BIYKy4Y3-DCzYve4J.js → ProfileMetadataCollection-CAgJyjze-DYirlBQP.js} +5 -5
  13. package/dist/{ProfileMetafieldCollection-Buz7gzag-Dz6K_9_W.js → ProfileMetafieldCollection-19ae6Lpf-DS57DJ8S.js} +5 -5
  14. package/dist/{ProfileRelationshipCollection-C4g_QLI4-C2a5btTC.js → ProfileRelationshipCollection-BFSlTQ7J-l1ZL3VaR.js} +8 -8
  15. package/dist/{ProfileRelationshipTermCollection-C9J7mC7P-B1qRgesq.js → ProfileRelationshipTermCollection-OluL8BGP-n4626fEI.js} +4 -4
  16. package/dist/{ProfileRelationshipType-U7IwF6Wf--nNtaEKl.js → ProfileRelationshipType-Cevy-vaF-G82Gg40q.js} +4 -4
  17. package/dist/{ProfileRelationshipTypeCollection-_n22WqTb-CvN_J6A_.js → ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js} +5 -5
  18. package/dist/{ProfileTypeCollection-B7kwi1mU-BqrZPPoy.js → ProfileTypeCollection-B7m698Bl-DRmJ7q9F.js} +6 -6
  19. package/dist/commands/generate.d.ts.map +1 -1
  20. package/dist/{commands-H78hZM8r.js → commands-C43NA6mx.js} +28 -6
  21. package/dist/{dist-3-6I48mI.js → dist-B67Y3rCx.js} +4 -4
  22. package/dist/{dist-BnfYk7la.js → dist-BR5pH4Kh.js} +5 -5
  23. package/dist/{dist-46vxVpSu.js → dist-U163Kr3p.js} +3 -3
  24. package/dist/{dist-D2z9PH4N.js → dist-oeSjU6C9.js} +2 -2
  25. package/dist/index.js +11 -11
  26. package/dist/{oidcProvisioningPrimitives-DNP9EZlU-CCunrdnL.js → oidcProvisioningPrimitives-Dl9qIcYS-Bnw85qhT.js} +7 -7
  27. package/dist/{operator-A1enN804.js → operator-CwLtJXLm.js} +2 -2
  28. package/dist/{resolveIdentity-CkyqvctR-y1y-hnjF.js → resolveIdentity-CR5p_g7K-VvVQCKEB.js} +19 -19
  29. package/dist/runtime-check.d.ts +16 -0
  30. package/dist/runtime-check.d.ts.map +1 -1
  31. 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-AC8fAdxe-Crl0np5c.js";
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-CVmlf3V6.js
6
- var ApiKey_CVmlf3V6_exports = /* @__PURE__ */ __exportAll({
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-CiiDNFdD-DGZkMNy8.js").then((n) => n.t).then((n) => n.n);
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 { ApiKey_CVmlf3V6_exports as n, ApiKey as t };
165
+ export { ApiKey_9YuYcpWy_exports as n, ApiKey as t };
@@ -1,9 +1,9 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { n as __exportAll$1 } from "./NostrIdentity-AC8fAdxe-Crl0np5c.js";
3
- import { t as ApiKey } from "./ApiKey-CVmlf3V6-CpkKlftW.js";
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-CiiDNFdD.js
6
- var ApiKeyCollection_CiiDNFdD_exports = /* @__PURE__ */ __exportAll({
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 { ApiKeyCollection_CiiDNFdD_exports as t };
87
+ export { ApiKeyCollection_BrJT9vo__exports as t };
@@ -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-D2z9PH4N.js";
3
- import { n as __exportAll$1 } from "./NostrIdentity-AC8fAdxe-Crl0np5c.js";
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-WDHL-_AF.js
6
- var AuditLogCollection_WDHL__AF_exports = /* @__PURE__ */ __exportAll({
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 { AuditLogCollection_WDHL__AF_exports as t };
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-AC8fAdxe.js
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), _1n$2 = /* @__PURE__ */ BigInt(1), _2n$2 = /* @__PURE__ */ BigInt(2);
1284
- var _3n$1 = /* @__PURE__ */ BigInt(3), _4n$2 = /* @__PURE__ */ BigInt(4), _5n = /* @__PURE__ */ BigInt(5);
1285
- var _7n = /* @__PURE__ */ BigInt(7), _8n = /* @__PURE__ */ BigInt(8), _9n = /* @__PURE__ */ BigInt(9);
1286
- var _15n = /* @__PURE__ */ BigInt(15), _16n = /* @__PURE__ */ BigInt(16);
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), _1n = /* @__PURE__ */ BigInt(1), _2n$1 = /* @__PURE__ */ BigInt(2), _3n = /* @__PURE__ */ BigInt(3), _4n = /* @__PURE__ */ BigInt(4);
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-CctlECpX-COd5JbK9.js").then((n) => n.t).then((n) => n.n);
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-CctlECpX-COd5JbK9.js").then((n) => n.t).then((n) => n.n);
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-CctlECpX-COd5JbK9.js").then((n) => n.t).then((n) => n.n);
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-AC8fAdxe-Crl0np5c.js";
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-CctlECpX.js
5
- var NostrIdentityCollection_CctlECpX_exports = /* @__PURE__ */ __exportAll({
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 { NostrIdentityCollection_CctlECpX_exports as t };
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-BUblgQLs.js
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-ClOyaHeF-B-hGW2Wl.js").then((n) => n.r).then((n) => n.r);
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-CkyqvctR-y1y-hnjF.js").then((n) => n.t).then((n) => n.i);
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-AC8fAdxe-Crl0np5c.js";
3
- import { t as OidcIdentity } from "./OidcIdentity-BUblgQLs-DGHZ4M7i.js";
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-ClOyaHeF.js
6
- var OidcIdentityCollection_ClOyaHeF_exports = /* @__PURE__ */ __exportAll({
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, OidcIdentityCollection_ClOyaHeF_exports as r, AmbiguousOidcIdentityError as t };
86
+ export { OidcIdentityCollection as n, OidcIdentityCollection_s4mp3n62_exports as r, AmbiguousOidcIdentityError as t };