@cognigy/rest-api-client
Version:
Cognigy REST-Client
60 lines • 2.32 kB
JavaScript
export const translationProviders = [
"none",
"microsoft",
"google",
"deepl"
];
export const translationSettingsDataSchema = {
title: "translationSettingsDataSchema",
type: ["object", "null"],
additionalProperties: false,
properties: {
provider: { type: ["string", "null"], enum: [...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