// This file was auto-generated by Fern from our API Definition.

import type * as Intercom from "../../../../../../index.js";

/**
 * @example
 *     {
 *         id: "123",
 *         admin_id: "12345",
 *         customer: {
 *             intercom_user_id: "6762f19b1bb69f9f2193bbd4"
 *         }
 *     }
 *
 * @example
 *     {
 *         id: "123",
 *         admin_id: "12345",
 *         customer: {
 *             intercom_user_id: "6762f19e1bb69f9f2193bbd5"
 *         }
 *     }
 */
export interface AttachContactToConversationRequest {
    /** The identifier for the conversation as given by Intercom. */
    id: string;
    /** The `id` of the admin who is adding the new participant. */
    admin_id?: string;
    customer?: AttachContactToConversationRequest.Customer;
}

export namespace AttachContactToConversationRequest {
    export type Customer =
        | {
              intercom_user_id: string;
              customer?: Intercom.unstable.CustomerRequest | undefined;
          }
        | {
              user_id: string;
              customer?: Intercom.unstable.CustomerRequest | undefined;
          }
        | {
              email: string;
              customer?: Intercom.unstable.CustomerRequest | undefined;
          };
}
