Circle V2 API Docs
    Preparing search index...
    create: MutationProcedure<
        {
            input: {
                integration?: | {
                    credentials: {
                        app_id: string;
                        location_id: number;
                        location_name?: string;
                    };
                    type: "kipu";
                }
                | {
                    credentials: {
                        bearer_token: string;
                        location_ids: number[];
                        location_name?: string;
                    };
                    type: "lightningstep";
                }
                | {
                    credentials: {
                        api_id: string;
                        api_secret: string;
                        location_name?: string;
                        realm_id: string;
                        service_facility_id: number;
                        sunwave_email: string;
                    };
                    type: "sunwave";
                };
                name: string;
            };
            meta: object;
            output: | {
                created_at: DbDate;
                entity_id: number & { __brand: "EntityId" };
                id: FacilityId;
                name: string;
                timezone: string | null;
                updated_at: DbDate;
            }
            | {
                facility: {
                    created_at: DbDate;
                    entity_id: number & { __brand: "EntityId" };
                    id: FacilityId;
                    name: string;
                    timezone: string | null;
                    updated_at: DbDate;
                };
                integration: {
                    created_at: DbDate;
                    created_by: string
                    | null;
                    credentials:
                        | {
                            access_id: string;
                            app_id: string;
                            location_id: number;
                            location_name?: string;
                            secret_key: string;
                        }
                        | {
                            bearer_token: string;
                            location_ids: number[];
                            location_name?: string;
                        }
                        | {
                            api_id: string;
                            api_secret: string;
                            location_name?: string;
                            realm_id: string;
                            service_facility_id: number;
                            sunwave_email: string;
                        };
                    entity_id: number & { __brand: "EntityId" };
                    facility_id: FacilityId | null;
                    id: IntegrationId;
                    label: string | null;
                    last_sync: string | null;
                    status: "active" | "inactive" | "error";
                    type: "kipu" | "lightningstep" | "sunwave";
                    updated_at: DbDate;
                };
            };
        },
    > = ...