@cognigy/rest-api-client
Version:
Cognigy REST-Client
63 lines • 2.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.translationSettingsDataSchema = exports.translationProviders = void 0;
exports.translationProviders = [
"none",
"microsoft",
"google",
"deepl"
];
exports.translationSettingsDataSchema = {
title: "translationSettingsDataSchema",
type: ["object", "null"],
additionalProperties: false,
properties: {
provider: { type: ["string", "null"], enum: [...exports.translationProviders] },
connections: {
type: ["object", "null"],
properties: {
none: {
type: "object",
properties: {
connectionId: { type: ["string", "null"], format: "uuid" },
retries: { type: "number" },
timeout: { type: "number" },
cacheExpiry: { type: "number" },
customBaseUrl: { type: ["string", "null"] }
}
},
deepl: {
type: "object",
properties: {
connectionId: { type: ["string", "null"], format: "uuid" },
retries: { type: "number" },
timeout: { type: "number" },
cacheExpiry: { type: "number" },
customBaseUrl: { type: ["string", "null"] }
}
},
microsoft: {
type: "object",
properties: {
connectionId: { type: ["string", "null"], format: "uuid" },
retries: { type: "number" },
timeout: { type: "number" },
cacheExpiry: { type: "number" },
customBaseUrl: { type: ["string", "null"] }
}
},
google: {
type: "object",
properties: {
connectionId: { type: ["string", "null"], format: "uuid" },
retries: { type: "number" },
timeout: { type: "number" },
cacheExpiry: { type: "number" },
customBaseUrl: { type: ["string", "null"] }
}
}
}
}
}
};
//# sourceMappingURL=ITranslationSettings.js.map