Skip to main content
Glama
UserControls.ts2.61 kB
/* tslint:disable */ /* eslint-disable */ /** * recraft.ai external api * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { ImageColor } from './ImageColor'; import { ImageColorFromJSON, ImageColorFromJSONTyped, ImageColorToJSON, ImageColorToJSONTyped, } from './ImageColor'; /** * * @export * @interface UserControls */ export interface UserControls { /** * * @type {number} * @memberof UserControls */ artisticLevel?: number; /** * * @type {ImageColor} * @memberof UserControls */ backgroundColor?: ImageColor; /** * * @type {Array<ImageColor>} * @memberof UserControls */ colors?: Array<ImageColor>; /** * * @type {boolean} * @memberof UserControls */ noText?: boolean; } /** * Check if a given object implements the UserControls interface. */ export function instanceOfUserControls(value: object): value is UserControls { return true; } export function UserControlsFromJSON(json: any): UserControls { return UserControlsFromJSONTyped(json, false); } export function UserControlsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserControls { if (json == null) { return json; } return { 'artisticLevel': json['artistic_level'] == null ? undefined : json['artistic_level'], 'backgroundColor': json['background_color'] == null ? undefined : ImageColorFromJSON(json['background_color']), 'colors': json['colors'] == null ? undefined : ((json['colors'] as Array<any>).map(ImageColorFromJSON)), 'noText': json['no_text'] == null ? undefined : json['no_text'], }; } export function UserControlsToJSON(json: any): UserControls { return UserControlsToJSONTyped(json, false); } export function UserControlsToJSONTyped(value?: UserControls | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'artistic_level': value['artisticLevel'], 'background_color': ImageColorToJSON(value['backgroundColor']), 'colors': value['colors'] == null ? undefined : ((value['colors'] as Array<any>).map(ImageColorToJSON)), 'no_text': value['noText'], }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/recraft-ai/mcp-recraft-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server