@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias AiPriseBusinessProfileData

    Structural subset of the AiPrise GET /verify/get_business_profile response (BusinessProfile). The data column stores the ENTIRE raw payload; this type names only the fields we extract or sync-guard on.

    The full OpenAPI-generated type lives in @cfxlabsinc/clients (packages/clients/src/aiprise/aiprise.d.ts) and is refined in aiprise-services — db cannot depend on clients (clients depends on db). All fields are optional so the generated BusinessProfile type is assignable to this one.

    type AiPriseBusinessProfileData = {
        business_profile_id?: string;
        business_profile_result?:
            | "APPROVED"
            | "DECLINED"
            | "REVIEW"
            | "UNKNOWN"
            | "DEACTIVATED"
            | "FOUND"
            | "NOT_FOUND";
        client_reference_id?: string
        | null;
        created_at?: number;
        formation_date?: string;
        lifecycle_status?: string;
        name?: string;
        registration_info?: { formation_date?: string | null };
        updated_at?: number;
    }
    Index
    business_profile_id?: string
    business_profile_result?:
        | "APPROVED"
        | "DECLINED"
        | "REVIEW"
        | "UNKNOWN"
        | "DEACTIVATED"
        | "FOUND"
        | "NOT_FOUND"

    The generated union reuses AiPrise's shared result enum, so it also carries FOUND/NOT_FOUND (lookup-only values), while the docs list DEACTIVATED for profiles. The result column stores only the profile statuses — extraction guards the rest to null.

    client_reference_id?: string | null
    created_at?: number
    formation_date?: string
    lifecycle_status?: string

    Documented by AiPrise but missing from the generated OpenAPI type.

    name?: string
    registration_info?: { formation_date?: string | null }
    updated_at?: number