Repository navigation
Releases
Releases · loootai/looot-swift
0.1.0
First release.
- One
Loootclient for the looot REST API. Foundation only,asyncon every call. - Core methods:
catalogOverview,publicCatalog,publicCatalogItem,search,inspect,
run,runJob,getRun,listRuns,cancelRun,runAttempts,balance. - Extended methods:
discover,catalogEndpoints,comparePublicCatalog,whoami,
listTopUps,ledger,capabilityRequest,downloadMedia. - Helpers:
waitForRun(polls 1 s to 5 s) andallRuns(anAsyncThrowingStreamover every page). Codableresponse types that keep unknown keys through aJSONValueenum.LoootErrorfor every non-2xx answer, missing token, network error and timeout, withcode,
retryable,retryHint,retryAfterSecondsand the 402topUplink.- Retries 429, retryable 503s, network errors and timeouts twice by default with the same
idempotency key.maxRetries: 0turns them off. - Injectable
HTTPTransportso tests mock HTTP. The default usesURLSession. - Sends
User-Agent: looot-swift/0.1.0 swift/<version>and, withagent:,X-Looot-Agent.