/* tslint:disable */ /* eslint-disable */ /** * ChatGPT Function * Backend for Azure OpenAI integrations * * The version of the OpenAPI document: v1.0.0 * * * 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 { Authorization } from './Authorization'; import { AuthorizationFromJSON, AuthorizationFromJSONTyped, AuthorizationToJSON, AuthorizationToJSONTyped, } from './Authorization'; import type { Event } from './Event'; import { EventFromJSON, EventFromJSONTyped, EventToJSON, EventToJSONTyped, } from './Event'; /** * * @export * @interface SlackEvent */ export interface SlackEvent { /** * * @type {string} * @memberof SlackEvent */ token?: string | null; /** * * @type {string} * @memberof SlackEvent */ teamId?: string | null; /** * * @type {string} * @memberof SlackEvent */ contextTeamId?: string | null; /** * * @type {object} * @memberof SlackEvent */ contextEnterpriseId?: object | null; /** * * @type {string} * @memberof SlackEvent */ apiAppId?: string | null; /** * * @type {Event} * @memberof SlackEvent */ event?: Event | null; /** * * @type {string} * @memberof SlackEvent */ type?: string | null; /** * * @type {string} * @memberof SlackEvent */ eventId?: string | null; /** * * @type {number} * @memberof SlackEvent */ eventTime?: number | null; /** * * @type {Array} * @memberof SlackEvent */ authorizations?: Array | null; /** * * @type {boolean} * @memberof SlackEvent */ isExtSharedChannel?: boolean | null; /** * * @type {string} * @memberof SlackEvent */ eventContext?: string | null; } /** * Check if a given object implements the SlackEvent interface. */ export function instanceOfSlackEvent(value: object): value is SlackEvent { return true; } export function SlackEventFromJSON(json: any): SlackEvent { return SlackEventFromJSONTyped(json, false); } export function SlackEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlackEvent { if (json == null) { return json; } return { 'token': json['token'] == null ? undefined : json['token'], 'teamId': json['team_id'] == null ? undefined : json['team_id'], 'contextTeamId': json['context_team_id'] == null ? undefined : json['context_team_id'], 'contextEnterpriseId': json['context_enterprise_id'] == null ? undefined : json['context_enterprise_id'], 'apiAppId': json['api_app_id'] == null ? undefined : json['api_app_id'], 'event': json['event'] == null ? undefined : EventFromJSON(json['event']), 'type': json['type'] == null ? undefined : json['type'], 'eventId': json['event_id'] == null ? undefined : json['event_id'], 'eventTime': json['event_time'] == null ? undefined : json['event_time'], 'authorizations': json['authorizations'] == null ? undefined : ((json['authorizations'] as Array).map(AuthorizationFromJSON)), 'isExtSharedChannel': json['is_ext_shared_channel'] == null ? undefined : json['is_ext_shared_channel'], 'eventContext': json['event_context'] == null ? undefined : json['event_context'], }; } export function SlackEventToJSON(json: any): SlackEvent { return SlackEventToJSONTyped(json, false); } export function SlackEventToJSONTyped(value?: SlackEvent | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'token': value['token'], 'team_id': value['teamId'], 'context_team_id': value['contextTeamId'], 'context_enterprise_id': value['contextEnterpriseId'], 'api_app_id': value['apiAppId'], 'event': EventToJSON(value['event']), 'type': value['type'], 'event_id': value['eventId'], 'event_time': value['eventTime'], 'authorizations': value['authorizations'] == null ? undefined : ((value['authorizations'] as Array).map(AuthorizationToJSON)), 'is_ext_shared_channel': value['isExtSharedChannel'], 'event_context': value['eventContext'], }; }