@alicloud/dytnsapi20200217 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +65 -0
- package/dist/client.js +552 -399
- package/dist/client.js.map +1 -1
- package/package.json +5 -5
- package/src/client.ts +168 -0
package/src/client.ts
CHANGED
|
@@ -2240,6 +2240,99 @@ export class QueryPhoneNumberOnlineTimeResponse extends $tea.Model {
|
|
|
2240
2240
|
}
|
|
2241
2241
|
}
|
|
2242
2242
|
|
|
2243
|
+
export class QueryPhoneTwiceTelVerifyRequest extends $tea.Model {
|
|
2244
|
+
authCode?: string;
|
|
2245
|
+
inputNumber?: string;
|
|
2246
|
+
mask?: string;
|
|
2247
|
+
ownerId?: number;
|
|
2248
|
+
resourceOwnerAccount?: string;
|
|
2249
|
+
resourceOwnerId?: number;
|
|
2250
|
+
startTime?: string;
|
|
2251
|
+
static names(): { [key: string]: string } {
|
|
2252
|
+
return {
|
|
2253
|
+
authCode: 'AuthCode',
|
|
2254
|
+
inputNumber: 'InputNumber',
|
|
2255
|
+
mask: 'Mask',
|
|
2256
|
+
ownerId: 'OwnerId',
|
|
2257
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
2258
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
2259
|
+
startTime: 'StartTime',
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
static types(): { [key: string]: any } {
|
|
2264
|
+
return {
|
|
2265
|
+
authCode: 'string',
|
|
2266
|
+
inputNumber: 'string',
|
|
2267
|
+
mask: 'string',
|
|
2268
|
+
ownerId: 'number',
|
|
2269
|
+
resourceOwnerAccount: 'string',
|
|
2270
|
+
resourceOwnerId: 'number',
|
|
2271
|
+
startTime: 'string',
|
|
2272
|
+
};
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
constructor(map?: { [key: string]: any }) {
|
|
2276
|
+
super(map);
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
export class QueryPhoneTwiceTelVerifyResponseBody extends $tea.Model {
|
|
2281
|
+
accessDeniedDetail?: string;
|
|
2282
|
+
code?: string;
|
|
2283
|
+
data?: QueryPhoneTwiceTelVerifyResponseBodyData;
|
|
2284
|
+
message?: string;
|
|
2285
|
+
requestId?: string;
|
|
2286
|
+
static names(): { [key: string]: string } {
|
|
2287
|
+
return {
|
|
2288
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
2289
|
+
code: 'Code',
|
|
2290
|
+
data: 'Data',
|
|
2291
|
+
message: 'Message',
|
|
2292
|
+
requestId: 'RequestId',
|
|
2293
|
+
};
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
static types(): { [key: string]: any } {
|
|
2297
|
+
return {
|
|
2298
|
+
accessDeniedDetail: 'string',
|
|
2299
|
+
code: 'string',
|
|
2300
|
+
data: QueryPhoneTwiceTelVerifyResponseBodyData,
|
|
2301
|
+
message: 'string',
|
|
2302
|
+
requestId: 'string',
|
|
2303
|
+
};
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
constructor(map?: { [key: string]: any }) {
|
|
2307
|
+
super(map);
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
export class QueryPhoneTwiceTelVerifyResponse extends $tea.Model {
|
|
2312
|
+
headers?: { [key: string]: string };
|
|
2313
|
+
statusCode?: number;
|
|
2314
|
+
body?: QueryPhoneTwiceTelVerifyResponseBody;
|
|
2315
|
+
static names(): { [key: string]: string } {
|
|
2316
|
+
return {
|
|
2317
|
+
headers: 'headers',
|
|
2318
|
+
statusCode: 'statusCode',
|
|
2319
|
+
body: 'body',
|
|
2320
|
+
};
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
static types(): { [key: string]: any } {
|
|
2324
|
+
return {
|
|
2325
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2326
|
+
statusCode: 'number',
|
|
2327
|
+
body: QueryPhoneTwiceTelVerifyResponseBody,
|
|
2328
|
+
};
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
constructor(map?: { [key: string]: any }) {
|
|
2332
|
+
super(map);
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2243
2336
|
export class QueryTagApplyRuleRequest extends $tea.Model {
|
|
2244
2337
|
ownerId?: number;
|
|
2245
2338
|
resourceOwnerAccount?: string;
|
|
@@ -3555,6 +3648,28 @@ export class QueryPhoneNumberOnlineTimeResponseBodyData extends $tea.Model {
|
|
|
3555
3648
|
}
|
|
3556
3649
|
}
|
|
3557
3650
|
|
|
3651
|
+
export class QueryPhoneTwiceTelVerifyResponseBodyData extends $tea.Model {
|
|
3652
|
+
carrierCode?: string;
|
|
3653
|
+
verifyResult?: number;
|
|
3654
|
+
static names(): { [key: string]: string } {
|
|
3655
|
+
return {
|
|
3656
|
+
carrierCode: 'CarrierCode',
|
|
3657
|
+
verifyResult: 'VerifyResult',
|
|
3658
|
+
};
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
static types(): { [key: string]: any } {
|
|
3662
|
+
return {
|
|
3663
|
+
carrierCode: 'string',
|
|
3664
|
+
verifyResult: 'number',
|
|
3665
|
+
};
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
constructor(map?: { [key: string]: any }) {
|
|
3669
|
+
super(map);
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3558
3673
|
export class QueryTagApplyRuleResponseBodyData extends $tea.Model {
|
|
3559
3674
|
applyMaterialDesc?: string;
|
|
3560
3675
|
autoAudit?: number;
|
|
@@ -5525,6 +5640,59 @@ export default class Client extends OpenApi {
|
|
|
5525
5640
|
return await this.queryPhoneNumberOnlineTimeWithOptions(request, runtime);
|
|
5526
5641
|
}
|
|
5527
5642
|
|
|
5643
|
+
async queryPhoneTwiceTelVerifyWithOptions(request: QueryPhoneTwiceTelVerifyRequest, runtime: $Util.RuntimeOptions): Promise<QueryPhoneTwiceTelVerifyResponse> {
|
|
5644
|
+
Util.validateModel(request);
|
|
5645
|
+
let query = { };
|
|
5646
|
+
if (!Util.isUnset(request.authCode)) {
|
|
5647
|
+
query["AuthCode"] = request.authCode;
|
|
5648
|
+
}
|
|
5649
|
+
|
|
5650
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
5651
|
+
query["InputNumber"] = request.inputNumber;
|
|
5652
|
+
}
|
|
5653
|
+
|
|
5654
|
+
if (!Util.isUnset(request.mask)) {
|
|
5655
|
+
query["Mask"] = request.mask;
|
|
5656
|
+
}
|
|
5657
|
+
|
|
5658
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
5659
|
+
query["OwnerId"] = request.ownerId;
|
|
5660
|
+
}
|
|
5661
|
+
|
|
5662
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
5663
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5664
|
+
}
|
|
5665
|
+
|
|
5666
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
5667
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5668
|
+
}
|
|
5669
|
+
|
|
5670
|
+
if (!Util.isUnset(request.startTime)) {
|
|
5671
|
+
query["StartTime"] = request.startTime;
|
|
5672
|
+
}
|
|
5673
|
+
|
|
5674
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5675
|
+
query: OpenApiUtil.query(query),
|
|
5676
|
+
});
|
|
5677
|
+
let params = new $OpenApi.Params({
|
|
5678
|
+
action: "QueryPhoneTwiceTelVerify",
|
|
5679
|
+
version: "2020-02-17",
|
|
5680
|
+
protocol: "HTTPS",
|
|
5681
|
+
pathname: "/",
|
|
5682
|
+
method: "POST",
|
|
5683
|
+
authType: "AK",
|
|
5684
|
+
style: "RPC",
|
|
5685
|
+
reqBodyType: "formData",
|
|
5686
|
+
bodyType: "json",
|
|
5687
|
+
});
|
|
5688
|
+
return $tea.cast<QueryPhoneTwiceTelVerifyResponse>(await this.callApi(params, req, runtime), new QueryPhoneTwiceTelVerifyResponse({}));
|
|
5689
|
+
}
|
|
5690
|
+
|
|
5691
|
+
async queryPhoneTwiceTelVerify(request: QueryPhoneTwiceTelVerifyRequest): Promise<QueryPhoneTwiceTelVerifyResponse> {
|
|
5692
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5693
|
+
return await this.queryPhoneTwiceTelVerifyWithOptions(request, runtime);
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5528
5696
|
async queryTagApplyRuleWithOptions(request: QueryTagApplyRuleRequest, runtime: $Util.RuntimeOptions): Promise<QueryTagApplyRuleResponse> {
|
|
5529
5697
|
Util.validateModel(request);
|
|
5530
5698
|
let query = { };
|