@alicloud/cas20200407 1.0.7 → 1.0.8

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 CHANGED
@@ -224,6 +224,112 @@ export declare class CreateCertificateWithCsrRequestResponse extends $tea.Model
224
224
  [key: string]: any;
225
225
  });
226
226
  }
227
+ export declare class CreateWHClientCertificateRequest extends $tea.Model {
228
+ afterTime?: number;
229
+ algorithm?: string;
230
+ beforeTime?: number;
231
+ commonName?: string;
232
+ country?: string;
233
+ csr?: string;
234
+ days?: number;
235
+ immediately?: number;
236
+ locality?: string;
237
+ months?: number;
238
+ organization?: string;
239
+ organizationUnit?: string;
240
+ parentIdentifier?: string;
241
+ sanType?: number;
242
+ sanValue?: string;
243
+ state?: string;
244
+ years?: number;
245
+ static names(): {
246
+ [key: string]: string;
247
+ };
248
+ static types(): {
249
+ [key: string]: any;
250
+ };
251
+ constructor(map?: {
252
+ [key: string]: any;
253
+ });
254
+ }
255
+ export declare class CreateWHClientCertificateResponseBody extends $tea.Model {
256
+ certificateChain?: string;
257
+ identifier?: string;
258
+ parentX509Certificate?: string;
259
+ requestId?: string;
260
+ rootX509Certificate?: string;
261
+ x509Certificate?: string;
262
+ static names(): {
263
+ [key: string]: string;
264
+ };
265
+ static types(): {
266
+ [key: string]: any;
267
+ };
268
+ constructor(map?: {
269
+ [key: string]: any;
270
+ });
271
+ }
272
+ export declare class CreateWHClientCertificateResponse extends $tea.Model {
273
+ headers: {
274
+ [key: string]: string;
275
+ };
276
+ statusCode: number;
277
+ body: CreateWHClientCertificateResponseBody;
278
+ static names(): {
279
+ [key: string]: string;
280
+ };
281
+ static types(): {
282
+ [key: string]: any;
283
+ };
284
+ constructor(map?: {
285
+ [key: string]: any;
286
+ });
287
+ }
288
+ export declare class DecryptRequest extends $tea.Model {
289
+ algorithm?: string;
290
+ certIdentifier?: string;
291
+ ciphertextBlob?: string;
292
+ messageType?: string;
293
+ static names(): {
294
+ [key: string]: string;
295
+ };
296
+ static types(): {
297
+ [key: string]: any;
298
+ };
299
+ constructor(map?: {
300
+ [key: string]: any;
301
+ });
302
+ }
303
+ export declare class DecryptResponseBody extends $tea.Model {
304
+ certIdentifier?: string;
305
+ plaintext?: string;
306
+ requestId?: string;
307
+ static names(): {
308
+ [key: string]: string;
309
+ };
310
+ static types(): {
311
+ [key: string]: any;
312
+ };
313
+ constructor(map?: {
314
+ [key: string]: any;
315
+ });
316
+ }
317
+ export declare class DecryptResponse extends $tea.Model {
318
+ headers: {
319
+ [key: string]: string;
320
+ };
321
+ statusCode: number;
322
+ body: DecryptResponseBody;
323
+ static names(): {
324
+ [key: string]: string;
325
+ };
326
+ static types(): {
327
+ [key: string]: any;
328
+ };
329
+ constructor(map?: {
330
+ [key: string]: any;
331
+ });
332
+ }
227
333
  export declare class DeleteCertificateRequestRequest extends $tea.Model {
228
334
  orderId?: number;
229
335
  static names(): {
@@ -304,6 +410,46 @@ export declare class DeletePCACertResponse extends $tea.Model {
304
410
  [key: string]: any;
305
411
  });
306
412
  }
413
+ export declare class DeleteUserCertificateRequest extends $tea.Model {
414
+ certId?: number;
415
+ static names(): {
416
+ [key: string]: string;
417
+ };
418
+ static types(): {
419
+ [key: string]: any;
420
+ };
421
+ constructor(map?: {
422
+ [key: string]: any;
423
+ });
424
+ }
425
+ export declare class DeleteUserCertificateResponseBody extends $tea.Model {
426
+ requestId?: string;
427
+ static names(): {
428
+ [key: string]: string;
429
+ };
430
+ static types(): {
431
+ [key: string]: any;
432
+ };
433
+ constructor(map?: {
434
+ [key: string]: any;
435
+ });
436
+ }
437
+ export declare class DeleteUserCertificateResponse extends $tea.Model {
438
+ headers: {
439
+ [key: string]: string;
440
+ };
441
+ statusCode: number;
442
+ body: DeleteUserCertificateResponseBody;
443
+ static names(): {
444
+ [key: string]: string;
445
+ };
446
+ static types(): {
447
+ [key: string]: any;
448
+ };
449
+ constructor(map?: {
450
+ [key: string]: any;
451
+ });
452
+ }
307
453
  export declare class DescribeCertificateStateRequest extends $tea.Model {
308
454
  orderId?: number;
309
455
  static names(): {
@@ -398,10 +544,142 @@ export declare class DescribePackageStateResponse extends $tea.Model {
398
544
  [key: string]: any;
399
545
  });
400
546
  }
547
+ export declare class EncryptRequest extends $tea.Model {
548
+ algorithm?: string;
549
+ certIdentifier?: string;
550
+ messageType?: string;
551
+ plaintext?: string;
552
+ static names(): {
553
+ [key: string]: string;
554
+ };
555
+ static types(): {
556
+ [key: string]: any;
557
+ };
558
+ constructor(map?: {
559
+ [key: string]: any;
560
+ });
561
+ }
562
+ export declare class EncryptResponseBody extends $tea.Model {
563
+ certIdentifier?: string;
564
+ ciphertextBlob?: string;
565
+ requestId?: string;
566
+ static names(): {
567
+ [key: string]: string;
568
+ };
569
+ static types(): {
570
+ [key: string]: any;
571
+ };
572
+ constructor(map?: {
573
+ [key: string]: any;
574
+ });
575
+ }
576
+ export declare class EncryptResponse extends $tea.Model {
577
+ headers: {
578
+ [key: string]: string;
579
+ };
580
+ statusCode: number;
581
+ body: EncryptResponseBody;
582
+ static names(): {
583
+ [key: string]: string;
584
+ };
585
+ static types(): {
586
+ [key: string]: any;
587
+ };
588
+ constructor(map?: {
589
+ [key: string]: any;
590
+ });
591
+ }
592
+ export declare class GetCertWarehouseQuotaResponseBody extends $tea.Model {
593
+ requestId?: string;
594
+ totalQuota?: number;
595
+ useCount?: number;
596
+ static names(): {
597
+ [key: string]: string;
598
+ };
599
+ static types(): {
600
+ [key: string]: any;
601
+ };
602
+ constructor(map?: {
603
+ [key: string]: any;
604
+ });
605
+ }
606
+ export declare class GetCertWarehouseQuotaResponse extends $tea.Model {
607
+ headers: {
608
+ [key: string]: string;
609
+ };
610
+ statusCode: number;
611
+ body: GetCertWarehouseQuotaResponseBody;
612
+ static names(): {
613
+ [key: string]: string;
614
+ };
615
+ static types(): {
616
+ [key: string]: any;
617
+ };
618
+ constructor(map?: {
619
+ [key: string]: any;
620
+ });
621
+ }
622
+ export declare class GetUserCertificateDetailRequest extends $tea.Model {
623
+ certId?: number;
624
+ static names(): {
625
+ [key: string]: string;
626
+ };
627
+ static types(): {
628
+ [key: string]: any;
629
+ };
630
+ constructor(map?: {
631
+ [key: string]: any;
632
+ });
633
+ }
634
+ export declare class GetUserCertificateDetailResponseBody extends $tea.Model {
635
+ buyInAliyun?: boolean;
636
+ cert?: string;
637
+ city?: string;
638
+ common?: string;
639
+ country?: string;
640
+ endDate?: string;
641
+ expired?: boolean;
642
+ fingerprint?: string;
643
+ id?: number;
644
+ issuer?: string;
645
+ key?: string;
646
+ name?: string;
647
+ orgName?: string;
648
+ province?: string;
649
+ requestId?: string;
650
+ sans?: string;
651
+ startDate?: string;
652
+ static names(): {
653
+ [key: string]: string;
654
+ };
655
+ static types(): {
656
+ [key: string]: any;
657
+ };
658
+ constructor(map?: {
659
+ [key: string]: any;
660
+ });
661
+ }
662
+ export declare class GetUserCertificateDetailResponse extends $tea.Model {
663
+ headers: {
664
+ [key: string]: string;
665
+ };
666
+ statusCode: number;
667
+ body: GetUserCertificateDetailResponseBody;
668
+ static names(): {
669
+ [key: string]: string;
670
+ };
671
+ static types(): {
672
+ [key: string]: any;
673
+ };
674
+ constructor(map?: {
675
+ [key: string]: any;
676
+ });
677
+ }
401
678
  export declare class ListCertRequest extends $tea.Model {
402
679
  currentPage?: number;
403
680
  keyWord?: string;
404
681
  showSize?: number;
682
+ sourceType?: string;
405
683
  status?: string;
406
684
  warehouseId?: number;
407
685
  static names(): {
@@ -584,6 +862,46 @@ export declare class RenewCertificateOrderForPackageRequestResponse extends $tea
584
862
  [key: string]: any;
585
863
  });
586
864
  }
865
+ export declare class RevokeWHClientCertificateRequest extends $tea.Model {
866
+ identifier?: string;
867
+ static names(): {
868
+ [key: string]: string;
869
+ };
870
+ static types(): {
871
+ [key: string]: any;
872
+ };
873
+ constructor(map?: {
874
+ [key: string]: any;
875
+ });
876
+ }
877
+ export declare class RevokeWHClientCertificateResponseBody extends $tea.Model {
878
+ requestId?: string;
879
+ static names(): {
880
+ [key: string]: string;
881
+ };
882
+ static types(): {
883
+ [key: string]: any;
884
+ };
885
+ constructor(map?: {
886
+ [key: string]: any;
887
+ });
888
+ }
889
+ export declare class RevokeWHClientCertificateResponse extends $tea.Model {
890
+ headers: {
891
+ [key: string]: string;
892
+ };
893
+ statusCode: number;
894
+ body: RevokeWHClientCertificateResponseBody;
895
+ static names(): {
896
+ [key: string]: string;
897
+ };
898
+ static types(): {
899
+ [key: string]: any;
900
+ };
901
+ constructor(map?: {
902
+ [key: string]: any;
903
+ });
904
+ }
587
905
  export declare class SignRequest extends $tea.Model {
588
906
  certIdentifier?: string;
589
907
  message?: string;
@@ -644,6 +962,7 @@ export declare class UploadPCACertRequest extends $tea.Model {
644
962
  });
645
963
  }
646
964
  export declare class UploadPCACertResponseBody extends $tea.Model {
965
+ identifier?: string;
647
966
  requestId?: string;
648
967
  static names(): {
649
968
  [key: string]: string;
@@ -671,6 +990,53 @@ export declare class UploadPCACertResponse extends $tea.Model {
671
990
  [key: string]: any;
672
991
  });
673
992
  }
993
+ export declare class UploadUserCertificateRequest extends $tea.Model {
994
+ cert?: string;
995
+ encryptCert?: string;
996
+ encryptPrivateKey?: string;
997
+ key?: string;
998
+ name?: string;
999
+ signCert?: string;
1000
+ signPrivateKey?: string;
1001
+ static names(): {
1002
+ [key: string]: string;
1003
+ };
1004
+ static types(): {
1005
+ [key: string]: any;
1006
+ };
1007
+ constructor(map?: {
1008
+ [key: string]: any;
1009
+ });
1010
+ }
1011
+ export declare class UploadUserCertificateResponseBody extends $tea.Model {
1012
+ certId?: number;
1013
+ requestId?: string;
1014
+ static names(): {
1015
+ [key: string]: string;
1016
+ };
1017
+ static types(): {
1018
+ [key: string]: any;
1019
+ };
1020
+ constructor(map?: {
1021
+ [key: string]: any;
1022
+ });
1023
+ }
1024
+ export declare class UploadUserCertificateResponse extends $tea.Model {
1025
+ headers: {
1026
+ [key: string]: string;
1027
+ };
1028
+ statusCode: number;
1029
+ body: UploadUserCertificateResponseBody;
1030
+ static names(): {
1031
+ [key: string]: string;
1032
+ };
1033
+ static types(): {
1034
+ [key: string]: any;
1035
+ };
1036
+ constructor(map?: {
1037
+ [key: string]: any;
1038
+ });
1039
+ }
674
1040
  export declare class VerifyRequest extends $tea.Model {
675
1041
  certIdentifier?: string;
676
1042
  message?: string;
@@ -764,18 +1130,34 @@ export declare class ListUserCertificateOrderResponseBodyCertificateOrderList ex
764
1130
  certEndTime?: number;
765
1131
  certStartTime?: number;
766
1132
  certType?: string;
1133
+ certificateId?: number;
1134
+ city?: string;
1135
+ commonName?: string;
1136
+ country?: string;
767
1137
  domain?: string;
768
1138
  domainCount?: number;
769
1139
  domainType?: string;
1140
+ endDate?: string;
1141
+ expired?: boolean;
1142
+ fingerprint?: string;
770
1143
  instanceId?: string;
1144
+ issuer?: string;
1145
+ name?: string;
771
1146
  orderId?: number;
1147
+ orgName?: string;
772
1148
  partnerOrderId?: string;
773
1149
  productCode?: string;
774
1150
  productName?: string;
1151
+ province?: string;
775
1152
  rootBrand?: string;
1153
+ sans?: string;
1154
+ serialNo?: string;
1155
+ sha2?: string;
776
1156
  sourceType?: string;
1157
+ startDate?: string;
777
1158
  status?: string;
778
1159
  trusteeStatus?: string;
1160
+ upload?: boolean;
779
1161
  wildDomainCount?: number;
780
1162
  static names(): {
781
1163
  [key: string]: string;
@@ -802,14 +1184,26 @@ export default class Client extends OpenApi {
802
1184
  createCertificateRequest(request: CreateCertificateRequestRequest): Promise<CreateCertificateRequestResponse>;
803
1185
  createCertificateWithCsrRequestWithOptions(request: CreateCertificateWithCsrRequestRequest, runtime: $Util.RuntimeOptions): Promise<CreateCertificateWithCsrRequestResponse>;
804
1186
  createCertificateWithCsrRequest(request: CreateCertificateWithCsrRequestRequest): Promise<CreateCertificateWithCsrRequestResponse>;
1187
+ createWHClientCertificateWithOptions(request: CreateWHClientCertificateRequest, runtime: $Util.RuntimeOptions): Promise<CreateWHClientCertificateResponse>;
1188
+ createWHClientCertificate(request: CreateWHClientCertificateRequest): Promise<CreateWHClientCertificateResponse>;
1189
+ decryptWithOptions(request: DecryptRequest, runtime: $Util.RuntimeOptions): Promise<DecryptResponse>;
1190
+ decrypt(request: DecryptRequest): Promise<DecryptResponse>;
805
1191
  deleteCertificateRequestWithOptions(request: DeleteCertificateRequestRequest, runtime: $Util.RuntimeOptions): Promise<DeleteCertificateRequestResponse>;
806
1192
  deleteCertificateRequest(request: DeleteCertificateRequestRequest): Promise<DeleteCertificateRequestResponse>;
807
1193
  deletePCACertWithOptions(request: DeletePCACertRequest, runtime: $Util.RuntimeOptions): Promise<DeletePCACertResponse>;
808
1194
  deletePCACert(request: DeletePCACertRequest): Promise<DeletePCACertResponse>;
1195
+ deleteUserCertificateWithOptions(request: DeleteUserCertificateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteUserCertificateResponse>;
1196
+ deleteUserCertificate(request: DeleteUserCertificateRequest): Promise<DeleteUserCertificateResponse>;
809
1197
  describeCertificateStateWithOptions(request: DescribeCertificateStateRequest, runtime: $Util.RuntimeOptions): Promise<DescribeCertificateStateResponse>;
810
1198
  describeCertificateState(request: DescribeCertificateStateRequest): Promise<DescribeCertificateStateResponse>;
811
1199
  describePackageStateWithOptions(request: DescribePackageStateRequest, runtime: $Util.RuntimeOptions): Promise<DescribePackageStateResponse>;
812
1200
  describePackageState(request: DescribePackageStateRequest): Promise<DescribePackageStateResponse>;
1201
+ encryptWithOptions(request: EncryptRequest, runtime: $Util.RuntimeOptions): Promise<EncryptResponse>;
1202
+ encrypt(request: EncryptRequest): Promise<EncryptResponse>;
1203
+ getCertWarehouseQuotaWithOptions(runtime: $Util.RuntimeOptions): Promise<GetCertWarehouseQuotaResponse>;
1204
+ getCertWarehouseQuota(): Promise<GetCertWarehouseQuotaResponse>;
1205
+ getUserCertificateDetailWithOptions(request: GetUserCertificateDetailRequest, runtime: $Util.RuntimeOptions): Promise<GetUserCertificateDetailResponse>;
1206
+ getUserCertificateDetail(request: GetUserCertificateDetailRequest): Promise<GetUserCertificateDetailResponse>;
813
1207
  listCertWithOptions(request: ListCertRequest, runtime: $Util.RuntimeOptions): Promise<ListCertResponse>;
814
1208
  listCert(request: ListCertRequest): Promise<ListCertResponse>;
815
1209
  listCertWarehouseWithOptions(request: ListCertWarehouseRequest, runtime: $Util.RuntimeOptions): Promise<ListCertWarehouseResponse>;
@@ -818,10 +1212,14 @@ export default class Client extends OpenApi {
818
1212
  listUserCertificateOrder(request: ListUserCertificateOrderRequest): Promise<ListUserCertificateOrderResponse>;
819
1213
  renewCertificateOrderForPackageRequestWithOptions(request: RenewCertificateOrderForPackageRequestRequest, runtime: $Util.RuntimeOptions): Promise<RenewCertificateOrderForPackageRequestResponse>;
820
1214
  renewCertificateOrderForPackageRequest(request: RenewCertificateOrderForPackageRequestRequest): Promise<RenewCertificateOrderForPackageRequestResponse>;
1215
+ revokeWHClientCertificateWithOptions(request: RevokeWHClientCertificateRequest, runtime: $Util.RuntimeOptions): Promise<RevokeWHClientCertificateResponse>;
1216
+ revokeWHClientCertificate(request: RevokeWHClientCertificateRequest): Promise<RevokeWHClientCertificateResponse>;
821
1217
  signWithOptions(request: SignRequest, runtime: $Util.RuntimeOptions): Promise<SignResponse>;
822
1218
  sign(request: SignRequest): Promise<SignResponse>;
823
1219
  uploadPCACertWithOptions(request: UploadPCACertRequest, runtime: $Util.RuntimeOptions): Promise<UploadPCACertResponse>;
824
1220
  uploadPCACert(request: UploadPCACertRequest): Promise<UploadPCACertResponse>;
1221
+ uploadUserCertificateWithOptions(request: UploadUserCertificateRequest, runtime: $Util.RuntimeOptions): Promise<UploadUserCertificateResponse>;
1222
+ uploadUserCertificate(request: UploadUserCertificateRequest): Promise<UploadUserCertificateResponse>;
825
1223
  verifyWithOptions(request: VerifyRequest, runtime: $Util.RuntimeOptions): Promise<VerifyResponse>;
826
1224
  verify(request: VerifyRequest): Promise<VerifyResponse>;
827
1225
  }