@nocobase/plugin-verification
Version:
User identity verification management, including SMS, TOTP authenticator, with extensibility.
137 lines (122 loc) • 3.32 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* tdid client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("tdid.tencentcloudapi.com", "2021-05-19", clientConfig);
}
/**
* 该接口不再使用
凭证模版详情
*/
async GetCptInfo(req, cb) {
return this.request("GetCptInfo", req, cb);
}
/**
* 该接口不再使用
查看DID文档
*/
async GetDidDocument(req, cb) {
return this.request("GetDidDocument", req, cb);
}
/**
* 该接口不再使用
创建选择性批露凭证
*/
async CreateSelectiveCredential(req, cb) {
return this.request("CreateSelectiveCredential", req, cb);
}
/**
* 该接口不再使用
创建机构DID
*/
async CreateTDid(req, cb) {
return this.request("CreateTDid", req, cb);
}
/**
* 该接口不再使用
创建凭证
*/
async CreateCredential(req, cb) {
return this.request("CreateCredential", req, cb);
}
/**
* 该接口不再使用
新建DID根据公钥生成Tdid
*/
async CreateTDidByPublicKey(req, cb) {
return this.request("CreateTDidByPublicKey", req, cb);
}
/**
* 该接口不再使用
获取凭证链上状态信息
*/
async GetCredentialStatus(req, cb) {
return this.request("GetCredentialStatus", req, cb);
}
/**
* 该接口不再使用
新建DID根据私钥生成Tdid
*/
async CreateTDidByPrivateKey(req, cb) {
return this.request("CreateTDidByPrivateKey", req, cb);
}
/**
* 该接口不再使用
检查区块链信息
*/
async CheckChain(req, cb) {
return this.request("CheckChain", req, cb);
}
/**
* 该接口不再使用
凭证模版新建
*/
async RegisterCpt(req, cb) {
return this.request("RegisterCpt", req, cb);
}
/**
* 该接口不再使用
验证凭证
*/
async VerifyCredential(req, cb) {
return this.request("VerifyCredential", req, cb);
}
/**
* 该接口不再使用
获取权威机构信息
*/
async GetAuthorityIssuer(req, cb) {
return this.request("GetAuthorityIssuer", req, cb);
}
/**
* 该接口不再使用
设置凭证链上状态
*/
async SetCredentialStatus(req, cb) {
return this.request("SetCredentialStatus", req, cb);
}
}
exports.Client = Client;