-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added api for register and resolve did as well fixed the issue of not…
… getting correct error response
- Loading branch information
Showing
14 changed files
with
314 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export declare const APIENDPOINT: { | ||
STUDIO_API_BASE_URL: string; | ||
AUTH: string; | ||
DID: { | ||
CREATE_DID_ENDPOINT: string; | ||
REGISTER_DID_ENDPOINT: string; | ||
UPDATE_DID_ENDPOINT: string; | ||
RESOLVE_DID_ENDPOINT: string; | ||
}; | ||
}; | ||
//# sourceMappingURL=api-constant.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.APIENDPOINT = void 0; | ||
exports.APIENDPOINT = { | ||
STUDIO_API_BASE_URL: 'https://api.entity.hypersign.id/api/v1', | ||
AUTH: '/app/oauth', | ||
DID: { | ||
CREATE_DID_ENDPOINT: '/did/create', | ||
REGISTER_DID_ENDPOINT: '/did/register', | ||
UPDATE_DID_ENDPOINT: '/did', | ||
RESOLVE_DID_ENDPOINT: '/did/resolve', | ||
}, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
import { IGenerateDid } from "../IDid"; | ||
import { Did } from '../../../../libs/generated/ssi/did'; | ||
import { IDIDResolve } from '../../../did/IDID'; | ||
import { IGenerateDid, IRegister } from '../IDid'; | ||
export declare class DID { | ||
private authService; | ||
private accessToken; | ||
constructor(apiKey: string); | ||
private initAccessToken; | ||
generateDid(params: IGenerateDid): Promise<any>; | ||
registerDid(params: IRegister): Promise<{ | ||
didDocument: Did; | ||
transactionHash: string; | ||
}>; | ||
resolveDid(params: { | ||
did: string; | ||
}): Promise<IDIDResolve>; | ||
} | ||
//# sourceMappingURL=did.service.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const APIENDPOINT = { | ||
STUDIO_API_BASE_URL: 'https://api.entity.hypersign.id/api/v1', | ||
AUTH: '/app/oauth', | ||
DID: { | ||
CREATE_DID_ENDPOINT: '/did/create', | ||
REGISTER_DID_ENDPOINT: '/did/register', | ||
UPDATE_DID_ENDPOINT: '/did', | ||
RESOLVE_DID_ENDPOINT: '/did/resolve', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.