Types
GetProviderResponse = object
- List of providers
Procs
proc getProvider(client: OpencodeClient; directory: string = default(string); workspace: string = default(string)): Future[ GetProviderResponse] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Get a list of all available AI providers, including both available and connected ones.
proc getProviderAuth(client: OpencodeClient; directory: string = default(string); workspace: string = default(string)): Future[JsonNode] {. ...stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Retrieve available authentication methods for all AI providers.
proc postProviderProviderIDOauthAuthorize(client: OpencodeClient; providerID: string; directory: string = default(string); workspace: string = default(string); body: PostProviderProviderIDOauthAuthorizeRequest): Future[ ProviderAuthAuthorization] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Start the OAuth authorization flow for a provider.
proc postProviderProviderIDOauthCallback(client: OpencodeClient; providerID: string; directory: string = default(string); workspace: string = default(string); body: PostProviderProviderIDOauthCallbackRequest): Future[bool] {. ...stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Handle the OAuth callback from a provider after user authorization.