/* 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'; /** * * @export * @interface Authorization */ export interface Authorization { /** * * @type {object} * @memberof Authorization */ enterpriseId?: object | null; /** * * @type {string} * @memberof Authorization */ teamId?: string | null; /** * * @type {string} * @memberof Authorization */ userId?: string | null; /** * * @type {boolean} * @memberof Authorization */ isBot?: boolean | null; /** * * @type {boolean} * @memberof Authorization */ isEnterpriseInstall?: boolean | null; } /** * Check if a given object implements the Authorization interface. */ export function instanceOfAuthorization(value: object): value is Authorization { return true; } export function AuthorizationFromJSON(json: any): Authorization { return AuthorizationFromJSONTyped(json, false); } export function AuthorizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Authorization { if (json == null) { return json; } return { 'enterpriseId': json['enterprise_id'] == null ? undefined : json['enterprise_id'], 'teamId': json['team_id'] == null ? undefined : json['team_id'], 'userId': json['user_id'] == null ? undefined : json['user_id'], 'isBot': json['is_bot'] == null ? undefined : json['is_bot'], 'isEnterpriseInstall': json['is_enterprise_install'] == null ? undefined : json['is_enterprise_install'], }; } export function AuthorizationToJSON(json: any): Authorization { return AuthorizationToJSONTyped(json, false); } export function AuthorizationToJSONTyped(value?: Authorization | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'enterprise_id': value['enterpriseId'], 'team_id': value['teamId'], 'user_id': value['userId'], 'is_bot': value['isBot'], 'is_enterprise_install': value['isEnterpriseInstall'], }; }