Client

class Client(val cfg: SdkConfig, transport: VmodalTransport = HttpUrlConnectionTransport(cfg), signedUploads: SignedUploadTransport = OkHttpSignedUploadTransport(cfg.timeoutMillis.toLong()).withDiagnostics(cfg.diagnostics))

Main SDK entry point and owner of resource clients.

Blocking calls must run on a worker thread. Inject transports for tests or custom integrations; the client does not own externally supplied transports.

Constructors

Link copied to clipboard
constructor(cfg: SdkConfig, transport: VmodalTransport = HttpUrlConnectionTransport(cfg), signedUploads: SignedUploadTransport = OkHttpSignedUploadTransport(cfg.timeoutMillis.toLong()).withDiagnostics(cfg.diagnostics))
constructor(baseUrl: String = PUBLIC_GATEWAY_URL, userId: String = "", tenantId: String = "", email: String = "", token: String = "", timeoutMillis: Int, maxRetries: Int = 1, transport: VmodalTransport? = null, signedUploads: SignedUploadTransport? = null, apiKeyProvider: ApiKeyProvider? = null)

Builds a gateway client from explicit connection and identity fields.

Types

Link copied to clipboard
object Companion

Factories for environment and trusted-direct configuration.

Properties

Link copied to clipboard

administrative reporting operations

Link copied to clipboard

authentication operations

Link copied to clipboard

validated client configuration

Link copied to clipboard

collection and upload operations

Link copied to clipboard

disabled legacy Google Drive operations

Link copied to clipboard

low-level request facade

Link copied to clipboard

image retrieval operations

Link copied to clipboard

index lifecycle operations

Link copied to clipboard

object-storage signing operations

Link copied to clipboard

multimodal search operations

Link copied to clipboard

disabled legacy SQL operations

Functions

Link copied to clipboard
fun authCheck(userId: String = ""): Boolean

Returns whether authenticated access succeeds. This call blocks.

Link copied to clipboard
fun coroutines(dispatcher: CoroutineDispatcher = Dispatchers.IO): CoroutineClient

Returns a lightweight coroutine facade over this client.

Link copied to clipboard

Checks service availability. This call blocks.