Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.453.10
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 11, 2024
1 parent 5b62e50 commit 2894240
Show file tree
Hide file tree
Showing 86 changed files with 2,333 additions and 810 deletions.
43 changes: 37 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 7b361cb9-7960-4aa9-aefb-1d3ff2bbe54b
management:
docChecksum: 305de65bc19b35410e32b57b55a6f38d
docChecksum: d71c95af60ddb2e3da566c90fc29674d
docVersion: 0.0.1
speakeasyVersion: 1.448.0
generationVersion: 2.466.0
releaseVersion: 2.11.3
configChecksum: 4b067e4f697f2f89c4d075559448d6fe
speakeasyVersion: 1.453.10
generationVersion: 2.474.15
releaseVersion: 2.12.0
configChecksum: 08990f6abf996bb8ea820f9a69053b81
repoURL: https://github.com/hathora/cloud-sdk-java.git
repoSubDirectory: .
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.32.2
core: 3.33.1
deprecations: 2.81.1
downloadStreams: 0.1.1
flattening: 2.81.1
Expand Down Expand Up @@ -116,6 +116,7 @@ generatedFiles:
- docs/models/operations/GetAppsRequest.md
- docs/models/operations/GetAppsResponse.md
- docs/models/operations/GetAppsV1DeprecatedResponse.md
- docs/models/operations/GetBalanceRequest.md
- docs/models/operations/GetBalanceResponse.md
- docs/models/operations/GetBuildInfoDeprecatedRequest.md
- docs/models/operations/GetBuildInfoDeprecatedResponse.md
Expand Down Expand Up @@ -155,6 +156,7 @@ generatedFiles:
- docs/models/operations/GetInactiveRoomsForProcessDeprecatedResponse.md
- docs/models/operations/GetInactiveRoomsForProcessRequest.md
- docs/models/operations/GetInactiveRoomsForProcessResponse.md
- docs/models/operations/GetInvoicesRequest.md
- docs/models/operations/GetInvoicesResponse.md
- docs/models/operations/GetLatestDeploymentRequest.md
- docs/models/operations/GetLatestDeploymentResponse.md
Expand Down Expand Up @@ -183,6 +185,7 @@ generatedFiles:
- docs/models/operations/GetOrgTokensRequest.md
- docs/models/operations/GetOrgTokensResponse.md
- docs/models/operations/GetOrgsResponse.md
- docs/models/operations/GetPaymentMethodRequest.md
- docs/models/operations/GetPaymentMethodResponse.md
- docs/models/operations/GetPingServiceEndpointsDeprecatedResponse.md
- docs/models/operations/GetPingServiceEndpointsResponse.md
Expand All @@ -208,12 +211,15 @@ generatedFiles:
- docs/models/operations/GetRunningProcessesResponse.md
- docs/models/operations/GetStoppedProcessesRequest.md
- docs/models/operations/GetStoppedProcessesResponse.md
- docs/models/operations/GetUpcomingInvoiceItemsRequest.md
- docs/models/operations/GetUpcomingInvoiceItemsResponse.md
- docs/models/operations/GetUpcomingInvoiceTotalRequest.md
- docs/models/operations/GetUpcomingInvoiceTotalResponse.md
- docs/models/operations/GetUpcomingInvoiceTotalResponseBody.md
- docs/models/operations/GetUsageLimitsRequest.md
- docs/models/operations/GetUsageLimitsResponse.md
- docs/models/operations/GetUserPendingInvitesResponse.md
- docs/models/operations/InitStripeCustomerPortalUrlRequest.md
- docs/models/operations/InitStripeCustomerPortalUrlResponse.md
- docs/models/operations/InviteUserRequest.md
- docs/models/operations/InviteUserResponse.md
Expand Down Expand Up @@ -581,6 +587,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetAppsResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetAppsV1DeprecatedRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetAppsV1DeprecatedResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetBalanceRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetBalanceRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetBalanceResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetBuildInfoDeprecatedRequest.java
Expand Down Expand Up @@ -640,6 +647,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetInactiveRoomsForProcessRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetInactiveRoomsForProcessRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetInactiveRoomsForProcessResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetInvoicesRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetInvoicesRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetInvoicesResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetLatestDeploymentRequest.java
Expand Down Expand Up @@ -683,6 +691,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetOrgTokensResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetOrgsRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetOrgsResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetPaymentMethodRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetPaymentMethodRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetPaymentMethodResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetPingServiceEndpointsDeprecatedRequestBuilder.java
Expand Down Expand Up @@ -721,8 +730,10 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetStoppedProcessesRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetStoppedProcessesRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetStoppedProcessesResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceItemsRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceItemsRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceItemsResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceTotalRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceTotalRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceTotalResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceTotalResponseBody.java
Expand All @@ -731,6 +742,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUsageLimitsResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUserPendingInvitesRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUserPendingInvitesResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/InitStripeCustomerPortalUrlRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/InitStripeCustomerPortalUrlRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/InitStripeCustomerPortalUrlResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/InviteUserRequest.java
Expand Down Expand Up @@ -973,6 +985,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/utils/Security.java
- src/main/java/dev/hathora/cloud_sdk/utils/SecurityMetadata.java
- src/main/java/dev/hathora/cloud_sdk/utils/SerializedBody.java
- src/main/java/dev/hathora/cloud_sdk/utils/SessionManager.java
- src/main/java/dev/hathora/cloud_sdk/utils/SpeakeasyHTTPClient.java
- src/main/java/dev/hathora/cloud_sdk/utils/SpeakeasyMetadata.java
- src/main/java/dev/hathora/cloud_sdk/utils/TypedObject.java
Expand Down Expand Up @@ -1114,40 +1127,58 @@ examples:
application/json: {"message": "<value>"}
GetBalance:
speakeasy-default-get-balance:
parameters:
query:
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
responses:
"200":
application/json: "68.43"
"401":
application/json: {"message": "<value>"}
GetInvoices:
speakeasy-default-get-invoices:
parameters:
query:
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
responses:
"200":
application/json: []
"401":
application/json: {"message": "<value>"}
GetPaymentMethod:
speakeasy-default-get-payment-method:
parameters:
query:
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
responses:
"401":
application/json: {"message": "<value>"}
"200": {}
GetUpcomingInvoiceItems:
speakeasy-default-get-upcoming-invoice-items:
parameters:
query:
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
responses:
"200":
application/json: {"invoiceItems": []}
"401":
application/json: {"message": "<value>"}
GetUpcomingInvoiceTotal:
speakeasy-default-get-upcoming-invoice-total:
parameters:
query:
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
responses:
"200":
application/json: {"value": "2752.14"}
"401":
application/json: {"message": "<value>"}
InitStripeCustomerPortalUrl:
speakeasy-default-init-stripe-customer-portal-url:
parameters:
query:
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
requestBody:
application/json: {"returnUrl": "<value>"}
responses:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.448.0
speakeasyVersion: 1.453.10
sources:
java-source:
sourceNamespace: java-source
sourceRevisionDigest: sha256:9b9e63531f466771074ae5fe3454004642556cd98e3d27b9015057ec124ea0b4
sourceBlobDigest: sha256:37807b11cfa50985caf3c7589a4641ebb7a36c70a1a6330d93ab1f475b7c56e7
sourceRevisionDigest: sha256:44176ea35f6e99ce7c64def78c0bf878556ecea6967a1187940739689c6cd32e
sourceBlobDigest: sha256:359ccd96250eaafa4b8dcf29095e596e43f7f5b7081b723eabaecedf060a6616
tags:
- latest
- speakeasy-sdk-regen-1732666081
- speakeasy-sdk-regen-1733875710
- 0.0.1
targets:
hathora-java:
source: java-source
sourceNamespace: java-source
sourceRevisionDigest: sha256:9b9e63531f466771074ae5fe3454004642556cd98e3d27b9015057ec124ea0b4
sourceBlobDigest: sha256:37807b11cfa50985caf3c7589a4641ebb7a36c70a1a6330d93ab1f475b7c56e7
sourceRevisionDigest: sha256:44176ea35f6e99ce7c64def78c0bf878556ecea6967a1187940739689c6cd32e
sourceBlobDigest: sha256:359ccd96250eaafa4b8dcf29095e596e43f7f5b7081b723eabaecedf060a6616
codeSamplesNamespace: code-samples-java-hathora-java
codeSamplesRevisionDigest: sha256:36697efe2f4fc136770955f147963e72fd7dd40ab2f35a25de49a4b4d7e0f7f7
codeSamplesRevisionDigest: sha256:75903bab92916a456dda04acb44a189547d3dea9f46187ab01a51b7ef999208a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
50 changes: 34 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ Hathora Cloud API: Welcome to the Hathora Cloud API documentation! Learn how to

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Global Parameters](#global-parameters)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Authentication](#authentication)

* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Global Parameters](#global-parameters)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Authentication](#authentication)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand All @@ -35,15 +36,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'dev.hathora:cloud-sdk:2.11.3'
implementation 'dev.hathora:cloud-sdk:2.12.0'
```

Maven:
```xml
<dependency>
<groupId>dev.hathora</groupId>
<artifactId>cloud-sdk</artifactId>
<version>2.11.3</version>
<version>2.12.0</version>
</dependency>
```

Expand Down Expand Up @@ -87,6 +88,7 @@ public class Application {
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

CreateAppResponse res = sdk.appsV2().createApp()
Expand Down Expand Up @@ -311,18 +313,19 @@ public class Application {
<!-- Start Global Parameters [global-parameters] -->
## Global Parameters

A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.

For example, you can set `appId` to `"app-af469a92-5b45-4565-b3c4-b79878de67d2"` at SDK initialization and then you do not have to pass the same value on calls to operations like `deleteApp`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
For example, you can set `appId` to `"app-af469a92-5b45-4565-b3c4-b79878de67d2"` at SDK initialization and then you do not have to pass the same value on calls to operations like `createApp`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.


### Available Globals

The following global parameter is available.
The following global parameters are available.

| Name | Type | Description |
| ----- | ---------------- | -------------------- |
| appId | java.lang.String | The appId parameter. |
| orgId | java.lang.String | The orgId parameter. |

### Example

Expand All @@ -331,7 +334,9 @@ package hello.world;

import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.DeleteAppResponse;
import dev.hathora.cloud_sdk.models.operations.CreateAppResponse;
import dev.hathora.cloud_sdk.models.shared.AppConfig;
import dev.hathora.cloud_sdk.models.shared.AuthConfiguration;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

Expand All @@ -344,13 +349,21 @@ public class Application {
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

DeleteAppResponse res = sdk.appsV2().deleteApp()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
CreateAppResponse res = sdk.appsV2().createApp()
.appConfig(AppConfig.builder()
.appName("minecraft")
.authConfiguration(AuthConfiguration.builder()
.build())
.build())
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();

// handle response
if (res.application().isPresent()) {
// handle response
}
}
}
```
Expand Down Expand Up @@ -390,6 +403,7 @@ public class Application {
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

CreateAppResponse res = sdk.appsV2().createApp()
Expand Down Expand Up @@ -444,6 +458,7 @@ public class Application {
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

CreateAppResponse res = sdk.appsV2().createApp()
Expand Down Expand Up @@ -486,6 +501,7 @@ public class Application {
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

CreateAppResponse res = sdk.appsV2().createApp()
Expand Down Expand Up @@ -537,6 +553,7 @@ public class Application {
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

CreateAppResponse res = sdk.appsV2().createApp()
Expand Down Expand Up @@ -577,6 +594,7 @@ public class Application {

HathoraCloud sdk = HathoraCloud.builder()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

CreateLobbyRequest req = CreateLobbyRequest.builder()
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,4 +879,14 @@ Based on:
### Generated
- [java v2.11.3] .
### Releases
- [Maven Central v2.11.3] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.11.3 - .
- [Maven Central v2.11.3] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.11.3 - .

## 2024-12-11 00:08:26
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.453.10 (2.474.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.12.0] .
### Releases
- [Maven Central v2.12.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.12.0 - .
1 change: 1 addition & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class Application {
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();

CreateAppResponse res = sdk.appsV2().createApp()
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}

group = "dev.hathora"
version = "2.11.3"
version = "2.12.0"

sourcesJar {
archiveBaseName = "cloud-sdk"
Expand Down Expand Up @@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'dev.hathora'
artifactId = 'cloud-sdk'
version = '2.11.3'
version = '2.12.0'

from components.java

Expand Down
Loading

0 comments on commit 2894240

Please sign in to comment.