├── .eslintignore ├── .eslintrc ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── question.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── publish.yml │ └── test.yml ├── .gitignore ├── .nvmrc ├── .prettierrc.js ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── config ├── tsconfig.base.json ├── tsconfig.sdk.cjs.json ├── tsconfig.sdk.esm.json └── tsconfig.test.json ├── eslint.config.js ├── jest.config.ts ├── package.json ├── scripts ├── build.sh ├── start.sh └── test.sh ├── src ├── core │ ├── sdk-exceptions.ts │ └── sdk.ts ├── index.ts ├── modules │ ├── base-module.ts │ ├── token │ │ └── index.ts │ ├── users │ │ └── index.ts │ └── utils │ │ ├── index.ts │ │ └── ownershipABIs.ts ├── types │ ├── didt-types.ts │ ├── exception-types.ts │ ├── index.ts │ ├── sdk-types.ts │ ├── utils-types.ts │ └── wallet-types.ts └── utils │ ├── codec.ts │ ├── ec-recover.ts │ ├── fetch.ts │ ├── issuer.ts │ ├── parse-didt.ts │ ├── rest.ts │ └── type-guards.ts ├── test ├── lib │ ├── constants.ts │ └── factories.ts ├── spec │ ├── core │ │ ├── sdk-exceptions │ │ │ ├── error-factories.spec.ts │ │ │ └── magic-admin-sdk-error │ │ │ │ └── constructor.spec.ts │ │ └── sdk │ │ │ └── constructor.spec.ts │ ├── index.spec.ts │ ├── modules │ │ ├── base-module │ │ │ └── constructor.spec.ts │ │ ├── token │ │ │ ├── decode.spec.ts │ │ │ ├── getIssuer.spec.ts │ │ │ ├── getPublicAddress.spec.ts │ │ │ └── validate.spec.ts │ │ ├── users │ │ │ ├── getMetadataByIssuer.spec.ts │ │ │ ├── getMetadataByPublicAddress.spec.ts │ │ │ ├── getMetadataByToken.spec.ts │ │ │ ├── logoutByIssuer.spec.ts │ │ │ ├── logoutByPublicAddress.spec.ts │ │ │ └── logoutByToken.spec.ts │ │ └── utils │ │ │ ├── parseAuthorizationHeader.spec.ts │ │ │ └── validateTokenOwnership.spec.ts │ └── utils │ │ ├── codec.spec.ts │ │ ├── issuer │ │ ├── generateIssuerFromPublicAddress.spec.ts │ │ └── parsePublicAddressFromIssuer.spec.ts │ │ ├── parse-didt.spec.ts │ │ ├── rest │ │ ├── emitRequest.spec.ts │ │ ├── get.spec.ts │ │ └── post.spec.ts │ │ └── type-guards │ │ └── isDIDTClaim.spec.ts └── tsconfig.json ├── tsconfig.json └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | jest.config.ts 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 22.19.0 2 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@ikscodes/prettier-config'); 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/README.md -------------------------------------------------------------------------------- /config/tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/config/tsconfig.base.json -------------------------------------------------------------------------------- /config/tsconfig.sdk.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/config/tsconfig.sdk.cjs.json -------------------------------------------------------------------------------- /config/tsconfig.sdk.esm.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/config/tsconfig.sdk.esm.json -------------------------------------------------------------------------------- /config/tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/config/tsconfig.test.json -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/eslint.config.js -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/jest.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/package.json -------------------------------------------------------------------------------- /scripts/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/scripts/build.sh -------------------------------------------------------------------------------- /scripts/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/scripts/start.sh -------------------------------------------------------------------------------- /scripts/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/scripts/test.sh -------------------------------------------------------------------------------- /src/core/sdk-exceptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/core/sdk-exceptions.ts -------------------------------------------------------------------------------- /src/core/sdk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/core/sdk.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/modules/base-module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/modules/base-module.ts -------------------------------------------------------------------------------- /src/modules/token/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/modules/token/index.ts -------------------------------------------------------------------------------- /src/modules/users/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/modules/users/index.ts -------------------------------------------------------------------------------- /src/modules/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/modules/utils/index.ts -------------------------------------------------------------------------------- /src/modules/utils/ownershipABIs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/modules/utils/ownershipABIs.ts -------------------------------------------------------------------------------- /src/types/didt-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/types/didt-types.ts -------------------------------------------------------------------------------- /src/types/exception-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/types/exception-types.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/sdk-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/types/sdk-types.ts -------------------------------------------------------------------------------- /src/types/utils-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/types/utils-types.ts -------------------------------------------------------------------------------- /src/types/wallet-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/types/wallet-types.ts -------------------------------------------------------------------------------- /src/utils/codec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/utils/codec.ts -------------------------------------------------------------------------------- /src/utils/ec-recover.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/utils/ec-recover.ts -------------------------------------------------------------------------------- /src/utils/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/utils/fetch.ts -------------------------------------------------------------------------------- /src/utils/issuer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/utils/issuer.ts -------------------------------------------------------------------------------- /src/utils/parse-didt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/utils/parse-didt.ts -------------------------------------------------------------------------------- /src/utils/rest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/utils/rest.ts -------------------------------------------------------------------------------- /src/utils/type-guards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/src/utils/type-guards.ts -------------------------------------------------------------------------------- /test/lib/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/lib/constants.ts -------------------------------------------------------------------------------- /test/lib/factories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/lib/factories.ts -------------------------------------------------------------------------------- /test/spec/core/sdk-exceptions/error-factories.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/core/sdk-exceptions/error-factories.spec.ts -------------------------------------------------------------------------------- /test/spec/core/sdk-exceptions/magic-admin-sdk-error/constructor.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/core/sdk-exceptions/magic-admin-sdk-error/constructor.spec.ts -------------------------------------------------------------------------------- /test/spec/core/sdk/constructor.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/core/sdk/constructor.spec.ts -------------------------------------------------------------------------------- /test/spec/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/index.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/base-module/constructor.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/base-module/constructor.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/token/decode.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/token/decode.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/token/getIssuer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/token/getIssuer.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/token/getPublicAddress.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/token/getPublicAddress.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/token/validate.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/token/validate.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/users/getMetadataByIssuer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/users/getMetadataByIssuer.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/users/getMetadataByPublicAddress.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/users/getMetadataByPublicAddress.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/users/getMetadataByToken.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/users/getMetadataByToken.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/users/logoutByIssuer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/users/logoutByIssuer.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/users/logoutByPublicAddress.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/users/logoutByPublicAddress.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/users/logoutByToken.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/users/logoutByToken.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/utils/parseAuthorizationHeader.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/utils/parseAuthorizationHeader.spec.ts -------------------------------------------------------------------------------- /test/spec/modules/utils/validateTokenOwnership.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/modules/utils/validateTokenOwnership.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/codec.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/codec.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/issuer/generateIssuerFromPublicAddress.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/issuer/generateIssuerFromPublicAddress.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/issuer/parsePublicAddressFromIssuer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/issuer/parsePublicAddressFromIssuer.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/parse-didt.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/parse-didt.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/rest/emitRequest.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/rest/emitRequest.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/rest/get.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/rest/get.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/rest/post.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/rest/post.spec.ts -------------------------------------------------------------------------------- /test/spec/utils/type-guards/isDIDTClaim.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/spec/utils/type-guards/isDIDTClaim.spec.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/magiclabs/magic-admin-js/HEAD/yarn.lock --------------------------------------------------------------------------------