Files
NapCatQQ/.pnpm-store/v3/files/0c/0892f69ddf5a51c4eabfe810c056a0bd526684b0e96eab1106facd7e7e868baf248f711d9b36998736fa67dbd2a4d854f1c0b3650dcdd178dcfeb48fa49dcc
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

50 lines
1.6 KiB
Plaintext

var Targets_1;
import { __decorate } from "tslib";
import { AsnProp, AsnType, AsnTypeTypes, AsnArray } from "@peculiar/asn1-schema";
import { GeneralName } from "@peculiar/asn1-x509";
import { IssuerSerial } from "./issuer_serial";
import { ObjectDigestInfo } from "./object_digest_info";
export class TargetCert {
constructor(params = {}) {
this.targetCertificate = new IssuerSerial();
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: IssuerSerial })
], TargetCert.prototype, "targetCertificate", void 0);
__decorate([
AsnProp({ type: GeneralName, optional: true })
], TargetCert.prototype, "targetName", void 0);
__decorate([
AsnProp({ type: ObjectDigestInfo, optional: true })
], TargetCert.prototype, "certDigestInfo", void 0);
let Target = class Target {
constructor(params = {}) {
Object.assign(this, params);
}
};
__decorate([
AsnProp({ type: GeneralName, context: 0, implicit: true })
], Target.prototype, "targetName", void 0);
__decorate([
AsnProp({ type: GeneralName, context: 1, implicit: true })
], Target.prototype, "targetGroup", void 0);
__decorate([
AsnProp({ type: TargetCert, context: 2, implicit: true })
], Target.prototype, "targetCert", void 0);
Target = __decorate([
AsnType({ type: AsnTypeTypes.Choice })
], Target);
export { Target };
let Targets = Targets_1 = class Targets extends AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, Targets_1.prototype);
}
};
Targets = Targets_1 = __decorate([
AsnType({ type: AsnTypeTypes.Sequence, itemType: Target })
], Targets);
export { Targets };