Skip to content

Commit 120a090

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.446.1
1 parent c82eccc commit 120a090

35 files changed

+1497
-185
lines changed

.speakeasy/workflow.lock

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.440.1
1+
speakeasyVersion: 1.446.1
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -30,11 +30,12 @@ sources:
3030
- speakeasy-sdk-regen-1731929475
3131
platform-source:
3232
sourceNamespace: platform-source
33-
sourceRevisionDigest: sha256:72cd66e3c9aad049e4d7c5256b5c5c943048b664f118b3e9a50f38c7361adffb
34-
sourceBlobDigest: sha256:e4fb24c2ca300a5005adef27857ad9afba70f056e51a84fb38368609c61cafc8
33+
sourceRevisionDigest: sha256:cb42f68f66e5e7de67c90c7f7e394420f5c76622915a83de6ef61a109a7ee77f
34+
sourceBlobDigest: sha256:d80a27e44fffb9c61f16a99e7d25c294f39be1a5a761d51a87c76477f8589f54
3535
tags:
3636
- latest
37-
- main
37+
- speakeasy-sdk-regen-1732624984
38+
- 3.0.0
3839
sync-for-commerce-source:
3940
sourceNamespace: sync-for-commerce-source
4041
sourceRevisionDigest: sha256:cb5d21b0772d51cab179e51e610a8a801e4535bf1beb0deef33f63bd8ca7a5cc
@@ -89,8 +90,10 @@ targets:
8990
platform-library:
9091
source: platform-source
9192
sourceNamespace: platform-source
92-
sourceRevisionDigest: sha256:72cd66e3c9aad049e4d7c5256b5c5c943048b664f118b3e9a50f38c7361adffb
93-
sourceBlobDigest: sha256:e4fb24c2ca300a5005adef27857ad9afba70f056e51a84fb38368609c61cafc8
93+
sourceRevisionDigest: sha256:cb42f68f66e5e7de67c90c7f7e394420f5c76622915a83de6ef61a109a7ee77f
94+
sourceBlobDigest: sha256:d80a27e44fffb9c61f16a99e7d25c294f39be1a5a761d51a87c76477f8589f54
95+
codeSamplesNamespace: platform-source-code-samples
96+
codeSamplesRevisionDigest: sha256:28f7a3f72204d1d2978810d8bbe3e6db937bb205365be74b06d75c209020a65f
9497
sync-for-commerce-library:
9598
source: sync-for-commerce-source
9699
sourceNamespace: sync-for-commerce-source

platform/.speakeasy/gen.lock

Lines changed: 58 additions & 19 deletions
Large diffs are not rendered by default.

platform/.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ generation:
99
requestResponseComponentNamesFeb2024: false
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
12+
oAuth2PasswordEnabled: false
1213
telemetryEnabled: true
1314
java:
14-
version: 1.0.0
15+
version: 2.0.0
1516
additionalDependencies: []
1617
additionalPlugins: []
1718
artifactID: platform
@@ -20,6 +21,7 @@ java:
2021
companyEmail: [email protected]
2122
companyName: Codat
2223
companyURL: https://www.codat.io/
24+
defaultErrorName: SDKError
2325
description: Manage the building blocks of Codat, including companies, connections, and more.
2426
flattenGlobalSecurity: false
2527
githubURL: github.com/codatio/client-sdk-java/platform

platform/README.md

Lines changed: 11 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ The samples below show how a published SDK artifact is used:
5757

5858
Gradle:
5959
```groovy
60-
implementation 'io.codat:platform:1.0.0'
60+
implementation 'io.codat:platform:2.0.0'
6161
```
6262

6363
Maven:
6464
```xml
6565
<dependency>
6666
<groupId>io.codat</groupId>
6767
<artifactId>platform</artifactId>
68-
<version>1.0.0</version>
68+
<version>2.0.0</version>
6969
</dependency>
7070
```
7171

@@ -139,6 +139,7 @@ public class Application {
139139
* [create](docs/sdks/companies/README.md#create) - Create company
140140
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
141141
* [get](docs/sdks/companies/README.md#get) - Get company
142+
* [getAccessToken](docs/sdks/companies/README.md#getaccesstoken) - Get company access token
142143
* [list](docs/sdks/companies/README.md#list) - List companies
143144
* [removeProduct](docs/sdks/companies/README.md#removeproduct) - Remove product
144145
* [update](docs/sdks/companies/README.md#update) - Update company
@@ -222,10 +223,10 @@ Handling errors in this SDK should largely match your expectations. All operatio
222223

223224
By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `createApiKey` method throws the following exceptions:
224225

225-
| Error Type | Status Code | Content Type |
226-
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
227-
| models/errors/ErrorMessage | 400, 401, 402, 403, 409, 429, 500, 503 | application/json |
228-
| models/errors/SDKError | 4XX, 5XX | \*/\* |
226+
| Error Type | Status Code | Content Type |
227+
| -------------------------- | -------------------------------------- | ---------------- |
228+
| models/errors/ErrorMessage | 400, 401, 402, 403, 409, 429, 500, 503 | application/json |
229+
| models/errors/SDKError | 4XX, 5XX | \*/\* |
229230

230231
### Example
231232

@@ -268,56 +269,9 @@ public class Application {
268269
<!-- Start Server Selection [server] -->
269270
## Server Selection
270271

271-
### Select Server by Index
272-
273-
You can override the default server globally by passing a server index to the `serverIndex` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
274-
275-
| # | Server | Variables |
276-
| - | ------ | --------- |
277-
| 0 | `https://api.codat.io` | None |
278-
279-
#### Example
280-
281-
```java
282-
package hello.world;
283-
284-
import io.codat.platform.CodatPlatform;
285-
import io.codat.platform.models.errors.ErrorMessage;
286-
import io.codat.platform.models.operations.CreateApiKeyResponse;
287-
import io.codat.platform.models.shared.CreateApiKey;
288-
import io.codat.platform.models.shared.Security;
289-
import java.lang.Exception;
290-
291-
public class Application {
292-
293-
public static void main(String[] args) throws ErrorMessage, Exception {
294-
295-
CodatPlatform sdk = CodatPlatform.builder()
296-
.serverIndex(0)
297-
.security(Security.builder()
298-
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
299-
.build())
300-
.build();
301-
302-
CreateApiKey req = CreateApiKey.builder()
303-
.name("azure-invoice-finance-processor")
304-
.build();
305-
306-
CreateApiKeyResponse res = sdk.settings().createApiKey()
307-
.request(req)
308-
.call();
309-
310-
if (res.apiKeyDetails().isPresent()) {
311-
// handle response
312-
}
313-
}
314-
}
315-
```
316-
317-
318272
### Override Server URL Per-Client
319273

320-
The default server can also be overridden globally by passing a URL to the `serverURL` builder method when initializing the SDK client instance. For example:
274+
The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
321275
```java
322276
package hello.world;
323277

@@ -362,9 +316,9 @@ public class Application {
362316

363317
This SDK supports the following security scheme globally:
364318

365-
| Name | Type | Scheme |
366-
| ------------ | ------------ | ------------ |
367-
| `authHeader` | apiKey | API key |
319+
| Name | Type | Scheme |
320+
| ------------ | ------ | ------- |
321+
| `authHeader` | apiKey | API key |
368322

369323
You can set the security parameters through the `security` builder method when initializing the SDK client instance. For example:
370324
```java

platform/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,14 @@ Based on:
8888
### Generated
8989
- [java v1.0.0] platform
9090
### Releases
91-
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat/platform/1.0.0 - platform
91+
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat/platform/1.0.0 - platform
92+
93+
## 2024-11-26 15:16:55
94+
### Changes
95+
Based on:
96+
- OpenAPI Doc
97+
- Speakeasy CLI 1.446.1 (2.462.1) https://github.com/speakeasy-api/speakeasy
98+
### Generated
99+
- [java v2.0.0] platform
100+
### Releases
101+
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/platform/2.0.0 - platform

platform/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
6363
}
6464

6565
group = "io.codat"
66-
version = "1.0.0"
66+
version = "2.0.0"
6767

6868
sourcesJar {
6969
archiveBaseName = "platform"
@@ -101,7 +101,7 @@ publishing {
101101
maven(MavenPublication) {
102102
groupId = 'io.codat'
103103
artifactId = 'platform'
104-
version = '1.0.0'
104+
version = '2.0.0'
105105

106106
from components.java
107107

@@ -145,10 +145,11 @@ if (!project.hasProperty('skip.signing')) {
145145
}
146146

147147
dependencies {
148+
api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
148149
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
149150
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
150151
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
151-
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
152+
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
152153
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
153154
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
154155
implementation 'commons-io:commons-io:2.15.1'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GetCompanyAccessTokenRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8+
| `companyId` | *String* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GetCompanyAccessTokenResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
8+
| `companyAccessToken` | [Optional\<CompanyAccessToken>](../../models/shared/CompanyAccessToken.md) | :heavy_minus_sign: | OK | {<br/>"expiresIn": 86400,<br/>"accessToken": "string",<br/>"tokenType": "Bearer"<br/>} |
9+
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | |
10+
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
11+
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |

0 commit comments

Comments
 (0)