Files
sdk/docs/GitReposApi.md
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and
Android. Generated with openapi-generator kotlin (library=jvm-okhttp4,
useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 07:10:32 -07:00

8.8 KiB

GitReposApi

All URIs are relative to https://api.hanzo.ai

Method HTTP request Description
autoConnectGitRepo POST /v1/auto/git-repos Connect a git repo for sync (EE)
autoListGitRepos GET /v1/auto/git-repos List connected git repos (EE)
flowConnectGitRepo POST /v1/flow/git-repos Connect a git repo for sync (EE)
flowDisconnectGitRepo DELETE /v1/flow/git-repos/{id} Disconnect a git repo (EE)
flowListGitRepos GET /v1/flow/git-repos List connected git repos (EE)
flowPullFromGitRepo POST /v1/flow/git-repos/{id}/pull Pull flows from git (EE)
flowPushToGitRepo POST /v1/flow/git-repos/{id}/push Push flows to git (EE)

autoConnectGitRepo

kotlin.Any autoConnectGitRepo(autoConnectGitRepoRequest)

Connect a git repo for sync (EE)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = GitReposApi()
val autoConnectGitRepoRequest : AutoConnectGitRepoRequest =  // AutoConnectGitRepoRequest | 
try {
    val result : kotlin.Any = apiInstance.autoConnectGitRepo(autoConnectGitRepoRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling GitReposApi#autoConnectGitRepo")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling GitReposApi#autoConnectGitRepo")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
autoConnectGitRepoRequest AutoConnectGitRepoRequest

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

autoListGitRepos

kotlin.Any autoListGitRepos()

List connected git repos (EE)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = GitReposApi()
try {
    val result : kotlin.Any = apiInstance.autoListGitRepos()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling GitReposApi#autoListGitRepos")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling GitReposApi#autoListGitRepos")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

flowConnectGitRepo

kotlin.Any flowConnectGitRepo(flowConnectGitRepoRequest)

Connect a git repo for sync (EE)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = GitReposApi()
val flowConnectGitRepoRequest : FlowConnectGitRepoRequest =  // FlowConnectGitRepoRequest | 
try {
    val result : kotlin.Any = apiInstance.flowConnectGitRepo(flowConnectGitRepoRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling GitReposApi#flowConnectGitRepo")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling GitReposApi#flowConnectGitRepo")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
flowConnectGitRepoRequest FlowConnectGitRepoRequest

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

flowDisconnectGitRepo

flowDisconnectGitRepo(id)

Disconnect a git repo (EE)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = GitReposApi()
val id : kotlin.String = id_example // kotlin.String | 
try {
    apiInstance.flowDisconnectGitRepo(id)
} catch (e: ClientException) {
    println("4xx response calling GitReposApi#flowDisconnectGitRepo")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling GitReposApi#flowDisconnectGitRepo")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String

Return type

null (empty response body)

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

flowListGitRepos

kotlin.Any flowListGitRepos()

List connected git repos (EE)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = GitReposApi()
try {
    val result : kotlin.Any = apiInstance.flowListGitRepos()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling GitReposApi#flowListGitRepos")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling GitReposApi#flowListGitRepos")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

flowPullFromGitRepo

kotlin.Any flowPullFromGitRepo(id)

Pull flows from git (EE)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = GitReposApi()
val id : kotlin.String = id_example // kotlin.String | 
try {
    val result : kotlin.Any = apiInstance.flowPullFromGitRepo(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling GitReposApi#flowPullFromGitRepo")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling GitReposApi#flowPullFromGitRepo")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

flowPushToGitRepo

kotlin.Any flowPushToGitRepo(id)

Push flows to git (EE)

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = GitReposApi()
val id : kotlin.String = id_example // kotlin.String | 
try {
    val result : kotlin.Any = apiInstance.flowPushToGitRepo(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling GitReposApi#flowPushToGitRepo")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling GitReposApi#flowPushToGitRepo")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json