Skip to content

Commit

Permalink
fix fail build
Browse files Browse the repository at this point in the history
  • Loading branch information
bnonni committed Sep 8, 2024
1 parent 8b4e994 commit 14b593e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .well-known/manifest/phone-number.json
Original file line number Diff line number Diff line change
@@ -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": "",
Expand Down
34 changes: 2 additions & 32 deletions .well-known/protocol/mfa.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,18 @@
{
"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"
]
}
},
"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",
Expand All @@ -44,16 +24,6 @@
},
"email": {
"$actions": [
{
"who": "author",
"of": "mfa",
"can": [
"create",
"read",
"update",
"delete"
]
},
{
"who": "recipient",
"of": "mfa",
Expand Down
2 changes: 1 addition & 1 deletion .well-known/schema/mfa.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/common/src/utils/options.ts
Original file line number Diff line number Diff line change
@@ -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<TrustedIssuer> & { issuers: TrustedIssuer[] }
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 14b593e

Please sign in to comment.