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

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

export interface CustomCredential {
    provider: Vapi.CustomCredentialProvider;
    /** This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. */
    authenticationPlan: Vapi.CustomCredentialAuthenticationPlan;
    /** This is the encryption plan for encrypting sensitive data. Currently supports public-key encryption. */
    encryptionPlan?: Vapi.CustomCredentialEncryptionPlan | undefined;
    /** This is the unique identifier for the credential. */
    id: string;
    /** This is the unique identifier for the org that this credential belongs to. */
    orgId: string;
    /** This is the ISO 8601 date-time string of when the credential was created. */
    createdAt: string;
    /** This is the ISO 8601 date-time string of when the assistant was last updated. */
    updatedAt: string;
    /** This is the authentication session for the credential. Available for credentials that have an authentication plan. */
    authenticationSession: Vapi.Oauth2AuthenticationSession;
    /** This is the name of credential. This is just for your reference. */
    name?: string | undefined;
}
