@cognigy/rest-api-client
Version:
Cognigy REST-Client
20 lines • 896 B
JavaScript
/* Custom Modules */
import { createQuerySchema } from "../helper/createQuerySchema";
export const apiKeySchema = {
title: "apiKeyDataSchema",
type: "object",
additionalProperties: false,
properties: {
_id: { type: "string", format: "mongo-id" },
createdAt: { type: "integer", format: "timestamp" },
name: { type: "string", format: "resource-name" },
apiKey: { type: "string", format: "alphanum-64" },
organisationReference: { type: "string", format: "mongo-id" },
userReference: { type: "string", format: "mongo-id" },
ttl: { type: "integer", maximum: 3 * 365 * 24 * 60 * 60 * 1000, minimum: 0 },
expiresAt: { type: "object" },
schemaVersion: { type: "integer", minimum: 1 },
}
};
export const apiKeyQuerySchema = createQuerySchema("apiKeyQuerySchema", apiKeySchema);
//# sourceMappingURL=IApiKey.js.map