From 30ba3429a02384007ec45e95db462a07d6a8e892 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Fri, 5 Jul 2024 18:05:21 +0000
Subject: [PATCH 01/21] chore: go live (#6)
---
.github/workflows/publish-sonatype.yml | 2 +-
.gitignore | 1 +
.stats.yml | 2 +-
README.md | 10 +-
build.gradle.kts | 14 +-
buildSrc/build.gradle.kts | 4 -
.../src/main/kotlin/openlayer.java.gradle.kts | 14 +-
.../main/kotlin/openlayer.kotlin.gradle.kts | 1 -
.../main/kotlin/openlayer.publish.gradle.kts | 83 +-
.../api}/client/okhttp/OkHttpClient.kt | 16 +-
.../client/okhttp/OpenlayerOkHttpClient.kt | 8 +-
.../okhttp/OpenlayerOkHttpClientAsync.kt | 8 +-
.../openlayer/api}/client/OpenlayerClient.kt | 6 +-
.../api}/client/OpenlayerClientAsync.kt | 6 +-
.../api}/client/OpenlayerClientAsyncImpl.kt | 16 +-
.../api}/client/OpenlayerClientImpl.kt | 16 +-
.../openlayer/api}/core/BaseDeserializer.kt | 2 +-
.../openlayer/api}/core/BaseSerializer.kt | 2 +-
.../openlayer/api}/core/ClientOptions.kt | 6 +-
.../openlayer/api}/core/ObjectMappers.kt | 2 +-
.../openlayer/api}/core/Properties.kt | 2 +-
.../openlayer/api}/core/RequestOptions.kt | 2 +-
.../openlayer/api}/core/Utils.kt | 4 +-
.../openlayer/api}/core/Values.kt | 4 +-
.../api}/core/http/BinaryResponseContent.kt | 2 +-
.../openlayer/api}/core/http/HttpClient.kt | 4 +-
.../openlayer/api}/core/http/HttpMethod.kt | 2 +-
.../openlayer/api}/core/http/HttpRequest.kt | 4 +-
.../api}/core/http/HttpRequestBody.kt | 2 +-
.../openlayer/api}/core/http/HttpResponse.kt | 2 +-
.../api}/core/http/RetryingHttpClient.kt | 6 +-
.../api}/errors/BadRequestException.kt | 2 +-
.../api}/errors/InternalServerException.kt | 2 +-
.../api}/errors/NotFoundException.kt | 2 +-
.../openlayer/api}/errors/OpenlayerError.kt | 8 +-
.../api}/errors/OpenlayerException.kt | 2 +-
.../errors/OpenlayerInvalidDataException.kt | 2 +-
.../api}/errors/OpenlayerIoException.kt | 2 +-
.../api}/errors/OpenlayerServiceException.kt | 2 +-
.../api}/errors/PermissionDeniedException.kt | 2 +-
.../api}/errors/RateLimitException.kt | 2 +-
.../api}/errors/UnauthorizedException.kt | 2 +-
.../errors/UnexpectedStatusCodeException.kt | 2 +-
.../errors/UnprocessableEntityException.kt | 2 +-
.../api}/models/CommitTestResultListParams.kt | 16 +-
.../models/CommitTestResultListResponse.kt | 24 +-
.../InferencePipelineDataStreamParams.kt | 24 +-
.../InferencePipelineDataStreamResponse.kt | 18 +-
.../InferencePipelineTestResultListParams.kt | 16 +-
...InferencePipelineTestResultListResponse.kt | 24 +-
.../api}/models/ProjectCommitListParams.kt | 10 +-
.../api}/models/ProjectCommitListResponse.kt | 18 +-
.../api/models/ProjectCreateParams.kt | 817 ++++++++++++
.../api/models/ProjectCreateResponse.kt | 1092 +++++++++++++++++
.../ProjectInferencePipelineCreateParams.kt | 573 +++++++++
.../ProjectInferencePipelineCreateResponse.kt | 733 +++++++++++
.../ProjectInferencePipelineListParams.kt | 10 +-
.../ProjectInferencePipelineListResponse.kt | 18 +-
.../api}/models/ProjectListParams.kt | 16 +-
.../api}/models/ProjectListResponse.kt | 18 +-
.../openlayer/api}/services/Handlers.kt | 28 +-
.../api}/services/HttpRequestBodies.kt | 12 +-
.../api}/services/async/CommitServiceAsync.kt | 4 +-
.../services/async/CommitServiceAsyncImpl.kt | 14 +-
.../async/InferencePipelineServiceAsync.kt | 6 +-
.../InferencePipelineServiceAsyncImpl.kt | 20 +-
.../api/services/async/ProjectServiceAsync.kt | 35 +
.../services/async/ProjectServiceAsyncImpl.kt | 100 ++
.../async/commits/TestResultServiceAsync.kt | 8 +-
.../commits/TestResultServiceAsyncImpl.kt | 24 +-
.../inferencePipelines/DataServiceAsync.kt | 8 +-
.../DataServiceAsyncImpl.kt | 26 +-
.../TestResultServiceAsync.kt | 8 +-
.../TestResultServiceAsyncImpl.kt | 24 +-
.../async/projects/CommitServiceAsync.kt | 8 +-
.../async/projects/CommitServiceAsyncImpl.kt | 24 +-
.../projects/InferencePipelineServiceAsync.kt | 29 +
.../InferencePipelineServiceAsyncImpl.kt | 88 ++
.../api}/services/blocking/CommitService.kt | 4 +-
.../services/blocking/CommitServiceImpl.kt | 14 +-
.../blocking/InferencePipelineService.kt | 6 +-
.../blocking/InferencePipelineServiceImpl.kt | 20 +-
.../api/services/blocking/ProjectService.kt | 34 +
.../services/blocking/ProjectServiceImpl.kt | 97 ++
.../blocking/commits/TestResultService.kt | 8 +-
.../blocking/commits/TestResultServiceImpl.kt | 24 +-
.../inferencePipelines/DataService.kt | 8 +-
.../inferencePipelines/DataServiceImpl.kt | 26 +-
.../inferencePipelines/TestResultService.kt | 8 +-
.../TestResultServiceImpl.kt | 24 +-
.../blocking/projects/CommitService.kt | 8 +-
.../blocking/projects/CommitServiceImpl.kt | 24 +-
.../projects/InferencePipelineService.kt | 28 +
.../projects/InferencePipelineServiceImpl.kt | 85 ++
.../services/async/ProjectServiceAsync.kt | 26 -
.../services/async/ProjectServiceAsyncImpl.kt | 67 -
.../projects/InferencePipelineServiceAsync.kt | 20 -
.../InferencePipelineServiceAsyncImpl.kt | 54 -
.../services/blocking/ProjectService.kt | 25 -
.../services/blocking/ProjectServiceImpl.kt | 65 -
.../projects/InferencePipelineService.kt | 19 -
.../projects/InferencePipelineServiceImpl.kt | 52 -
.../openlayer/api}/TestServerExtension.kt | 2 +-
.../api}/client/OpenlayerClientTest.kt | 2 +-
.../api}/core/http/HttpRequestTest.kt | 2 +-
.../api}/core/http/RetryingHttpClientTest.kt | 4 +-
.../api}/core/http/SerializerTest.kt | 4 +-
.../models/CommitTestResultListParamsTest.kt | 4 +-
.../CommitTestResultListResponseTest.kt | 4 +-
.../InferencePipelineDataStreamParamsTest.kt | 6 +-
...InferencePipelineDataStreamResponseTest.kt | 2 +-
...ferencePipelineTestResultListParamsTest.kt | 4 +-
...rencePipelineTestResultListResponseTest.kt | 4 +-
.../models/ProjectCommitListParamsTest.kt | 4 +-
.../models/ProjectCommitListResponseTest.kt | 2 +-
.../api/models/ProjectCreateParamsTest.kt | 106 ++
.../api/models/ProjectCreateResponseTest.kt | 109 ++
...rojectInferencePipelineCreateParamsTest.kt | 66 +
...jectInferencePipelineCreateResponseTest.kt | 77 ++
.../ProjectInferencePipelineListParamsTest.kt | 4 +-
...rojectInferencePipelineListResponseTest.kt | 2 +-
.../api}/models/ProjectListParamsTest.kt | 4 +-
.../api}/models/ProjectListResponseTest.kt | 2 +-
.../api}/services/ErrorHandlingTest.kt | 34 +-
.../api}/services/ServiceParamsTest.kt | 14 +-
.../services/blocking/CommitServiceTest.kt | 6 +-
.../blocking/InferencePipelineServiceTest.kt | 6 +-
.../services/blocking/ProjectServiceTest.kt | 74 ++
.../blocking/commits/TestResultServiceTest.kt | 8 +-
.../inferencePipelines/DataServiceTest.kt | 10 +-
.../TestResultServiceTest.kt | 8 +-
.../blocking/projects/CommitServiceTest.kt | 8 +-
.../projects/InferencePipelineServiceTest.kt | 56 +
.../services/blocking/ProjectServiceTest.kt | 34 -
.../projects/InferencePipelineServiceTest.kt | 34 -
135 files changed, 4729 insertions(+), 901 deletions(-)
rename openlayer-java-client-okhttp/src/main/kotlin/{org/openlayer => com/openlayer/api}/client/okhttp/OkHttpClient.kt (93%)
rename openlayer-java-client-okhttp/src/main/kotlin/{org/openlayer => com/openlayer/api}/client/okhttp/OpenlayerOkHttpClient.kt (93%)
rename openlayer-java-client-okhttp/src/main/kotlin/{org/openlayer => com/openlayer/api}/client/okhttp/OpenlayerOkHttpClientAsync.kt (93%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/client/OpenlayerClient.kt (75%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/client/OpenlayerClientAsync.kt (76%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/client/OpenlayerClientAsyncImpl.kt (75%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/client/OpenlayerClientImpl.kt (74%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/BaseDeserializer.kt (98%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/BaseSerializer.kt (85%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/ClientOptions.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/ObjectMappers.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/Properties.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/RequestOptions.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/Utils.kt (93%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/Values.kt (99%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/http/BinaryResponseContent.kt (88%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/http/HttpClient.kt (83%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/http/HttpMethod.kt (77%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/http/HttpRequest.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/http/HttpRequestBody.kt (94%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/http/HttpResponse.kt (90%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/core/http/RetryingHttpClient.kt (98%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/BadRequestException.kt (90%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/InternalServerException.kt (91%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/NotFoundException.kt (90%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/OpenlayerError.kt (92%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/OpenlayerException.kt (81%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/OpenlayerInvalidDataException.kt (82%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/OpenlayerIoException.kt (81%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/OpenlayerServiceException.kt (91%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/PermissionDeniedException.kt (90%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/RateLimitException.kt (90%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/UnauthorizedException.kt (90%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/UnexpectedStatusCodeException.kt (91%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/errors/UnprocessableEntityException.kt (90%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/CommitTestResultListParams.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/CommitTestResultListResponse.kt (99%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineDataStreamParams.kt (99%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineDataStreamResponse.kt (92%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineTestResultListParams.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineTestResultListResponse.kt (99%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectCommitListParams.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectCommitListResponse.kt (99%)
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectInferencePipelineListParams.kt (97%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectInferencePipelineListResponse.kt (98%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectListParams.kt (96%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectListResponse.kt (99%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/Handlers.kt (84%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/HttpRequestBodies.kt (93%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/CommitServiceAsync.kt (67%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/CommitServiceAsyncImpl.kt (54%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/InferencePipelineServiceAsync.kt (57%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/InferencePipelineServiceAsyncImpl.kt (52%)
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/async/ProjectServiceAsync.kt
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/async/ProjectServiceAsyncImpl.kt
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/commits/TestResultServiceAsync.kt (69%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/commits/TestResultServiceAsyncImpl.kt (72%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/inferencePipelines/DataServiceAsync.kt (68%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/inferencePipelines/DataServiceAsyncImpl.kt (71%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/inferencePipelines/TestResultServiceAsync.kt (67%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/inferencePipelines/TestResultServiceAsyncImpl.kt (71%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/projects/CommitServiceAsync.kt (69%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/async/projects/CommitServiceAsyncImpl.kt (72%)
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/async/projects/InferencePipelineServiceAsync.kt
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/async/projects/InferencePipelineServiceAsyncImpl.kt
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/CommitService.kt (65%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/CommitServiceImpl.kt (52%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/InferencePipelineService.kt (56%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/InferencePipelineServiceImpl.kt (50%)
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/blocking/ProjectService.kt
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/blocking/ProjectServiceImpl.kt
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/commits/TestResultService.kt (66%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/commits/TestResultServiceImpl.kt (70%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/inferencePipelines/DataService.kt (64%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/inferencePipelines/DataServiceImpl.kt (70%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/inferencePipelines/TestResultService.kt (63%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/inferencePipelines/TestResultServiceImpl.kt (70%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/projects/CommitService.kt (65%)
rename openlayer-java-core/src/main/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/projects/CommitServiceImpl.kt (70%)
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineService.kt
create mode 100644 openlayer-java-core/src/main/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceImpl.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/async/ProjectServiceAsync.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/async/ProjectServiceAsyncImpl.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/async/projects/InferencePipelineServiceAsync.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/async/projects/InferencePipelineServiceAsyncImpl.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/blocking/ProjectService.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/blocking/ProjectServiceImpl.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/blocking/projects/InferencePipelineService.kt
delete mode 100644 openlayer-java-core/src/main/kotlin/org/openlayer/services/blocking/projects/InferencePipelineServiceImpl.kt
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/TestServerExtension.kt (98%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/client/OpenlayerClientTest.kt (71%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/core/http/HttpRequestTest.kt (95%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/core/http/RetryingHttpClientTest.kt (98%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/core/http/SerializerTest.kt (98%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/CommitTestResultListParamsTest.kt (97%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/CommitTestResultListResponseTest.kt (99%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineDataStreamParamsTest.kt (98%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineDataStreamResponseTest.kt (95%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineTestResultListParamsTest.kt (97%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/InferencePipelineTestResultListResponseTest.kt (99%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectCommitListParamsTest.kt (95%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectCommitListResponseTest.kt (99%)
create mode 100644 openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCreateParamsTest.kt
create mode 100644 openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectCreateResponseTest.kt
create mode 100644 openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParamsTest.kt
create mode 100644 openlayer-java-core/src/test/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponseTest.kt
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectInferencePipelineListParamsTest.kt (96%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectInferencePipelineListResponseTest.kt (99%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectListParamsTest.kt (95%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/models/ProjectListResponseTest.kt (99%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/ErrorHandlingTest.kt (97%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/ServiceParamsTest.kt (93%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/CommitServiceTest.kt (58%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/InferencePipelineServiceTest.kt (59%)
create mode 100644 openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/commits/TestResultServiceTest.kt (84%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/inferencePipelines/DataServiceTest.kt (90%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/inferencePipelines/TestResultServiceTest.kt (85%)
rename openlayer-java-core/src/test/kotlin/{org/openlayer => com/openlayer/api}/services/blocking/projects/CommitServiceTest.kt (81%)
create mode 100644 openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt
delete mode 100644 openlayer-java-core/src/test/kotlin/org/openlayer/services/blocking/ProjectServiceTest.kt
delete mode 100644 openlayer-java-core/src/test/kotlin/org/openlayer/services/blocking/projects/InferencePipelineServiceTest.kt
diff --git a/.github/workflows/publish-sonatype.yml b/.github/workflows/publish-sonatype.yml
index fbc52d2..7dd499b 100644
--- a/.github/workflows/publish-sonatype.yml
+++ b/.github/workflows/publish-sonatype.yml
@@ -30,7 +30,7 @@ jobs:
- name: Publish to Sonatype
run: |
- ./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD"
+ ./gradlew --parallel --no-daemon publish
env:
SONATYPE_USERNAME: ${{ secrets.OPENLAYER_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.OPENLAYER_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
diff --git a/.gitignore b/.gitignore
index 1c94d9f..39c31e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.prism.log
.gradle
.idea
build
diff --git a/.stats.yml b/.stats.yml
index 2b7dbf3..699660e 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1 +1 @@
-configured_endpoints: 6
+configured_endpoints: 8
diff --git a/README.md b/README.md
index c027e07..4a4d0de 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[](https://central.sonatype.com/artifact/org.openlayer/openlayer-java/0.1.0-alpha.1)
+[](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.1.0-alpha.1)
@@ -27,14 +27,14 @@ The REST API documentation can be foundĀ [on openlayer.com](https://openlayer.co
```kotlin
-implementation("org.openlayer:openlayer-java:0.1.0-alpha.1")
+implementation("com.openlayer.api:openlayer-java:0.1.0-alpha.1")
```
#### Maven
```xml
- org.openlayer
+ com.openlayer.api
openlayer-java
0.1.0-alpha.1
@@ -72,9 +72,9 @@ To create a new inference pipeline data, first use the `InferencePipelineDataStr
then pass that to the `stream` method of the `data` service.
```java
+import com.openlayer.api.models.InferencePipelineDataStreamParams;
+import com.openlayer.api.models.InferencePipelineDataStreamResponse;
import java.util.List;
-import org.openlayer.models.InferencePipelineDataStreamParams;
-import org.openlayer.models.InferencePipelineDataStreamResponse;
InferencePipelineDataStreamParams params = InferencePipelineDataStreamParams.builder()
.rows(List.of(InferencePipelineDataStreamParams.Row.builder().build()))
diff --git a/build.gradle.kts b/build.gradle.kts
index 4cac40f..1f51e8e 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,10 +1,20 @@
plugins {
-
+ id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
allprojects {
- group = "org.openlayer"
+ group = "com.openlayer.api"
version = "0.1.0-alpha.1" // x-release-please-version
}
+nexusPublishing {
+ repositories {
+ sonatype {
+ nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
+ snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
+ username.set(System.getenv("SONATYPE_USERNAME"))
+ password.set(System.getenv("SONATYPE_PASSWORD"))
+ }
+ }
+}
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 493cb32..b88cd06 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -1,16 +1,12 @@
plugins {
`kotlin-dsl`
- kotlin("jvm") version "1.9.22"
- id("com.vanniktech.maven.publish") version "0.28.0"
}
repositories {
gradlePluginPortal()
- mavenCentral()
}
dependencies {
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.25.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
- implementation("com.vanniktech:gradle-maven-publish-plugin:0.28.0")
}
diff --git a/buildSrc/src/main/kotlin/openlayer.java.gradle.kts b/buildSrc/src/main/kotlin/openlayer.java.gradle.kts
index 53e6330..bc01a1d 100644
--- a/buildSrc/src/main/kotlin/openlayer.java.gradle.kts
+++ b/buildSrc/src/main/kotlin/openlayer.java.gradle.kts
@@ -1,9 +1,6 @@
import com.diffplug.gradle.spotless.SpotlessExtension
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
-import com.vanniktech.maven.publish.JavaLibrary
-import com.vanniktech.maven.publish.JavadocJar
-import com.vanniktech.maven.publish.MavenPublishBaseExtension
-import com.vanniktech.maven.publish.SonatypeHost
+import java.util.Locale
plugins {
`java-library`
@@ -14,6 +11,11 @@ repositories {
mavenCentral()
}
+configure {
+ withJavadocJar()
+ withSourcesJar()
+}
+
configure {
java {
importOrder()
@@ -33,6 +35,10 @@ tasks.withType().configureEach {
options.release.set(8)
}
+tasks.named("javadocJar") {
+ setZip64(true)
+}
+
tasks.named("jar") {
manifest {
attributes(mapOf(
diff --git a/buildSrc/src/main/kotlin/openlayer.kotlin.gradle.kts b/buildSrc/src/main/kotlin/openlayer.kotlin.gradle.kts
index 5c12826..d5a6d5d 100644
--- a/buildSrc/src/main/kotlin/openlayer.kotlin.gradle.kts
+++ b/buildSrc/src/main/kotlin/openlayer.kotlin.gradle.kts
@@ -1,6 +1,5 @@
import com.diffplug.gradle.spotless.SpotlessExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
-import com.vanniktech.maven.publish.*
plugins {
id("openlayer.java")
diff --git a/buildSrc/src/main/kotlin/openlayer.publish.gradle.kts b/buildSrc/src/main/kotlin/openlayer.publish.gradle.kts
index d159a4f..1179c4d 100644
--- a/buildSrc/src/main/kotlin/openlayer.publish.gradle.kts
+++ b/buildSrc/src/main/kotlin/openlayer.publish.gradle.kts
@@ -3,52 +3,65 @@ import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.register
import org.gradle.kotlin.dsl.get
-import com.vanniktech.maven.publish.JavaLibrary
-import com.vanniktech.maven.publish.JavadocJar
-import com.vanniktech.maven.publish.MavenPublishBaseExtension
-import com.vanniktech.maven.publish.SonatypeHost
plugins {
- id("com.vanniktech.maven.publish")
+ `maven-publish`
+ `signing`
}
-repositories {
- gradlePluginPortal()
- mavenCentral()
-}
+configure {
+ publications {
+ register("maven") {
+ from(components["java"])
-extra["signingInMemoryKey"] = System.getenv("GPG_SIGNING_KEY")
-extra["signingInMemoryKeyId"] = System.getenv("GPG_SIGNING_KEY_ID")
-extra["signingInMemoryKeyPassword"] = System.getenv("GPG_SIGNING_PASSWORD")
+ pom {
+ name.set("Openlayer API")
+ description.set("API for interacting with the Openlayer server.")
+ url.set("https://openlayer.com/docs/api-reference/rest/overview")
-configure {
- signAllPublications()
- publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
+ licenses {
+ license {
+ name.set("Apache-2.0")
+ }
+ }
- this.coordinates(project.group.toString(), project.name, project.version.toString())
+ developers {
+ developer {
+ name.set("Openlayer")
+ email.set("support@openlayer.com")
+ }
+ }
- pom {
- name.set("Openlayer API")
- description.set("API for interacting with the Openlayer server.")
- url.set("https://openlayer.com/docs/api-reference/rest/overview")
+ scm {
+ connection.set("scm:git:git://github.com/openlayer-ai/openlayer-java.git")
+ developerConnection.set("scm:git:git://github.com/openlayer-ai/openlayer-java.git")
+ url.set("https://github.com/openlayer-ai/openlayer-java")
+ }
- licenses {
- license {
- name.set("Apache-2.0")
- }
- }
-
- developers {
- developer {
- name.set("Openlayer")
- email.set("support@openlayer.com")
+ versionMapping {
+ allVariants {
+ fromResolutionResult()
+ }
+ }
}
}
+ }
+}
- scm {
- connection.set("scm:git:git://github.com/openlayer-ai/openlayer-java.git")
- developerConnection.set("scm:git:git://github.com/openlayer-ai/openlayer-java.git")
- url.set("https://github.com/openlayer-ai/openlayer-java")
- }
+signing {
+ val signingKeyId = System.getenv("GPG_SIGNING_KEY_ID")?.ifBlank { null }
+ val signingKey = System.getenv("GPG_SIGNING_KEY")?.ifBlank { null }
+ val signingPassword = System.getenv("GPG_SIGNING_PASSWORD")?.ifBlank { null }
+ if (signingKey != null && signingPassword != null) {
+ useInMemoryPgpKeys(
+ signingKeyId,
+ signingKey,
+ signingPassword,
+ )
+ sign(publishing.publications["maven"])
}
}
+
+tasks.named("publish") {
+ dependsOn(":closeAndReleaseSonatypeStagingRepository")
+}
diff --git a/openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OkHttpClient.kt b/openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OkHttpClient.kt
similarity index 93%
rename from openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OkHttpClient.kt
rename to openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OkHttpClient.kt
index bfa04c9..13779b0 100644
--- a/openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OkHttpClient.kt
+++ b/openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OkHttpClient.kt
@@ -1,7 +1,14 @@
-package org.openlayer.client.okhttp
+package com.openlayer.api.client.okhttp
import com.google.common.collect.ListMultimap
import com.google.common.collect.MultimapBuilder
+import com.openlayer.api.core.RequestOptions
+import com.openlayer.api.core.http.HttpClient
+import com.openlayer.api.core.http.HttpMethod
+import com.openlayer.api.core.http.HttpRequest
+import com.openlayer.api.core.http.HttpRequestBody
+import com.openlayer.api.core.http.HttpResponse
+import com.openlayer.api.errors.OpenlayerIoException
import java.io.IOException
import java.io.InputStream
import java.net.Proxy
@@ -19,13 +26,6 @@ import okhttp3.RequestBody
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.Response
import okio.BufferedSink
-import org.openlayer.core.RequestOptions
-import org.openlayer.core.http.HttpClient
-import org.openlayer.core.http.HttpMethod
-import org.openlayer.core.http.HttpRequest
-import org.openlayer.core.http.HttpRequestBody
-import org.openlayer.core.http.HttpResponse
-import org.openlayer.errors.OpenlayerIoException
class OkHttpClient
private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val baseUrl: HttpUrl) :
diff --git a/openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OpenlayerOkHttpClient.kt b/openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OpenlayerOkHttpClient.kt
similarity index 93%
rename from openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OpenlayerOkHttpClient.kt
rename to openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OpenlayerOkHttpClient.kt
index ad640c1..1dff803 100644
--- a/openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OpenlayerOkHttpClient.kt
+++ b/openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OpenlayerOkHttpClient.kt
@@ -1,14 +1,14 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.client.okhttp
+package com.openlayer.api.client.okhttp
import com.fasterxml.jackson.databind.json.JsonMapper
+import com.openlayer.api.client.OpenlayerClient
+import com.openlayer.api.client.OpenlayerClientImpl
+import com.openlayer.api.core.ClientOptions
import java.net.Proxy
import java.time.Clock
import java.time.Duration
-import org.openlayer.client.OpenlayerClient
-import org.openlayer.client.OpenlayerClientImpl
-import org.openlayer.core.ClientOptions
class OpenlayerOkHttpClient private constructor() {
diff --git a/openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OpenlayerOkHttpClientAsync.kt b/openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OpenlayerOkHttpClientAsync.kt
similarity index 93%
rename from openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OpenlayerOkHttpClientAsync.kt
rename to openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OpenlayerOkHttpClientAsync.kt
index 1a33a1c..0866f95 100644
--- a/openlayer-java-client-okhttp/src/main/kotlin/org/openlayer/client/okhttp/OpenlayerOkHttpClientAsync.kt
+++ b/openlayer-java-client-okhttp/src/main/kotlin/com/openlayer/api/client/okhttp/OpenlayerOkHttpClientAsync.kt
@@ -1,14 +1,14 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.client.okhttp
+package com.openlayer.api.client.okhttp
import com.fasterxml.jackson.databind.json.JsonMapper
+import com.openlayer.api.client.OpenlayerClientAsync
+import com.openlayer.api.client.OpenlayerClientAsyncImpl
+import com.openlayer.api.core.ClientOptions
import java.net.Proxy
import java.time.Clock
import java.time.Duration
-import org.openlayer.client.OpenlayerClientAsync
-import org.openlayer.client.OpenlayerClientAsyncImpl
-import org.openlayer.core.ClientOptions
class OpenlayerOkHttpClientAsync private constructor() {
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClient.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClient.kt
similarity index 75%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClient.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClient.kt
index 916c328..1f528fc 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClient.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClient.kt
@@ -2,10 +2,10 @@
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-package org.openlayer.client
+package com.openlayer.api.client
-import org.openlayer.models.*
-import org.openlayer.services.blocking.*
+import com.openlayer.api.models.*
+import com.openlayer.api.services.blocking.*
interface OpenlayerClient {
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientAsync.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientAsync.kt
similarity index 76%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientAsync.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientAsync.kt
index 38f2d7e..57d71e1 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientAsync.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientAsync.kt
@@ -2,10 +2,10 @@
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
-package org.openlayer.client
+package com.openlayer.api.client
-import org.openlayer.models.*
-import org.openlayer.services.async.*
+import com.openlayer.api.models.*
+import com.openlayer.api.services.async.*
interface OpenlayerClientAsync {
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientAsyncImpl.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientAsyncImpl.kt
similarity index 75%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientAsyncImpl.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientAsyncImpl.kt
index 2b4bbce..a6a4ee6 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientAsyncImpl.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientAsyncImpl.kt
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.client
-
-import org.openlayer.core.ClientOptions
-import org.openlayer.core.http.HttpResponse.Handler
-import org.openlayer.errors.OpenlayerError
-import org.openlayer.models.*
-import org.openlayer.services.async.*
-import org.openlayer.services.errorHandler
+package com.openlayer.api.client
+
+import com.openlayer.api.core.ClientOptions
+import com.openlayer.api.core.http.HttpResponse.Handler
+import com.openlayer.api.errors.OpenlayerError
+import com.openlayer.api.models.*
+import com.openlayer.api.services.async.*
+import com.openlayer.api.services.errorHandler
class OpenlayerClientAsyncImpl
constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientImpl.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientImpl.kt
similarity index 74%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientImpl.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientImpl.kt
index 7f1a32e..e8378b1 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/client/OpenlayerClientImpl.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/client/OpenlayerClientImpl.kt
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.client
-
-import org.openlayer.core.ClientOptions
-import org.openlayer.core.http.HttpResponse.Handler
-import org.openlayer.errors.OpenlayerError
-import org.openlayer.models.*
-import org.openlayer.services.blocking.*
-import org.openlayer.services.errorHandler
+package com.openlayer.api.client
+
+import com.openlayer.api.core.ClientOptions
+import com.openlayer.api.core.http.HttpResponse.Handler
+import com.openlayer.api.errors.OpenlayerError
+import com.openlayer.api.models.*
+import com.openlayer.api.services.blocking.*
+import com.openlayer.api.services.errorHandler
class OpenlayerClientImpl
constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/BaseDeserializer.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/BaseDeserializer.kt
similarity index 98%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/BaseDeserializer.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/BaseDeserializer.kt
index e2344e5..0573e16 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/BaseDeserializer.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/BaseDeserializer.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core
+package com.openlayer.api.core
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.ObjectCodec
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/BaseSerializer.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/BaseSerializer.kt
similarity index 85%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/BaseSerializer.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/BaseSerializer.kt
index d3031ef..eb87e2c 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/BaseSerializer.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/BaseSerializer.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core
+package com.openlayer.api.core
import com.fasterxml.jackson.databind.ser.std.StdSerializer
import kotlin.reflect.KClass
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/ClientOptions.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/ClientOptions.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/ClientOptions.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/ClientOptions.kt
index d3434c8..ed353b4 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/ClientOptions.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/ClientOptions.kt
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.core
+package com.openlayer.api.core
import com.fasterxml.jackson.databind.json.JsonMapper
import com.google.common.collect.ArrayListMultimap
import com.google.common.collect.ListMultimap
+import com.openlayer.api.core.http.HttpClient
+import com.openlayer.api.core.http.RetryingHttpClient
import java.time.Clock
-import org.openlayer.core.http.HttpClient
-import org.openlayer.core.http.RetryingHttpClient
class ClientOptions
private constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/ObjectMappers.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/ObjectMappers.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/ObjectMappers.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/ObjectMappers.kt
index 5c86b9e..2a22f38 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/ObjectMappers.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/ObjectMappers.kt
@@ -1,6 +1,6 @@
@file:JvmName("ObjectMappers")
-package org.openlayer.core
+package com.openlayer.api.core
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.DeserializationFeature
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/Properties.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Properties.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/Properties.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Properties.kt
index d057b2f..bc0d02a 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/Properties.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Properties.kt
@@ -1,6 +1,6 @@
@file:JvmName("Properties")
-package org.openlayer.core
+package com.openlayer.api.core
import java.util.Properties
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/RequestOptions.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/RequestOptions.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/RequestOptions.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/RequestOptions.kt
index 2afeccc..2b862a3 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/RequestOptions.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/RequestOptions.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core
+package com.openlayer.api.core
import java.time.Duration
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/Utils.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Utils.kt
similarity index 93%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/Utils.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Utils.kt
index a7ca7ec..8f46e25 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/Utils.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Utils.kt
@@ -1,12 +1,12 @@
@file:JvmName("Utils")
-package org.openlayer.core
+package com.openlayer.api.core
import com.google.common.collect.ImmutableListMultimap
import com.google.common.collect.ListMultimap
import com.google.common.collect.Multimaps
+import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.util.Collections
-import org.openlayer.errors.OpenlayerInvalidDataException
@JvmSynthetic
internal fun T?.getOrThrow(name: String): T {
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/Values.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Values.kt
similarity index 99%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/Values.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Values.kt
index b89c39b..12b454f 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/Values.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/Values.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core
+package com.openlayer.api.core
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside
import com.fasterxml.jackson.annotation.JsonAutoDetect
@@ -26,11 +26,11 @@ import com.fasterxml.jackson.databind.node.JsonNodeType.OBJECT
import com.fasterxml.jackson.databind.node.JsonNodeType.POJO
import com.fasterxml.jackson.databind.node.JsonNodeType.STRING
import com.fasterxml.jackson.databind.ser.std.NullSerializer
+import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.nio.charset.Charset
import java.util.Objects
import java.util.Optional
import org.apache.hc.core5.http.ContentType
-import org.openlayer.errors.OpenlayerInvalidDataException
@JsonDeserialize(using = JsonField.Deserializer::class)
sealed class JsonField {
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/BinaryResponseContent.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/BinaryResponseContent.kt
similarity index 88%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/http/BinaryResponseContent.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/BinaryResponseContent.kt
index 852939a..4c099ff 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/BinaryResponseContent.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/BinaryResponseContent.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core.http
+package com.openlayer.api.core.http
import java.io.Closeable
import java.io.IOException
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpClient.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpClient.kt
similarity index 83%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpClient.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpClient.kt
index 354581b..b9cac17 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpClient.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpClient.kt
@@ -1,8 +1,8 @@
-package org.openlayer.core.http
+package com.openlayer.api.core.http
+import com.openlayer.api.core.RequestOptions
import java.io.Closeable
import java.util.concurrent.CompletableFuture
-import org.openlayer.core.RequestOptions
interface HttpClient : Closeable {
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpMethod.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpMethod.kt
similarity index 77%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpMethod.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpMethod.kt
index 53afed9..f029948 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpMethod.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpMethod.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core.http
+package com.openlayer.api.core.http
enum class HttpMethod {
GET,
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpRequest.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpRequest.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpRequest.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpRequest.kt
index 3f30a60..243c19a 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpRequest.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpRequest.kt
@@ -1,10 +1,10 @@
-package org.openlayer.core.http
+package com.openlayer.api.core.http
import com.google.common.collect.ArrayListMultimap
import com.google.common.collect.ListMultimap
import com.google.common.collect.Multimap
import com.google.common.collect.MultimapBuilder
-import org.openlayer.core.toUnmodifiable
+import com.openlayer.api.core.toUnmodifiable
class HttpRequest
private constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpRequestBody.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpRequestBody.kt
similarity index 94%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpRequestBody.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpRequestBody.kt
index e85338d..4f4dbd1 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpRequestBody.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpRequestBody.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core.http
+package com.openlayer.api.core.http
import java.io.Closeable
import java.io.IOException
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpResponse.kt
similarity index 90%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpResponse.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpResponse.kt
index 8f50461..c4c2f92 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/HttpResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/HttpResponse.kt
@@ -1,4 +1,4 @@
-package org.openlayer.core.http
+package com.openlayer.api.core.http
import com.google.common.collect.ListMultimap
import java.io.Closeable
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/RetryingHttpClient.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/RetryingHttpClient.kt
similarity index 98%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/core/http/RetryingHttpClient.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/RetryingHttpClient.kt
index 4f33c10..a90d6f4 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/core/http/RetryingHttpClient.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/RetryingHttpClient.kt
@@ -1,8 +1,10 @@
@file:JvmSynthetic
-package org.openlayer.core.http
+package com.openlayer.api.core.http
import com.google.common.util.concurrent.MoreExecutors
+import com.openlayer.api.core.RequestOptions
+import com.openlayer.api.errors.OpenlayerIoException
import java.io.IOException
import java.time.Clock
import java.time.Duration
@@ -19,8 +21,6 @@ import java.util.concurrent.TimeUnit
import java.util.function.Function
import kotlin.math.min
import kotlin.math.pow
-import org.openlayer.core.RequestOptions
-import org.openlayer.errors.OpenlayerIoException
class RetryingHttpClient
private constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/BadRequestException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/BadRequestException.kt
similarity index 90%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/BadRequestException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/BadRequestException.kt
index 0e7c4a5..f51b5d2 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/BadRequestException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/BadRequestException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/InternalServerException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/InternalServerException.kt
similarity index 91%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/InternalServerException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/InternalServerException.kt
index fab7f30..b0c6a67 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/InternalServerException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/InternalServerException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/NotFoundException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/NotFoundException.kt
similarity index 90%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/NotFoundException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/NotFoundException.kt
index eaf39a8..9efe856 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/NotFoundException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/NotFoundException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerError.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerError.kt
similarity index 92%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerError.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerError.kt
index 0edb21a..59250fe 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerError.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerError.kt
@@ -1,14 +1,14 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
import java.util.Objects
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.toUnmodifiable
@JsonDeserialize(builder = OpenlayerError.Builder::class)
@NoAutoDetect
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerException.kt
similarity index 81%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerException.kt
index 29dd500..741adba 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
open class OpenlayerException
@JvmOverloads
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerInvalidDataException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerInvalidDataException.kt
similarity index 82%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerInvalidDataException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerInvalidDataException.kt
index aaaaa7f..e576549 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerInvalidDataException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerInvalidDataException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
class OpenlayerInvalidDataException
@JvmOverloads
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerIoException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerIoException.kt
similarity index 81%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerIoException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerIoException.kt
index 4cefedf..23217df 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerIoException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerIoException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
class OpenlayerIoException
@JvmOverloads
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerServiceException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerServiceException.kt
similarity index 91%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerServiceException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerServiceException.kt
index 39024b5..916e4ed 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/OpenlayerServiceException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerServiceException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/PermissionDeniedException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/PermissionDeniedException.kt
similarity index 90%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/PermissionDeniedException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/PermissionDeniedException.kt
index 88acfb1..cc7f0d6 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/PermissionDeniedException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/PermissionDeniedException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/RateLimitException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/RateLimitException.kt
similarity index 90%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/RateLimitException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/RateLimitException.kt
index 3abc49b..5b83fd0 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/RateLimitException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/RateLimitException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnauthorizedException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnauthorizedException.kt
similarity index 90%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnauthorizedException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnauthorizedException.kt
index 8e5ea1d..f0e8f0f 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnauthorizedException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnauthorizedException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnexpectedStatusCodeException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnexpectedStatusCodeException.kt
similarity index 91%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnexpectedStatusCodeException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnexpectedStatusCodeException.kt
index 083edeb..30e8d3a 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnexpectedStatusCodeException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnexpectedStatusCodeException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnprocessableEntityException.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnprocessableEntityException.kt
similarity index 90%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnprocessableEntityException.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnprocessableEntityException.kt
index 32c5117..87dba98 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/errors/UnprocessableEntityException.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/UnprocessableEntityException.kt
@@ -1,4 +1,4 @@
-package org.openlayer.errors
+package com.openlayer.api.errors
import com.google.common.collect.ListMultimap
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/CommitTestResultListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListParams.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/CommitTestResultListParams.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListParams.kt
index 8f36b3d..5337a3c 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/CommitTestResultListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListParams.kt
@@ -1,17 +1,17 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
import com.fasterxml.jackson.annotation.JsonCreator
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
+import com.openlayer.api.models.*
import java.util.Objects
import java.util.Optional
-import org.openlayer.core.Enum
-import org.openlayer.core.JsonField
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.errors.OpenlayerInvalidDataException
-import org.openlayer.models.*
class CommitTestResultListParams
constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/CommitTestResultListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListResponse.kt
similarity index 99%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/CommitTestResultListResponse.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListResponse.kt
index 04127f0..731f3b5 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/CommitTestResultListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListResponse.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
@@ -13,20 +13,20 @@ import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
+import com.openlayer.api.core.BaseDeserializer
+import com.openlayer.api.core.BaseSerializer
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonMissing
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.getOrThrow
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.time.OffsetDateTime
import java.util.Objects
import java.util.Optional
-import org.openlayer.core.BaseDeserializer
-import org.openlayer.core.BaseSerializer
-import org.openlayer.core.Enum
-import org.openlayer.core.ExcludeMissing
-import org.openlayer.core.JsonField
-import org.openlayer.core.JsonMissing
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.getOrThrow
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.errors.OpenlayerInvalidDataException
@JsonDeserialize(builder = CommitTestResultListResponse.Builder::class)
@NoAutoDetect
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineDataStreamParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamParams.kt
similarity index 99%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineDataStreamParams.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamParams.kt
index 759d243..3efe054 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineDataStreamParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamParams.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
@@ -12,19 +12,19 @@ import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
+import com.openlayer.api.core.BaseDeserializer
+import com.openlayer.api.core.BaseSerializer
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonMissing
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.getOrThrow
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
+import com.openlayer.api.models.*
import java.util.Objects
import java.util.Optional
-import org.openlayer.core.BaseDeserializer
-import org.openlayer.core.BaseSerializer
-import org.openlayer.core.ExcludeMissing
-import org.openlayer.core.JsonField
-import org.openlayer.core.JsonMissing
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.getOrThrow
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.errors.OpenlayerInvalidDataException
-import org.openlayer.models.*
class InferencePipelineDataStreamParams
constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineDataStreamResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamResponse.kt
similarity index 92%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineDataStreamResponse.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamResponse.kt
index 3ecfc52..087ceda 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineDataStreamResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamResponse.kt
@@ -1,21 +1,21 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonMissing
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.util.Objects
-import org.openlayer.core.Enum
-import org.openlayer.core.ExcludeMissing
-import org.openlayer.core.JsonField
-import org.openlayer.core.JsonMissing
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.errors.OpenlayerInvalidDataException
@JsonDeserialize(builder = InferencePipelineDataStreamResponse.Builder::class)
@NoAutoDetect
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineTestResultListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParams.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineTestResultListParams.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParams.kt
index 36afe62..cb8fb3c 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineTestResultListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParams.kt
@@ -1,17 +1,17 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
import com.fasterxml.jackson.annotation.JsonCreator
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
+import com.openlayer.api.models.*
import java.util.Objects
import java.util.Optional
-import org.openlayer.core.Enum
-import org.openlayer.core.JsonField
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.errors.OpenlayerInvalidDataException
-import org.openlayer.models.*
class InferencePipelineTestResultListParams
constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineTestResultListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponse.kt
similarity index 99%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineTestResultListResponse.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponse.kt
index a11dfed..045ce71 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/InferencePipelineTestResultListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponse.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
@@ -13,20 +13,20 @@ import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
+import com.openlayer.api.core.BaseDeserializer
+import com.openlayer.api.core.BaseSerializer
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonMissing
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.getOrThrow
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.time.OffsetDateTime
import java.util.Objects
import java.util.Optional
-import org.openlayer.core.BaseDeserializer
-import org.openlayer.core.BaseSerializer
-import org.openlayer.core.Enum
-import org.openlayer.core.ExcludeMissing
-import org.openlayer.core.JsonField
-import org.openlayer.core.JsonMissing
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.getOrThrow
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.errors.OpenlayerInvalidDataException
@JsonDeserialize(builder = InferencePipelineTestResultListResponse.Builder::class)
@NoAutoDetect
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/ProjectCommitListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListParams.kt
similarity index 97%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/ProjectCommitListParams.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListParams.kt
index 5b862ce..6951d52 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/ProjectCommitListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListParams.kt
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.models.*
import java.util.Objects
import java.util.Optional
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.models.*
class ProjectCommitListParams
constructor(
diff --git a/openlayer-java-core/src/main/kotlin/org/openlayer/models/ProjectCommitListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListResponse.kt
similarity index 99%
rename from openlayer-java-core/src/main/kotlin/org/openlayer/models/ProjectCommitListResponse.kt
rename to openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListResponse.kt
index e75be66..da9d1fd 100644
--- a/openlayer-java-core/src/main/kotlin/org/openlayer/models/ProjectCommitListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListResponse.kt
@@ -1,23 +1,23 @@
// File generated from our OpenAPI spec by Stainless.
-package org.openlayer.models
+package com.openlayer.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonMissing
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.time.OffsetDateTime
import java.util.Objects
import java.util.Optional
-import org.openlayer.core.Enum
-import org.openlayer.core.ExcludeMissing
-import org.openlayer.core.JsonField
-import org.openlayer.core.JsonMissing
-import org.openlayer.core.JsonValue
-import org.openlayer.core.NoAutoDetect
-import org.openlayer.core.toUnmodifiable
-import org.openlayer.errors.OpenlayerInvalidDataException
@JsonDeserialize(builder = ProjectCommitListResponse.Builder::class)
@NoAutoDetect
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt
new file mode 100644
index 0000000..7feaef8
--- /dev/null
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt
@@ -0,0 +1,817 @@
+// File generated from our OpenAPI spec by Stainless.
+
+package com.openlayer.api.models
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter
+import com.fasterxml.jackson.annotation.JsonAnySetter
+import com.fasterxml.jackson.annotation.JsonCreator
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
+import com.openlayer.api.models.*
+import java.time.OffsetDateTime
+import java.util.Objects
+import java.util.Optional
+
+class ProjectCreateParams
+constructor(
+ private val name: String,
+ private val taskType: TaskType,
+ private val description: String?,
+ private val gitRepo: GitRepo?,
+ private val slackChannelId: String?,
+ private val slackChannelName: String?,
+ private val slackChannelNotificationsEnabled: Boolean?,
+ private val additionalQueryParams: Map>,
+ private val additionalHeaders: Map>,
+ private val additionalBodyProperties: Map,
+) {
+
+ fun name(): String = name
+
+ fun taskType(): TaskType = taskType
+
+ fun description(): Optional = Optional.ofNullable(description)
+
+ fun gitRepo(): Optional = Optional.ofNullable(gitRepo)
+
+ fun slackChannelId(): Optional = Optional.ofNullable(slackChannelId)
+
+ fun slackChannelName(): Optional = Optional.ofNullable(slackChannelName)
+
+ fun slackChannelNotificationsEnabled(): Optional =
+ Optional.ofNullable(slackChannelNotificationsEnabled)
+
+ @JvmSynthetic
+ internal fun getBody(): ProjectCreateBody {
+ return ProjectCreateBody(
+ name,
+ taskType,
+ description,
+ gitRepo,
+ slackChannelId,
+ slackChannelName,
+ slackChannelNotificationsEnabled,
+ additionalBodyProperties,
+ )
+ }
+
+ @JvmSynthetic internal fun getQueryParams(): Map> = additionalQueryParams
+
+ @JvmSynthetic internal fun getHeaders(): Map> = additionalHeaders
+
+ @JsonDeserialize(builder = ProjectCreateBody.Builder::class)
+ @NoAutoDetect
+ class ProjectCreateBody
+ internal constructor(
+ private val name: String?,
+ private val taskType: TaskType?,
+ private val description: String?,
+ private val gitRepo: GitRepo?,
+ private val slackChannelId: String?,
+ private val slackChannelName: String?,
+ private val slackChannelNotificationsEnabled: Boolean?,
+ private val additionalProperties: Map,
+ ) {
+
+ private var hashCode: Int = 0
+
+ /** The project name. */
+ @JsonProperty("name") fun name(): String? = name
+
+ /** The task type of the project. */
+ @JsonProperty("taskType") fun taskType(): TaskType? = taskType
+
+ /** The project description. */
+ @JsonProperty("description") fun description(): String? = description
+
+ @JsonProperty("gitRepo") fun gitRepo(): GitRepo? = gitRepo
+
+ /** The slack channel id connected to the project. */
+ @JsonProperty("slackChannelId") fun slackChannelId(): String? = slackChannelId
+
+ /** The slack channel connected to the project. */
+ @JsonProperty("slackChannelName") fun slackChannelName(): String? = slackChannelName
+
+ /** Whether slack channel notifications are enabled for the project. */
+ @JsonProperty("slackChannelNotificationsEnabled")
+ fun slackChannelNotificationsEnabled(): Boolean? = slackChannelNotificationsEnabled
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is ProjectCreateBody &&
+ this.name == other.name &&
+ this.taskType == other.taskType &&
+ this.description == other.description &&
+ this.gitRepo == other.gitRepo &&
+ this.slackChannelId == other.slackChannelId &&
+ this.slackChannelName == other.slackChannelName &&
+ this.slackChannelNotificationsEnabled == other.slackChannelNotificationsEnabled &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode =
+ Objects.hash(
+ name,
+ taskType,
+ description,
+ gitRepo,
+ slackChannelId,
+ slackChannelName,
+ slackChannelNotificationsEnabled,
+ additionalProperties,
+ )
+ }
+ return hashCode
+ }
+
+ override fun toString() =
+ "ProjectCreateBody{name=$name, taskType=$taskType, description=$description, gitRepo=$gitRepo, slackChannelId=$slackChannelId, slackChannelName=$slackChannelName, slackChannelNotificationsEnabled=$slackChannelNotificationsEnabled, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var name: String? = null
+ private var taskType: TaskType? = null
+ private var description: String? = null
+ private var gitRepo: GitRepo? = null
+ private var slackChannelId: String? = null
+ private var slackChannelName: String? = null
+ private var slackChannelNotificationsEnabled: Boolean? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(projectCreateBody: ProjectCreateBody) = apply {
+ this.name = projectCreateBody.name
+ this.taskType = projectCreateBody.taskType
+ this.description = projectCreateBody.description
+ this.gitRepo = projectCreateBody.gitRepo
+ this.slackChannelId = projectCreateBody.slackChannelId
+ this.slackChannelName = projectCreateBody.slackChannelName
+ this.slackChannelNotificationsEnabled =
+ projectCreateBody.slackChannelNotificationsEnabled
+ additionalProperties(projectCreateBody.additionalProperties)
+ }
+
+ /** The project name. */
+ @JsonProperty("name") fun name(name: String) = apply { this.name = name }
+
+ /** The task type of the project. */
+ @JsonProperty("taskType")
+ fun taskType(taskType: TaskType) = apply { this.taskType = taskType }
+
+ /** The project description. */
+ @JsonProperty("description")
+ fun description(description: String) = apply { this.description = description }
+
+ @JsonProperty("gitRepo")
+ fun gitRepo(gitRepo: GitRepo) = apply { this.gitRepo = gitRepo }
+
+ /** The slack channel id connected to the project. */
+ @JsonProperty("slackChannelId")
+ fun slackChannelId(slackChannelId: String) = apply {
+ this.slackChannelId = slackChannelId
+ }
+
+ /** The slack channel connected to the project. */
+ @JsonProperty("slackChannelName")
+ fun slackChannelName(slackChannelName: String) = apply {
+ this.slackChannelName = slackChannelName
+ }
+
+ /** Whether slack channel notifications are enabled for the project. */
+ @JsonProperty("slackChannelNotificationsEnabled")
+ fun slackChannelNotificationsEnabled(slackChannelNotificationsEnabled: Boolean) =
+ apply {
+ this.slackChannelNotificationsEnabled = slackChannelNotificationsEnabled
+ }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): ProjectCreateBody =
+ ProjectCreateBody(
+ checkNotNull(name) { "`name` is required but was not set" },
+ checkNotNull(taskType) { "`taskType` is required but was not set" },
+ description,
+ gitRepo,
+ slackChannelId,
+ slackChannelName,
+ slackChannelNotificationsEnabled,
+ additionalProperties.toUnmodifiable(),
+ )
+ }
+ }
+
+ fun _additionalQueryParams(): Map> = additionalQueryParams
+
+ fun _additionalHeaders(): Map> = additionalHeaders
+
+ fun _additionalBodyProperties(): Map = additionalBodyProperties
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is ProjectCreateParams &&
+ this.name == other.name &&
+ this.taskType == other.taskType &&
+ this.description == other.description &&
+ this.gitRepo == other.gitRepo &&
+ this.slackChannelId == other.slackChannelId &&
+ this.slackChannelName == other.slackChannelName &&
+ this.slackChannelNotificationsEnabled == other.slackChannelNotificationsEnabled &&
+ this.additionalQueryParams == other.additionalQueryParams &&
+ this.additionalHeaders == other.additionalHeaders &&
+ this.additionalBodyProperties == other.additionalBodyProperties
+ }
+
+ override fun hashCode(): Int {
+ return Objects.hash(
+ name,
+ taskType,
+ description,
+ gitRepo,
+ slackChannelId,
+ slackChannelName,
+ slackChannelNotificationsEnabled,
+ additionalQueryParams,
+ additionalHeaders,
+ additionalBodyProperties,
+ )
+ }
+
+ override fun toString() =
+ "ProjectCreateParams{name=$name, taskType=$taskType, description=$description, gitRepo=$gitRepo, slackChannelId=$slackChannelId, slackChannelName=$slackChannelName, slackChannelNotificationsEnabled=$slackChannelNotificationsEnabled, additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders, additionalBodyProperties=$additionalBodyProperties}"
+
+ fun toBuilder() = Builder().from(this)
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ @NoAutoDetect
+ class Builder {
+
+ private var name: String? = null
+ private var taskType: TaskType? = null
+ private var description: String? = null
+ private var gitRepo: GitRepo? = null
+ private var slackChannelId: String? = null
+ private var slackChannelName: String? = null
+ private var slackChannelNotificationsEnabled: Boolean? = null
+ private var additionalQueryParams: MutableMap> = mutableMapOf()
+ private var additionalHeaders: MutableMap> = mutableMapOf()
+ private var additionalBodyProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(projectCreateParams: ProjectCreateParams) = apply {
+ this.name = projectCreateParams.name
+ this.taskType = projectCreateParams.taskType
+ this.description = projectCreateParams.description
+ this.gitRepo = projectCreateParams.gitRepo
+ this.slackChannelId = projectCreateParams.slackChannelId
+ this.slackChannelName = projectCreateParams.slackChannelName
+ this.slackChannelNotificationsEnabled =
+ projectCreateParams.slackChannelNotificationsEnabled
+ additionalQueryParams(projectCreateParams.additionalQueryParams)
+ additionalHeaders(projectCreateParams.additionalHeaders)
+ additionalBodyProperties(projectCreateParams.additionalBodyProperties)
+ }
+
+ /** The project name. */
+ fun name(name: String) = apply { this.name = name }
+
+ /** The task type of the project. */
+ fun taskType(taskType: TaskType) = apply { this.taskType = taskType }
+
+ /** The project description. */
+ fun description(description: String) = apply { this.description = description }
+
+ fun gitRepo(gitRepo: GitRepo) = apply { this.gitRepo = gitRepo }
+
+ /** The slack channel id connected to the project. */
+ fun slackChannelId(slackChannelId: String) = apply { this.slackChannelId = slackChannelId }
+
+ /** The slack channel connected to the project. */
+ fun slackChannelName(slackChannelName: String) = apply {
+ this.slackChannelName = slackChannelName
+ }
+
+ /** Whether slack channel notifications are enabled for the project. */
+ fun slackChannelNotificationsEnabled(slackChannelNotificationsEnabled: Boolean) = apply {
+ this.slackChannelNotificationsEnabled = slackChannelNotificationsEnabled
+ }
+
+ fun additionalQueryParams(additionalQueryParams: Map>) = apply {
+ this.additionalQueryParams.clear()
+ putAllQueryParams(additionalQueryParams)
+ }
+
+ fun putQueryParam(name: String, value: String) = apply {
+ this.additionalQueryParams.getOrPut(name) { mutableListOf() }.add(value)
+ }
+
+ fun putQueryParams(name: String, values: Iterable) = apply {
+ this.additionalQueryParams.getOrPut(name) { mutableListOf() }.addAll(values)
+ }
+
+ fun putAllQueryParams(additionalQueryParams: Map>) = apply {
+ additionalQueryParams.forEach(this::putQueryParams)
+ }
+
+ fun removeQueryParam(name: String) = apply {
+ this.additionalQueryParams.put(name, mutableListOf())
+ }
+
+ fun additionalHeaders(additionalHeaders: Map>) = apply {
+ this.additionalHeaders.clear()
+ putAllHeaders(additionalHeaders)
+ }
+
+ fun putHeader(name: String, value: String) = apply {
+ this.additionalHeaders.getOrPut(name) { mutableListOf() }.add(value)
+ }
+
+ fun putHeaders(name: String, values: Iterable) = apply {
+ this.additionalHeaders.getOrPut(name) { mutableListOf() }.addAll(values)
+ }
+
+ fun putAllHeaders(additionalHeaders: Map>) = apply {
+ additionalHeaders.forEach(this::putHeaders)
+ }
+
+ fun removeHeader(name: String) = apply { this.additionalHeaders.put(name, mutableListOf()) }
+
+ fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
+ this.additionalBodyProperties.clear()
+ this.additionalBodyProperties.putAll(additionalBodyProperties)
+ }
+
+ fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply {
+ this.additionalBodyProperties.put(key, value)
+ }
+
+ fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
+ apply {
+ this.additionalBodyProperties.putAll(additionalBodyProperties)
+ }
+
+ fun build(): ProjectCreateParams =
+ ProjectCreateParams(
+ checkNotNull(name) { "`name` is required but was not set" },
+ checkNotNull(taskType) { "`taskType` is required but was not set" },
+ description,
+ gitRepo,
+ slackChannelId,
+ slackChannelName,
+ slackChannelNotificationsEnabled,
+ additionalQueryParams.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
+ additionalHeaders.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
+ additionalBodyProperties.toUnmodifiable(),
+ )
+ }
+
+ /** Links to the project. */
+ @JsonDeserialize(builder = Links.Builder::class)
+ @NoAutoDetect
+ class Links
+ private constructor(
+ private val app: String?,
+ private val additionalProperties: Map,
+ ) {
+
+ private var hashCode: Int = 0
+
+ @JsonProperty("app") fun app(): String? = app
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Links &&
+ this.app == other.app &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode = Objects.hash(app, additionalProperties)
+ }
+ return hashCode
+ }
+
+ override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var app: String? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(links: Links) = apply {
+ this.app = links.app
+ additionalProperties(links.additionalProperties)
+ }
+
+ @JsonProperty("app") fun app(app: String) = apply { this.app = app }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): Links =
+ Links(
+ checkNotNull(app) { "`app` is required but was not set" },
+ additionalProperties.toUnmodifiable()
+ )
+ }
+ }
+
+ class Source
+ @JsonCreator
+ private constructor(
+ private val value: JsonField,
+ ) : Enum {
+
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Source && this.value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+
+ companion object {
+
+ @JvmField val WEB = Source(JsonField.of("web"))
+
+ @JvmField val API = Source(JsonField.of("api"))
+
+ @JvmField val NULL = Source(JsonField.of("null"))
+
+ @JvmStatic fun of(value: String) = Source(JsonField.of(value))
+ }
+
+ enum class Known {
+ WEB,
+ API,
+ NULL,
+ }
+
+ enum class Value {
+ WEB,
+ API,
+ NULL,
+ _UNKNOWN,
+ }
+
+ fun value(): Value =
+ when (this) {
+ WEB -> Value.WEB
+ API -> Value.API
+ NULL -> Value.NULL
+ else -> Value._UNKNOWN
+ }
+
+ fun known(): Known =
+ when (this) {
+ WEB -> Known.WEB
+ API -> Known.API
+ NULL -> Known.NULL
+ else -> throw OpenlayerInvalidDataException("Unknown Source: $value")
+ }
+
+ fun asString(): String = _value().asStringOrThrow()
+ }
+
+ class TaskType
+ @JsonCreator
+ private constructor(
+ private val value: JsonField,
+ ) : Enum {
+
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is TaskType && this.value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+
+ companion object {
+
+ @JvmField val LLM_BASE = TaskType(JsonField.of("llm-base"))
+
+ @JvmField val TABULAR_CLASSIFICATION = TaskType(JsonField.of("tabular-classification"))
+
+ @JvmField val TABULAR_REGRESSION = TaskType(JsonField.of("tabular-regression"))
+
+ @JvmField val TEXT_CLASSIFICATION = TaskType(JsonField.of("text-classification"))
+
+ @JvmStatic fun of(value: String) = TaskType(JsonField.of(value))
+ }
+
+ enum class Known {
+ LLM_BASE,
+ TABULAR_CLASSIFICATION,
+ TABULAR_REGRESSION,
+ TEXT_CLASSIFICATION,
+ }
+
+ enum class Value {
+ LLM_BASE,
+ TABULAR_CLASSIFICATION,
+ TABULAR_REGRESSION,
+ TEXT_CLASSIFICATION,
+ _UNKNOWN,
+ }
+
+ fun value(): Value =
+ when (this) {
+ LLM_BASE -> Value.LLM_BASE
+ TABULAR_CLASSIFICATION -> Value.TABULAR_CLASSIFICATION
+ TABULAR_REGRESSION -> Value.TABULAR_REGRESSION
+ TEXT_CLASSIFICATION -> Value.TEXT_CLASSIFICATION
+ else -> Value._UNKNOWN
+ }
+
+ fun known(): Known =
+ when (this) {
+ LLM_BASE -> Known.LLM_BASE
+ TABULAR_CLASSIFICATION -> Known.TABULAR_CLASSIFICATION
+ TABULAR_REGRESSION -> Known.TABULAR_REGRESSION
+ TEXT_CLASSIFICATION -> Known.TEXT_CLASSIFICATION
+ else -> throw OpenlayerInvalidDataException("Unknown TaskType: $value")
+ }
+
+ fun asString(): String = _value().asStringOrThrow()
+ }
+
+ @JsonDeserialize(builder = GitRepo.Builder::class)
+ @NoAutoDetect
+ class GitRepo
+ private constructor(
+ private val id: String?,
+ private val gitId: Long?,
+ private val dateConnected: OffsetDateTime?,
+ private val dateUpdated: OffsetDateTime?,
+ private val branch: String?,
+ private val name: String?,
+ private val private_: Boolean?,
+ private val slug: String?,
+ private val url: String?,
+ private val rootDir: String?,
+ private val projectId: String?,
+ private val gitAccountId: String?,
+ private val additionalProperties: Map,
+ ) {
+
+ private var hashCode: Int = 0
+
+ @JsonProperty("id") fun id(): String? = id
+
+ @JsonProperty("gitId") fun gitId(): Long? = gitId
+
+ @JsonProperty("dateConnected") fun dateConnected(): OffsetDateTime? = dateConnected
+
+ @JsonProperty("dateUpdated") fun dateUpdated(): OffsetDateTime? = dateUpdated
+
+ @JsonProperty("branch") fun branch(): String? = branch
+
+ @JsonProperty("name") fun name(): String? = name
+
+ @JsonProperty("private") fun private_(): Boolean? = private_
+
+ @JsonProperty("slug") fun slug(): String? = slug
+
+ @JsonProperty("url") fun url(): String? = url
+
+ @JsonProperty("rootDir") fun rootDir(): String? = rootDir
+
+ @JsonProperty("projectId") fun projectId(): String? = projectId
+
+ @JsonProperty("gitAccountId") fun gitAccountId(): String? = gitAccountId
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is GitRepo &&
+ this.id == other.id &&
+ this.gitId == other.gitId &&
+ this.dateConnected == other.dateConnected &&
+ this.dateUpdated == other.dateUpdated &&
+ this.branch == other.branch &&
+ this.name == other.name &&
+ this.private_ == other.private_ &&
+ this.slug == other.slug &&
+ this.url == other.url &&
+ this.rootDir == other.rootDir &&
+ this.projectId == other.projectId &&
+ this.gitAccountId == other.gitAccountId &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode =
+ Objects.hash(
+ id,
+ gitId,
+ dateConnected,
+ dateUpdated,
+ branch,
+ name,
+ private_,
+ slug,
+ url,
+ rootDir,
+ projectId,
+ gitAccountId,
+ additionalProperties,
+ )
+ }
+ return hashCode
+ }
+
+ override fun toString() =
+ "GitRepo{id=$id, gitId=$gitId, dateConnected=$dateConnected, dateUpdated=$dateUpdated, branch=$branch, name=$name, private_=$private_, slug=$slug, url=$url, rootDir=$rootDir, projectId=$projectId, gitAccountId=$gitAccountId, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var id: String? = null
+ private var gitId: Long? = null
+ private var dateConnected: OffsetDateTime? = null
+ private var dateUpdated: OffsetDateTime? = null
+ private var branch: String? = null
+ private var name: String? = null
+ private var private_: Boolean? = null
+ private var slug: String? = null
+ private var url: String? = null
+ private var rootDir: String? = null
+ private var projectId: String? = null
+ private var gitAccountId: String? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(gitRepo: GitRepo) = apply {
+ this.id = gitRepo.id
+ this.gitId = gitRepo.gitId
+ this.dateConnected = gitRepo.dateConnected
+ this.dateUpdated = gitRepo.dateUpdated
+ this.branch = gitRepo.branch
+ this.name = gitRepo.name
+ this.private_ = gitRepo.private_
+ this.slug = gitRepo.slug
+ this.url = gitRepo.url
+ this.rootDir = gitRepo.rootDir
+ this.projectId = gitRepo.projectId
+ this.gitAccountId = gitRepo.gitAccountId
+ additionalProperties(gitRepo.additionalProperties)
+ }
+
+ @JsonProperty("id") fun id(id: String) = apply { this.id = id }
+
+ @JsonProperty("gitId") fun gitId(gitId: Long) = apply { this.gitId = gitId }
+
+ @JsonProperty("dateConnected")
+ fun dateConnected(dateConnected: OffsetDateTime) = apply {
+ this.dateConnected = dateConnected
+ }
+
+ @JsonProperty("dateUpdated")
+ fun dateUpdated(dateUpdated: OffsetDateTime) = apply { this.dateUpdated = dateUpdated }
+
+ @JsonProperty("branch") fun branch(branch: String) = apply { this.branch = branch }
+
+ @JsonProperty("name") fun name(name: String) = apply { this.name = name }
+
+ @JsonProperty("private")
+ fun private_(private_: Boolean) = apply { this.private_ = private_ }
+
+ @JsonProperty("slug") fun slug(slug: String) = apply { this.slug = slug }
+
+ @JsonProperty("url") fun url(url: String) = apply { this.url = url }
+
+ @JsonProperty("rootDir") fun rootDir(rootDir: String) = apply { this.rootDir = rootDir }
+
+ @JsonProperty("projectId")
+ fun projectId(projectId: String) = apply { this.projectId = projectId }
+
+ @JsonProperty("gitAccountId")
+ fun gitAccountId(gitAccountId: String) = apply { this.gitAccountId = gitAccountId }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): GitRepo =
+ GitRepo(
+ checkNotNull(id) { "`id` is required but was not set" },
+ checkNotNull(gitId) { "`gitId` is required but was not set" },
+ checkNotNull(dateConnected) { "`dateConnected` is required but was not set" },
+ checkNotNull(dateUpdated) { "`dateUpdated` is required but was not set" },
+ branch,
+ checkNotNull(name) { "`name` is required but was not set" },
+ checkNotNull(private_) { "`private_` is required but was not set" },
+ checkNotNull(slug) { "`slug` is required but was not set" },
+ checkNotNull(url) { "`url` is required but was not set" },
+ rootDir,
+ checkNotNull(projectId) { "`projectId` is required but was not set" },
+ checkNotNull(gitAccountId) { "`gitAccountId` is required but was not set" },
+ additionalProperties.toUnmodifiable(),
+ )
+ }
+ }
+}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt
new file mode 100644
index 0000000..fdbee3e
--- /dev/null
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt
@@ -0,0 +1,1092 @@
+// File generated from our OpenAPI spec by Stainless.
+
+package com.openlayer.api.models
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter
+import com.fasterxml.jackson.annotation.JsonAnySetter
+import com.fasterxml.jackson.annotation.JsonCreator
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonMissing
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
+import java.time.OffsetDateTime
+import java.util.Objects
+import java.util.Optional
+
+@JsonDeserialize(builder = ProjectCreateResponse.Builder::class)
+@NoAutoDetect
+class ProjectCreateResponse
+private constructor(
+ private val id: JsonField,
+ private val workspaceId: JsonField,
+ private val creatorId: JsonField,
+ private val name: JsonField,
+ private val dateCreated: JsonField,
+ private val dateUpdated: JsonField,
+ private val description: JsonField,
+ private val sample: JsonField,
+ private val source: JsonField,
+ private val taskType: JsonField,
+ private val versionCount: JsonField,
+ private val inferencePipelineCount: JsonField,
+ private val goalCount: JsonField,
+ private val developmentGoalCount: JsonField,
+ private val monitoringGoalCount: JsonField,
+ private val unreadNotificationCount: JsonField,
+ private val links: JsonField,
+ private val slackChannelNotificationsEnabled: JsonField,
+ private val slackChannelName: JsonField,
+ private val slackChannelId: JsonField,
+ private val gitRepo: JsonField,
+ private val additionalProperties: Map,
+) {
+
+ private var validated: Boolean = false
+
+ private var hashCode: Int = 0
+
+ /** The project id. */
+ fun id(): String = id.getRequired("id")
+
+ /** The workspace id. */
+ fun workspaceId(): Optional =
+ Optional.ofNullable(workspaceId.getNullable("workspaceId"))
+
+ /** The project creator id. */
+ fun creatorId(): Optional = Optional.ofNullable(creatorId.getNullable("creatorId"))
+
+ /** The project name. */
+ fun name(): String = name.getRequired("name")
+
+ /** The project creation date. */
+ fun dateCreated(): OffsetDateTime = dateCreated.getRequired("dateCreated")
+
+ /** The project last updated date. */
+ fun dateUpdated(): OffsetDateTime = dateUpdated.getRequired("dateUpdated")
+
+ /** The project description. */
+ fun description(): Optional =
+ Optional.ofNullable(description.getNullable("description"))
+
+ /** Whether the project is a sample project or a user-created project. */
+ fun sample(): Boolean = sample.getRequired("sample")
+
+ /** The source of the project. */
+ fun source(): Optional = Optional.ofNullable(source.getNullable("source"))
+
+ /** The task type of the project. */
+ fun taskType(): TaskType = taskType.getRequired("taskType")
+
+ /** The number of versions (commits) in the project. */
+ fun versionCount(): Long = versionCount.getRequired("versionCount")
+
+ /** The number of inference pipelines in the project. */
+ fun inferencePipelineCount(): Long =
+ inferencePipelineCount.getRequired("inferencePipelineCount")
+
+ /** The total number of tests in the project. */
+ fun goalCount(): Long = goalCount.getRequired("goalCount")
+
+ /** The number of tests in the development mode of the project. */
+ fun developmentGoalCount(): Long = developmentGoalCount.getRequired("developmentGoalCount")
+
+ /** The number of tests in the monitoring mode of the project. */
+ fun monitoringGoalCount(): Long = monitoringGoalCount.getRequired("monitoringGoalCount")
+
+ /** The number of unread notifications in the project. */
+ fun unreadNotificationCount(): Optional =
+ Optional.ofNullable(unreadNotificationCount.getNullable("unreadNotificationCount"))
+
+ /** Links to the project. */
+ fun links(): Links = links.getRequired("links")
+
+ /** Whether slack channel notifications are enabled for the project. */
+ fun slackChannelNotificationsEnabled(): Optional =
+ Optional.ofNullable(
+ slackChannelNotificationsEnabled.getNullable("slackChannelNotificationsEnabled")
+ )
+
+ /** The slack channel connected to the project. */
+ fun slackChannelName(): Optional =
+ Optional.ofNullable(slackChannelName.getNullable("slackChannelName"))
+
+ /** The slack channel id connected to the project. */
+ fun slackChannelId(): Optional =
+ Optional.ofNullable(slackChannelId.getNullable("slackChannelId"))
+
+ fun gitRepo(): Optional = Optional.ofNullable(gitRepo.getNullable("gitRepo"))
+
+ /** The project id. */
+ @JsonProperty("id") @ExcludeMissing fun _id() = id
+
+ /** The workspace id. */
+ @JsonProperty("workspaceId") @ExcludeMissing fun _workspaceId() = workspaceId
+
+ /** The project creator id. */
+ @JsonProperty("creatorId") @ExcludeMissing fun _creatorId() = creatorId
+
+ /** The project name. */
+ @JsonProperty("name") @ExcludeMissing fun _name() = name
+
+ /** The project creation date. */
+ @JsonProperty("dateCreated") @ExcludeMissing fun _dateCreated() = dateCreated
+
+ /** The project last updated date. */
+ @JsonProperty("dateUpdated") @ExcludeMissing fun _dateUpdated() = dateUpdated
+
+ /** The project description. */
+ @JsonProperty("description") @ExcludeMissing fun _description() = description
+
+ /** Whether the project is a sample project or a user-created project. */
+ @JsonProperty("sample") @ExcludeMissing fun _sample() = sample
+
+ /** The source of the project. */
+ @JsonProperty("source") @ExcludeMissing fun _source() = source
+
+ /** The task type of the project. */
+ @JsonProperty("taskType") @ExcludeMissing fun _taskType() = taskType
+
+ /** The number of versions (commits) in the project. */
+ @JsonProperty("versionCount") @ExcludeMissing fun _versionCount() = versionCount
+
+ /** The number of inference pipelines in the project. */
+ @JsonProperty("inferencePipelineCount")
+ @ExcludeMissing
+ fun _inferencePipelineCount() = inferencePipelineCount
+
+ /** The total number of tests in the project. */
+ @JsonProperty("goalCount") @ExcludeMissing fun _goalCount() = goalCount
+
+ /** The number of tests in the development mode of the project. */
+ @JsonProperty("developmentGoalCount")
+ @ExcludeMissing
+ fun _developmentGoalCount() = developmentGoalCount
+
+ /** The number of tests in the monitoring mode of the project. */
+ @JsonProperty("monitoringGoalCount")
+ @ExcludeMissing
+ fun _monitoringGoalCount() = monitoringGoalCount
+
+ /** The number of unread notifications in the project. */
+ @JsonProperty("unreadNotificationCount")
+ @ExcludeMissing
+ fun _unreadNotificationCount() = unreadNotificationCount
+
+ /** Links to the project. */
+ @JsonProperty("links") @ExcludeMissing fun _links() = links
+
+ /** Whether slack channel notifications are enabled for the project. */
+ @JsonProperty("slackChannelNotificationsEnabled")
+ @ExcludeMissing
+ fun _slackChannelNotificationsEnabled() = slackChannelNotificationsEnabled
+
+ /** The slack channel connected to the project. */
+ @JsonProperty("slackChannelName") @ExcludeMissing fun _slackChannelName() = slackChannelName
+
+ /** The slack channel id connected to the project. */
+ @JsonProperty("slackChannelId") @ExcludeMissing fun _slackChannelId() = slackChannelId
+
+ @JsonProperty("gitRepo") @ExcludeMissing fun _gitRepo() = gitRepo
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun validate(): ProjectCreateResponse = apply {
+ if (!validated) {
+ id()
+ workspaceId()
+ creatorId()
+ name()
+ dateCreated()
+ dateUpdated()
+ description()
+ sample()
+ source()
+ taskType()
+ versionCount()
+ inferencePipelineCount()
+ goalCount()
+ developmentGoalCount()
+ monitoringGoalCount()
+ unreadNotificationCount()
+ links().validate()
+ slackChannelNotificationsEnabled()
+ slackChannelName()
+ slackChannelId()
+ gitRepo().map { it.validate() }
+ validated = true
+ }
+ }
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is ProjectCreateResponse &&
+ this.id == other.id &&
+ this.workspaceId == other.workspaceId &&
+ this.creatorId == other.creatorId &&
+ this.name == other.name &&
+ this.dateCreated == other.dateCreated &&
+ this.dateUpdated == other.dateUpdated &&
+ this.description == other.description &&
+ this.sample == other.sample &&
+ this.source == other.source &&
+ this.taskType == other.taskType &&
+ this.versionCount == other.versionCount &&
+ this.inferencePipelineCount == other.inferencePipelineCount &&
+ this.goalCount == other.goalCount &&
+ this.developmentGoalCount == other.developmentGoalCount &&
+ this.monitoringGoalCount == other.monitoringGoalCount &&
+ this.unreadNotificationCount == other.unreadNotificationCount &&
+ this.links == other.links &&
+ this.slackChannelNotificationsEnabled == other.slackChannelNotificationsEnabled &&
+ this.slackChannelName == other.slackChannelName &&
+ this.slackChannelId == other.slackChannelId &&
+ this.gitRepo == other.gitRepo &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode =
+ Objects.hash(
+ id,
+ workspaceId,
+ creatorId,
+ name,
+ dateCreated,
+ dateUpdated,
+ description,
+ sample,
+ source,
+ taskType,
+ versionCount,
+ inferencePipelineCount,
+ goalCount,
+ developmentGoalCount,
+ monitoringGoalCount,
+ unreadNotificationCount,
+ links,
+ slackChannelNotificationsEnabled,
+ slackChannelName,
+ slackChannelId,
+ gitRepo,
+ additionalProperties,
+ )
+ }
+ return hashCode
+ }
+
+ override fun toString() =
+ "ProjectCreateResponse{id=$id, workspaceId=$workspaceId, creatorId=$creatorId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, description=$description, sample=$sample, source=$source, taskType=$taskType, versionCount=$versionCount, inferencePipelineCount=$inferencePipelineCount, goalCount=$goalCount, developmentGoalCount=$developmentGoalCount, monitoringGoalCount=$monitoringGoalCount, unreadNotificationCount=$unreadNotificationCount, links=$links, slackChannelNotificationsEnabled=$slackChannelNotificationsEnabled, slackChannelName=$slackChannelName, slackChannelId=$slackChannelId, gitRepo=$gitRepo, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var id: JsonField = JsonMissing.of()
+ private var workspaceId: JsonField = JsonMissing.of()
+ private var creatorId: JsonField = JsonMissing.of()
+ private var name: JsonField = JsonMissing.of()
+ private var dateCreated: JsonField = JsonMissing.of()
+ private var dateUpdated: JsonField = JsonMissing.of()
+ private var description: JsonField = JsonMissing.of()
+ private var sample: JsonField = JsonMissing.of()
+ private var source: JsonField = JsonMissing.of()
+ private var taskType: JsonField = JsonMissing.of()
+ private var versionCount: JsonField = JsonMissing.of()
+ private var inferencePipelineCount: JsonField = JsonMissing.of()
+ private var goalCount: JsonField = JsonMissing.of()
+ private var developmentGoalCount: JsonField = JsonMissing.of()
+ private var monitoringGoalCount: JsonField = JsonMissing.of()
+ private var unreadNotificationCount: JsonField = JsonMissing.of()
+ private var links: JsonField = JsonMissing.of()
+ private var slackChannelNotificationsEnabled: JsonField = JsonMissing.of()
+ private var slackChannelName: JsonField = JsonMissing.of()
+ private var slackChannelId: JsonField = JsonMissing.of()
+ private var gitRepo: JsonField = JsonMissing.of()
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(projectCreateResponse: ProjectCreateResponse) = apply {
+ this.id = projectCreateResponse.id
+ this.workspaceId = projectCreateResponse.workspaceId
+ this.creatorId = projectCreateResponse.creatorId
+ this.name = projectCreateResponse.name
+ this.dateCreated = projectCreateResponse.dateCreated
+ this.dateUpdated = projectCreateResponse.dateUpdated
+ this.description = projectCreateResponse.description
+ this.sample = projectCreateResponse.sample
+ this.source = projectCreateResponse.source
+ this.taskType = projectCreateResponse.taskType
+ this.versionCount = projectCreateResponse.versionCount
+ this.inferencePipelineCount = projectCreateResponse.inferencePipelineCount
+ this.goalCount = projectCreateResponse.goalCount
+ this.developmentGoalCount = projectCreateResponse.developmentGoalCount
+ this.monitoringGoalCount = projectCreateResponse.monitoringGoalCount
+ this.unreadNotificationCount = projectCreateResponse.unreadNotificationCount
+ this.links = projectCreateResponse.links
+ this.slackChannelNotificationsEnabled =
+ projectCreateResponse.slackChannelNotificationsEnabled
+ this.slackChannelName = projectCreateResponse.slackChannelName
+ this.slackChannelId = projectCreateResponse.slackChannelId
+ this.gitRepo = projectCreateResponse.gitRepo
+ additionalProperties(projectCreateResponse.additionalProperties)
+ }
+
+ /** The project id. */
+ fun id(id: String) = id(JsonField.of(id))
+
+ /** The project id. */
+ @JsonProperty("id") @ExcludeMissing fun id(id: JsonField) = apply { this.id = id }
+
+ /** The workspace id. */
+ fun workspaceId(workspaceId: String) = workspaceId(JsonField.of(workspaceId))
+
+ /** The workspace id. */
+ @JsonProperty("workspaceId")
+ @ExcludeMissing
+ fun workspaceId(workspaceId: JsonField) = apply { this.workspaceId = workspaceId }
+
+ /** The project creator id. */
+ fun creatorId(creatorId: String) = creatorId(JsonField.of(creatorId))
+
+ /** The project creator id. */
+ @JsonProperty("creatorId")
+ @ExcludeMissing
+ fun creatorId(creatorId: JsonField) = apply { this.creatorId = creatorId }
+
+ /** The project name. */
+ fun name(name: String) = name(JsonField.of(name))
+
+ /** The project name. */
+ @JsonProperty("name")
+ @ExcludeMissing
+ fun name(name: JsonField) = apply { this.name = name }
+
+ /** The project creation date. */
+ fun dateCreated(dateCreated: OffsetDateTime) = dateCreated(JsonField.of(dateCreated))
+
+ /** The project creation date. */
+ @JsonProperty("dateCreated")
+ @ExcludeMissing
+ fun dateCreated(dateCreated: JsonField) = apply {
+ this.dateCreated = dateCreated
+ }
+
+ /** The project last updated date. */
+ fun dateUpdated(dateUpdated: OffsetDateTime) = dateUpdated(JsonField.of(dateUpdated))
+
+ /** The project last updated date. */
+ @JsonProperty("dateUpdated")
+ @ExcludeMissing
+ fun dateUpdated(dateUpdated: JsonField) = apply {
+ this.dateUpdated = dateUpdated
+ }
+
+ /** The project description. */
+ fun description(description: String) = description(JsonField.of(description))
+
+ /** The project description. */
+ @JsonProperty("description")
+ @ExcludeMissing
+ fun description(description: JsonField) = apply { this.description = description }
+
+ /** Whether the project is a sample project or a user-created project. */
+ fun sample(sample: Boolean) = sample(JsonField.of(sample))
+
+ /** Whether the project is a sample project or a user-created project. */
+ @JsonProperty("sample")
+ @ExcludeMissing
+ fun sample(sample: JsonField) = apply { this.sample = sample }
+
+ /** The source of the project. */
+ fun source(source: Source) = source(JsonField.of(source))
+
+ /** The source of the project. */
+ @JsonProperty("source")
+ @ExcludeMissing
+ fun source(source: JsonField) = apply { this.source = source }
+
+ /** The task type of the project. */
+ fun taskType(taskType: TaskType) = taskType(JsonField.of(taskType))
+
+ /** The task type of the project. */
+ @JsonProperty("taskType")
+ @ExcludeMissing
+ fun taskType(taskType: JsonField) = apply { this.taskType = taskType }
+
+ /** The number of versions (commits) in the project. */
+ fun versionCount(versionCount: Long) = versionCount(JsonField.of(versionCount))
+
+ /** The number of versions (commits) in the project. */
+ @JsonProperty("versionCount")
+ @ExcludeMissing
+ fun versionCount(versionCount: JsonField) = apply { this.versionCount = versionCount }
+
+ /** The number of inference pipelines in the project. */
+ fun inferencePipelineCount(inferencePipelineCount: Long) =
+ inferencePipelineCount(JsonField.of(inferencePipelineCount))
+
+ /** The number of inference pipelines in the project. */
+ @JsonProperty("inferencePipelineCount")
+ @ExcludeMissing
+ fun inferencePipelineCount(inferencePipelineCount: JsonField) = apply {
+ this.inferencePipelineCount = inferencePipelineCount
+ }
+
+ /** The total number of tests in the project. */
+ fun goalCount(goalCount: Long) = goalCount(JsonField.of(goalCount))
+
+ /** The total number of tests in the project. */
+ @JsonProperty("goalCount")
+ @ExcludeMissing
+ fun goalCount(goalCount: JsonField) = apply { this.goalCount = goalCount }
+
+ /** The number of tests in the development mode of the project. */
+ fun developmentGoalCount(developmentGoalCount: Long) =
+ developmentGoalCount(JsonField.of(developmentGoalCount))
+
+ /** The number of tests in the development mode of the project. */
+ @JsonProperty("developmentGoalCount")
+ @ExcludeMissing
+ fun developmentGoalCount(developmentGoalCount: JsonField) = apply {
+ this.developmentGoalCount = developmentGoalCount
+ }
+
+ /** The number of tests in the monitoring mode of the project. */
+ fun monitoringGoalCount(monitoringGoalCount: Long) =
+ monitoringGoalCount(JsonField.of(monitoringGoalCount))
+
+ /** The number of tests in the monitoring mode of the project. */
+ @JsonProperty("monitoringGoalCount")
+ @ExcludeMissing
+ fun monitoringGoalCount(monitoringGoalCount: JsonField) = apply {
+ this.monitoringGoalCount = monitoringGoalCount
+ }
+
+ /** The number of unread notifications in the project. */
+ fun unreadNotificationCount(unreadNotificationCount: Long) =
+ unreadNotificationCount(JsonField.of(unreadNotificationCount))
+
+ /** The number of unread notifications in the project. */
+ @JsonProperty("unreadNotificationCount")
+ @ExcludeMissing
+ fun unreadNotificationCount(unreadNotificationCount: JsonField) = apply {
+ this.unreadNotificationCount = unreadNotificationCount
+ }
+
+ /** Links to the project. */
+ fun links(links: Links) = links(JsonField.of(links))
+
+ /** Links to the project. */
+ @JsonProperty("links")
+ @ExcludeMissing
+ fun links(links: JsonField) = apply { this.links = links }
+
+ /** Whether slack channel notifications are enabled for the project. */
+ fun slackChannelNotificationsEnabled(slackChannelNotificationsEnabled: Boolean) =
+ slackChannelNotificationsEnabled(JsonField.of(slackChannelNotificationsEnabled))
+
+ /** Whether slack channel notifications are enabled for the project. */
+ @JsonProperty("slackChannelNotificationsEnabled")
+ @ExcludeMissing
+ fun slackChannelNotificationsEnabled(slackChannelNotificationsEnabled: JsonField) =
+ apply {
+ this.slackChannelNotificationsEnabled = slackChannelNotificationsEnabled
+ }
+
+ /** The slack channel connected to the project. */
+ fun slackChannelName(slackChannelName: String) =
+ slackChannelName(JsonField.of(slackChannelName))
+
+ /** The slack channel connected to the project. */
+ @JsonProperty("slackChannelName")
+ @ExcludeMissing
+ fun slackChannelName(slackChannelName: JsonField) = apply {
+ this.slackChannelName = slackChannelName
+ }
+
+ /** The slack channel id connected to the project. */
+ fun slackChannelId(slackChannelId: String) = slackChannelId(JsonField.of(slackChannelId))
+
+ /** The slack channel id connected to the project. */
+ @JsonProperty("slackChannelId")
+ @ExcludeMissing
+ fun slackChannelId(slackChannelId: JsonField) = apply {
+ this.slackChannelId = slackChannelId
+ }
+
+ fun gitRepo(gitRepo: GitRepo) = gitRepo(JsonField.of(gitRepo))
+
+ @JsonProperty("gitRepo")
+ @ExcludeMissing
+ fun gitRepo(gitRepo: JsonField) = apply { this.gitRepo = gitRepo }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): ProjectCreateResponse =
+ ProjectCreateResponse(
+ id,
+ workspaceId,
+ creatorId,
+ name,
+ dateCreated,
+ dateUpdated,
+ description,
+ sample,
+ source,
+ taskType,
+ versionCount,
+ inferencePipelineCount,
+ goalCount,
+ developmentGoalCount,
+ monitoringGoalCount,
+ unreadNotificationCount,
+ links,
+ slackChannelNotificationsEnabled,
+ slackChannelName,
+ slackChannelId,
+ gitRepo,
+ additionalProperties.toUnmodifiable(),
+ )
+ }
+
+ /** Links to the project. */
+ @JsonDeserialize(builder = Links.Builder::class)
+ @NoAutoDetect
+ class Links
+ private constructor(
+ private val app: JsonField,
+ private val additionalProperties: Map,
+ ) {
+
+ private var validated: Boolean = false
+
+ private var hashCode: Int = 0
+
+ fun app(): String = app.getRequired("app")
+
+ @JsonProperty("app") @ExcludeMissing fun _app() = app
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun validate(): Links = apply {
+ if (!validated) {
+ app()
+ validated = true
+ }
+ }
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Links &&
+ this.app == other.app &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode = Objects.hash(app, additionalProperties)
+ }
+ return hashCode
+ }
+
+ override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var app: JsonField = JsonMissing.of()
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(links: Links) = apply {
+ this.app = links.app
+ additionalProperties(links.additionalProperties)
+ }
+
+ fun app(app: String) = app(JsonField.of(app))
+
+ @JsonProperty("app")
+ @ExcludeMissing
+ fun app(app: JsonField) = apply { this.app = app }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): Links = Links(app, additionalProperties.toUnmodifiable())
+ }
+ }
+
+ class Source
+ @JsonCreator
+ private constructor(
+ private val value: JsonField,
+ ) : Enum {
+
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Source && this.value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+
+ companion object {
+
+ @JvmField val WEB = Source(JsonField.of("web"))
+
+ @JvmField val API = Source(JsonField.of("api"))
+
+ @JvmField val NULL = Source(JsonField.of("null"))
+
+ @JvmStatic fun of(value: String) = Source(JsonField.of(value))
+ }
+
+ enum class Known {
+ WEB,
+ API,
+ NULL,
+ }
+
+ enum class Value {
+ WEB,
+ API,
+ NULL,
+ _UNKNOWN,
+ }
+
+ fun value(): Value =
+ when (this) {
+ WEB -> Value.WEB
+ API -> Value.API
+ NULL -> Value.NULL
+ else -> Value._UNKNOWN
+ }
+
+ fun known(): Known =
+ when (this) {
+ WEB -> Known.WEB
+ API -> Known.API
+ NULL -> Known.NULL
+ else -> throw OpenlayerInvalidDataException("Unknown Source: $value")
+ }
+
+ fun asString(): String = _value().asStringOrThrow()
+ }
+
+ class TaskType
+ @JsonCreator
+ private constructor(
+ private val value: JsonField,
+ ) : Enum {
+
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is TaskType && this.value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+
+ companion object {
+
+ @JvmField val LLM_BASE = TaskType(JsonField.of("llm-base"))
+
+ @JvmField val TABULAR_CLASSIFICATION = TaskType(JsonField.of("tabular-classification"))
+
+ @JvmField val TABULAR_REGRESSION = TaskType(JsonField.of("tabular-regression"))
+
+ @JvmField val TEXT_CLASSIFICATION = TaskType(JsonField.of("text-classification"))
+
+ @JvmStatic fun of(value: String) = TaskType(JsonField.of(value))
+ }
+
+ enum class Known {
+ LLM_BASE,
+ TABULAR_CLASSIFICATION,
+ TABULAR_REGRESSION,
+ TEXT_CLASSIFICATION,
+ }
+
+ enum class Value {
+ LLM_BASE,
+ TABULAR_CLASSIFICATION,
+ TABULAR_REGRESSION,
+ TEXT_CLASSIFICATION,
+ _UNKNOWN,
+ }
+
+ fun value(): Value =
+ when (this) {
+ LLM_BASE -> Value.LLM_BASE
+ TABULAR_CLASSIFICATION -> Value.TABULAR_CLASSIFICATION
+ TABULAR_REGRESSION -> Value.TABULAR_REGRESSION
+ TEXT_CLASSIFICATION -> Value.TEXT_CLASSIFICATION
+ else -> Value._UNKNOWN
+ }
+
+ fun known(): Known =
+ when (this) {
+ LLM_BASE -> Known.LLM_BASE
+ TABULAR_CLASSIFICATION -> Known.TABULAR_CLASSIFICATION
+ TABULAR_REGRESSION -> Known.TABULAR_REGRESSION
+ TEXT_CLASSIFICATION -> Known.TEXT_CLASSIFICATION
+ else -> throw OpenlayerInvalidDataException("Unknown TaskType: $value")
+ }
+
+ fun asString(): String = _value().asStringOrThrow()
+ }
+
+ @JsonDeserialize(builder = GitRepo.Builder::class)
+ @NoAutoDetect
+ class GitRepo
+ private constructor(
+ private val id: JsonField,
+ private val gitId: JsonField,
+ private val dateConnected: JsonField,
+ private val dateUpdated: JsonField,
+ private val branch: JsonField,
+ private val name: JsonField,
+ private val private_: JsonField,
+ private val slug: JsonField,
+ private val url: JsonField,
+ private val rootDir: JsonField,
+ private val projectId: JsonField,
+ private val gitAccountId: JsonField,
+ private val additionalProperties: Map,
+ ) {
+
+ private var validated: Boolean = false
+
+ private var hashCode: Int = 0
+
+ fun id(): String = id.getRequired("id")
+
+ fun gitId(): Long = gitId.getRequired("gitId")
+
+ fun dateConnected(): OffsetDateTime = dateConnected.getRequired("dateConnected")
+
+ fun dateUpdated(): OffsetDateTime = dateUpdated.getRequired("dateUpdated")
+
+ fun branch(): Optional = Optional.ofNullable(branch.getNullable("branch"))
+
+ fun name(): String = name.getRequired("name")
+
+ fun private_(): Boolean = private_.getRequired("private")
+
+ fun slug(): String = slug.getRequired("slug")
+
+ fun url(): String = url.getRequired("url")
+
+ fun rootDir(): Optional = Optional.ofNullable(rootDir.getNullable("rootDir"))
+
+ fun projectId(): String = projectId.getRequired("projectId")
+
+ fun gitAccountId(): String = gitAccountId.getRequired("gitAccountId")
+
+ @JsonProperty("id") @ExcludeMissing fun _id() = id
+
+ @JsonProperty("gitId") @ExcludeMissing fun _gitId() = gitId
+
+ @JsonProperty("dateConnected") @ExcludeMissing fun _dateConnected() = dateConnected
+
+ @JsonProperty("dateUpdated") @ExcludeMissing fun _dateUpdated() = dateUpdated
+
+ @JsonProperty("branch") @ExcludeMissing fun _branch() = branch
+
+ @JsonProperty("name") @ExcludeMissing fun _name() = name
+
+ @JsonProperty("private") @ExcludeMissing fun _private_() = private_
+
+ @JsonProperty("slug") @ExcludeMissing fun _slug() = slug
+
+ @JsonProperty("url") @ExcludeMissing fun _url() = url
+
+ @JsonProperty("rootDir") @ExcludeMissing fun _rootDir() = rootDir
+
+ @JsonProperty("projectId") @ExcludeMissing fun _projectId() = projectId
+
+ @JsonProperty("gitAccountId") @ExcludeMissing fun _gitAccountId() = gitAccountId
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun validate(): GitRepo = apply {
+ if (!validated) {
+ id()
+ gitId()
+ dateConnected()
+ dateUpdated()
+ branch()
+ name()
+ private_()
+ slug()
+ url()
+ rootDir()
+ projectId()
+ gitAccountId()
+ validated = true
+ }
+ }
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is GitRepo &&
+ this.id == other.id &&
+ this.gitId == other.gitId &&
+ this.dateConnected == other.dateConnected &&
+ this.dateUpdated == other.dateUpdated &&
+ this.branch == other.branch &&
+ this.name == other.name &&
+ this.private_ == other.private_ &&
+ this.slug == other.slug &&
+ this.url == other.url &&
+ this.rootDir == other.rootDir &&
+ this.projectId == other.projectId &&
+ this.gitAccountId == other.gitAccountId &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode =
+ Objects.hash(
+ id,
+ gitId,
+ dateConnected,
+ dateUpdated,
+ branch,
+ name,
+ private_,
+ slug,
+ url,
+ rootDir,
+ projectId,
+ gitAccountId,
+ additionalProperties,
+ )
+ }
+ return hashCode
+ }
+
+ override fun toString() =
+ "GitRepo{id=$id, gitId=$gitId, dateConnected=$dateConnected, dateUpdated=$dateUpdated, branch=$branch, name=$name, private_=$private_, slug=$slug, url=$url, rootDir=$rootDir, projectId=$projectId, gitAccountId=$gitAccountId, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var id: JsonField = JsonMissing.of()
+ private var gitId: JsonField = JsonMissing.of()
+ private var dateConnected: JsonField = JsonMissing.of()
+ private var dateUpdated: JsonField = JsonMissing.of()
+ private var branch: JsonField = JsonMissing.of()
+ private var name: JsonField = JsonMissing.of()
+ private var private_: JsonField = JsonMissing.of()
+ private var slug: JsonField = JsonMissing.of()
+ private var url: JsonField = JsonMissing.of()
+ private var rootDir: JsonField = JsonMissing.of()
+ private var projectId: JsonField = JsonMissing.of()
+ private var gitAccountId: JsonField = JsonMissing.of()
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(gitRepo: GitRepo) = apply {
+ this.id = gitRepo.id
+ this.gitId = gitRepo.gitId
+ this.dateConnected = gitRepo.dateConnected
+ this.dateUpdated = gitRepo.dateUpdated
+ this.branch = gitRepo.branch
+ this.name = gitRepo.name
+ this.private_ = gitRepo.private_
+ this.slug = gitRepo.slug
+ this.url = gitRepo.url
+ this.rootDir = gitRepo.rootDir
+ this.projectId = gitRepo.projectId
+ this.gitAccountId = gitRepo.gitAccountId
+ additionalProperties(gitRepo.additionalProperties)
+ }
+
+ fun id(id: String) = id(JsonField.of(id))
+
+ @JsonProperty("id")
+ @ExcludeMissing
+ fun id(id: JsonField) = apply { this.id = id }
+
+ fun gitId(gitId: Long) = gitId(JsonField.of(gitId))
+
+ @JsonProperty("gitId")
+ @ExcludeMissing
+ fun gitId(gitId: JsonField) = apply { this.gitId = gitId }
+
+ fun dateConnected(dateConnected: OffsetDateTime) =
+ dateConnected(JsonField.of(dateConnected))
+
+ @JsonProperty("dateConnected")
+ @ExcludeMissing
+ fun dateConnected(dateConnected: JsonField) = apply {
+ this.dateConnected = dateConnected
+ }
+
+ fun dateUpdated(dateUpdated: OffsetDateTime) = dateUpdated(JsonField.of(dateUpdated))
+
+ @JsonProperty("dateUpdated")
+ @ExcludeMissing
+ fun dateUpdated(dateUpdated: JsonField) = apply {
+ this.dateUpdated = dateUpdated
+ }
+
+ fun branch(branch: String) = branch(JsonField.of(branch))
+
+ @JsonProperty("branch")
+ @ExcludeMissing
+ fun branch(branch: JsonField) = apply { this.branch = branch }
+
+ fun name(name: String) = name(JsonField.of(name))
+
+ @JsonProperty("name")
+ @ExcludeMissing
+ fun name(name: JsonField) = apply { this.name = name }
+
+ fun private_(private_: Boolean) = private_(JsonField.of(private_))
+
+ @JsonProperty("private")
+ @ExcludeMissing
+ fun private_(private_: JsonField) = apply { this.private_ = private_ }
+
+ fun slug(slug: String) = slug(JsonField.of(slug))
+
+ @JsonProperty("slug")
+ @ExcludeMissing
+ fun slug(slug: JsonField) = apply { this.slug = slug }
+
+ fun url(url: String) = url(JsonField.of(url))
+
+ @JsonProperty("url")
+ @ExcludeMissing
+ fun url(url: JsonField) = apply { this.url = url }
+
+ fun rootDir(rootDir: String) = rootDir(JsonField.of(rootDir))
+
+ @JsonProperty("rootDir")
+ @ExcludeMissing
+ fun rootDir(rootDir: JsonField) = apply { this.rootDir = rootDir }
+
+ fun projectId(projectId: String) = projectId(JsonField.of(projectId))
+
+ @JsonProperty("projectId")
+ @ExcludeMissing
+ fun projectId(projectId: JsonField) = apply { this.projectId = projectId }
+
+ fun gitAccountId(gitAccountId: String) = gitAccountId(JsonField.of(gitAccountId))
+
+ @JsonProperty("gitAccountId")
+ @ExcludeMissing
+ fun gitAccountId(gitAccountId: JsonField) = apply {
+ this.gitAccountId = gitAccountId
+ }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): GitRepo =
+ GitRepo(
+ id,
+ gitId,
+ dateConnected,
+ dateUpdated,
+ branch,
+ name,
+ private_,
+ slug,
+ url,
+ rootDir,
+ projectId,
+ gitAccountId,
+ additionalProperties.toUnmodifiable(),
+ )
+ }
+ }
+}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt
new file mode 100644
index 0000000..a6465b1
--- /dev/null
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt
@@ -0,0 +1,573 @@
+// File generated from our OpenAPI spec by Stainless.
+
+package com.openlayer.api.models
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter
+import com.fasterxml.jackson.annotation.JsonAnySetter
+import com.fasterxml.jackson.annotation.JsonCreator
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
+import com.openlayer.api.models.*
+import java.util.Objects
+import java.util.Optional
+
+class ProjectInferencePipelineCreateParams
+constructor(
+ private val id: String,
+ private val description: String?,
+ private val name: String,
+ private val referenceDatasetUri: String?,
+ private val storageType: StorageType?,
+ private val additionalQueryParams: Map>,
+ private val additionalHeaders: Map>,
+ private val additionalBodyProperties: Map,
+) {
+
+ fun id(): String = id
+
+ fun description(): Optional = Optional.ofNullable(description)
+
+ fun name(): String = name
+
+ fun referenceDatasetUri(): Optional = Optional.ofNullable(referenceDatasetUri)
+
+ fun storageType(): Optional = Optional.ofNullable(storageType)
+
+ @JvmSynthetic
+ internal fun getBody(): ProjectInferencePipelineCreateBody {
+ return ProjectInferencePipelineCreateBody(
+ description,
+ name,
+ referenceDatasetUri,
+ storageType,
+ additionalBodyProperties,
+ )
+ }
+
+ @JvmSynthetic internal fun getQueryParams(): Map> = additionalQueryParams
+
+ @JvmSynthetic internal fun getHeaders(): Map> = additionalHeaders
+
+ fun getPathParam(index: Int): String {
+ return when (index) {
+ 0 -> id
+ else -> ""
+ }
+ }
+
+ @JsonDeserialize(builder = ProjectInferencePipelineCreateBody.Builder::class)
+ @NoAutoDetect
+ class ProjectInferencePipelineCreateBody
+ internal constructor(
+ private val description: String?,
+ private val name: String?,
+ private val referenceDatasetUri: String?,
+ private val storageType: StorageType?,
+ private val additionalProperties: Map,
+ ) {
+
+ private var hashCode: Int = 0
+
+ /** The inference pipeline description. */
+ @JsonProperty("description") fun description(): String? = description
+
+ /** The inference pipeline name. */
+ @JsonProperty("name") fun name(): String? = name
+
+ /** The reference dataset URI. */
+ @JsonProperty("referenceDatasetUri")
+ fun referenceDatasetUri(): String? = referenceDatasetUri
+
+ /** The storage type. */
+ @JsonProperty("storageType") fun storageType(): StorageType? = storageType
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is ProjectInferencePipelineCreateBody &&
+ this.description == other.description &&
+ this.name == other.name &&
+ this.referenceDatasetUri == other.referenceDatasetUri &&
+ this.storageType == other.storageType &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode =
+ Objects.hash(
+ description,
+ name,
+ referenceDatasetUri,
+ storageType,
+ additionalProperties,
+ )
+ }
+ return hashCode
+ }
+
+ override fun toString() =
+ "ProjectInferencePipelineCreateBody{description=$description, name=$name, referenceDatasetUri=$referenceDatasetUri, storageType=$storageType, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var description: String? = null
+ private var name: String? = null
+ private var referenceDatasetUri: String? = null
+ private var storageType: StorageType? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(
+ projectInferencePipelineCreateBody: ProjectInferencePipelineCreateBody
+ ) = apply {
+ this.description = projectInferencePipelineCreateBody.description
+ this.name = projectInferencePipelineCreateBody.name
+ this.referenceDatasetUri = projectInferencePipelineCreateBody.referenceDatasetUri
+ this.storageType = projectInferencePipelineCreateBody.storageType
+ additionalProperties(projectInferencePipelineCreateBody.additionalProperties)
+ }
+
+ /** The inference pipeline description. */
+ @JsonProperty("description")
+ fun description(description: String) = apply { this.description = description }
+
+ /** The inference pipeline name. */
+ @JsonProperty("name") fun name(name: String) = apply { this.name = name }
+
+ /** The reference dataset URI. */
+ @JsonProperty("referenceDatasetUri")
+ fun referenceDatasetUri(referenceDatasetUri: String) = apply {
+ this.referenceDatasetUri = referenceDatasetUri
+ }
+
+ /** The storage type. */
+ @JsonProperty("storageType")
+ fun storageType(storageType: StorageType) = apply { this.storageType = storageType }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): ProjectInferencePipelineCreateBody =
+ ProjectInferencePipelineCreateBody(
+ description,
+ checkNotNull(name) { "`name` is required but was not set" },
+ referenceDatasetUri,
+ storageType,
+ additionalProperties.toUnmodifiable(),
+ )
+ }
+ }
+
+ fun _additionalQueryParams(): Map> = additionalQueryParams
+
+ fun _additionalHeaders(): Map> = additionalHeaders
+
+ fun _additionalBodyProperties(): Map = additionalBodyProperties
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is ProjectInferencePipelineCreateParams &&
+ this.id == other.id &&
+ this.description == other.description &&
+ this.name == other.name &&
+ this.referenceDatasetUri == other.referenceDatasetUri &&
+ this.storageType == other.storageType &&
+ this.additionalQueryParams == other.additionalQueryParams &&
+ this.additionalHeaders == other.additionalHeaders &&
+ this.additionalBodyProperties == other.additionalBodyProperties
+ }
+
+ override fun hashCode(): Int {
+ return Objects.hash(
+ id,
+ description,
+ name,
+ referenceDatasetUri,
+ storageType,
+ additionalQueryParams,
+ additionalHeaders,
+ additionalBodyProperties,
+ )
+ }
+
+ override fun toString() =
+ "ProjectInferencePipelineCreateParams{id=$id, description=$description, name=$name, referenceDatasetUri=$referenceDatasetUri, storageType=$storageType, additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders, additionalBodyProperties=$additionalBodyProperties}"
+
+ fun toBuilder() = Builder().from(this)
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ @NoAutoDetect
+ class Builder {
+
+ private var id: String? = null
+ private var description: String? = null
+ private var name: String? = null
+ private var referenceDatasetUri: String? = null
+ private var storageType: StorageType? = null
+ private var additionalQueryParams: MutableMap> = mutableMapOf()
+ private var additionalHeaders: MutableMap> = mutableMapOf()
+ private var additionalBodyProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(
+ projectInferencePipelineCreateParams: ProjectInferencePipelineCreateParams
+ ) = apply {
+ this.id = projectInferencePipelineCreateParams.id
+ this.description = projectInferencePipelineCreateParams.description
+ this.name = projectInferencePipelineCreateParams.name
+ this.referenceDatasetUri = projectInferencePipelineCreateParams.referenceDatasetUri
+ this.storageType = projectInferencePipelineCreateParams.storageType
+ additionalQueryParams(projectInferencePipelineCreateParams.additionalQueryParams)
+ additionalHeaders(projectInferencePipelineCreateParams.additionalHeaders)
+ additionalBodyProperties(projectInferencePipelineCreateParams.additionalBodyProperties)
+ }
+
+ fun id(id: String) = apply { this.id = id }
+
+ /** The inference pipeline description. */
+ fun description(description: String) = apply { this.description = description }
+
+ /** The inference pipeline name. */
+ fun name(name: String) = apply { this.name = name }
+
+ /** The reference dataset URI. */
+ fun referenceDatasetUri(referenceDatasetUri: String) = apply {
+ this.referenceDatasetUri = referenceDatasetUri
+ }
+
+ /** The storage type. */
+ fun storageType(storageType: StorageType) = apply { this.storageType = storageType }
+
+ fun additionalQueryParams(additionalQueryParams: Map>) = apply {
+ this.additionalQueryParams.clear()
+ putAllQueryParams(additionalQueryParams)
+ }
+
+ fun putQueryParam(name: String, value: String) = apply {
+ this.additionalQueryParams.getOrPut(name) { mutableListOf() }.add(value)
+ }
+
+ fun putQueryParams(name: String, values: Iterable) = apply {
+ this.additionalQueryParams.getOrPut(name) { mutableListOf() }.addAll(values)
+ }
+
+ fun putAllQueryParams(additionalQueryParams: Map>) = apply {
+ additionalQueryParams.forEach(this::putQueryParams)
+ }
+
+ fun removeQueryParam(name: String) = apply {
+ this.additionalQueryParams.put(name, mutableListOf())
+ }
+
+ fun additionalHeaders(additionalHeaders: Map>) = apply {
+ this.additionalHeaders.clear()
+ putAllHeaders(additionalHeaders)
+ }
+
+ fun putHeader(name: String, value: String) = apply {
+ this.additionalHeaders.getOrPut(name) { mutableListOf() }.add(value)
+ }
+
+ fun putHeaders(name: String, values: Iterable) = apply {
+ this.additionalHeaders.getOrPut(name) { mutableListOf() }.addAll(values)
+ }
+
+ fun putAllHeaders(additionalHeaders: Map>) = apply {
+ additionalHeaders.forEach(this::putHeaders)
+ }
+
+ fun removeHeader(name: String) = apply { this.additionalHeaders.put(name, mutableListOf()) }
+
+ fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
+ this.additionalBodyProperties.clear()
+ this.additionalBodyProperties.putAll(additionalBodyProperties)
+ }
+
+ fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply {
+ this.additionalBodyProperties.put(key, value)
+ }
+
+ fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
+ apply {
+ this.additionalBodyProperties.putAll(additionalBodyProperties)
+ }
+
+ fun build(): ProjectInferencePipelineCreateParams =
+ ProjectInferencePipelineCreateParams(
+ checkNotNull(id) { "`id` is required but was not set" },
+ description,
+ checkNotNull(name) { "`name` is required but was not set" },
+ referenceDatasetUri,
+ storageType,
+ additionalQueryParams.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
+ additionalHeaders.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
+ additionalBodyProperties.toUnmodifiable(),
+ )
+ }
+
+ @JsonDeserialize(builder = Links.Builder::class)
+ @NoAutoDetect
+ class Links
+ private constructor(
+ private val app: String?,
+ private val additionalProperties: Map,
+ ) {
+
+ private var hashCode: Int = 0
+
+ @JsonProperty("app") fun app(): String? = app
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Links &&
+ this.app == other.app &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode = Objects.hash(app, additionalProperties)
+ }
+ return hashCode
+ }
+
+ override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var app: String? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(links: Links) = apply {
+ this.app = links.app
+ additionalProperties(links.additionalProperties)
+ }
+
+ @JsonProperty("app") fun app(app: String) = apply { this.app = app }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ @JsonAnySetter
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ this.additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun build(): Links =
+ Links(
+ checkNotNull(app) { "`app` is required but was not set" },
+ additionalProperties.toUnmodifiable()
+ )
+ }
+ }
+
+ class Status
+ @JsonCreator
+ private constructor(
+ private val value: JsonField,
+ ) : Enum {
+
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Status && this.value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+
+ companion object {
+
+ @JvmField val QUEUED = Status(JsonField.of("queued"))
+
+ @JvmField val RUNNING = Status(JsonField.of("running"))
+
+ @JvmField val PAUSED = Status(JsonField.of("paused"))
+
+ @JvmField val FAILED = Status(JsonField.of("failed"))
+
+ @JvmField val COMPLETED = Status(JsonField.of("completed"))
+
+ @JvmField val UNKNOWN = Status(JsonField.of("unknown"))
+
+ @JvmStatic fun of(value: String) = Status(JsonField.of(value))
+ }
+
+ enum class Known {
+ QUEUED,
+ RUNNING,
+ PAUSED,
+ FAILED,
+ COMPLETED,
+ UNKNOWN,
+ }
+
+ enum class Value {
+ QUEUED,
+ RUNNING,
+ PAUSED,
+ FAILED,
+ COMPLETED,
+ UNKNOWN,
+ _UNKNOWN,
+ }
+
+ fun value(): Value =
+ when (this) {
+ QUEUED -> Value.QUEUED
+ RUNNING -> Value.RUNNING
+ PAUSED -> Value.PAUSED
+ FAILED -> Value.FAILED
+ COMPLETED -> Value.COMPLETED
+ UNKNOWN -> Value.UNKNOWN
+ else -> Value._UNKNOWN
+ }
+
+ fun known(): Known =
+ when (this) {
+ QUEUED -> Known.QUEUED
+ RUNNING -> Known.RUNNING
+ PAUSED -> Known.PAUSED
+ FAILED -> Known.FAILED
+ COMPLETED -> Known.COMPLETED
+ UNKNOWN -> Known.UNKNOWN
+ else -> throw OpenlayerInvalidDataException("Unknown Status: $value")
+ }
+
+ fun asString(): String = _value().asStringOrThrow()
+ }
+
+ class StorageType
+ @JsonCreator
+ private constructor(
+ private val value: JsonField,
+ ) : Enum {
+
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is StorageType && this.value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+
+ companion object {
+
+ @JvmField val LOCAL = StorageType(JsonField.of("local"))
+
+ @JvmField val S3 = StorageType(JsonField.of("s3"))
+
+ @JvmField val GCS = StorageType(JsonField.of("gcs"))
+
+ @JvmField val AZURE = StorageType(JsonField.of("azure"))
+
+ @JvmStatic fun of(value: String) = StorageType(JsonField.of(value))
+ }
+
+ enum class Known {
+ LOCAL,
+ S3,
+ GCS,
+ AZURE,
+ }
+
+ enum class Value {
+ LOCAL,
+ S3,
+ GCS,
+ AZURE,
+ _UNKNOWN,
+ }
+
+ fun value(): Value =
+ when (this) {
+ LOCAL -> Value.LOCAL
+ S3 -> Value.S3
+ GCS -> Value.GCS
+ AZURE -> Value.AZURE
+ else -> Value._UNKNOWN
+ }
+
+ fun known(): Known =
+ when (this) {
+ LOCAL -> Known.LOCAL
+ S3 -> Known.S3
+ GCS -> Known.GCS
+ AZURE -> Known.AZURE
+ else -> throw OpenlayerInvalidDataException("Unknown StorageType: $value")
+ }
+
+ fun asString(): String = _value().asStringOrThrow()
+ }
+}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt
new file mode 100644
index 0000000..02a9a38
--- /dev/null
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt
@@ -0,0 +1,733 @@
+// File generated from our OpenAPI spec by Stainless.
+
+package com.openlayer.api.models
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter
+import com.fasterxml.jackson.annotation.JsonAnySetter
+import com.fasterxml.jackson.annotation.JsonCreator
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
+import com.openlayer.api.core.Enum
+import com.openlayer.api.core.ExcludeMissing
+import com.openlayer.api.core.JsonField
+import com.openlayer.api.core.JsonMissing
+import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.NoAutoDetect
+import com.openlayer.api.core.toUnmodifiable
+import com.openlayer.api.errors.OpenlayerInvalidDataException
+import java.time.OffsetDateTime
+import java.util.Objects
+import java.util.Optional
+
+@JsonDeserialize(builder = ProjectInferencePipelineCreateResponse.Builder::class)
+@NoAutoDetect
+class ProjectInferencePipelineCreateResponse
+private constructor(
+ private val id: JsonField,
+ private val projectId: JsonField,
+ private val name: JsonField,
+ private val dateCreated: JsonField,
+ private val dateUpdated: JsonField,
+ private val dateLastSampleReceived: JsonField,
+ private val description: JsonField,
+ private val dateLastEvaluated: JsonField,
+ private val dateOfNextEvaluation: JsonField,
+ private val passingGoalCount: JsonField,
+ private val failingGoalCount: JsonField,
+ private val totalGoalCount: JsonField,
+ private val referenceDatasetUri: JsonField,
+ private val status: JsonField,
+ private val statusMessage: JsonField,
+ private val storageType: JsonField,
+ private val links: JsonField,
+ private val additionalProperties: Map,
+) {
+
+ private var validated: Boolean = false
+
+ private var hashCode: Int = 0
+
+ /** The inference pipeline id. */
+ fun id(): String = id.getRequired("id")
+
+ /** The project id. */
+ fun projectId(): String = projectId.getRequired("projectId")
+
+ /** The inference pipeline name. */
+ fun name(): String = name.getRequired("name")
+
+ /** The creation date. */
+ fun dateCreated(): OffsetDateTime = dateCreated.getRequired("dateCreated")
+
+ /** The last updated date. */
+ fun dateUpdated(): OffsetDateTime = dateUpdated.getRequired("dateUpdated")
+
+ /** The last data sample received date. */
+ fun dateLastSampleReceived(): Optional =
+ Optional.ofNullable(dateLastSampleReceived.getNullable("dateLastSampleReceived"))
+
+ /** The inference pipeline description. */
+ fun description(): Optional =
+ Optional.ofNullable(description.getNullable("description"))
+
+ /** The last test evaluation date. */
+ fun dateLastEvaluated(): Optional =
+ Optional.ofNullable(dateLastEvaluated.getNullable("dateLastEvaluated"))
+
+ /** The next test evaluation date. */
+ fun dateOfNextEvaluation(): Optional =
+ Optional.ofNullable(dateOfNextEvaluation.getNullable("dateOfNextEvaluation"))
+
+ /** The number of tests passing. */
+ fun passingGoalCount(): Long = passingGoalCount.getRequired("passingGoalCount")
+
+ /** The number of tests failing. */
+ fun failingGoalCount(): Long = failingGoalCount.getRequired("failingGoalCount")
+
+ /** The total number of tests. */
+ fun totalGoalCount(): Long = totalGoalCount.getRequired("totalGoalCount")
+
+ /** The reference dataset URI. */
+ fun referenceDatasetUri(): Optional =
+ Optional.ofNullable(referenceDatasetUri.getNullable("referenceDatasetUri"))
+
+ /** The status of test evaluation for the inference pipeline. */
+ fun status(): Status = status.getRequired("status")
+
+ /** The status message of test evaluation for the inference pipeline. */
+ fun statusMessage(): Optional =
+ Optional.ofNullable(statusMessage.getNullable("statusMessage"))
+
+ /** The storage type. */
+ fun storageType(): Optional =
+ Optional.ofNullable(storageType.getNullable("storageType"))
+
+ fun links(): Links = links.getRequired("links")
+
+ /** The inference pipeline id. */
+ @JsonProperty("id") @ExcludeMissing fun _id() = id
+
+ /** The project id. */
+ @JsonProperty("projectId") @ExcludeMissing fun _projectId() = projectId
+
+ /** The inference pipeline name. */
+ @JsonProperty("name") @ExcludeMissing fun _name() = name
+
+ /** The creation date. */
+ @JsonProperty("dateCreated") @ExcludeMissing fun _dateCreated() = dateCreated
+
+ /** The last updated date. */
+ @JsonProperty("dateUpdated") @ExcludeMissing fun _dateUpdated() = dateUpdated
+
+ /** The last data sample received date. */
+ @JsonProperty("dateLastSampleReceived")
+ @ExcludeMissing
+ fun _dateLastSampleReceived() = dateLastSampleReceived
+
+ /** The inference pipeline description. */
+ @JsonProperty("description") @ExcludeMissing fun _description() = description
+
+ /** The last test evaluation date. */
+ @JsonProperty("dateLastEvaluated") @ExcludeMissing fun _dateLastEvaluated() = dateLastEvaluated
+
+ /** The next test evaluation date. */
+ @JsonProperty("dateOfNextEvaluation")
+ @ExcludeMissing
+ fun _dateOfNextEvaluation() = dateOfNextEvaluation
+
+ /** The number of tests passing. */
+ @JsonProperty("passingGoalCount") @ExcludeMissing fun _passingGoalCount() = passingGoalCount
+
+ /** The number of tests failing. */
+ @JsonProperty("failingGoalCount") @ExcludeMissing fun _failingGoalCount() = failingGoalCount
+
+ /** The total number of tests. */
+ @JsonProperty("totalGoalCount") @ExcludeMissing fun _totalGoalCount() = totalGoalCount
+
+ /** The reference dataset URI. */
+ @JsonProperty("referenceDatasetUri")
+ @ExcludeMissing
+ fun _referenceDatasetUri() = referenceDatasetUri
+
+ /** The status of test evaluation for the inference pipeline. */
+ @JsonProperty("status") @ExcludeMissing fun _status() = status
+
+ /** The status message of test evaluation for the inference pipeline. */
+ @JsonProperty("statusMessage") @ExcludeMissing fun _statusMessage() = statusMessage
+
+ /** The storage type. */
+ @JsonProperty("storageType") @ExcludeMissing fun _storageType() = storageType
+
+ @JsonProperty("links") @ExcludeMissing fun _links() = links
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map = additionalProperties
+
+ fun validate(): ProjectInferencePipelineCreateResponse = apply {
+ if (!validated) {
+ id()
+ projectId()
+ name()
+ dateCreated()
+ dateUpdated()
+ dateLastSampleReceived()
+ description()
+ dateLastEvaluated()
+ dateOfNextEvaluation()
+ passingGoalCount()
+ failingGoalCount()
+ totalGoalCount()
+ referenceDatasetUri()
+ status()
+ statusMessage()
+ storageType()
+ links().validate()
+ validated = true
+ }
+ }
+
+ fun toBuilder() = Builder().from(this)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is ProjectInferencePipelineCreateResponse &&
+ this.id == other.id &&
+ this.projectId == other.projectId &&
+ this.name == other.name &&
+ this.dateCreated == other.dateCreated &&
+ this.dateUpdated == other.dateUpdated &&
+ this.dateLastSampleReceived == other.dateLastSampleReceived &&
+ this.description == other.description &&
+ this.dateLastEvaluated == other.dateLastEvaluated &&
+ this.dateOfNextEvaluation == other.dateOfNextEvaluation &&
+ this.passingGoalCount == other.passingGoalCount &&
+ this.failingGoalCount == other.failingGoalCount &&
+ this.totalGoalCount == other.totalGoalCount &&
+ this.referenceDatasetUri == other.referenceDatasetUri &&
+ this.status == other.status &&
+ this.statusMessage == other.statusMessage &&
+ this.storageType == other.storageType &&
+ this.links == other.links &&
+ this.additionalProperties == other.additionalProperties
+ }
+
+ override fun hashCode(): Int {
+ if (hashCode == 0) {
+ hashCode =
+ Objects.hash(
+ id,
+ projectId,
+ name,
+ dateCreated,
+ dateUpdated,
+ dateLastSampleReceived,
+ description,
+ dateLastEvaluated,
+ dateOfNextEvaluation,
+ passingGoalCount,
+ failingGoalCount,
+ totalGoalCount,
+ referenceDatasetUri,
+ status,
+ statusMessage,
+ storageType,
+ links,
+ additionalProperties,
+ )
+ }
+ return hashCode
+ }
+
+ override fun toString() =
+ "ProjectInferencePipelineCreateResponse{id=$id, projectId=$projectId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, dateLastSampleReceived=$dateLastSampleReceived, description=$description, dateLastEvaluated=$dateLastEvaluated, dateOfNextEvaluation=$dateOfNextEvaluation, passingGoalCount=$passingGoalCount, failingGoalCount=$failingGoalCount, totalGoalCount=$totalGoalCount, referenceDatasetUri=$referenceDatasetUri, status=$status, statusMessage=$statusMessage, storageType=$storageType, links=$links, additionalProperties=$additionalProperties}"
+
+ companion object {
+
+ @JvmStatic fun builder() = Builder()
+ }
+
+ class Builder {
+
+ private var id: JsonField = JsonMissing.of()
+ private var projectId: JsonField = JsonMissing.of()
+ private var name: JsonField = JsonMissing.of()
+ private var dateCreated: JsonField = JsonMissing.of()
+ private var dateUpdated: JsonField = JsonMissing.of()
+ private var dateLastSampleReceived: JsonField = JsonMissing.of()
+ private var description: JsonField = JsonMissing.of()
+ private var dateLastEvaluated: JsonField