---
title: "RPC: ImportSession"
description: "3 entries."
canonical: "https://klav.everdoc.dev/main/reference/rpc/importsession"
channel: "main"
---

# RPC: ImportSession

> OmarAlex24/klav · channel `main` · main @ [`fe8e2a0c8c24`](https://github.com/OmarAlex24/klav/tree/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92) · 2026-12-05 · generated by Everdoc from source (no LLM).

3 entries.

<a id="rpc-importsession-add"></a>

## `ImportSession.add`

Reads a file (or the text of a QR code) and adds what it holds. `from` is what the person chose (`bitwarden`, `google`…); the content is checked against it. Errors carry no values.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/import.rs:101](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/import.rs#L101)
- Handlers: 1 · Callers: 37
- Method: `add` · transport uniffi
- Used at: [apps/ios/Credentials/CredentialModel.swift:251](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Credentials/CredentialModel.swift#L251), [apps/ios/Klav/ImportView.swift:641](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ImportView.swift#L641), [apps/ios/Klav/ImportView.swift:669](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ImportView.swift#L669), [apps/ios/Klav/ImportView.swift:677](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ImportView.swift#L677), [apps/ios/Mac/Development/AddMcpServer.swift:565](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AddMcpServer.swift#L565), … +32

<a id="rpc-importsession-new"></a>

## `ImportSession.new`

An empty import.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/import.rs:91](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/import.rs#L91)
- Handlers: 1 · Callers: 2
- Method: `new` · transport uniffi
- Used at: [apps/ios/Mac/Development/IssuerProfiles.swift:244](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/IssuerProfiles.swift#L244), [apps/ios/Mac/Development/IssuerProfiles.swift:245](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/IssuerProfiles.swift#L245)

<a id="rpc-importsession-state"></a>

## `ImportSession.state`

The files so far.

- Kind: rpc
- Workspace: [klav-ffi](../../architecture/klav-ffi.md)
- Source: [crates/klav-ffi/src/import.rs:116](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/crates/klav-ffi/src/import.rs#L116)
- Handlers: 1 · Callers: 20
- Method: `state` · transport uniffi
- Used at: [apps/ios/Klav/AppModel.swift:777](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/AppModel.swift#L777), [apps/ios/Klav/IdentityStore.swift:10](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/IdentityStore.swift#L10), [apps/ios/Klav/ImportView.swift:642](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Klav/ImportView.swift#L642), [apps/ios/Mac/Development/AgentPage.swift:155](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentPage.swift#L155), [apps/ios/Mac/Development/AgentsPane.swift:148](https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/apps/ios/Mac/Development/AgentsPane.swift#L148), … +15
