@happyvertical/smrt-cli 0.57.37 → 0.57.38
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/{AuditLogCollection-BBbvr8Qc-BaxJYBuK.js → AuditLogCollection-BBbvr8Qc-CtRs4OgI.js} +1 -1
- package/dist/{OidcIdentity-MVVO3MfG-DMmkDwKt.js → OidcIdentity-COeMidoC-BabaDjrW.js} +5 -5
- package/dist/{OidcIdentityCollection-s4mp3n62-BDTHgQQt.js → OidcIdentityCollection-D4DIZv0K-BMuxbfgE.js} +4 -4
- package/dist/{PasswordCredentialService-DA2Y6H2X-BbB7uowA.js → PasswordCredentialService-bedKxkaa-CszxBG71.js} +30 -28
- package/dist/{ProfileAssetCollection-BuVAdOiv-lkhdAlDx.js → ProfileAssetCollection-D5-tG9Mm-TPqHGKx3.js} +6 -6
- package/dist/{ProfileCollection-CMS9dFc0-DjuUyO1a.js → ProfileCollection-CmRaiE9U-BvqGLMWz.js} +22 -22
- package/dist/{ProfileLinkCollection-ChK9iEBp-DdKp81WQ.js → ProfileLinkCollection-pvPTsysg-CVy-X7BH.js} +5 -5
- package/dist/{ProfileMetadataCollection-CAgJyjze-B8lzwwGO.js → ProfileMetadataCollection-CAgJyjze-DVd3L9JK.js} +1 -1
- package/dist/{ProfileMetafieldCollection-19ae6Lpf-cH_qeSu_.js → ProfileMetafieldCollection-19ae6Lpf-D91xneqO.js} +1 -1
- package/dist/{ProfileRelationshipCollection-BFSlTQ7J-CeorSfVz.js → ProfileRelationshipCollection-BFSlTQ7J-DZPWyPjE.js} +1 -1
- package/dist/{ProfileTypeCollection-B7m698Bl-Dfp1YzXi.js → ProfileTypeCollection-BRLK8cHS-Cvhj-MPJ.js} +5 -5
- package/dist/{apply-D8dV3HUh.js → apply-C-lZnBtC.js} +2 -0
- package/dist/cli-generator.d.ts +5 -0
- package/dist/cli-generator.d.ts.map +1 -1
- package/dist/commands/db-diff.d.ts.map +1 -1
- package/dist/commands/db-migrate-actions.d.ts +4 -0
- package/dist/commands/db-migrate-actions.d.ts.map +1 -1
- package/dist/commands/kitchen/apply.d.ts +2 -0
- package/dist/commands/kitchen/apply.d.ts.map +1 -1
- package/dist/commands/utilities.d.ts.map +1 -1
- package/dist/{commands-uveaWifl.js → commands-ZJNmHm-l.js} +20 -9
- package/dist/{dist-Ba-oLNvh.js → dist-D3DI11Yt.js} +3 -3
- package/dist/{dist-ByULuJzU.js → dist-DDbKUjaK.js} +24 -15
- package/dist/{dist-Cq2fPPuf.js → dist-DSp1Za2z.js} +5 -5
- package/dist/{dist-8pqb-NUd.js → dist-DwAl02aF.js} +10 -10
- package/dist/index.js +31 -12
- package/dist/{oidcProvisioningPrimitives-Dl9qIcYS-CTF3hQeX.js → oidcProvisioningPrimitives-KpIiLmG4-DbkfwOi9.js} +6 -6
- package/dist/{operator-BECPOEBe.js → operator-Cf-P66rV.js} +2 -2
- package/dist/{resolveIdentity-CR5p_g7K-DtKbI5rI.js → resolveIdentity-j2WFuKDT-CaLajXv8.js} +17 -17
- package/dist/{server-DEBTDsmH.js → server-D4xtz9_R.js} +1 -1
- package/package.json +10 -10
package/dist/{AuditLogCollection-BBbvr8Qc-BaxJYBuK.js → AuditLogCollection-BBbvr8Qc-CtRs4OgI.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-DDbKUjaK.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/AuditLogCollection-BBbvr8Qc.js
|
|
@@ -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-COeMidoC.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-D4DIZv0K-BMuxbfgE.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. */
|
|
@@ -50,9 +50,9 @@ var OidcIdentity = class extends SmrtObject {
|
|
|
50
50
|
return JSON.stringify([issuer, subject]);
|
|
51
51
|
}
|
|
52
52
|
/** Keep the durable key derived from its natural-key source fields. */
|
|
53
|
-
async save() {
|
|
53
|
+
async save(options) {
|
|
54
54
|
this.identityKey = this.issuer.trim() && this.subject.trim() ? OidcIdentity.buildIdentityKey(this.issuer, this.subject) : null;
|
|
55
|
-
return super.save();
|
|
55
|
+
return super.save(options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Reuse an existing exact identity for its unchanged Profile.
|
|
@@ -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-j2WFuKDT-CaLajXv8.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
2
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
3
|
-
import { t as OidcIdentity } from "./OidcIdentity-
|
|
3
|
+
import { t as OidcIdentity } from "./OidcIdentity-COeMidoC-BabaDjrW.js";
|
|
4
4
|
import { SmrtCollection } from "@happyvertical/smrt-core";
|
|
5
|
-
//#region ../profiles/dist/chunks/OidcIdentityCollection-
|
|
6
|
-
var
|
|
5
|
+
//#region ../profiles/dist/chunks/OidcIdentityCollection-D4DIZv0K.js
|
|
6
|
+
var OidcIdentityCollection_D4DIZv0K_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_D4DIZv0K_exports as r, AmbiguousOidcIdentityError as t };
|