unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
54 lines (53 loc) • 1.63 kB
TypeScript
import { FromSchema } from 'json-schema-to-ts';
import { ApiTokenType } from '../../types/models/api-token';
export declare const apiTokenSchema: {
readonly $id: "#/components/schemas/apiTokenSchema";
readonly type: "object";
readonly additionalProperties: false;
readonly required: readonly ["username", "type"];
readonly properties: {
readonly secret: {
readonly type: "string";
};
readonly username: {
readonly type: "string";
};
readonly type: {
readonly type: "string";
readonly enum: ApiTokenType[];
};
readonly environment: {
readonly type: "string";
};
readonly project: {
readonly type: "string";
};
readonly projects: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
readonly expiresAt: {
readonly type: "string";
readonly format: "date-time";
readonly nullable: true;
};
readonly createdAt: {
readonly type: "string";
readonly format: "date-time";
readonly nullable: true;
};
readonly seenAt: {
readonly type: "string";
readonly format: "date-time";
readonly nullable: true;
};
readonly alias: {
readonly type: "string";
readonly nullable: true;
};
};
readonly components: {};
};
export declare type ApiTokenSchema = FromSchema<typeof apiTokenSchema>;