diff --git a/.stats.yml b/.stats.yml index 964ecebf..4f5593f6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 59 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-kotlin-a44e16cb39fc991e410266961f87e6a48c4f9041060cd9e2bdcefe2f4bef9abc.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-a44e16cb39fc991e410266961f87e6a48c4f9041060cd9e2bdcefe2f4bef9abc.yml diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/core/ClientOptions.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/core/ClientOptions.kt index c947307b..786eb207 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/core/ClientOptions.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/core/ClientOptions.kt @@ -17,6 +17,7 @@ private constructor( val baseUrl: String, val apiKey: String, val headers: ListMultimap, + val queryParams: ListMultimap, val responseValidation: Boolean, ) { @@ -36,6 +37,7 @@ private constructor( private var clock: Clock = Clock.systemUTC() private var baseUrl: String = PRODUCTION_URL private var headers: MutableMap> = mutableMapOf() + private var queryParams: MutableMap> = mutableMapOf() private var responseValidation: Boolean = false private var maxRetries: Int = 2 private var apiKey: String? = null @@ -67,6 +69,25 @@ private constructor( fun removeHeader(name: String) = apply { this.headers.put(name, mutableListOf()) } + fun queryParams(queryParams: Map>) = apply { + this.queryParams.clear() + putAllQueryParams(queryParams) + } + + fun putQueryParam(name: String, value: String) = apply { + this.queryParams.getOrPut(name) { mutableListOf() }.add(value) + } + + fun putQueryParams(name: String, values: Iterable) = apply { + this.queryParams.getOrPut(name) { mutableListOf() }.addAll(values) + } + + fun putAllQueryParams(queryParams: Map>) = apply { + queryParams.forEach(this::putQueryParams) + } + + fun removeQueryParam(name: String) = apply { this.queryParams.put(name, mutableListOf()) } + fun responseValidation(responseValidation: Boolean) = apply { this.responseValidation = responseValidation } @@ -82,6 +103,7 @@ private constructor( checkNotNull(apiKey) { "`apiKey` is required but was not set" } val headers = ArrayListMultimap.create() + val queryParams = ArrayListMultimap.create() headers.put("X-Stainless-Lang", "kotlin") headers.put("X-Stainless-Arch", getOsArch()) headers.put("X-Stainless-OS", getOsName()) @@ -92,6 +114,7 @@ private constructor( headers.put("Authorization", "Bearer ${apiKey}") } this.headers.forEach(headers::replaceValues) + this.queryParams.forEach(queryParams::replaceValues) return ClientOptions( RetryingHttpClient.builder() @@ -104,6 +127,7 @@ private constructor( baseUrl, apiKey!!, headers.toUnmodifiable(), + queryParams.toUnmodifiable(), responseValidation, ) } diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/AclServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/AclServiceAsyncImpl.kt index 938c2488..75aa3160 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/AclServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/AclServiceAsyncImpl.kt @@ -39,6 +39,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "acl") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -64,6 +65,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "acl", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -95,6 +97,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "acl") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -120,6 +123,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "acl", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -150,6 +154,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "acl") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/DatasetServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/DatasetServiceAsyncImpl.kt index 80c3fbdc..d834c481 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/DatasetServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/DatasetServiceAsyncImpl.kt @@ -53,6 +53,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -81,6 +82,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -112,6 +114,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "dataset", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -144,6 +147,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -172,6 +176,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "dataset", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -196,6 +201,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -221,6 +227,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -252,6 +259,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -280,6 +288,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset", params.getPathParam(0), "insert") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -313,6 +322,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "dataset") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -342,6 +352,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset", params.getPathParam(0), "summarize") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ExperimentServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ExperimentServiceAsyncImpl.kt index 907978e9..cb3a9141 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ExperimentServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ExperimentServiceAsyncImpl.kt @@ -53,6 +53,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -81,6 +82,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -112,6 +114,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "experiment", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -144,6 +147,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -172,6 +176,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "experiment", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -199,6 +204,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -225,6 +231,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -256,6 +263,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -285,6 +293,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment", params.getPathParam(0), "insert") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -318,6 +327,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "experiment") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -347,6 +357,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment", params.getPathParam(0), "summarize") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/GroupServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/GroupServiceAsyncImpl.kt index b80e8963..936ad177 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/GroupServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/GroupServiceAsyncImpl.kt @@ -40,6 +40,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "group") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -68,6 +69,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "group", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -96,6 +98,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "group", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -128,6 +131,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "group") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -153,6 +157,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "group", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -186,6 +191,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "group") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ProjectServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ProjectServiceAsyncImpl.kt index 4615a53f..d22693f7 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ProjectServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/ProjectServiceAsyncImpl.kt @@ -49,6 +49,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -77,6 +78,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "project", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -108,6 +110,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "project", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -140,6 +143,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "project") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -168,6 +172,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "project", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -201,6 +206,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "project") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/PromptServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/PromptServiceAsyncImpl.kt index d1a25806..7ecbf232 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/PromptServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/PromptServiceAsyncImpl.kt @@ -45,6 +45,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "prompt") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -73,6 +74,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "prompt", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -104,6 +106,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "prompt", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -136,6 +139,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "prompt") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -164,6 +168,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "prompt", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -188,6 +193,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "prompt", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -215,6 +221,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "prompt") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/RoleServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/RoleServiceAsyncImpl.kt index 95aab703..d412029c 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/RoleServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/RoleServiceAsyncImpl.kt @@ -40,6 +40,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "role") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -68,6 +69,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "role", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -96,6 +98,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "role", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -128,6 +131,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "role") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -153,6 +157,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "role", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -183,6 +188,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "role") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/TopLevelServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/TopLevelServiceAsyncImpl.kt index 9a1bff10..a6da8c44 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/TopLevelServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/TopLevelServiceAsyncImpl.kt @@ -31,6 +31,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/UserServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/UserServiceAsyncImpl.kt index cde2c647..0c4276d2 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/UserServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/UserServiceAsyncImpl.kt @@ -35,6 +35,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "user", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -66,6 +67,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "user") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/project/LogServiceAsyncImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/project/LogServiceAsyncImpl.kt index a718b7a7..64ad4cbf 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/project/LogServiceAsyncImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/async/project/LogServiceAsyncImpl.kt @@ -39,6 +39,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project_logs", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -65,6 +66,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "project_logs", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -96,6 +98,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project_logs", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -125,6 +128,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project_logs", params.getPathParam(0), "insert") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/AclServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/AclServiceImpl.kt index 4a9135b2..304b33a8 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/AclServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/AclServiceImpl.kt @@ -39,6 +39,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "acl") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -64,6 +65,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "acl", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -91,6 +93,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "acl") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -116,6 +119,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "acl", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -146,6 +150,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "acl") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/DatasetServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/DatasetServiceImpl.kt index 5b86d09d..80eecbb0 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/DatasetServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/DatasetServiceImpl.kt @@ -50,6 +50,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -75,6 +76,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -103,6 +105,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "dataset", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -132,6 +135,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -157,6 +161,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "dataset", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -181,6 +186,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -206,6 +212,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -237,6 +244,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -265,6 +273,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "dataset", params.getPathParam(0), "insert") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -295,6 +304,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "dataset") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -324,6 +334,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "dataset", params.getPathParam(0), "summarize") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ExperimentServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ExperimentServiceImpl.kt index 474d2c67..878f0a6c 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ExperimentServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ExperimentServiceImpl.kt @@ -53,6 +53,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -81,6 +82,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -112,6 +114,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "experiment", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -144,6 +147,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -172,6 +176,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "experiment", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -196,6 +201,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -222,6 +228,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -253,6 +260,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -282,6 +290,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "experiment", params.getPathParam(0), "insert") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -315,6 +324,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "experiment") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -344,6 +354,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "experiment", params.getPathParam(0), "summarize") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/GroupServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/GroupServiceImpl.kt index db2d66b0..3787b85a 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/GroupServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/GroupServiceImpl.kt @@ -40,6 +40,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "group") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -65,6 +66,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "group", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -93,6 +95,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "group", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -121,6 +124,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "group") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -146,6 +150,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "group", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -176,6 +181,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "group") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ProjectServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ProjectServiceImpl.kt index 76254bc2..9f7a01ae 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ProjectServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/ProjectServiceImpl.kt @@ -46,6 +46,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -71,6 +72,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "project", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -99,6 +101,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "project", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -128,6 +131,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "project") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -153,6 +157,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "project", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -183,6 +188,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "project") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/PromptServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/PromptServiceImpl.kt index 127b4ebf..6eea20af 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/PromptServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/PromptServiceImpl.kt @@ -42,6 +42,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "prompt") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -67,6 +68,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "prompt", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -95,6 +97,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "prompt", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -124,6 +127,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "prompt") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -149,6 +153,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "prompt", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -173,6 +178,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "prompt", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -197,6 +203,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "prompt") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/RoleServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/RoleServiceImpl.kt index 97f2346a..ba69753d 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/RoleServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/RoleServiceImpl.kt @@ -40,6 +40,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "role") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -65,6 +66,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "role", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -93,6 +95,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PATCH) .addPathSegments("v1", "role", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -121,6 +124,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "role") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -146,6 +150,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.DELETE) .addPathSegments("v1", "role", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -176,6 +181,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.PUT) .addPathSegments("v1", "role") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/TopLevelServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/TopLevelServiceImpl.kt index be89b30f..631eac96 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/TopLevelServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/TopLevelServiceImpl.kt @@ -31,6 +31,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/UserServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/UserServiceImpl.kt index 6f550061..28ff5d7a 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/UserServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/UserServiceImpl.kt @@ -32,6 +32,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "user", params.getPathParam(0)) + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -59,6 +60,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "user") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) diff --git a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/project/LogServiceImpl.kt b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/project/LogServiceImpl.kt index 2ccbbe73..306c9747 100644 --- a/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/project/LogServiceImpl.kt +++ b/braintrust-kotlin-core/src/main/kotlin/com/braintrustdata/api/services/blocking/project/LogServiceImpl.kt @@ -36,6 +36,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project_logs", params.getPathParam(0), "feedback") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -62,6 +63,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.GET) .addPathSegments("v1", "project_logs", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -93,6 +95,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project_logs", params.getPathParam(0), "fetch") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders()) @@ -122,6 +125,7 @@ constructor( HttpRequest.builder() .method(HttpMethod.POST) .addPathSegments("v1", "project_logs", params.getPathParam(0), "insert") + .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) .putAllHeaders(params.getHeaders())