"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DsSigningJob = exports.Source = exports.SourceS3 = exports.RevocationRecord = exports.SignedObject = exports.SignedObjectS3 = void 0;
const core = __importStar(require("@terrascript/core"));
class SignedObjectS3 extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SignedObjectS3.prototype, "bucket", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SignedObjectS3.prototype, "key", void 0);
exports.SignedObjectS3 = SignedObjectS3;
class SignedObject extends core.Schema {
}
__decorate([
    core.attr(SignedObjectS3, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], SignedObject.prototype, "s3", void 0);
exports.SignedObject = SignedObject;
class RevocationRecord extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], RevocationRecord.prototype, "reason", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], RevocationRecord.prototype, "revokedAt", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], RevocationRecord.prototype, "revokedBy", void 0);
exports.RevocationRecord = RevocationRecord;
class SourceS3 extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SourceS3.prototype, "bucket", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SourceS3.prototype, "key", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], SourceS3.prototype, "version", void 0);
exports.SourceS3 = SourceS3;
class Source extends core.Schema {
}
__decorate([
    core.attr(SourceS3, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Source.prototype, "s3", void 0);
exports.Source = Source;
class DsSigningJob extends core.Data {
    constructor(name, args) {
        super(name, "aws_signer_signing_job", args);
    }
    getNamespace() {
        return "aws_signer";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "completedAt", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "createdAt", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "jobId", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "jobInvoker", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "jobOwner", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "platformDisplayName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "platformId", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "profileName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "profileVersion", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "requestedBy", void 0);
__decorate([
    core.attr(RevocationRecord, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "revocationRecord", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "signatureExpiresAt", void 0);
__decorate([
    core.attr(SignedObject, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "signedObject", void 0);
__decorate([
    core.attr(Source, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "source", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "status", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DsSigningJob.prototype, "statusReason", void 0);
exports.DsSigningJob = DsSigningJob;
//# sourceMappingURL=ds_signing_job.js.map