From 14b593e5e297351eb22f46355c30e5086b583401 Mon Sep 17 00:00:00 2001 From: bnonni Date: Sun, 8 Sep 2024 04:06:44 -0400 Subject: [PATCH] fix fail build --- .well-known/manifest/phone-number.json | 2 +- .well-known/protocol/mfa.json | 34 ++------------------------ .well-known/schema/mfa.json | 2 +- packages/common/src/utils/options.ts | 6 ++--- 4 files changed, 7 insertions(+), 37 deletions(-) diff --git a/.well-known/manifest/phone-number.json b/.well-known/manifest/phone-number.json index 360660df..518158be 100755 --- a/.well-known/manifest/phone-number.json +++ b/.well-known/manifest/phone-number.json @@ -1,5 +1,5 @@ { - "id": "PHONE-NUMBER-MFA-MANIFEST", + "id": "phone-number-mfa-manifest:68cf3dca2457d5c720cb6dd06d08ae5c", "spec_version": "https://identity.foundation/credential-manifest/spec/v1.0.0/", "issuer": { "id": "", diff --git a/.well-known/protocol/mfa.json b/.well-known/protocol/mfa.json index 5fae574d..6b139150 100755 --- a/.well-known/protocol/mfa.json +++ b/.well-known/protocol/mfa.json @@ -1,9 +1,9 @@ { - "protocol": "https://dcxprotocol.com/.well-known/protocol/mfa", + "protocol": "https://dcxprotocol.com/.well-known/protocol/mfa.json", "published": true, "types": { "mfa": { - "schema": "https://dcxprotocol.com/.well-known/schema/mfa-record.json", + "schema": "https://dcxprotocol.com/.well-known/schema/mfa.json", "dataFormats": [ "application/json" ] @@ -11,28 +11,8 @@ }, "structure": { "mfa": { - "$actions": [ - { - "who": "author", - "of": "mfa", - "can": [ - "update", - "delete" - ] - } - ], "phone": { "$actions": [ - { - "who": "author", - "of": "mfa", - "can": [ - "create", - "update", - "read", - "delete" - ] - }, { "who": "recipient", "of": "mfa", @@ -44,16 +24,6 @@ }, "email": { "$actions": [ - { - "who": "author", - "of": "mfa", - "can": [ - "create", - "read", - "update", - "delete" - ] - }, { "who": "recipient", "of": "mfa", diff --git a/.well-known/schema/mfa.json b/.well-known/schema/mfa.json index d9a0ae92..2730d02d 100755 --- a/.well-known/schema/mfa.json +++ b/.well-known/schema/mfa.json @@ -1,5 +1,5 @@ { - "$id": "https://dcxprotocol.com/.well-known/schema/mfa-record.json", + "$id": "https://dcxprotocol.com/.well-known/schema/mfa.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "MFA DWN Record Schema", "description": "DWN record schema used to store information about MFA for phone or email verification", diff --git a/packages/common/src/utils/options.ts b/packages/common/src/utils/options.ts index 0e8efe7e..6249d1de 100644 --- a/packages/common/src/utils/options.ts +++ b/packages/common/src/utils/options.ts @@ -1,4 +1,4 @@ -import { CredentialManifest, FF, TrustedIssuer } from '../index.js'; +import { CredentialManifest, MX, TrustedIssuer } from '../index.js'; export type FindManifestParams = { manifests: CredentialManifest[]; name?: string; id?: string }; export type FindIssuerParams = Partial & { issuers: TrustedIssuer[] } @@ -35,10 +35,10 @@ export class OptionsUtil { * * @param param.name the name of the issuer to find * @param param.id the id of the issuer to find - * @returns TrustedIssuer or FF; see {@link TrustedIssuer}, {@link FF} + * @returns TrustedIssuer; see {@link TrustedIssuer} */ public static findIssuer({ issuers, name, id }: FindIssuerParams): TrustedIssuer { - return issuers.find((issuer: TrustedIssuer) => issuer.name === name || issuer.id === id) ?? FF; + return issuers.find((issuer: TrustedIssuer) => issuer.name === name || issuer.id === id) ?? MX; } public static findMissingManifests({ dwnManifests, localManifests }: FindMissingManifestParams): FindMissingManifestResponse {