Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 10, 2024
1 parent d19db86 commit f0fab83
Show file tree
Hide file tree
Showing 268 changed files with 1,740 additions and 1,740 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ The REST API documentation can be found [on www.braintrustdata.com](https://www
<!-- x-release-please-start-version -->

```kotlin
implementation("com.braintrust.api:braintrust-kotlin:0.1.0")
implementation("com.braintrustdata.api:braintrust-kotlin:0.1.0")
```

#### Maven

```xml
<dependency>
<groupId>com.braintrust.api</groupId>
<groupId>com.braintrustdata.api</groupId>
<artifactId>braintrust-kotlin</artifactId>
<version>0.1.0</version>
</dependency>
Expand All @@ -41,8 +41,8 @@ implementation("com.braintrust.api:braintrust-kotlin:0.1.0")
Use `BraintrustOkHttpClient.builder()` to configure the client. At a minimum you need to set `.apiKey()`:

```kotlin
import com.braintrust.api.client.BraintrustClient
import com.braintrust.api.client.okhttp.BraintrustOkHttpClient
import com.braintrustdata.api.client.BraintrustClient
import com.braintrustdata.api.client.okhttp.BraintrustOkHttpClient

val client = BraintrustOkHttpClient.builder()
.apiKey("My API Key")
Expand Down Expand Up @@ -75,8 +75,8 @@ To create a new project, first use the `ProjectCreateParams` builder to specify
then pass that to the `create` method of the `project` service.

```kotlin
import com.braintrust.api.models.Project
import com.braintrust.api.models.ProjectCreateParams
import com.braintrustdata.api.models.Project
import com.braintrustdata.api.models.ProjectCreateParams

val params = ProjectCreateParams.builder()
.bodyparam(true)
Expand All @@ -90,8 +90,8 @@ The Braintrust API provides a `list` method to get a paginated list of project.
You can retrieve the first page by:

```kotlin
import com.braintrust.api.models.Page
import com.braintrust.api.models.Project
import com.braintrustdata.api.models.Page
import com.braintrustdata.api.models.Project

val page = client.project().list()
for (project: Project in page.objects()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless.

package com.braintrust.api.client.okhttp
package com.braintrustdata.api.client.okhttp

import com.braintrust.api.client.BraintrustClient
import com.braintrust.api.client.BraintrustClientImpl
import com.braintrust.api.core.ClientOptions
import com.braintrustdata.api.client.BraintrustClient
import com.braintrustdata.api.client.BraintrustClientImpl
import com.braintrustdata.api.core.ClientOptions
import com.fasterxml.jackson.databind.json.JsonMapper
import java.net.Proxy
import java.time.Clock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless.

package com.braintrust.api.client.okhttp
package com.braintrustdata.api.client.okhttp

import com.braintrust.api.client.BraintrustClientAsync
import com.braintrust.api.client.BraintrustClientAsyncImpl
import com.braintrust.api.core.ClientOptions
import com.braintrustdata.api.client.BraintrustClientAsync
import com.braintrustdata.api.client.BraintrustClientAsyncImpl
import com.braintrustdata.api.core.ClientOptions
import com.fasterxml.jackson.databind.json.JsonMapper
import java.net.Proxy
import java.time.Clock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.braintrust.api.client.okhttp

import com.braintrust.api.core.RequestOptions
import com.braintrust.api.core.http.HttpClient
import com.braintrust.api.core.http.HttpMethod
import com.braintrust.api.core.http.HttpRequest
import com.braintrust.api.core.http.HttpRequestBody
import com.braintrust.api.core.http.HttpResponse
import com.braintrust.api.errors.BraintrustIoException
package com.braintrustdata.api.client.okhttp

import com.braintrustdata.api.core.RequestOptions
import com.braintrustdata.api.core.http.HttpClient
import com.braintrustdata.api.core.http.HttpMethod
import com.braintrustdata.api.core.http.HttpRequest
import com.braintrustdata.api.core.http.HttpRequestBody
import com.braintrustdata.api.core.http.HttpResponse
import com.braintrustdata.api.errors.BraintrustIoException
import com.google.common.collect.ListMultimap
import com.google.common.collect.MultimapBuilder
import java.io.IOException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102

package com.braintrust.api.client
package com.braintrustdata.api.client

import com.braintrust.api.models.*
import com.braintrust.api.services.blocking.*
import com.braintrustdata.api.models.*
import com.braintrustdata.api.services.blocking.*

interface BraintrustClient {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102

package com.braintrust.api.client
package com.braintrustdata.api.client

import com.braintrust.api.models.*
import com.braintrust.api.services.async.*
import com.braintrustdata.api.models.*
import com.braintrustdata.api.services.async.*

interface BraintrustClientAsync {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.

package com.braintrust.api.client

import com.braintrust.api.core.ClientOptions
import com.braintrust.api.core.http.HttpResponse.Handler
import com.braintrust.api.errors.BraintrustError
import com.braintrust.api.models.*
import com.braintrust.api.services.async.*
import com.braintrust.api.services.errorHandler
package com.braintrustdata.api.client

import com.braintrustdata.api.core.ClientOptions
import com.braintrustdata.api.core.http.HttpResponse.Handler
import com.braintrustdata.api.errors.BraintrustError
import com.braintrustdata.api.models.*
import com.braintrustdata.api.services.async.*
import com.braintrustdata.api.services.errorHandler

class BraintrustClientAsyncImpl
constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.

package com.braintrust.api.client

import com.braintrust.api.core.ClientOptions
import com.braintrust.api.core.http.HttpResponse.Handler
import com.braintrust.api.errors.BraintrustError
import com.braintrust.api.models.*
import com.braintrust.api.services.blocking.*
import com.braintrust.api.services.errorHandler
package com.braintrustdata.api.client

import com.braintrustdata.api.core.ClientOptions
import com.braintrustdata.api.core.http.HttpResponse.Handler
import com.braintrustdata.api.errors.BraintrustError
import com.braintrustdata.api.models.*
import com.braintrustdata.api.services.blocking.*
import com.braintrustdata.api.services.errorHandler

class BraintrustClientImpl
constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.core
package com.braintrustdata.api.core

import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.ObjectCodec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.core
package com.braintrustdata.api.core

import com.fasterxml.jackson.databind.ser.std.StdSerializer
import kotlin.reflect.KClass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless.

package com.braintrust.api.core
package com.braintrustdata.api.core

import com.braintrust.api.core.http.HttpClient
import com.braintrust.api.core.http.RetryingHttpClient
import com.braintrustdata.api.core.http.HttpClient
import com.braintrustdata.api.core.http.RetryingHttpClient
import com.fasterxml.jackson.databind.json.JsonMapper
import com.google.common.collect.ArrayListMultimap
import com.google.common.collect.ListMultimap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:JvmName("ObjectMappers")

package com.braintrust.api.core
package com.braintrustdata.api.core

import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.DeserializationFeature
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:JvmName("Properties")

package com.braintrust.api.core
package com.braintrustdata.api.core

import java.util.Properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.core
package com.braintrustdata.api.core

import java.time.Duration

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@file:JvmName("Utils")

package com.braintrust.api.core
package com.braintrustdata.api.core

import com.braintrust.api.errors.BraintrustInvalidDataException
import com.braintrustdata.api.errors.BraintrustInvalidDataException
import com.google.common.collect.ImmutableListMultimap
import com.google.common.collect.ListMultimap
import com.google.common.collect.Multimaps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.braintrust.api.core
package com.braintrustdata.api.core

import com.braintrust.api.errors.BraintrustInvalidDataException
import com.braintrustdata.api.errors.BraintrustInvalidDataException
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside
import com.fasterxml.jackson.annotation.JsonAutoDetect
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.core.http
package com.braintrustdata.api.core.http

import java.io.Closeable
import java.io.IOException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.braintrust.api.core.http
package com.braintrustdata.api.core.http

import com.braintrust.api.core.RequestOptions
import com.braintrustdata.api.core.RequestOptions
import java.io.Closeable

interface HttpClient : Closeable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.core.http
package com.braintrustdata.api.core.http

enum class HttpMethod {
GET,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.braintrust.api.core.http
package com.braintrustdata.api.core.http

import com.braintrust.api.core.toUnmodifiable
import com.braintrustdata.api.core.toUnmodifiable
import com.google.common.collect.ArrayListMultimap
import com.google.common.collect.ListMultimap
import com.google.common.collect.Multimap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.core.http
package com.braintrustdata.api.core.http

import java.io.Closeable
import java.io.IOException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.core.http
package com.braintrustdata.api.core.http

import com.google.common.collect.ListMultimap
import java.io.Closeable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@file:JvmSynthetic

package com.braintrust.api.core.http
package com.braintrustdata.api.core.http

import com.braintrust.api.core.RequestOptions
import com.braintrust.api.errors.BraintrustIoException
import com.braintrustdata.api.core.RequestOptions
import com.braintrustdata.api.errors.BraintrustIoException
import java.io.IOException
import java.time.Clock
import java.time.Duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless.

package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.braintrust.api.core.JsonValue
import com.braintrust.api.core.NoAutoDetect
import com.braintrust.api.core.toUnmodifiable
import com.braintrustdata.api.core.JsonValue
import com.braintrustdata.api.core.NoAutoDetect
import com.braintrustdata.api.core.toUnmodifiable
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

open class BraintrustException constructor(message: String? = null, cause: Throwable? = null) :
RuntimeException(message, cause)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

class BraintrustInvalidDataException
constructor(message: String? = null, cause: Throwable? = null) :
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

class BraintrustIoException constructor(message: String? = null, cause: Throwable? = null) :
BraintrustException(message, cause)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintrust.api.errors
package com.braintrustdata.api.errors

import com.google.common.collect.ListMultimap

Expand Down
Loading

0 comments on commit f0fab83

Please sign in to comment.