Add Smart Cloudauth API.

This commit is contained in:
sdk-team
2020-07-30 17:10:00 +08:00
parent 9d57625a58
commit 8520626698
23 changed files with 693 additions and 10 deletions

View File

@@ -50,6 +50,8 @@
#include "model/DescribeRPSDKResult.h"
#include "model/DescribeSdkUrlRequest.h"
#include "model/DescribeSdkUrlResult.h"
#include "model/DescribeSmartVerifyRequest.h"
#include "model/DescribeSmartVerifyResult.h"
#include "model/DescribeUpdatePackageResultRequest.h"
#include "model/DescribeUpdatePackageResultResult.h"
#include "model/DescribeUploadInfoRequest.h"
@@ -80,6 +82,8 @@
#include "model/InitDeviceResult.h"
#include "model/InitFaceVerifyRequest.h"
#include "model/InitFaceVerifyResult.h"
#include "model/InitSmartVerifyRequest.h"
#include "model/InitSmartVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
#include "model/ModifyDeviceInfoResult.h"
#include "model/SubmitMaterialsRequest.h"
@@ -145,6 +149,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSdkUrlResult> DescribeSdkUrlOutcome;
typedef std::future<DescribeSdkUrlOutcome> DescribeSdkUrlOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeSdkUrlRequest&, const DescribeSdkUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSdkUrlAsyncHandler;
typedef Outcome<Error, Model::DescribeSmartVerifyResult> DescribeSmartVerifyOutcome;
typedef std::future<DescribeSmartVerifyOutcome> DescribeSmartVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeSmartVerifyRequest&, const DescribeSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSmartVerifyAsyncHandler;
typedef Outcome<Error, Model::DescribeUpdatePackageResultResult> DescribeUpdatePackageResultOutcome;
typedef std::future<DescribeUpdatePackageResultOutcome> DescribeUpdatePackageResultOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeUpdatePackageResultRequest&, const DescribeUpdatePackageResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpdatePackageResultAsyncHandler;
@@ -190,6 +197,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InitFaceVerifyResult> InitFaceVerifyOutcome;
typedef std::future<InitFaceVerifyOutcome> InitFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitFaceVerifyRequest&, const InitFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitFaceVerifyAsyncHandler;
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
@@ -258,6 +268,9 @@ namespace AlibabaCloud
DescribeSdkUrlOutcome describeSdkUrl(const Model::DescribeSdkUrlRequest &request)const;
void describeSdkUrlAsync(const Model::DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSdkUrlOutcomeCallable describeSdkUrlCallable(const Model::DescribeSdkUrlRequest& request) const;
DescribeSmartVerifyOutcome describeSmartVerify(const Model::DescribeSmartVerifyRequest &request)const;
void describeSmartVerifyAsync(const Model::DescribeSmartVerifyRequest& request, const DescribeSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSmartVerifyOutcomeCallable describeSmartVerifyCallable(const Model::DescribeSmartVerifyRequest& request) const;
DescribeUpdatePackageResultOutcome describeUpdatePackageResult(const Model::DescribeUpdatePackageResultRequest &request)const;
void describeUpdatePackageResultAsync(const Model::DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUpdatePackageResultOutcomeCallable describeUpdatePackageResultCallable(const Model::DescribeUpdatePackageResultRequest& request) const;
@@ -303,6 +316,9 @@ namespace AlibabaCloud
InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const;
void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const;
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud 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.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartVerifyRequest : public RpcServiceRequest
{
public:
DescribeSmartVerifyRequest();
~DescribeSmartVerifyRequest();
long getSceneId()const;
void setSceneId(long sceneId);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
private:
long sceneId_;
std::string certifyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud 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.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartVerifyResult : public ServiceResult
{
public:
struct ResultObject
{
std::string passed;
std::string deviceToken;
std::string materialInfo;
std::string subCode;
};
DescribeSmartVerifyResult();
explicit DescribeSmartVerifyResult(const std::string &payload);
~DescribeSmartVerifyResult();
ResultObject getResultObject()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
ResultObject resultObject_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_

View File

@@ -49,8 +49,11 @@ namespace AlibabaCloud
std::string name;
};
std::string idCardName;
std::string faceGlobalUrl;
std::string faceQuality;
std::string idCardNumber;
std::vector<std::string> videoUrls;
bool faceMask;
IdCardInfo idCardInfo;
std::string faceImageUrl;
};

View File

@@ -47,10 +47,14 @@ namespace AlibabaCloud
void setDeviceToken(const std::string& deviceToken);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
std::string getWebUmidToken()const;
void setWebUmidToken(const std::string& webUmidToken);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getProduceNode()const;
void setProduceNode(const std::string& produceNode);
std::string getUaToken()const;
void setUaToken(const std::string& uaToken);
std::string getProductName()const;
void setProductName(const std::string& productName);
std::string getCertifyPrincipal()const;
@@ -65,8 +69,10 @@ namespace AlibabaCloud
std::string appVersion_;
std::string deviceToken_;
std::string certifyId_;
std::string webUmidToken_;
std::string outerOrderNo_;
std::string produceNode_;
std::string uaToken_;
std::string productName_;
std::string certifyPrincipal_;
std::string metaInfo_;

View File

@@ -39,9 +39,11 @@ namespace AlibabaCloud
std::string message;
std::string extParams;
std::string accessKeySecret;
std::string fileName;
std::string ossEndPoint;
std::string securityToken;
std::string bucketName;
std::string presignedUrl;
std::string retCode;
std::string fileNamePrefix;
std::string accessKeyId;

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct ResultObject
{
std::string certifyId;
std::string certifyUrl;
};

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud 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.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitSmartVerifyRequest : public RpcServiceRequest
{
public:
InitSmartVerifyRequest();
~InitSmartVerifyRequest();
std::string getIp()const;
void setIp(const std::string& ip);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getMode()const;
void setMode(const std::string& mode);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getCertType()const;
void setCertType(const std::string& certType);
long getSceneId()const;
void setSceneId(long sceneId);
std::string getMetaInfo()const;
void setMetaInfo(const std::string& metaInfo);
private:
std::string ip_;
std::string mobile_;
std::string userId_;
std::string mode_;
std::string outerOrderNo_;
std::string certType_;
long sceneId_;
std::string metaInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud 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.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitSmartVerifyResult : public ServiceResult
{
public:
struct ResultObject
{
std::string certifyId;
};
InitSmartVerifyResult();
explicit InitSmartVerifyResult(const std::string &payload);
~InitSmartVerifyResult();
ResultObject getResultObject()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
ResultObject resultObject_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_

View File

@@ -62,7 +62,6 @@ namespace AlibabaCloud
Material getMaterial()const;
float getAuthorityComparisionScore()const;
std::string getVerifyToken()const;
float getFaceComparisonScore()const;
float getIdCardFaceComparisonScore()const;
protected:
@@ -72,7 +71,6 @@ namespace AlibabaCloud
Material material_;
float authorityComparisionScore_;
std::string verifyToken_;
float faceComparisonScore_;
float idCardFaceComparisonScore_;
};