UNPKG

mailslurp-client

Version:

Official client for MailSlurp Email and SMS API. Create email addresses and phone numbers in Javascript without a mail server. Send and receive real emails in applications or tests.

104 lines (98 loc) 3.42 kB
/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { StructuredOutputSchema, StructuredOutputSchemaFromJSON, StructuredOutputSchemaFromJSONTyped, StructuredOutputSchemaToJSON, } from './'; /** * Options for generating structured content output from an attachment * @export * @interface GenerateStructuredContentAttachmentOptions */ export interface GenerateStructuredContentAttachmentOptions { /** * Attachment ID to read and pass to AI * @type {string} * @memberof GenerateStructuredContentAttachmentOptions */ attachmentId: string; /** * Optional instructions for the AI to follow. Try to be precise and clear. You can include examples and hints. * @type {string} * @memberof GenerateStructuredContentAttachmentOptions */ instructions?: string | null; /** * * @type {StructuredOutputSchema} * @memberof GenerateStructuredContentAttachmentOptions */ outputSchema?: StructuredOutputSchema | null; /** * ID of transformer to apply * @type {string} * @memberof GenerateStructuredContentAttachmentOptions */ transformId?: string | null; /** * Optional email ID for more context * @type {string} * @memberof GenerateStructuredContentAttachmentOptions */ emailId?: string | null; } export function GenerateStructuredContentAttachmentOptionsFromJSON( json: any ): GenerateStructuredContentAttachmentOptions { return GenerateStructuredContentAttachmentOptionsFromJSONTyped(json, false); } export function GenerateStructuredContentAttachmentOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): GenerateStructuredContentAttachmentOptions { if (json === undefined || json === null) { return json; } return { attachmentId: json['attachmentId'], instructions: !exists(json, 'instructions') ? undefined : json['instructions'], outputSchema: !exists(json, 'outputSchema') ? undefined : StructuredOutputSchemaFromJSON(json['outputSchema']), transformId: !exists(json, 'transformId') ? undefined : json['transformId'], emailId: !exists(json, 'emailId') ? undefined : json['emailId'], }; } export function GenerateStructuredContentAttachmentOptionsToJSON( value?: GenerateStructuredContentAttachmentOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { attachmentId: value.attachmentId, instructions: value.instructions, outputSchema: StructuredOutputSchemaToJSON(value.outputSchema), transformId: value.transformId, emailId: value.emailId, }; }