37 lines
854 B
JavaScript
37 lines
854 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.desc = void 0;
|
|
const Action_1 = require("./Action");
|
|
exports.desc = {
|
|
attributes: {
|
|
userId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
applicationId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "oauthApplication"
|
|
},
|
|
authorizedAt: {
|
|
notNull: true,
|
|
type: "datetime"
|
|
},
|
|
codeId: {
|
|
type: "ref",
|
|
ref: "oauthAuthorizationCode"
|
|
},
|
|
tokenId: {
|
|
type: "ref",
|
|
ref: "oauthToken"
|
|
},
|
|
usageState: {
|
|
type: "enum",
|
|
enumeration: ["granted", "denied", "revoked"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions: Action_1.actions
|
|
};
|