diff --git a/RELEASES.md b/RELEASES.md index 981d31833..313d30c7b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -959,4 +959,21 @@ Based on: - OpenAPI Doc 0.1.0 - Speakeasy CLI 1.112.1 (2.173.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [php v1.36.1] php-client-sdk \ No newline at end of file +- [php v1.36.1] php-client-sdk + +## 2023-11-06 10:14:09 +### Changes +Based on: +- OpenAPI Doc 0.1.0 +- Speakeasy CLI 1.112.1 (2.173.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [swift v0.1.2] swift-client-sdk +- [typescript v1.40.3] typescript-client-sdk +- [csharp v0.1.2] csharp-client-sdk +- [go v1.39.4] go-client-sdk +- [java v1.38.2] java-client-sdk +- [php v1.36.2] php-client-sdk +- [python v2.0.4] python-client-sdk +- [ruby v1.36.2] ruby-client-sdk +### Releases +- [Go v1.39.4] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.39.4 - go-client-sdk \ No newline at end of file diff --git a/csharp-client-sdk/README.md b/csharp-client-sdk/README.md index 75ac5ab0a..6135876f7 100755 --- a/csharp-client-sdk/README.md +++ b/csharp-client-sdk/README.md @@ -384,7 +384,9 @@ var res = await sdk.Generation.UsageExamplePostAsync(new UsageExamplePostSecurit * [StronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [TypedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [TypedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [UnionBigIntDecimal](docs/sdks/unions/README.md#unionbigintdecimal) * [UnionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [UnionDateTimeBigInt](docs/sdks/unions/README.md#uniondatetimebigint) * [UnionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [WeaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) diff --git a/csharp-client-sdk/SDK/Auth.cs b/csharp-client-sdk/SDK/Auth.cs index 18bf1a192..f36ea34ab 100755 --- a/csharp-client-sdk/SDK/Auth.cs +++ b/csharp-client-sdk/SDK/Auth.cs @@ -40,10 +40,10 @@ public class AuthSDK: IAuthSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/AuthNew.cs b/csharp-client-sdk/SDK/AuthNew.cs index 214fc349f..260d2c7a2 100755 --- a/csharp-client-sdk/SDK/AuthNew.cs +++ b/csharp-client-sdk/SDK/AuthNew.cs @@ -121,10 +121,10 @@ public class AuthNewSDK: IAuthNewSDK public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Documentation.cs b/csharp-client-sdk/SDK/Documentation.cs index 355ff94f8..43d17a3de 100755 --- a/csharp-client-sdk/SDK/Documentation.cs +++ b/csharp-client-sdk/SDK/Documentation.cs @@ -36,10 +36,10 @@ public class DocumentationSDK: IDocumentationSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Errors.cs b/csharp-client-sdk/SDK/Errors.cs index aad601ec5..0bd72c4df 100755 --- a/csharp-client-sdk/SDK/Errors.cs +++ b/csharp-client-sdk/SDK/Errors.cs @@ -51,10 +51,10 @@ public class ErrorsSDK: IErrorsSDK public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/First.cs b/csharp-client-sdk/SDK/First.cs index cd0e63e60..099479a40 100755 --- a/csharp-client-sdk/SDK/First.cs +++ b/csharp-client-sdk/SDK/First.cs @@ -25,10 +25,10 @@ public class FirstSDK: IFirstSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Flattening.cs b/csharp-client-sdk/SDK/Flattening.cs index 465cc27e1..8dd7fe905 100755 --- a/csharp-client-sdk/SDK/Flattening.cs +++ b/csharp-client-sdk/SDK/Flattening.cs @@ -38,10 +38,10 @@ public class FlatteningSDK: IFlatteningSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Generation.cs b/csharp-client-sdk/SDK/Generation.cs index 3663d733e..e25eb8446 100755 --- a/csharp-client-sdk/SDK/Generation.cs +++ b/csharp-client-sdk/SDK/Generation.cs @@ -70,10 +70,10 @@ public class GenerationSDK: IGenerationSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Globals.cs b/csharp-client-sdk/SDK/Globals.cs index d3c0dad27..9fa5eca10 100755 --- a/csharp-client-sdk/SDK/Globals.cs +++ b/csharp-client-sdk/SDK/Globals.cs @@ -34,10 +34,10 @@ public class GlobalsSDK: IGlobalsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs index 4a29a7bb5..d56055589 100755 --- a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs @@ -20,5 +20,8 @@ public class RequestBodyPostFormSimpleRes [JsonProperty("form")] public RequestBodyPostFormSimpleResForm Form { get; set; } = default!; + + [JsonProperty("headers")] + public RequestBodyPostFormSimpleResHeaders Headers { get; set; } = default!; } } \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResHeaders.cs new file mode 100755 index 000000000..e106f9f8c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResHeaders.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPostFormSimpleResHeaders + { + + [JsonProperty("Content-Type")] + public string ContentType { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs index 0e0171aa6..73423695d 100755 --- a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs @@ -20,5 +20,8 @@ public class RequestBodyPutMultipartSimpleRes [JsonProperty("form")] public RequestBodyPutMultipartSimpleResForm Form { get; set; } = default!; + + [JsonProperty("headers")] + public RequestBodyPutMultipartSimpleResHeaders Headers { get; set; } = default!; } } \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResHeaders.cs new file mode 100755 index 000000000..2627d0df8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResHeaders.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPutMultipartSimpleResHeaders + { + + [JsonProperty("Content-Type")] + public string ContentType { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionBigIntDecimalRes.cs b/csharp-client-sdk/SDK/Models/Operations/UnionBigIntDecimalRes.cs new file mode 100755 index 000000000..258adb339 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionBigIntDecimalRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class UnionBigIntDecimalRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionBigIntDecimalResponse.cs b/csharp-client-sdk/SDK/Models/Operations/UnionBigIntDecimalResponse.cs new file mode 100755 index 000000000..ceb1ee27f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionBigIntDecimalResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class UnionBigIntDecimalResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public UnionBigIntDecimalRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeBigIntRes.cs b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeBigIntRes.cs new file mode 100755 index 000000000..28c3cd53a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeBigIntRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class UnionDateTimeBigIntRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeBigIntResponse.cs b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeBigIntResponse.cs new file mode 100755 index 000000000..8b4102cde --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeBigIntResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class UnionDateTimeBigIntResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public UnionDateTimeBigIntRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Nest.cs b/csharp-client-sdk/SDK/Nest.cs index dd2ee975a..539b7fa92 100755 --- a/csharp-client-sdk/SDK/Nest.cs +++ b/csharp-client-sdk/SDK/Nest.cs @@ -22,10 +22,10 @@ public class NestSDK: INestSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/NestFirst.cs b/csharp-client-sdk/SDK/NestFirst.cs index dbdcc5077..9256f77b0 100755 --- a/csharp-client-sdk/SDK/NestFirst.cs +++ b/csharp-client-sdk/SDK/NestFirst.cs @@ -25,10 +25,10 @@ public class NestFirstSDK: INestFirstSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Nested.cs b/csharp-client-sdk/SDK/Nested.cs index 0383f2674..51001307e 100755 --- a/csharp-client-sdk/SDK/Nested.cs +++ b/csharp-client-sdk/SDK/Nested.cs @@ -27,10 +27,10 @@ public class NestedSDK: INestedSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/NestedFirst.cs b/csharp-client-sdk/SDK/NestedFirst.cs index fbb998730..3a3985513 100755 --- a/csharp-client-sdk/SDK/NestedFirst.cs +++ b/csharp-client-sdk/SDK/NestedFirst.cs @@ -25,10 +25,10 @@ public class NestedFirstSDK: INestedFirstSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/NestedSecond.cs b/csharp-client-sdk/SDK/NestedSecond.cs index d58a1b700..12335a00a 100755 --- a/csharp-client-sdk/SDK/NestedSecond.cs +++ b/csharp-client-sdk/SDK/NestedSecond.cs @@ -25,10 +25,10 @@ public class NestedSecondSDK: INestedSecondSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Pagination.cs b/csharp-client-sdk/SDK/Pagination.cs index 4b833af86..4911574f9 100755 --- a/csharp-client-sdk/SDK/Pagination.cs +++ b/csharp-client-sdk/SDK/Pagination.cs @@ -84,10 +84,10 @@ public class PaginationSDK: IPaginationSDK public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Parameters.cs b/csharp-client-sdk/SDK/Parameters.cs index 2db1f20f8..ec351028c 100755 --- a/csharp-client-sdk/SDK/Parameters.cs +++ b/csharp-client-sdk/SDK/Parameters.cs @@ -57,10 +57,10 @@ public class ParametersSDK: IParametersSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/RequestBodies.cs b/csharp-client-sdk/SDK/RequestBodies.cs index d37de69b9..03274cbd6 100755 --- a/csharp-client-sdk/SDK/RequestBodies.cs +++ b/csharp-client-sdk/SDK/RequestBodies.cs @@ -278,10 +278,10 @@ public class RequestBodiesSDK: IRequestBodiesSDK public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Resource.cs b/csharp-client-sdk/SDK/Resource.cs index a9109bc93..24c7dd94b 100755 --- a/csharp-client-sdk/SDK/Resource.cs +++ b/csharp-client-sdk/SDK/Resource.cs @@ -32,10 +32,10 @@ public class ResourceSDK: IResourceSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/ResponseBodies.cs b/csharp-client-sdk/SDK/ResponseBodies.cs index 4a1c7f88c..c26713058 100755 --- a/csharp-client-sdk/SDK/ResponseBodies.cs +++ b/csharp-client-sdk/SDK/ResponseBodies.cs @@ -61,10 +61,10 @@ public class ResponseBodiesSDK: IResponseBodiesSDK public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Retries.cs b/csharp-client-sdk/SDK/Retries.cs index a1ade905d..8e5c5d8ae 100755 --- a/csharp-client-sdk/SDK/Retries.cs +++ b/csharp-client-sdk/SDK/Retries.cs @@ -41,10 +41,10 @@ public class RetriesSDK: IRetriesSDK public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/SDK.csproj b/csharp-client-sdk/SDK/SDK.csproj index 30f29da67..3b7e337c2 100755 --- a/csharp-client-sdk/SDK/SDK.csproj +++ b/csharp-client-sdk/SDK/SDK.csproj @@ -2,7 +2,7 @@ true openapi - 0.1.1 + 0.1.2 Speakeasy net5.0 enable diff --git a/csharp-client-sdk/SDK/SDKSDK.cs b/csharp-client-sdk/SDK/SDKSDK.cs index 3ac5038f4..1828dce82 100755 --- a/csharp-client-sdk/SDK/SDKSDK.cs +++ b/csharp-client-sdk/SDK/SDKSDK.cs @@ -145,10 +145,10 @@ public class SDKSDK: ISDKSDK }; private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Second.cs b/csharp-client-sdk/SDK/Second.cs index a3f691fec..58286af01 100755 --- a/csharp-client-sdk/SDK/Second.cs +++ b/csharp-client-sdk/SDK/Second.cs @@ -25,10 +25,10 @@ public class SecondSDK: ISecondSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Servers.cs b/csharp-client-sdk/SDK/Servers.cs index 099c797a6..150905169 100755 --- a/csharp-client-sdk/SDK/Servers.cs +++ b/csharp-client-sdk/SDK/Servers.cs @@ -92,10 +92,10 @@ public enum ServersByIDWithTemplatesServers { }; public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Telemetry.cs b/csharp-client-sdk/SDK/Telemetry.cs index da00def39..5bed4b658 100755 --- a/csharp-client-sdk/SDK/Telemetry.cs +++ b/csharp-client-sdk/SDK/Telemetry.cs @@ -34,10 +34,10 @@ public class TelemetrySDK: ITelemetrySDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/csharp-client-sdk/SDK/Unions.cs b/csharp-client-sdk/SDK/Unions.cs index 6012b06ce..215ccb3b3 100755 --- a/csharp-client-sdk/SDK/Unions.cs +++ b/csharp-client-sdk/SDK/Unions.cs @@ -35,7 +35,9 @@ public interface IUnionsSDK Task StronglyTypedOneOfPostAsync(object request); Task TypedObjectNullableOneOfPostAsync(object request); Task TypedObjectOneOfPostAsync(object request); + Task UnionBigIntDecimalAsync(object request); Task UnionDateNullAsync(LocalDate request); + Task UnionDateTimeBigIntAsync(object request); Task UnionDateTimeNullAsync(DateTime request); Task WeaklyTypedOneOfPostAsync(object request); } @@ -47,10 +49,10 @@ public class UnionsSDK: IUnionsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.1.1"; + private const string _sdkVersion = "0.1.2"; private const string _sdkGenVersion = "2.173.0"; private const string _openapiDocVersion = "0.1.0"; - private const string _userAgent = "speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -554,6 +556,55 @@ public async Task TypedObjectOneOfPostAsync(object } + public async Task UnionBigIntDecimalAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/unionBigIntDecimal"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new UnionBigIntDecimalResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + public async Task UnionDateNullAsync(LocalDate request) { string baseUrl = _serverUrl; @@ -603,6 +654,55 @@ public async Task UnionDateNullAsync(LocalDate request) } + public async Task UnionDateTimeBigIntAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/unionDateTimeBigInt"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new UnionDateTimeBigIntResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + public async Task UnionDateTimeNullAsync(DateTime request) { string baseUrl = _serverUrl; diff --git a/csharp-client-sdk/TestsPrimary/TelemetryShould.cs b/csharp-client-sdk/TestsPrimary/TelemetryShould.cs index 79755c7ce..8289db795 100755 --- a/csharp-client-sdk/TestsPrimary/TelemetryShould.cs +++ b/csharp-client-sdk/TestsPrimary/TelemetryShould.cs @@ -23,7 +23,7 @@ public async Task UserAgentGet() var res = await sdk.Telemetry.TelemetryUserAgentGetAsync(); Assert.Equal(200, res.StatusCode); - Assert.Equal("speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]); + Assert.Equal("speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]); } [Fact] @@ -39,6 +39,6 @@ public async Task SpeakeasyUserAgentGet() Assert.Equal(200, res.StatusCode); Assert.Equal(userAgent, res.Res.Headers["User-Agent"]); - Assert.Equal("speakeasy-sdk/csharp 0.1.1 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]); + Assert.Equal("speakeasy-sdk/csharp 0.1.2 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]); } } \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md index db2d3c05b..3342d951a 100755 --- a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `Form` | [RequestBodyPostFormSimpleResForm](../../models/operations/RequestBodyPostFormSimpleResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPostFormSimpleResForm](../../models/operations/RequestBodyPostFormSimpleResForm.md) | :heavy_check_mark: | N/A | +| `Headers` | [RequestBodyPostFormSimpleResHeaders](../../models/operations/RequestBodyPostFormSimpleResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResHeaders.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResHeaders.md new file mode 100755 index 000000000..08522b2f8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResHeaders.md @@ -0,0 +1,8 @@ +# RequestBodyPostFormSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md index 70a14f0d8..d8b8f7b53 100755 --- a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `Form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/RequestBodyPutMultipartSimpleResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/RequestBodyPutMultipartSimpleResForm.md) | :heavy_check_mark: | N/A | +| `Headers` | [RequestBodyPutMultipartSimpleResHeaders](../../models/operations/RequestBodyPutMultipartSimpleResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md new file mode 100755 index 000000000..93a7d1a57 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md b/csharp-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md new file mode 100755 index 000000000..79c5c0678 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md @@ -0,0 +1,10 @@ +# UnionBigIntDecimalRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md b/csharp-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md new file mode 100755 index 000000000..e2eeaa0ff --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md @@ -0,0 +1,11 @@ +# UnionBigIntDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [UnionBigIntDecimalRes](../../models/operations/UnionBigIntDecimalRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md b/csharp-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md new file mode 100755 index 000000000..8b9ed0a0f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md @@ -0,0 +1,10 @@ +# UnionDateTimeBigIntRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md b/csharp-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md new file mode 100755 index 000000000..21ee889cf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [UnionDateTimeBigIntRes](../../models/operations/UnionDateTimeBigIntRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/sdks/parameters/README.md b/csharp-client-sdk/docs/sdks/parameters/README.md index cb8990c4e..83780df8a 100755 --- a/csharp-client-sdk/docs/sdks/parameters/README.md +++ b/csharp-client-sdk/docs/sdks/parameters/README.md @@ -52,14 +52,14 @@ var res = await sdk.Parameters.DeepObjectQueryParamsMapAsync(new Dictionary>() { - { "test", new List() { - "test", - "test2", - } }, { "test2", new List() { "test3", "test4", } }, + { "test", new List() { + "test", + "test2", + } }, }); // handle response @@ -508,11 +508,11 @@ var sdk = new SDKSDK( ); var res = await sdk.Parameters.HeaderParamsMapAsync(new Dictionary() { - { "key2", "value2" }, { "key1", "value1" }, + { "key2", "value2" }, }, new Dictionary() { - { "test1", "val1" }, { "test2", "val2" }, + { "test1", "val1" }, }); // handle response diff --git a/csharp-client-sdk/docs/sdks/unions/README.md b/csharp-client-sdk/docs/sdks/unions/README.md index f7e275581..28036e11b 100755 --- a/csharp-client-sdk/docs/sdks/unions/README.md +++ b/csharp-client-sdk/docs/sdks/unions/README.md @@ -17,7 +17,9 @@ Endpoints for testing union types. * [StronglyTypedOneOfPost](#stronglytypedoneofpost) * [TypedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [TypedObjectOneOfPost](#typedobjectoneofpost) +* [UnionBigIntDecimal](#unionbigintdecimal) * [UnionDateNull](#uniondatenull) +* [UnionDateTimeBigInt](#uniondatetimebigint) * [UnionDateTimeNull](#uniondatetimenull) * [WeaklyTypedOneOfPost](#weaklytypedoneofpost) @@ -365,6 +367,39 @@ var res = await sdk.Unions.TypedObjectOneOfPostAsync("string"); **[TypedObjectOneOfPostResponse](../../models/operations/TypedObjectOneOfPostResponse.md)** +## UnionBigIntDecimal + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.UnionBigIntDecimalAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[UnionBigIntDecimalResponse](../../models/operations/UnionBigIntDecimalResponse.md)** + + ## UnionDateNull ### Example Usage @@ -398,6 +433,39 @@ var res = await sdk.Unions.UnionDateNullAsync(LocalDate.FromDateTime(DateTime.Pa **[UnionDateNullResponse](../../models/operations/UnionDateNullResponse.md)** +## UnionDateTimeBigInt + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.UnionDateTimeBigIntAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[UnionDateTimeBigIntResponse](../../models/operations/UnionDateTimeBigIntResponse.md)** + + ## UnionDateTimeNull ### Example Usage diff --git a/csharp-client-sdk/files.gen b/csharp-client-sdk/files.gen index eef0a7085..c5a76e931 100755 --- a/csharp-client-sdk/files.gen +++ b/csharp-client-sdk/files.gen @@ -352,6 +352,7 @@ SDK/Models/Operations/RequestBodyPostFormDeepResponse.cs SDK/Models/Operations/RequestBodyPostFormMapPrimitiveRes.cs SDK/Models/Operations/RequestBodyPostFormMapPrimitiveResponse.cs SDK/Models/Operations/RequestBodyPostFormSimpleResForm.cs +SDK/Models/Operations/RequestBodyPostFormSimpleResHeaders.cs SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs SDK/Models/Operations/RequestBodyPostFormSimpleResponse.cs SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.cs @@ -444,6 +445,7 @@ SDK/Models/Operations/RequestBodyPutMultipartFileRequestBody.cs SDK/Models/Operations/RequestBodyPutMultipartFileRes.cs SDK/Models/Operations/RequestBodyPutMultipartFileResponse.cs SDK/Models/Operations/RequestBodyPutMultipartSimpleResForm.cs +SDK/Models/Operations/RequestBodyPutMultipartSimpleResHeaders.cs SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs SDK/Models/Operations/RequestBodyPutMultipartSimpleResponse.cs SDK/Models/Operations/RequestBodyPutStringRes.cs @@ -521,8 +523,12 @@ SDK/Models/Operations/TypedObjectNullableOneOfPostRes.cs SDK/Models/Operations/TypedObjectNullableOneOfPostResponse.cs SDK/Models/Operations/TypedObjectOneOfPostRes.cs SDK/Models/Operations/TypedObjectOneOfPostResponse.cs +SDK/Models/Operations/UnionBigIntDecimalRes.cs +SDK/Models/Operations/UnionBigIntDecimalResponse.cs SDK/Models/Operations/UnionDateNullRes.cs SDK/Models/Operations/UnionDateNullResponse.cs +SDK/Models/Operations/UnionDateTimeBigIntRes.cs +SDK/Models/Operations/UnionDateTimeBigIntResponse.cs SDK/Models/Operations/UnionDateTimeNullRes.cs SDK/Models/Operations/UnionDateTimeNullResponse.cs SDK/Models/Operations/WeaklyTypedOneOfPostRes.cs @@ -898,6 +904,7 @@ docs/models/operations/RequestBodyPostFormDeepResponse.md docs/models/operations/RequestBodyPostFormMapPrimitiveRes.md docs/models/operations/RequestBodyPostFormMapPrimitiveResponse.md docs/models/operations/RequestBodyPostFormSimpleResForm.md +docs/models/operations/RequestBodyPostFormSimpleResHeaders.md docs/models/operations/RequestBodyPostFormSimpleRes.md docs/models/operations/RequestBodyPostFormSimpleResponse.md docs/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.md @@ -990,6 +997,7 @@ docs/models/operations/RequestBodyPutMultipartFileRequestBody.md docs/models/operations/RequestBodyPutMultipartFileRes.md docs/models/operations/RequestBodyPutMultipartFileResponse.md docs/models/operations/RequestBodyPutMultipartSimpleResForm.md +docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md docs/models/operations/RequestBodyPutMultipartSimpleRes.md docs/models/operations/RequestBodyPutMultipartSimpleResponse.md docs/models/operations/RequestBodyPutStringRes.md @@ -1067,8 +1075,12 @@ docs/models/operations/TypedObjectNullableOneOfPostRes.md docs/models/operations/TypedObjectNullableOneOfPostResponse.md docs/models/operations/TypedObjectOneOfPostRes.md docs/models/operations/TypedObjectOneOfPostResponse.md +docs/models/operations/UnionBigIntDecimalRes.md +docs/models/operations/UnionBigIntDecimalResponse.md docs/models/operations/UnionDateNullRes.md docs/models/operations/UnionDateNullResponse.md +docs/models/operations/UnionDateTimeBigIntRes.md +docs/models/operations/UnionDateTimeBigIntResponse.md docs/models/operations/UnionDateTimeNullRes.md docs/models/operations/UnionDateTimeNullResponse.md docs/models/operations/WeaklyTypedOneOfPostRes.md diff --git a/csharp-client-sdk/gen.yaml b/csharp-client-sdk/gen.yaml index b4ea9eaaa..caaa0767e 100755 --- a/csharp-client-sdk/gen.yaml +++ b/csharp-client-sdk/gen.yaml @@ -1,8 +1,8 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 - speakeasyVersion: 1.111.0 + speakeasyVersion: 1.112.1 generationVersion: 2.173.0 generation: comments: {} @@ -29,7 +29,7 @@ features: pagination: 0.1.1 serverIDs: 2.81.1 csharp: - version: 0.1.1 + version: 0.1.2 author: Speakeasy dotnetVersion: net5.0 maxMethodParams: 5 diff --git a/go-client-sdk/README.md b/go-client-sdk/README.md index f19c72ecd..0e257d4d8 100755 --- a/go-client-sdk/README.md +++ b/go-client-sdk/README.md @@ -400,7 +400,9 @@ func main() { * [StronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [TypedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [TypedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [UnionBigIntDecimal](docs/sdks/unions/README.md#unionbigintdecimal) * [UnionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [UnionDateTimeBigInt](docs/sdks/unions/README.md#uniondatetimebigint) * [UnionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [WeaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) diff --git a/go-client-sdk/docs/models/operations/requestbodypostformsimpleres.md b/go-client-sdk/docs/models/operations/requestbodypostformsimpleres.md index f30a4d354..4a96c30f1 100755 --- a/go-client-sdk/docs/models/operations/requestbodypostformsimpleres.md +++ b/go-client-sdk/docs/models/operations/requestbodypostformsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `Form` | [RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | +| `Headers` | [RequestBodyPostFormSimpleResHeaders](../../models/operations/requestbodypostformsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md b/go-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md new file mode 100755 index 000000000..08522b2f8 --- /dev/null +++ b/go-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPostFormSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md b/go-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md index 6a3ddcc7a..e23ab52cc 100755 --- a/go-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md +++ b/go-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `Form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | +| `Headers` | [RequestBodyPutMultipartSimpleResHeaders](../../models/operations/requestbodyputmultipartsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md b/go-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md new file mode 100755 index 000000000..93a7d1a57 --- /dev/null +++ b/go-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ContentType` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/unionbigintdecimalrequestbody.md b/go-client-sdk/docs/models/operations/unionbigintdecimalrequestbody.md new file mode 100755 index 000000000..50e023b44 --- /dev/null +++ b/go-client-sdk/docs/models/operations/unionbigintdecimalrequestbody.md @@ -0,0 +1,17 @@ +# UnionBigIntDecimalRequestBody + + +## Supported Types + +### + +```go +unionBigIntDecimalRequestBody := operations.CreateUnionBigIntDecimalRequestBodyBigint(*big.Int{/* values here */}) +``` + +### + +```go +unionBigIntDecimalRequestBody := operations.CreateUnionBigIntDecimalRequestBodyDecimal(*decimal.Big{/* values here */}) +``` + diff --git a/go-client-sdk/docs/models/operations/unionbigintdecimalres.md b/go-client-sdk/docs/models/operations/unionbigintdecimalres.md new file mode 100755 index 000000000..ee825831f --- /dev/null +++ b/go-client-sdk/docs/models/operations/unionbigintdecimalres.md @@ -0,0 +1,10 @@ +# UnionBigIntDecimalRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `JSON` | [UnionBigIntDecimalResJSON](../../models/operations/unionbigintdecimalresjson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/unionbigintdecimalresjson.md b/go-client-sdk/docs/models/operations/unionbigintdecimalresjson.md new file mode 100755 index 000000000..67143de8e --- /dev/null +++ b/go-client-sdk/docs/models/operations/unionbigintdecimalresjson.md @@ -0,0 +1,17 @@ +# UnionBigIntDecimalResJSON + + +## Supported Types + +### + +```go +unionBigIntDecimalResJSON := operations.CreateUnionBigIntDecimalResJSONBigint(*big.Int{/* values here */}) +``` + +### + +```go +unionBigIntDecimalResJSON := operations.CreateUnionBigIntDecimalResJSONDecimal(*decimal.Big{/* values here */}) +``` + diff --git a/go-client-sdk/docs/models/operations/unionbigintdecimalresponse.md b/go-client-sdk/docs/models/operations/unionbigintdecimalresponse.md new file mode 100755 index 000000000..2c6f13a9f --- /dev/null +++ b/go-client-sdk/docs/models/operations/unionbigintdecimalresponse.md @@ -0,0 +1,11 @@ +# UnionBigIntDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [*UnionBigIntDecimalRes](../../models/operations/unionbigintdecimalres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/uniondatetimebigintrequestbody.md b/go-client-sdk/docs/models/operations/uniondatetimebigintrequestbody.md new file mode 100755 index 000000000..6d673c233 --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatetimebigintrequestbody.md @@ -0,0 +1,17 @@ +# UnionDateTimeBigIntRequestBody + + +## Supported Types + +### + +```go +unionDateTimeBigIntRequestBody := operations.CreateUnionDateTimeBigIntRequestBodyDateTime(time.Time{/* values here */}) +``` + +### + +```go +unionDateTimeBigIntRequestBody := operations.CreateUnionDateTimeBigIntRequestBodyBigint(*big.Int{/* values here */}) +``` + diff --git a/go-client-sdk/docs/models/operations/uniondatetimebigintres.md b/go-client-sdk/docs/models/operations/uniondatetimebigintres.md new file mode 100755 index 000000000..f54bba636 --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatetimebigintres.md @@ -0,0 +1,10 @@ +# UnionDateTimeBigIntRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `JSON` | [UnionDateTimeBigIntResJSON](../../models/operations/uniondatetimebigintresjson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/uniondatetimebigintresjson.md b/go-client-sdk/docs/models/operations/uniondatetimebigintresjson.md new file mode 100755 index 000000000..e722cedf7 --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatetimebigintresjson.md @@ -0,0 +1,17 @@ +# UnionDateTimeBigIntResJSON + + +## Supported Types + +### + +```go +unionDateTimeBigIntResJSON := operations.CreateUnionDateTimeBigIntResJSONDateTime(time.Time{/* values here */}) +``` + +### + +```go +unionDateTimeBigIntResJSON := operations.CreateUnionDateTimeBigIntResJSONBigint(*big.Int{/* values here */}) +``` + diff --git a/go-client-sdk/docs/models/operations/uniondatetimebigintresponse.md b/go-client-sdk/docs/models/operations/uniondatetimebigintresponse.md new file mode 100755 index 000000000..10630c32d --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatetimebigintresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [*UnionDateTimeBigIntRes](../../models/operations/uniondatetimebigintres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/go-client-sdk/docs/sdks/parameters/README.md b/go-client-sdk/docs/sdks/parameters/README.md index a72a55733..777b0f8ba 100755 --- a/go-client-sdk/docs/sdks/parameters/README.md +++ b/go-client-sdk/docs/sdks/parameters/README.md @@ -56,8 +56,8 @@ func main() { mapParam := map[string]string{ - "test": "value", "test2": "value2", + "test": "value", } mapArrParam := map[string][]string{ @@ -380,8 +380,8 @@ func main() { } mapParamExploded := map[string]int64{ - "test2": 2, "test": 1, + "test2": 2, } ctx := context.Background() diff --git a/go-client-sdk/docs/sdks/requestbodies/README.md b/go-client-sdk/docs/sdks/requestbodies/README.md index f58ad82fa..b0f185830 100755 --- a/go-client-sdk/docs/sdks/requestbodies/README.md +++ b/go-client-sdk/docs/sdks/requestbodies/README.md @@ -2445,7 +2445,7 @@ func main() { Bool: true, Int: 1, Map: map[string]shared.SimpleObject{ - "key": shared.SimpleObject{ + "key2": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -2465,7 +2465,7 @@ func main() { Str: "test", StrOpt: openapi.String("testOptional"), }, - "key2": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -4425,7 +4425,7 @@ func main() { Bool: true, Int: 1, Map: map[string]shared.SimpleObject{ - "key2": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -4445,7 +4445,7 @@ func main() { Str: "test", StrOpt: openapi.String("testOptional"), }, - "key": shared.SimpleObject{ + "key2": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), diff --git a/go-client-sdk/docs/sdks/unions/README.md b/go-client-sdk/docs/sdks/unions/README.md index 94029439a..bda94702c 100755 --- a/go-client-sdk/docs/sdks/unions/README.md +++ b/go-client-sdk/docs/sdks/unions/README.md @@ -17,7 +17,9 @@ Endpoints for testing union types. * [StronglyTypedOneOfPost](#stronglytypedoneofpost) * [TypedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [TypedObjectOneOfPost](#typedobjectoneofpost) +* [UnionBigIntDecimal](#unionbigintdecimal) * [UnionDateNull](#uniondatenull) +* [UnionDateTimeBigInt](#uniondatetimebigint) * [UnionDateTimeNull](#uniondatetimenull) * [WeaklyTypedOneOfPost](#weaklytypedoneofpost) @@ -691,6 +693,59 @@ func main() { **[*operations.TypedObjectOneOfPostResponse](../../models/operations/typedobjectoneofpostresponse.md), error** +## UnionBigIntDecimal + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" + "openapi/pkg/models/operations" + "math/big" + "openapi/pkg/types" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + ctx := context.Background() + res, err := s.Unions.UnionBigIntDecimal(ctx, operations.CreateUnionBigIntDecimalRequestBodyDecimal( + types.MustNewDecimalFromString("9001.32"), + )) + if err != nil { + log.Fatal(err) + } + + if res.Res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UnionBigIntDecimalRequestBody](../../models/operations/unionbigintdecimalrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UnionBigIntDecimalResponse](../../models/operations/unionbigintdecimalresponse.md), error** + + ## UnionDateNull ### Example Usage @@ -739,6 +794,59 @@ func main() { **[*operations.UnionDateNullResponse](../../models/operations/uniondatenullresponse.md), error** +## UnionDateTimeBigInt + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" + "openapi/pkg/models/operations" + "openapi/pkg/types" + "math/big" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + ctx := context.Background() + res, err := s.Unions.UnionDateTimeBigInt(ctx, operations.CreateUnionDateTimeBigIntRequestBodyDateTime( + types.MustTimeFromString("2021-06-19T18:26:42.874Z"), + )) + if err != nil { + log.Fatal(err) + } + + if res.Res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UnionDateTimeBigIntRequestBody](../../models/operations/uniondatetimebigintrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UnionDateTimeBigIntResponse](../../models/operations/uniondatetimebigintresponse.md), error** + + ## UnionDateTimeNull ### Example Usage diff --git a/go-client-sdk/files.gen b/go-client-sdk/files.gen index ca9aea813..44852caa9 100755 --- a/go-client-sdk/files.gen +++ b/go-client-sdk/files.gen @@ -262,7 +262,9 @@ pkg/models/operations/primitivetypeoneofpost.go pkg/models/operations/stronglytypedoneofpost.go pkg/models/operations/typedobjectnullableoneofpost.go pkg/models/operations/typedobjectoneofpost.go +pkg/models/operations/unionbigintdecimal.go pkg/models/operations/uniondatenull.go +pkg/models/operations/uniondatetimebigint.go pkg/models/operations/uniondatetimenull.go pkg/models/operations/weaklytypedoneofpost.go pkg/models/operations/putanythingignoredgeneration.go @@ -633,6 +635,7 @@ docs/models/operations/requestbodypostformdeepresponse.md docs/models/operations/requestbodypostformmapprimitiveres.md docs/models/operations/requestbodypostformmapprimitiveresponse.md docs/models/operations/requestbodypostformsimpleresform.md +docs/models/operations/requestbodypostformsimpleresheaders.md docs/models/operations/requestbodypostformsimpleres.md docs/models/operations/requestbodypostformsimpleresponse.md docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md @@ -725,6 +728,7 @@ docs/models/operations/requestbodyputmultipartfilerequestbody.md docs/models/operations/requestbodyputmultipartfileres.md docs/models/operations/requestbodyputmultipartfileresponse.md docs/models/operations/requestbodyputmultipartsimpleresform.md +docs/models/operations/requestbodyputmultipartsimpleresheaders.md docs/models/operations/requestbodyputmultipartsimpleres.md docs/models/operations/requestbodyputmultipartsimpleresponse.md docs/models/operations/requestbodyputstringres.md @@ -808,8 +812,16 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/unionbigintdecimalrequestbody.md +docs/models/operations/unionbigintdecimalresjson.md +docs/models/operations/unionbigintdecimalres.md +docs/models/operations/unionbigintdecimalresponse.md docs/models/operations/uniondatenullres.md docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimebigintrequestbody.md +docs/models/operations/uniondatetimebigintresjson.md +docs/models/operations/uniondatetimebigintres.md +docs/models/operations/uniondatetimebigintresponse.md docs/models/operations/uniondatetimenullres.md docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md diff --git a/go-client-sdk/gen.yaml b/go-client-sdk/gen.yaml index 471f2bc11..2de70286e 100755 --- a/go-client-sdk/gen.yaml +++ b/go-client-sdk/gen.yaml @@ -1,8 +1,8 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 - speakeasyVersion: 1.111.0 + speakeasyVersion: 1.112.1 generationVersion: 2.173.0 generation: comments: {} @@ -36,7 +36,7 @@ features: tests: 0.0.0 unions: 2.84.1 go: - version: 1.39.3 + version: 1.39.4 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true installationURL: https://github.com/speakeasy-api/openapi-generation-tests/go-client-sdk diff --git a/go-client-sdk/pkg/models/operations/requestbodypostformsimple.go b/go-client-sdk/pkg/models/operations/requestbodypostformsimple.go index 26eff841e..48ed96056 100755 --- a/go-client-sdk/pkg/models/operations/requestbodypostformsimple.go +++ b/go-client-sdk/pkg/models/operations/requestbodypostformsimple.go @@ -121,9 +121,21 @@ func (o *RequestBodyPostFormSimpleResForm) GetStrOpt() *string { return o.StrOpt } +type RequestBodyPostFormSimpleResHeaders struct { + ContentType string `json:"Content-Type"` +} + +func (o *RequestBodyPostFormSimpleResHeaders) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + // RequestBodyPostFormSimpleRes - OK type RequestBodyPostFormSimpleRes struct { - Form RequestBodyPostFormSimpleResForm `json:"form"` + Form RequestBodyPostFormSimpleResForm `json:"form"` + Headers RequestBodyPostFormSimpleResHeaders `json:"headers"` } func (o *RequestBodyPostFormSimpleRes) GetForm() RequestBodyPostFormSimpleResForm { @@ -133,6 +145,13 @@ func (o *RequestBodyPostFormSimpleRes) GetForm() RequestBodyPostFormSimpleResFor return o.Form } +func (o *RequestBodyPostFormSimpleRes) GetHeaders() RequestBodyPostFormSimpleResHeaders { + if o == nil { + return RequestBodyPostFormSimpleResHeaders{} + } + return o.Headers +} + type RequestBodyPostFormSimpleResponse struct { // HTTP response content type for this operation ContentType string diff --git a/go-client-sdk/pkg/models/operations/requestbodyputmultipartsimple.go b/go-client-sdk/pkg/models/operations/requestbodyputmultipartsimple.go index 42628530b..6ef762ded 100755 --- a/go-client-sdk/pkg/models/operations/requestbodyputmultipartsimple.go +++ b/go-client-sdk/pkg/models/operations/requestbodyputmultipartsimple.go @@ -121,9 +121,21 @@ func (o *RequestBodyPutMultipartSimpleResForm) GetStrOpt() *string { return o.StrOpt } +type RequestBodyPutMultipartSimpleResHeaders struct { + ContentType string `json:"Content-Type"` +} + +func (o *RequestBodyPutMultipartSimpleResHeaders) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + // RequestBodyPutMultipartSimpleRes - OK type RequestBodyPutMultipartSimpleRes struct { - Form RequestBodyPutMultipartSimpleResForm `json:"form"` + Form RequestBodyPutMultipartSimpleResForm `json:"form"` + Headers RequestBodyPutMultipartSimpleResHeaders `json:"headers"` } func (o *RequestBodyPutMultipartSimpleRes) GetForm() RequestBodyPutMultipartSimpleResForm { @@ -133,6 +145,13 @@ func (o *RequestBodyPutMultipartSimpleRes) GetForm() RequestBodyPutMultipartSimp return o.Form } +func (o *RequestBodyPutMultipartSimpleRes) GetHeaders() RequestBodyPutMultipartSimpleResHeaders { + if o == nil { + return RequestBodyPutMultipartSimpleResHeaders{} + } + return o.Headers +} + type RequestBodyPutMultipartSimpleResponse struct { // HTTP response content type for this operation ContentType string diff --git a/go-client-sdk/pkg/models/operations/unionbigintdecimal.go b/go-client-sdk/pkg/models/operations/unionbigintdecimal.go new file mode 100755 index 000000000..d60befd6a --- /dev/null +++ b/go-client-sdk/pkg/models/operations/unionbigintdecimal.go @@ -0,0 +1,188 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "errors" + "github.com/ericlagergren/decimal" + "math/big" + "net/http" + "openapi/pkg/utils" +) + +type UnionBigIntDecimalRequestBodyType string + +const ( + UnionBigIntDecimalRequestBodyTypeBigint UnionBigIntDecimalRequestBodyType = "bigint" + UnionBigIntDecimalRequestBodyTypeDecimal UnionBigIntDecimalRequestBodyType = "decimal" +) + +type UnionBigIntDecimalRequestBody struct { + Bigint *big.Int + Decimal *decimal.Big + + Type UnionBigIntDecimalRequestBodyType +} + +func CreateUnionBigIntDecimalRequestBodyBigint(bigint *big.Int) UnionBigIntDecimalRequestBody { + typ := UnionBigIntDecimalRequestBodyTypeBigint + + return UnionBigIntDecimalRequestBody{ + Bigint: bigint, + Type: typ, + } +} + +func CreateUnionBigIntDecimalRequestBodyDecimal(decimal *decimal.Big) UnionBigIntDecimalRequestBody { + typ := UnionBigIntDecimalRequestBodyTypeDecimal + + return UnionBigIntDecimalRequestBody{ + Decimal: decimal, + Type: typ, + } +} + +func (u *UnionBigIntDecimalRequestBody) UnmarshalJSON(data []byte) error { + + bigint := big.NewInt(0) + if err := utils.UnmarshalJSON(data, &bigint, `bigint:"string"`, true, true); err == nil { + u.Bigint = bigint + u.Type = UnionBigIntDecimalRequestBodyTypeBigint + return nil + } + + decimal := new(decimal.Big).SetFloat64(0.0) + if err := utils.UnmarshalJSON(data, &decimal, `decimal:"number"`, true, true); err == nil { + u.Decimal = decimal + u.Type = UnionBigIntDecimalRequestBodyTypeDecimal + return nil + } + + return errors.New("could not unmarshal into supported union types") +} + +func (u UnionBigIntDecimalRequestBody) MarshalJSON() ([]byte, error) { + if u.Bigint != nil { + return utils.MarshalJSON(u.Bigint, `bigint:"string"`, true) + } + + if u.Decimal != nil { + return utils.MarshalJSON(u.Decimal, `decimal:"number"`, true) + } + + return nil, errors.New("could not marshal union type: all fields are null") +} + +type UnionBigIntDecimalResJSONType string + +const ( + UnionBigIntDecimalResJSONTypeBigint UnionBigIntDecimalResJSONType = "bigint" + UnionBigIntDecimalResJSONTypeDecimal UnionBigIntDecimalResJSONType = "decimal" +) + +type UnionBigIntDecimalResJSON struct { + Bigint *big.Int + Decimal *decimal.Big + + Type UnionBigIntDecimalResJSONType +} + +func CreateUnionBigIntDecimalResJSONBigint(bigint *big.Int) UnionBigIntDecimalResJSON { + typ := UnionBigIntDecimalResJSONTypeBigint + + return UnionBigIntDecimalResJSON{ + Bigint: bigint, + Type: typ, + } +} + +func CreateUnionBigIntDecimalResJSONDecimal(decimal *decimal.Big) UnionBigIntDecimalResJSON { + typ := UnionBigIntDecimalResJSONTypeDecimal + + return UnionBigIntDecimalResJSON{ + Decimal: decimal, + Type: typ, + } +} + +func (u *UnionBigIntDecimalResJSON) UnmarshalJSON(data []byte) error { + + bigint := big.NewInt(0) + if err := utils.UnmarshalJSON(data, &bigint, `bigint:"string"`, true, true); err == nil { + u.Bigint = bigint + u.Type = UnionBigIntDecimalResJSONTypeBigint + return nil + } + + decimal := new(decimal.Big).SetFloat64(0.0) + if err := utils.UnmarshalJSON(data, &decimal, `decimal:"number"`, true, true); err == nil { + u.Decimal = decimal + u.Type = UnionBigIntDecimalResJSONTypeDecimal + return nil + } + + return errors.New("could not unmarshal into supported union types") +} + +func (u UnionBigIntDecimalResJSON) MarshalJSON() ([]byte, error) { + if u.Bigint != nil { + return utils.MarshalJSON(u.Bigint, `bigint:"string"`, true) + } + + if u.Decimal != nil { + return utils.MarshalJSON(u.Decimal, `decimal:"number"`, true) + } + + return nil, errors.New("could not marshal union type: all fields are null") +} + +// UnionBigIntDecimalRes - OK +type UnionBigIntDecimalRes struct { + JSON UnionBigIntDecimalResJSON `json:"json"` +} + +func (o *UnionBigIntDecimalRes) GetJSON() UnionBigIntDecimalResJSON { + if o == nil { + return UnionBigIntDecimalResJSON{} + } + return o.JSON +} + +type UnionBigIntDecimalResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // OK + Res *UnionBigIntDecimalRes +} + +func (o *UnionBigIntDecimalResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnionBigIntDecimalResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnionBigIntDecimalResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *UnionBigIntDecimalResponse) GetRes() *UnionBigIntDecimalRes { + if o == nil { + return nil + } + return o.Res +} diff --git a/go-client-sdk/pkg/models/operations/uniondatetimebigint.go b/go-client-sdk/pkg/models/operations/uniondatetimebigint.go new file mode 100755 index 000000000..97ce367c7 --- /dev/null +++ b/go-client-sdk/pkg/models/operations/uniondatetimebigint.go @@ -0,0 +1,188 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "errors" + "math/big" + "net/http" + "openapi/pkg/utils" + "time" +) + +type UnionDateTimeBigIntRequestBodyType string + +const ( + UnionDateTimeBigIntRequestBodyTypeDateTime UnionDateTimeBigIntRequestBodyType = "date-time" + UnionDateTimeBigIntRequestBodyTypeBigint UnionDateTimeBigIntRequestBodyType = "bigint" +) + +type UnionDateTimeBigIntRequestBody struct { + DateTime *time.Time + Bigint *big.Int + + Type UnionDateTimeBigIntRequestBodyType +} + +func CreateUnionDateTimeBigIntRequestBodyDateTime(dateTime time.Time) UnionDateTimeBigIntRequestBody { + typ := UnionDateTimeBigIntRequestBodyTypeDateTime + + return UnionDateTimeBigIntRequestBody{ + DateTime: &dateTime, + Type: typ, + } +} + +func CreateUnionDateTimeBigIntRequestBodyBigint(bigint *big.Int) UnionDateTimeBigIntRequestBody { + typ := UnionDateTimeBigIntRequestBodyTypeBigint + + return UnionDateTimeBigIntRequestBody{ + Bigint: bigint, + Type: typ, + } +} + +func (u *UnionDateTimeBigIntRequestBody) UnmarshalJSON(data []byte) error { + + dateTime := time.Time{} + if err := utils.UnmarshalJSON(data, &dateTime, "", true, true); err == nil { + u.DateTime = &dateTime + u.Type = UnionDateTimeBigIntRequestBodyTypeDateTime + return nil + } + + bigint := big.NewInt(0) + if err := utils.UnmarshalJSON(data, &bigint, "", true, true); err == nil { + u.Bigint = bigint + u.Type = UnionDateTimeBigIntRequestBodyTypeBigint + return nil + } + + return errors.New("could not unmarshal into supported union types") +} + +func (u UnionDateTimeBigIntRequestBody) MarshalJSON() ([]byte, error) { + if u.DateTime != nil { + return utils.MarshalJSON(u.DateTime, "", true) + } + + if u.Bigint != nil { + return utils.MarshalJSON(u.Bigint, "", true) + } + + return nil, errors.New("could not marshal union type: all fields are null") +} + +type UnionDateTimeBigIntResJSONType string + +const ( + UnionDateTimeBigIntResJSONTypeDateTime UnionDateTimeBigIntResJSONType = "date-time" + UnionDateTimeBigIntResJSONTypeBigint UnionDateTimeBigIntResJSONType = "bigint" +) + +type UnionDateTimeBigIntResJSON struct { + DateTime *time.Time + Bigint *big.Int + + Type UnionDateTimeBigIntResJSONType +} + +func CreateUnionDateTimeBigIntResJSONDateTime(dateTime time.Time) UnionDateTimeBigIntResJSON { + typ := UnionDateTimeBigIntResJSONTypeDateTime + + return UnionDateTimeBigIntResJSON{ + DateTime: &dateTime, + Type: typ, + } +} + +func CreateUnionDateTimeBigIntResJSONBigint(bigint *big.Int) UnionDateTimeBigIntResJSON { + typ := UnionDateTimeBigIntResJSONTypeBigint + + return UnionDateTimeBigIntResJSON{ + Bigint: bigint, + Type: typ, + } +} + +func (u *UnionDateTimeBigIntResJSON) UnmarshalJSON(data []byte) error { + + dateTime := time.Time{} + if err := utils.UnmarshalJSON(data, &dateTime, "", true, true); err == nil { + u.DateTime = &dateTime + u.Type = UnionDateTimeBigIntResJSONTypeDateTime + return nil + } + + bigint := big.NewInt(0) + if err := utils.UnmarshalJSON(data, &bigint, "", true, true); err == nil { + u.Bigint = bigint + u.Type = UnionDateTimeBigIntResJSONTypeBigint + return nil + } + + return errors.New("could not unmarshal into supported union types") +} + +func (u UnionDateTimeBigIntResJSON) MarshalJSON() ([]byte, error) { + if u.DateTime != nil { + return utils.MarshalJSON(u.DateTime, "", true) + } + + if u.Bigint != nil { + return utils.MarshalJSON(u.Bigint, "", true) + } + + return nil, errors.New("could not marshal union type: all fields are null") +} + +// UnionDateTimeBigIntRes - OK +type UnionDateTimeBigIntRes struct { + JSON UnionDateTimeBigIntResJSON `json:"json"` +} + +func (o *UnionDateTimeBigIntRes) GetJSON() UnionDateTimeBigIntResJSON { + if o == nil { + return UnionDateTimeBigIntResJSON{} + } + return o.JSON +} + +type UnionDateTimeBigIntResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // OK + Res *UnionDateTimeBigIntRes +} + +func (o *UnionDateTimeBigIntResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnionDateTimeBigIntResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnionDateTimeBigIntResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *UnionDateTimeBigIntResponse) GetRes() *UnionDateTimeBigIntRes { + if o == nil { + return nil + } + return o.Res +} diff --git a/go-client-sdk/sdk.go b/go-client-sdk/sdk.go index e222f76e5..7defc1399 100755 --- a/go-client-sdk/sdk.go +++ b/go-client-sdk/sdk.go @@ -301,9 +301,9 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.1.0", - SDKVersion: "1.39.3", + SDKVersion: "1.39.4", GenVersion: "2.173.0", - UserAgent: "speakeasy-sdk/go 1.39.3 2.173.0 0.1.0 openapi", + UserAgent: "speakeasy-sdk/go 1.39.4 2.173.0 0.1.0 openapi", Globals: map[string]map[string]map[string]interface{}{ "parameters": {}, }, diff --git a/go-client-sdk/tests/parameters_test.go b/go-client-sdk/tests/parameters_test.go index 2db50ac85..f162fa01d 100755 --- a/go-client-sdk/tests/parameters_test.go +++ b/go-client-sdk/tests/parameters_test.go @@ -46,12 +46,6 @@ func TestParameters_DeepObjectQueryParamsMap(t *testing.T) { assert.Equal(t, 200, res.StatusCode) assert.Equal(t, map[string]operations.DeepObjectQueryParamsMapResArgs{ - "mapParam[test]": operations.CreateDeepObjectQueryParamsMapResArgsStr( - "value", - ), - "mapParam[test2]": operations.CreateDeepObjectQueryParamsMapResArgsStr( - "value2", - ), "mapArrParam[test]": operations.CreateDeepObjectQueryParamsMapResArgsArrayOfstr( []string{ "test", @@ -64,6 +58,12 @@ func TestParameters_DeepObjectQueryParamsMap(t *testing.T) { "test4", }, ), + "mapParam[test]": operations.CreateDeepObjectQueryParamsMapResArgsStr( + "value", + ), + "mapParam[test2]": operations.CreateDeepObjectQueryParamsMapResArgsStr( + "value2", + ), }, res.Res.Args) assert.Equal(t, "http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value", res.Res.URL) } @@ -225,9 +225,9 @@ func TestParameters_FormQueryParamsMap(t *testing.T) { assert.Equal(t, 200, res.StatusCode) assert.Equal(t, map[string]string{ - "mapParam": "test,value,test2,value2", "test": "1", "test2": "2", + "mapParam": "test,value,test2,value2", }, sortSerializedMaps(res.Res.Args, `(.*)`, ",")) assert.Equal(t, "http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2", sortSerializedMaps(res.Res.URL, `.*?\?mapParam=(.*?)&(.*)`, "%2C")) } @@ -827,43 +827,43 @@ func TestParameters_MixedQueryParams(t *testing.T) { assert.Equal(t, 200, res.StatusCode) assert.Equal(t, map[string]string{ - "bool": "true", - "deepObjectParam[enum]": "one", - "deepObjectParam[int32]": "1", + "deepObjectParam[boolOpt]": "true", + "deepObjectParam[dateTime]": "2020-01-01T00:00:00.000000001Z", + "intEnum": "2", + "jsonParam": "{\"any\":\"any\",\"bigint\":8821239038968084,\"bigintStr\":\"9223372036854775808\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000000001Z\",\"decimal\":3.141592653589793,\"decimalStr\":\"3.14159265358979344719667586\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}", + "any": "any", + "date": "2020-01-01", + "deepObjectParam[any]": "any", "deepObjectParam[strOpt]": "testOptional", - "strOpt": "testOptional", - "boolOpt": "true", + "int32": "1", "dateTime": "2020-01-01T00:00:00.000000001Z", + "deepObjectParam[bigint]": "8821239038968084", "deepObjectParam[int]": "1", "deepObjectParam[int32Enum]": "55", - "enum": "one", - "int32Enum": "55", - "deepObjectParam[dateTime]": "2020-01-01T00:00:00.000000001Z", - "date": "2020-01-01", - "deepObjectParam[date]": "2020-01-01", "deepObjectParam[num]": "1.1", - "decimalStr": "3.14159265358979344719667586", - "deepObjectParam[any]": "any", - "deepObjectParam[float32]": "1.1", - "int32": "1", - "num": "1.1", - "str": "test", - "bigintStr": "9223372036854775808", - "deepObjectParam[bool]": "true", + "int32Enum": "55", + "boolOpt": "true", + "deepObjectParam[intEnum]": "2", "deepObjectParam[decimalStr]": "3.14159265358979344719667586", - "deepObjectParam[str]": "test", "float32": "1.1", - "jsonParam": "{\"any\":\"any\",\"bigint\":8821239038968084,\"bigintStr\":\"9223372036854775808\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000000001Z\",\"decimal\":3.141592653589793,\"decimalStr\":\"3.14159265358979344719667586\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}", - "any": "any", - "bigint": "8821239038968084", - "deepObjectParam[intEnum]": "2", "int": "1", - "decimal": "3.141592653589793", - "deepObjectParam[bigint]": "8821239038968084", "deepObjectParam[bigintStr]": "9223372036854775808", - "deepObjectParam[boolOpt]": "true", + "deepObjectParam[enum]": "one", + "deepObjectParam[int32]": "1", + "enum": "one", "deepObjectParam[decimal]": "3.141592653589793", - "intEnum": "2", + "deepObjectParam[str]": "test", + "num": "1.1", + "decimal": "3.141592653589793", + "str": "test", + "bigint": "8821239038968084", + "bigintStr": "9223372036854775808", + "bool": "true", + "deepObjectParam[bool]": "true", + "deepObjectParam[date]": "2020-01-01", + "deepObjectParam[float32]": "1.1", + "decimalStr": "3.14159265358979344719667586", + "strOpt": "testOptional", }, res.Res.Args) assert.Equal(t, "http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={\"any\"%3A\"any\"%2C\"bigint\"%3A8821239038968084%2C\"bigintStr\"%3A\"9223372036854775808\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"decimal\"%3A3.141592653589793%2C\"decimalStr\"%3A\"3.14159265358979344719667586\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}&num=1.1&str=test&strOpt=testOptional", res.Res.URL) } diff --git a/go-client-sdk/testsprimary/telemetry_test.go b/go-client-sdk/testsprimary/telemetry_test.go index 599d0ca1e..1ed592bee 100755 --- a/go-client-sdk/testsprimary/telemetry_test.go +++ b/go-client-sdk/testsprimary/telemetry_test.go @@ -22,7 +22,7 @@ func TestTelemetryUserAgentGet(t *testing.T) { require.NoError(t, err) require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) - assert.Equal(t, "speakeasy-sdk/go 1.39.3 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.39.4 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) } func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { @@ -37,5 +37,5 @@ func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) assert.Equal(t, userAgent, res.Res.Headers["User-Agent"]) - assert.Equal(t, "speakeasy-sdk/go 1.39.3 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.39.4 2.173.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) } diff --git a/go-client-sdk/unions.go b/go-client-sdk/unions.go index d8a192d89..6a04bbd4d 100755 --- a/go-client-sdk/unions.go +++ b/go-client-sdk/unions.go @@ -698,6 +698,73 @@ func (s *unions) TypedObjectOneOfPost(ctx context.Context, request shared.TypedO return res, nil } +func (s *unions) UnionBigIntDecimal(ctx context.Context, request operations.UnionBigIntDecimalRequestBody) (*operations.UnionBigIntDecimalResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/unionBigIntDecimal" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + if bodyReader == nil { + return nil, fmt.Errorf("request body is required") + } + + req, err := http.NewRequestWithContext(ctx, "POST", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.UnionBigIntDecimalResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out operations.UnionBigIntDecimalRes + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Res = &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + func (s *unions) UnionDateNull(ctx context.Context, request *types.Date) (*operations.UnionDateNullResponse, error) { baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) url := strings.TrimSuffix(baseURL, "/") + "/anything/unionDateNull" @@ -765,6 +832,73 @@ func (s *unions) UnionDateNull(ctx context.Context, request *types.Date) (*opera return res, nil } +func (s *unions) UnionDateTimeBigInt(ctx context.Context, request operations.UnionDateTimeBigIntRequestBody) (*operations.UnionDateTimeBigIntResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/unionDateTimeBigInt" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + if bodyReader == nil { + return nil, fmt.Errorf("request body is required") + } + + req, err := http.NewRequestWithContext(ctx, "POST", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.UnionDateTimeBigIntResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out operations.UnionDateTimeBigIntRes + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Res = &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + func (s *unions) UnionDateTimeNull(ctx context.Context, request *time.Time) (*operations.UnionDateTimeNullResponse, error) { baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) url := strings.TrimSuffix(baseURL, "/") + "/anything/unionDateTimeNull" diff --git a/java-client-sdk/README.md b/java-client-sdk/README.md index da9615da1..6a42f3247 100755 --- a/java-client-sdk/README.md +++ b/java-client-sdk/README.md @@ -6,7 +6,7 @@ ### Gradle ```groovy -implementation 'org.openapis.openapi:openapi:1.38.1' +implementation 'org.openapis.openapi:openapi:1.38.2' ``` @@ -459,7 +459,9 @@ public class Application { * [stronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [typedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [unionBigIntDecimal](docs/sdks/unions/README.md#unionbigintdecimal) * [unionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [unionDateTimeBigInt](docs/sdks/unions/README.md#uniondatetimebigint) * [unionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [weaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) diff --git a/java-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md b/java-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md index 2e03e861f..0e68a9da7 100755 --- a/java-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md +++ b/java-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `form` | [RequestBodyPostFormSimpleResForm](../../models/operations/RequestBodyPostFormSimpleResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `form` | [RequestBodyPostFormSimpleResForm](../../models/operations/RequestBodyPostFormSimpleResForm.md) | :heavy_check_mark: | N/A | +| `headers` | [RequestBodyPostFormSimpleResHeaders](../../models/operations/RequestBodyPostFormSimpleResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResHeaders.md b/java-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResHeaders.md new file mode 100755 index 000000000..2a0ca3ced --- /dev/null +++ b/java-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResHeaders.md @@ -0,0 +1,8 @@ +# RequestBodyPostFormSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `contentType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md b/java-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md index 48f8c432d..26e3f1073 100755 --- a/java-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md +++ b/java-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/RequestBodyPutMultipartSimpleResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/RequestBodyPutMultipartSimpleResForm.md) | :heavy_check_mark: | N/A | +| `headers` | [RequestBodyPutMultipartSimpleResHeaders](../../models/operations/RequestBodyPutMultipartSimpleResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md b/java-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md new file mode 100755 index 000000000..dad1266d8 --- /dev/null +++ b/java-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `contentType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md b/java-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md new file mode 100755 index 000000000..cffc5bee3 --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md @@ -0,0 +1,10 @@ +# UnionBigIntDecimalRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *Object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md b/java-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md new file mode 100755 index 000000000..a29932409 --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md @@ -0,0 +1,11 @@ +# UnionBigIntDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionBigIntDecimalRes](../../models/operations/UnionBigIntDecimalRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md b/java-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md new file mode 100755 index 000000000..e1d25db7f --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md @@ -0,0 +1,10 @@ +# UnionDateTimeBigIntRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *Object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md b/java-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md new file mode 100755 index 000000000..fa3b8f890 --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionDateTimeBigIntRes](../../models/operations/UnionDateTimeBigIntRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/java-client-sdk/docs/sdks/parameters/README.md b/java-client-sdk/docs/sdks/parameters/README.md index e7850c2fb..32d3d27e8 100755 --- a/java-client-sdk/docs/sdks/parameters/README.md +++ b/java-client-sdk/docs/sdks/parameters/README.md @@ -657,11 +657,11 @@ public class Application { .build(); HeaderParamsMapResponse res = sdk.parameters.headerParamsMap(new java.util.HashMap(){{ - put("key1", "value1"); put("key2", "value2"); + put("key1", "value1"); }}, new java.util.HashMap(){{ - put("test2", "val2"); put("test1", "val1"); + put("test2", "val2"); }}); if (res.res != null) { @@ -901,7 +901,7 @@ public class Application { strOpt = "testOptional"; }}), }}, true, 1L, new java.util.HashMap(){{ - put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -921,7 +921,7 @@ public class Application { str = "test"; strOpt = "testOptional"; }}); - put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -1422,8 +1422,8 @@ public class Application { add(1L), add(2L), }}, new java.util.HashMap(){{ - put("key1", "val1"); put("key2", "val2"); + put("key1", "val1"); }}, new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; @@ -1544,8 +1544,8 @@ public class Application { .build(); SimplePathParameterMapsResponse res = sdk.parameters.simplePathParameterMaps(new java.util.HashMap(){{ - put("test2", "value2"); put("test", "value"); + put("test2", "value2"); }}, new java.util.HashMap(){{ put("test", 1L); put("test2", 2L); diff --git a/java-client-sdk/docs/sdks/requestbodies/README.md b/java-client-sdk/docs/sdks/requestbodies/README.md index dfcb71dd9..784fb9a2b 100755 --- a/java-client-sdk/docs/sdks/requestbodies/README.md +++ b/java-client-sdk/docs/sdks/requestbodies/README.md @@ -2408,7 +2408,7 @@ public class Application { strOpt = "testOptional"; }}), }}, true, 1L, new java.util.HashMap(){{ - put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -2428,7 +2428,7 @@ public class Application { str = "test"; strOpt = "testOptional"; }}); - put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -4303,7 +4303,7 @@ public class Application { strOpt = "testOptional"; }}), }}, true, 1L, new java.util.HashMap(){{ - put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -4323,7 +4323,7 @@ public class Application { str = "test"; strOpt = "testOptional"; }}); - put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; diff --git a/java-client-sdk/docs/sdks/unions/README.md b/java-client-sdk/docs/sdks/unions/README.md index 884c22c1e..be39503cc 100755 --- a/java-client-sdk/docs/sdks/unions/README.md +++ b/java-client-sdk/docs/sdks/unions/README.md @@ -17,7 +17,9 @@ Endpoints for testing union types. * [stronglyTypedOneOfPost](#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [typedObjectOneOfPost](#typedobjectoneofpost) +* [unionBigIntDecimal](#unionbigintdecimal) * [unionDateNull](#uniondatenull) +* [unionDateTimeBigInt](#uniondatetimebigint) * [unionDateTimeNull](#uniondatetimenull) * [weaklyTypedOneOfPost](#weaklytypedoneofpost) @@ -507,6 +509,54 @@ public class Application { **[org.openapis.openapi.models.operations.TypedObjectOneOfPostResponse](../../models/operations/TypedObjectOneOfPostResponse.md)** +## unionBigIntDecimal + +### Example Usage + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.UnionBigIntDecimalResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + org.openapis.openapi.models.. req = "string"; + + UnionBigIntDecimalResponse res = sdk.unions.unionBigIntDecimal(req); + + if (res.res != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [Object](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[org.openapis.openapi.models.operations.UnionBigIntDecimalResponse](../../models/operations/UnionBigIntDecimalResponse.md)** + + ## unionDateNull ### Example Usage @@ -555,6 +605,54 @@ public class Application { **[org.openapis.openapi.models.operations.UnionDateNullResponse](../../models/operations/UnionDateNullResponse.md)** +## unionDateTimeBigInt + +### Example Usage + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.UnionDateTimeBigIntResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + org.openapis.openapi.models.. req = "string"; + + UnionDateTimeBigIntResponse res = sdk.unions.unionDateTimeBigInt(req); + + if (res.res != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [Object](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[org.openapis.openapi.models.operations.UnionDateTimeBigIntResponse](../../models/operations/UnionDateTimeBigIntResponse.md)** + + ## unionDateTimeNull ### Example Usage diff --git a/java-client-sdk/files.gen b/java-client-sdk/files.gen index e669de8eb..65e9ae6ba 100755 --- a/java-client-sdk/files.gen +++ b/java-client-sdk/files.gen @@ -369,6 +369,7 @@ lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormDeep lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormMapPrimitiveRes.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormMapPrimitiveResponse.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleResForm.java +lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleResHeaders.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleRes.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleResponse.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.java @@ -461,6 +462,7 @@ lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipart lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartFileRes.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartFileResponse.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleResForm.java +lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleResHeaders.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleRes.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleResponse.java lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutStringRes.java @@ -538,8 +540,12 @@ lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectNullableOneO lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectNullableOneOfPostResponse.java lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectOneOfPostRes.java lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectOneOfPostResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalRes.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalResponse.java lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullRes.java lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntRes.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntResponse.java lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullRes.java lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullResponse.java lib/src/main/java/org/openapis/openapi/models/operations/WeaklyTypedOneOfPostRes.java @@ -915,6 +921,7 @@ docs/models/operations/RequestBodyPostFormDeepResponse.md docs/models/operations/RequestBodyPostFormMapPrimitiveRes.md docs/models/operations/RequestBodyPostFormMapPrimitiveResponse.md docs/models/operations/RequestBodyPostFormSimpleResForm.md +docs/models/operations/RequestBodyPostFormSimpleResHeaders.md docs/models/operations/RequestBodyPostFormSimpleRes.md docs/models/operations/RequestBodyPostFormSimpleResponse.md docs/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.md @@ -1007,6 +1014,7 @@ docs/models/operations/RequestBodyPutMultipartFileRequestBody.md docs/models/operations/RequestBodyPutMultipartFileRes.md docs/models/operations/RequestBodyPutMultipartFileResponse.md docs/models/operations/RequestBodyPutMultipartSimpleResForm.md +docs/models/operations/RequestBodyPutMultipartSimpleResHeaders.md docs/models/operations/RequestBodyPutMultipartSimpleRes.md docs/models/operations/RequestBodyPutMultipartSimpleResponse.md docs/models/operations/RequestBodyPutStringRes.md @@ -1084,8 +1092,12 @@ docs/models/operations/TypedObjectNullableOneOfPostRes.md docs/models/operations/TypedObjectNullableOneOfPostResponse.md docs/models/operations/TypedObjectOneOfPostRes.md docs/models/operations/TypedObjectOneOfPostResponse.md +docs/models/operations/UnionBigIntDecimalRes.md +docs/models/operations/UnionBigIntDecimalResponse.md docs/models/operations/UnionDateNullRes.md docs/models/operations/UnionDateNullResponse.md +docs/models/operations/UnionDateTimeBigIntRes.md +docs/models/operations/UnionDateTimeBigIntResponse.md docs/models/operations/UnionDateTimeNullRes.md docs/models/operations/UnionDateTimeNullResponse.md docs/models/operations/WeaklyTypedOneOfPostRes.md diff --git a/java-client-sdk/gen.yaml b/java-client-sdk/gen.yaml index 516bc6dd2..910549f79 100755 --- a/java-client-sdk/gen.yaml +++ b/java-client-sdk/gen.yaml @@ -1,8 +1,8 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 - speakeasyVersion: 1.111.0 + speakeasyVersion: 1.112.1 generationVersion: 2.173.0 generation: comments: {} @@ -28,7 +28,7 @@ features: nameOverrides: 2.81.1 serverIDs: 2.81.1 java: - version: 1.38.1 + version: 1.38.2 artifactID: openapi companyEmail: info@mycompany.com companyName: My Company diff --git a/java-client-sdk/gradlew.bat b/java-client-sdk/gradlew.bat index f127cfd49..53a6b238d 100755 --- a/java-client-sdk/gradlew.bat +++ b/java-client-sdk/gradlew.bat @@ -1,91 +1,91 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/java-client-sdk/lib/build.gradle b/java-client-sdk/lib/build.gradle index 118fc1b17..acf0c8ff6 100755 --- a/java-client-sdk/lib/build.gradle +++ b/java-client-sdk/lib/build.gradle @@ -57,7 +57,7 @@ publishing { maven(MavenPublication) { groupId = 'org.openapis' artifactId = 'openapi' - version = '1.38.1' + version = '1.38.2' from components.java diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java index 1976f230a..21d748ebc 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java @@ -35,9 +35,9 @@ class SDKConfiguration { }}; public String language = "java"; public String openapiDocVersion = "0.1.0"; - public String sdkVersion = "1.38.1"; + public String sdkVersion = "1.38.2"; public String genVersion = "2.173.0"; - public String userAgent = "speakeasy-sdk/java 1.38.1 2.173.0 0.1.0 "; + public String userAgent = "speakeasy-sdk/java 1.38.2 2.173.0 0.1.0 "; public Map>> globals = new HashMap>>(){{ put("parameters", new HashMap>()); }}; diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java index 81d636f83..e0bab52cf 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java @@ -405,6 +405,44 @@ public org.openapis.openapi.models.operations.TypedObjectOneOfPostResponse typed return res; } + public org.openapis.openapi.models.operations.UnionBigIntDecimalResponse unionBigIntDecimal(Object request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/unionBigIntDecimal"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + SerializedBody serializedRequestBody = org.openapis.openapi.utils.Utils.serializeRequestBody(request, "request", "json"); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(serializedRequestBody); + + req.addHeader("Accept", "application/json"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.UnionBigIntDecimalResponse res = new org.openapis.openapi.models.operations.UnionBigIntDecimalResponse(contentType, httpRes.statusCode()) {{ + res = null; + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.UnionBigIntDecimalRes out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.UnionBigIntDecimalRes.class); + res.res = out; + } + } + + return res; + } + public org.openapis.openapi.models.operations.UnionDateNullResponse unionDateNull(LocalDate request) throws Exception { String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/unionDateNull"); @@ -443,6 +481,44 @@ public org.openapis.openapi.models.operations.UnionDateNullResponse unionDateNul return res; } + public org.openapis.openapi.models.operations.UnionDateTimeBigIntResponse unionDateTimeBigInt(Object request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/unionDateTimeBigInt"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + SerializedBody serializedRequestBody = org.openapis.openapi.utils.Utils.serializeRequestBody(request, "request", "json"); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(serializedRequestBody); + + req.addHeader("Accept", "application/json"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.UnionDateTimeBigIntResponse res = new org.openapis.openapi.models.operations.UnionDateTimeBigIntResponse(contentType, httpRes.statusCode()) {{ + res = null; + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.UnionDateTimeBigIntRes out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.UnionDateTimeBigIntRes.class); + res.res = out; + } + } + + return res; + } + public org.openapis.openapi.models.operations.UnionDateTimeNullResponse unionDateTimeNull(OffsetDateTime request) throws Exception { String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/unionDateTimeNull"); diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleRes.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleRes.java index bb83dcf3d..51374346c 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleRes.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleRes.java @@ -19,7 +19,16 @@ public RequestBodyPostFormSimpleRes withForm(RequestBodyPostFormSimpleResForm fo return this; } - public RequestBodyPostFormSimpleRes(@JsonProperty("form") RequestBodyPostFormSimpleResForm form) { + @JsonProperty("headers") + public RequestBodyPostFormSimpleResHeaders headers; + + public RequestBodyPostFormSimpleRes withHeaders(RequestBodyPostFormSimpleResHeaders headers) { + this.headers = headers; + return this; + } + + public RequestBodyPostFormSimpleRes(@JsonProperty("form") RequestBodyPostFormSimpleResForm form, @JsonProperty("headers") RequestBodyPostFormSimpleResHeaders headers) { this.form = form; + this.headers = headers; } } diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleResHeaders.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleResHeaders.java new file mode 100755 index 000000000..9832dbae5 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPostFormSimpleResHeaders.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class RequestBodyPostFormSimpleResHeaders { + @JsonProperty("Content-Type") + public String contentType; + + public RequestBodyPostFormSimpleResHeaders withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + public RequestBodyPostFormSimpleResHeaders(@JsonProperty("Content-Type") String contentType) { + this.contentType = contentType; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleRes.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleRes.java index dbad864d1..a23a59e65 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleRes.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleRes.java @@ -19,7 +19,16 @@ public RequestBodyPutMultipartSimpleRes withForm(RequestBodyPutMultipartSimpleRe return this; } - public RequestBodyPutMultipartSimpleRes(@JsonProperty("form") RequestBodyPutMultipartSimpleResForm form) { + @JsonProperty("headers") + public RequestBodyPutMultipartSimpleResHeaders headers; + + public RequestBodyPutMultipartSimpleRes withHeaders(RequestBodyPutMultipartSimpleResHeaders headers) { + this.headers = headers; + return this; + } + + public RequestBodyPutMultipartSimpleRes(@JsonProperty("form") RequestBodyPutMultipartSimpleResForm form, @JsonProperty("headers") RequestBodyPutMultipartSimpleResHeaders headers) { this.form = form; + this.headers = headers; } } diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleResHeaders.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleResHeaders.java new file mode 100755 index 000000000..abfb7d860 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/RequestBodyPutMultipartSimpleResHeaders.java @@ -0,0 +1,22 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class RequestBodyPutMultipartSimpleResHeaders { + @JsonProperty("Content-Type") + public String contentType; + + public RequestBodyPutMultipartSimpleResHeaders withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + public RequestBodyPutMultipartSimpleResHeaders(@JsonProperty("Content-Type") String contentType) { + this.contentType = contentType; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalRes.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalRes.java new file mode 100755 index 000000000..537864fc0 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalRes.java @@ -0,0 +1,25 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * UnionBigIntDecimalRes - OK + */ + +public class UnionBigIntDecimalRes { + @JsonProperty("json") + public Object json; + + public UnionBigIntDecimalRes withJson(Object json) { + this.json = json; + return this; + } + + public UnionBigIntDecimalRes(@JsonProperty("json") Object json) { + this.json = json; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalResponse.java new file mode 100755 index 000000000..1fbf63d63 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionBigIntDecimalResponse.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class UnionBigIntDecimalResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public UnionBigIntDecimalResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public UnionBigIntDecimalResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public UnionBigIntDecimalResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * OK + */ + + public UnionBigIntDecimalRes res; + + public UnionBigIntDecimalResponse withRes(UnionBigIntDecimalRes res) { + this.res = res; + return this; + } + + public UnionBigIntDecimalResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntRes.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntRes.java new file mode 100755 index 000000000..ed671beaf --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntRes.java @@ -0,0 +1,25 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * UnionDateTimeBigIntRes - OK + */ + +public class UnionDateTimeBigIntRes { + @JsonProperty("json") + public Object json; + + public UnionDateTimeBigIntRes withJson(Object json) { + this.json = json; + return this; + } + + public UnionDateTimeBigIntRes(@JsonProperty("json") Object json) { + this.json = json; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntResponse.java new file mode 100755 index 000000000..064f96cf1 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeBigIntResponse.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class UnionDateTimeBigIntResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public UnionDateTimeBigIntResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public UnionDateTimeBigIntResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public UnionDateTimeBigIntResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * OK + */ + + public UnionDateTimeBigIntRes res; + + public UnionDateTimeBigIntResponse withRes(UnionDateTimeBigIntRes res) { + this.res = res; + return this; + } + + public UnionDateTimeBigIntResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java b/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java index 2b23f0c59..9c30f3a1a 100755 --- a/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java +++ b/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java @@ -23,7 +23,7 @@ void testTelemetryUserAgentGet() throws Exception { assertNotNull(res); assertEquals(200, res.statusCode); - assertEquals("speakeasy-sdk/java 1.38.1 2.173.0 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); + assertEquals("speakeasy-sdk/java 1.38.2 2.173.0 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); } @Test @@ -40,6 +40,6 @@ void testTelemetrySpeakeasyUserAgentGet() throws Exception { assertNotNull(res); assertEquals(200, res.statusCode); assertEquals(userAgent, res.res.headers.get("User-Agent")); - assertEquals("speakeasy-sdk/java 1.38.1 2.173.0 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); + assertEquals("speakeasy-sdk/java 1.38.2 2.173.0 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); } } \ No newline at end of file diff --git a/php-client-sdk/README.md b/php-client-sdk/README.md index 316fead66..b7ea398f1 100755 --- a/php-client-sdk/README.md +++ b/php-client-sdk/README.md @@ -487,7 +487,9 @@ try { * [stronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [typedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [unionBigIntDecimal](docs/sdks/unions/README.md#unionbigintdecimal) * [unionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [unionDateTimeBigInt](docs/sdks/unions/README.md#uniondatetimebigint) * [unionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [weaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) diff --git a/php-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md b/php-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md new file mode 100755 index 000000000..18f2e02c6 --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionBigIntDecimalRes.md @@ -0,0 +1,10 @@ +# UnionBigIntDecimalRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *mixed* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md b/php-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md new file mode 100755 index 000000000..db6225ad2 --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionBigIntDecimalResponse.md @@ -0,0 +1,11 @@ +# UnionBigIntDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [?UnionBigIntDecimalRes](../../models/operations/UnionBigIntDecimalRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md b/php-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md new file mode 100755 index 000000000..02d6f0053 --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionDateTimeBigIntRes.md @@ -0,0 +1,10 @@ +# UnionDateTimeBigIntRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *mixed* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md b/php-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md new file mode 100755 index 000000000..ce458829d --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionDateTimeBigIntResponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [?UnionDateTimeBigIntRes](../../models/operations/UnionDateTimeBigIntRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/php-client-sdk/docs/sdks/unions/README.md b/php-client-sdk/docs/sdks/unions/README.md index aa25f6ecf..48e0241af 100755 --- a/php-client-sdk/docs/sdks/unions/README.md +++ b/php-client-sdk/docs/sdks/unions/README.md @@ -17,7 +17,9 @@ Endpoints for testing union types. * [stronglyTypedOneOfPost](#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [typedObjectOneOfPost](#typedobjectoneofpost) +* [unionBigIntDecimal](#unionbigintdecimal) * [unionDateNull](#uniondatenull) +* [unionDateTimeBigInt](#uniondatetimebigint) * [unionDateTimeNull](#uniondatetimenull) * [weaklyTypedOneOfPost](#weaklytypedoneofpost) @@ -487,6 +489,51 @@ try { **[?\OpenAPI\OpenAPI\Models\Operations\TypedObjectOneOfPostResponse](../../models/operations/TypedObjectOneOfPostResponse.md)** +## unionBigIntDecimal + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { +'string' + + $response = $sdk->unions->unionBigIntDecimal($request); + + if ($response->res !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `$request` | [mixed](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\UnionBigIntDecimalResponse](../../models/operations/UnionBigIntDecimalResponse.md)** + + ## unionDateNull ### Example Usage @@ -532,6 +579,51 @@ DateTime::createFromFormat('Y-m-d', '2022-11-25') **[?\OpenAPI\OpenAPI\Models\Operations\UnionDateNullResponse](../../models/operations/UnionDateNullResponse.md)** +## unionDateTimeBigInt + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { +'string' + + $response = $sdk->unions->unionDateTimeBigInt($request); + + if ($response->res !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `$request` | [mixed](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\UnionDateTimeBigIntResponse](../../models/operations/UnionDateTimeBigIntResponse.md)** + + ## unionDateTimeNull ### Example Usage diff --git a/php-client-sdk/files.gen b/php-client-sdk/files.gen index b4c5d6ca7..00f5223b8 100755 --- a/php-client-sdk/files.gen +++ b/php-client-sdk/files.gen @@ -524,8 +524,12 @@ src/Models/Operations/TypedObjectNullableOneOfPostRes.php src/Models/Operations/TypedObjectNullableOneOfPostResponse.php src/Models/Operations/TypedObjectOneOfPostRes.php src/Models/Operations/TypedObjectOneOfPostResponse.php +src/Models/Operations/UnionBigIntDecimalRes.php +src/Models/Operations/UnionBigIntDecimalResponse.php src/Models/Operations/UnionDateNullRes.php src/Models/Operations/UnionDateNullResponse.php +src/Models/Operations/UnionDateTimeBigIntRes.php +src/Models/Operations/UnionDateTimeBigIntResponse.php src/Models/Operations/UnionDateTimeNullRes.php src/Models/Operations/UnionDateTimeNullResponse.php src/Models/Operations/WeaklyTypedOneOfPostRes.php @@ -1072,8 +1076,12 @@ docs/models/operations/TypedObjectNullableOneOfPostRes.md docs/models/operations/TypedObjectNullableOneOfPostResponse.md docs/models/operations/TypedObjectOneOfPostRes.md docs/models/operations/TypedObjectOneOfPostResponse.md +docs/models/operations/UnionBigIntDecimalRes.md +docs/models/operations/UnionBigIntDecimalResponse.md docs/models/operations/UnionDateNullRes.md docs/models/operations/UnionDateNullResponse.md +docs/models/operations/UnionDateTimeBigIntRes.md +docs/models/operations/UnionDateTimeBigIntResponse.md docs/models/operations/UnionDateTimeNullRes.md docs/models/operations/UnionDateTimeNullResponse.md docs/models/operations/WeaklyTypedOneOfPostRes.md diff --git a/php-client-sdk/gen.yaml b/php-client-sdk/gen.yaml index c89b6db70..7b6a40c10 100755 --- a/php-client-sdk/gen.yaml +++ b/php-client-sdk/gen.yaml @@ -1,6 +1,6 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 speakeasyVersion: 1.112.1 generationVersion: 2.173.0 @@ -28,7 +28,7 @@ features: nameOverrides: 2.81.1 serverIDs: 2.81.1 php: - version: 1.36.1 + version: 1.36.2 maxMethodParams: 5 namespace: OpenAPI\OpenAPI packageName: openapi/openapi diff --git a/php-client-sdk/src/Models/Operations/UnionBigIntDecimalRes.php b/php-client-sdk/src/Models/Operations/UnionBigIntDecimalRes.php new file mode 100755 index 000000000..e7d5344e3 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionBigIntDecimalRes.php @@ -0,0 +1,28 @@ +json = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/UnionBigIntDecimalResponse.php b/php-client-sdk/src/Models/Operations/UnionBigIntDecimalResponse.php new file mode 100755 index 000000000..4188cf42a --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionBigIntDecimalResponse.php @@ -0,0 +1,53 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + $this->res = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/UnionDateTimeBigIntRes.php b/php-client-sdk/src/Models/Operations/UnionDateTimeBigIntRes.php new file mode 100755 index 000000000..244ce180d --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionDateTimeBigIntRes.php @@ -0,0 +1,28 @@ +json = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/UnionDateTimeBigIntResponse.php b/php-client-sdk/src/Models/Operations/UnionDateTimeBigIntResponse.php new file mode 100755 index 000000000..6cf665a03 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionDateTimeBigIntResponse.php @@ -0,0 +1,53 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + $this->res = null; + } +} diff --git a/php-client-sdk/src/SDKConfiguration.php b/php-client-sdk/src/SDKConfiguration.php index b1c30c235..653fdee3c 100755 --- a/php-client-sdk/src/SDKConfiguration.php +++ b/php-client-sdk/src/SDKConfiguration.php @@ -36,9 +36,9 @@ class SDKConfiguration ]; public string $language = 'php'; public string $openapiDocVersion = '0.1.0'; - public string $sdkVersion = '1.36.1'; + public string $sdkVersion = '1.36.2'; public string $genVersion = '2.173.0'; - public string $userAgent = 'speakeasy-sdk/php 1.36.1 2.173.0 0.1.0 openapi/openapi'; + public string $userAgent = 'speakeasy-sdk/php 1.36.2 2.173.0 0.1.0 openapi/openapi'; /** @var array>> */ public ?array $globals = [ 'parameters' => [] diff --git a/php-client-sdk/src/Unions.php b/php-client-sdk/src/Unions.php index 0dca41087..c13f478d1 100755 --- a/php-client-sdk/src/Unions.php +++ b/php-client-sdk/src/Unions.php @@ -431,6 +431,47 @@ public function typedObjectOneOfPost( return $response; } + /** + * unionBigIntDecimal + * + * @param mixed $request + * @return \OpenAPI\OpenAPI\Models\Operations\UnionBigIntDecimalResponse + */ + public function unionBigIntDecimal( + mixed $request, + ): \OpenAPI\OpenAPI\Models\Operations\UnionBigIntDecimalResponse + { + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/unionBigIntDecimal'); + + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, "request", "json"); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\UnionBigIntDecimalResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $response->res = $serializer->deserialize((string)$httpResponse->getBody(), 'OpenAPI\OpenAPI\Models\Operations\UnionBigIntDecimalRes', 'json'); + } + } + + return $response; + } + /** * unionDateNull * @@ -472,6 +513,47 @@ public function unionDateNull( return $response; } + /** + * unionDateTimeBigInt + * + * @param mixed $request + * @return \OpenAPI\OpenAPI\Models\Operations\UnionDateTimeBigIntResponse + */ + public function unionDateTimeBigInt( + mixed $request, + ): \OpenAPI\OpenAPI\Models\Operations\UnionDateTimeBigIntResponse + { + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/unionDateTimeBigInt'); + + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, "request", "json"); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\UnionDateTimeBigIntResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $response->res = $serializer->deserialize((string)$httpResponse->getBody(), 'OpenAPI\OpenAPI\Models\Operations\UnionDateTimeBigIntRes', 'json'); + } + } + + return $response; + } + /** * unionDateTimeNull * diff --git a/php-client-sdk/testsPrimary/TelemetryTest.php b/php-client-sdk/testsPrimary/TelemetryTest.php index 13d8f9558..944501a45 100755 --- a/php-client-sdk/testsPrimary/TelemetryTest.php +++ b/php-client-sdk/testsPrimary/TelemetryTest.php @@ -28,7 +28,7 @@ public function testTelemetryUserAgentGet(): void $this->assertNotNull($response); $this->assertEquals(200, $response->statusCode); $this->assertEquals( - 'speakeasy-sdk/php 1.36.1 2.173.0 0.1.0 openapi/openapi', + 'speakeasy-sdk/php 1.36.2 2.173.0 0.1.0 openapi/openapi', $response->res->headers['X-Speakeasy-User-Agent'], ); } @@ -49,7 +49,7 @@ public function testTelemetrySpeakeasyUserAgentGet(): void $this->assertEquals(200, $response->statusCode); $this->assertEquals($userAgent, $response->res->headers['User-Agent']); $this->assertEquals( - 'speakeasy-sdk/php 1.36.1 2.173.0 0.1.0 openapi/openapi', + 'speakeasy-sdk/php 1.36.2 2.173.0 0.1.0 openapi/openapi', $response->res->headers['X-Speakeasy-User-Agent'], ); } diff --git a/python-client-sdk/README.md b/python-client-sdk/README.md index 96ae57508..845bbe710 100755 --- a/python-client-sdk/README.md +++ b/python-client-sdk/README.md @@ -374,7 +374,9 @@ if res.usage_example_post_200_application_json_object is not None: * [strongly_typed_one_of_post](docs/sdks/unions/README.md#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](docs/sdks/unions/README.md#typed_object_nullable_one_of_post) * [typed_object_one_of_post](docs/sdks/unions/README.md#typed_object_one_of_post) +* [union_big_int_decimal](docs/sdks/unions/README.md#union_big_int_decimal) * [union_date_null](docs/sdks/unions/README.md#union_date_null) +* [union_date_time_big_int](docs/sdks/unions/README.md#union_date_time_big_int) * [union_date_time_null](docs/sdks/unions/README.md#union_date_time_null) * [weakly_typed_one_of_post](docs/sdks/unions/README.md#weakly_typed_one_of_post) diff --git a/python-client-sdk/docs/models/operations/requestbodypostformsimpleres.md b/python-client-sdk/docs/models/operations/requestbodypostformsimpleres.md index c4883fdf2..188da40ab 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostformsimpleres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostformsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `form` | [RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `form` | [RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | +| `headers` | [RequestBodyPostFormSimpleResHeaders](../../models/operations/requestbodypostformsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md b/python-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md new file mode 100755 index 000000000..f5cb44a12 --- /dev/null +++ b/python-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPostFormSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `content_type` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md b/python-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md index 97cfaa654..fce756fe8 100755 --- a/python-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md +++ b/python-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | +| `headers` | [RequestBodyPutMultipartSimpleResHeaders](../../models/operations/requestbodyputmultipartsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md b/python-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md new file mode 100755 index 000000000..bc826630a --- /dev/null +++ b/python-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `content_type` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/unionbigintdecimalrequestbody.md b/python-client-sdk/docs/models/operations/unionbigintdecimalrequestbody.md new file mode 100755 index 000000000..288fa16e2 --- /dev/null +++ b/python-client-sdk/docs/models/operations/unionbigintdecimalrequestbody.md @@ -0,0 +1,17 @@ +# UnionBigIntDecimalRequestBody + + +## Supported Types + +### + +```python +unionBigIntDecimalRequestBody: int = /* values here */ +``` + +### + +```python +unionBigIntDecimalRequestBody: Decimal = /* values here */ +``` + diff --git a/python-client-sdk/docs/models/operations/unionbigintdecimalres.md b/python-client-sdk/docs/models/operations/unionbigintdecimalres.md new file mode 100755 index 000000000..fc168e505 --- /dev/null +++ b/python-client-sdk/docs/models/operations/unionbigintdecimalres.md @@ -0,0 +1,10 @@ +# UnionBigIntDecimalRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `json` | [Union[int, Decimal]](../../models/operations/unionbigintdecimalresjson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/unionbigintdecimalresjson.md b/python-client-sdk/docs/models/operations/unionbigintdecimalresjson.md new file mode 100755 index 000000000..1712c40e3 --- /dev/null +++ b/python-client-sdk/docs/models/operations/unionbigintdecimalresjson.md @@ -0,0 +1,17 @@ +# UnionBigIntDecimalResJSON + + +## Supported Types + +### + +```python +unionBigIntDecimalResJSON: int = /* values here */ +``` + +### + +```python +unionBigIntDecimalResJSON: Decimal = /* values here */ +``` + diff --git a/python-client-sdk/docs/models/operations/unionbigintdecimalresponse.md b/python-client-sdk/docs/models/operations/unionbigintdecimalresponse.md new file mode 100755 index 000000000..42dc083e2 --- /dev/null +++ b/python-client-sdk/docs/models/operations/unionbigintdecimalresponse.md @@ -0,0 +1,11 @@ +# UnionBigIntDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [Optional[UnionBigIntDecimalRes]](../../models/operations/unionbigintdecimalres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/uniondatetimebigintrequestbody.md b/python-client-sdk/docs/models/operations/uniondatetimebigintrequestbody.md new file mode 100755 index 000000000..afcd00d3d --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatetimebigintrequestbody.md @@ -0,0 +1,17 @@ +# UnionDateTimeBigIntRequestBody + + +## Supported Types + +### + +```python +unionDateTimeBigIntRequestBody: datetime = /* values here */ +``` + +### + +```python +unionDateTimeBigIntRequestBody: int = /* values here */ +``` + diff --git a/python-client-sdk/docs/models/operations/uniondatetimebigintres.md b/python-client-sdk/docs/models/operations/uniondatetimebigintres.md new file mode 100755 index 000000000..30bf79d85 --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatetimebigintres.md @@ -0,0 +1,10 @@ +# UnionDateTimeBigIntRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `json` | [Union[datetime, int]](../../models/operations/uniondatetimebigintresjson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/uniondatetimebigintresjson.md b/python-client-sdk/docs/models/operations/uniondatetimebigintresjson.md new file mode 100755 index 000000000..bb1287e10 --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatetimebigintresjson.md @@ -0,0 +1,17 @@ +# UnionDateTimeBigIntResJSON + + +## Supported Types + +### + +```python +unionDateTimeBigIntResJSON: datetime = /* values here */ +``` + +### + +```python +unionDateTimeBigIntResJSON: int = /* values here */ +``` + diff --git a/python-client-sdk/docs/models/operations/uniondatetimebigintresponse.md b/python-client-sdk/docs/models/operations/uniondatetimebigintresponse.md new file mode 100755 index 000000000..0c33c3bff --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatetimebigintresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [Optional[UnionDateTimeBigIntRes]](../../models/operations/uniondatetimebigintres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/sdks/requestbodies/README.md b/python-client-sdk/docs/sdks/requestbodies/README.md index c84af127f..0f1f29cda 100755 --- a/python-client-sdk/docs/sdks/requestbodies/README.md +++ b/python-client-sdk/docs/sdks/requestbodies/README.md @@ -3634,7 +3634,7 @@ req = shared.DeepObject( bool=True, int=1, map={ - "key": shared.SimpleObject( + "key2": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -3654,7 +3654,7 @@ req = shared.DeepObject( str_='test', str_opt='testOptional', ), - "key2": shared.SimpleObject( + "key": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, diff --git a/python-client-sdk/docs/sdks/unions/README.md b/python-client-sdk/docs/sdks/unions/README.md index 99c79d12a..1ee66af7f 100755 --- a/python-client-sdk/docs/sdks/unions/README.md +++ b/python-client-sdk/docs/sdks/unions/README.md @@ -17,7 +17,9 @@ Endpoints for testing union types. * [strongly_typed_one_of_post](#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](#typed_object_nullable_one_of_post) * [typed_object_one_of_post](#typed_object_one_of_post) +* [union_big_int_decimal](#union_big_int_decimal) * [union_date_null](#union_date_null) +* [union_date_time_big_int](#union_date_time_big_int) * [union_date_time_null](#union_date_time_null) * [weakly_typed_one_of_post](#weakly_typed_one_of_post) @@ -556,6 +558,43 @@ if res.res is not None: **[operations.TypedObjectOneOfPostResponse](../../models/operations/typedobjectoneofpostresponse.md)** +## union_big_int_decimal + +### Example Usage + +```python +import sdk +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + +req = Decimal('9001.32') + +res = s.unions.union_big_int_decimal(req) + +if res.res is not None: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `request` | [Union[int, Decimal]](../../models/operations/unionbigintdecimalrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.UnionBigIntDecimalResponse](../../models/operations/unionbigintdecimalresponse.md)** + + ## union_date_null ### Example Usage @@ -593,6 +632,43 @@ if res.res is not None: **[operations.UnionDateNullResponse](../../models/operations/uniondatenullresponse.md)** +## union_date_time_big_int + +### Example Usage + +```python +import sdk +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + +req = dateutil.parser.isoparse('2021-06-19T18:26:42.874Z') + +res = s.unions.union_date_time_big_int(req) + +if res.res is not None: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | [Union[datetime, int]](../../models/operations/uniondatetimebigintrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.UnionDateTimeBigIntResponse](../../models/operations/uniondatetimebigintresponse.md)** + + ## union_date_time_null ### Example Usage diff --git a/python-client-sdk/files.gen b/python-client-sdk/files.gen index c0e7a9f6d..c8c15bbbc 100755 --- a/python-client-sdk/files.gen +++ b/python-client-sdk/files.gen @@ -254,7 +254,9 @@ src/sdk/models/operations/primitivetypeoneofpost.py src/sdk/models/operations/stronglytypedoneofpost.py src/sdk/models/operations/typedobjectnullableoneofpost.py src/sdk/models/operations/typedobjectoneofpost.py +src/sdk/models/operations/unionbigintdecimal.py src/sdk/models/operations/uniondatenull.py +src/sdk/models/operations/uniondatetimebigint.py src/sdk/models/operations/uniondatetimenull.py src/sdk/models/operations/weaklytypedoneofpost.py src/sdk/models/operations/put_anything_ignoredgeneration.py @@ -614,6 +616,7 @@ docs/models/operations/requestbodypostformdeepresponse.md docs/models/operations/requestbodypostformmapprimitiveres.md docs/models/operations/requestbodypostformmapprimitiveresponse.md docs/models/operations/requestbodypostformsimpleresform.md +docs/models/operations/requestbodypostformsimpleresheaders.md docs/models/operations/requestbodypostformsimpleres.md docs/models/operations/requestbodypostformsimpleresponse.md docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md @@ -706,6 +709,7 @@ docs/models/operations/requestbodyputmultipartfilerequestbody.md docs/models/operations/requestbodyputmultipartfileres.md docs/models/operations/requestbodyputmultipartfileresponse.md docs/models/operations/requestbodyputmultipartsimpleresform.md +docs/models/operations/requestbodyputmultipartsimpleresheaders.md docs/models/operations/requestbodyputmultipartsimpleres.md docs/models/operations/requestbodyputmultipartsimpleresponse.md docs/models/operations/requestbodyputstringres.md @@ -789,8 +793,16 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/unionbigintdecimalrequestbody.md +docs/models/operations/unionbigintdecimalresjson.md +docs/models/operations/unionbigintdecimalres.md +docs/models/operations/unionbigintdecimalresponse.md docs/models/operations/uniondatenullres.md docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimebigintrequestbody.md +docs/models/operations/uniondatetimebigintresjson.md +docs/models/operations/uniondatetimebigintres.md +docs/models/operations/uniondatetimebigintresponse.md docs/models/operations/uniondatetimenullres.md docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md diff --git a/python-client-sdk/gen.yaml b/python-client-sdk/gen.yaml index d6b6a3cc7..f39491c9f 100755 --- a/python-client-sdk/gen.yaml +++ b/python-client-sdk/gen.yaml @@ -1,8 +1,8 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 - speakeasyVersion: 1.111.0 + speakeasyVersion: 1.112.1 generationVersion: 2.173.0 generation: comments: {} @@ -33,7 +33,7 @@ features: retries: 2.82.0 serverIDs: 2.81.1 python: - version: 2.0.3 + version: 2.0.4 author: Speakeasy clientServerStatusCodesAsErrors: true description: Python Client SDK Generated by Speakeasy diff --git a/python-client-sdk/setup.py b/python-client-sdk/setup.py index e710d812d..e9f256f05 100755 --- a/python-client-sdk/setup.py +++ b/python-client-sdk/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="2.0.3", + version="2.0.4", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/python-client-sdk/src/sdk/models/operations/__init__.py b/python-client-sdk/src/sdk/models/operations/__init__.py index fc46e6968..ec3c770bf 100755 --- a/python-client-sdk/src/sdk/models/operations/__init__.py +++ b/python-client-sdk/src/sdk/models/operations/__init__.py @@ -201,10 +201,12 @@ from .typedobjectnullableoneofpost import * from .typedobjectoneofpost import * from .typedparametergenerationget import * +from .unionbigintdecimal import * from .uniondatenull import * +from .uniondatetimebigint import * from .uniondatetimenull import * from .updateresource import * from .usageexamplepost import * from .weaklytypedoneofpost import * -__all__ = ["APIKeyAuthGlobalNewResponse","APIKeyAuthGlobalResponse","APIKeyAuthGlobalToken","APIKeyAuthResponse","APIKeyAuthSecurity","APIKeyAuthToken","AnchorTypesGetResponse","ArrayCircularReferenceGetResponse","AuthGlobalResponse","BasicAuthNewResponse","BasicAuthNewSecurity","BasicAuthRequest","BasicAuthResponse","BasicAuthSecurity","BasicAuthUser","BearerAuthResponse","BearerAuthSecurity","BearerAuthToken","CircularReferenceGetResponse","ComponentBodyAndParamConflictRequest","ComponentBodyAndParamConflictRes","ComponentBodyAndParamConflictResponse","ComponentBodyAndParamNoConflictRequest","ComponentBodyAndParamNoConflictRes","ComponentBodyAndParamNoConflictResponse","ConflictingParamsRequest","ConflictingParamsRes","ConflictingParamsResponse","ConnectionErrorGetResponse","CreateFileRequestBody","CreateFileRequestBodyFile","CreateFileResponse","CreateResourceResponse","DateParamWithDefaultRequest","DateParamWithDefaultResponse","DateTimeParamWithDefaultRequest","DateTimeParamWithDefaultResponse","DecimalParamWithDefaultRequest","DecimalParamWithDefaultResponse","DeepObjectQueryParamsMapRequest","DeepObjectQueryParamsMapRes","DeepObjectQueryParamsMapResArgs","DeepObjectQueryParamsMapResponse","DeepObjectQueryParamsObjectObjArrParam","DeepObjectQueryParamsObjectRequest","DeepObjectQueryParamsObjectRes","DeepObjectQueryParamsObjectResArgs","DeepObjectQueryParamsObjectResponse","DeleteResourceRequest","DeleteResourceResponse","DeprecatedFieldInSchemaPostResponse","DeprecatedObjectInSchemaGet200ApplicationJSON","DeprecatedObjectInSchemaGetResponse","DeprecatedOperationNoCommentsGetRequest","DeprecatedOperationNoCommentsGetResponse","DeprecatedOperationWithCommentsGetRequest","DeprecatedOperationWithCommentsGetResponse","DuplicateParamDuplicateParamResponse","DuplicateParamRequest","DuplicateParamResponse","EmptyObjectGetRequest","EmptyObjectGetResponse","EmptyResponseObjectWithCommentGet200ApplicationOctetStream","EmptyResponseObjectWithCommentGetResponse","FlattenedTypedObjectPostRes","FlattenedTypedObjectPostResponse","FormQueryParamsArrayRequest","FormQueryParamsArrayRes","FormQueryParamsArrayResArgs","FormQueryParamsArrayResponse","FormQueryParamsCamelObjectObjParam","FormQueryParamsCamelObjectObjParamExploded","FormQueryParamsCamelObjectRequest","FormQueryParamsCamelObjectRes","FormQueryParamsCamelObjectResArgs","FormQueryParamsCamelObjectResponse","FormQueryParamsMapRequest","FormQueryParamsMapRes","FormQueryParamsMapResponse","FormQueryParamsObjectRequest","FormQueryParamsObjectRes","FormQueryParamsObjectResArgs","FormQueryParamsObjectResponse","FormQueryParamsPrimitiveRequest","FormQueryParamsPrimitiveRes","FormQueryParamsPrimitiveResArgs","FormQueryParamsPrimitiveResponse","FormQueryParamsRefParamObjectRequest","FormQueryParamsRefParamObjectRes","FormQueryParamsRefParamObjectResArgs","FormQueryParamsRefParamObjectResponse","GetDocumentationPerLanguageRequest","GetDocumentationPerLanguageResponse","GetGlobalNameOverride200ApplicationJSON","GetGlobalNameOverrideResponse","GetResourceRequest","GetResourceResponse","GlobalBearerAuthResponse","GlobalBearerAuthToken","GlobalPathParameterGetRequest","GlobalPathParameterGetRes","GlobalPathParameterGetResponse","GlobalsQueryParameterGetRequest","GlobalsQueryParameterGetRes","GlobalsQueryParameterGetResArgs","GlobalsQueryParameterGetResponse","GroupFirstGetResponse","GroupSecondGetResponse","HeaderParamsArrayRequest","HeaderParamsArrayRes","HeaderParamsArrayResHeaders","HeaderParamsArrayResponse","HeaderParamsMapRequest","HeaderParamsMapRes","HeaderParamsMapResHeaders","HeaderParamsMapResponse","HeaderParamsObjectRequest","HeaderParamsObjectRes","HeaderParamsObjectResHeaders","HeaderParamsObjectResponse","HeaderParamsPrimitiveRequest","HeaderParamsPrimitiveRes","HeaderParamsPrimitiveResHeaders","HeaderParamsPrimitiveResponse","IgnoredGenerationGet200ApplicationJSON","IgnoredGenerationGetResponse","IgnoresPostApplicationJSON","IgnoresPostRequest","IgnoresPostResponse","InlineBodyAndParamConflictRequest","InlineBodyAndParamConflictRequestBody","InlineBodyAndParamConflictRes","InlineBodyAndParamConflictResJSON","InlineBodyAndParamConflictResponse","InlineBodyAndParamNoConflictRequest","InlineBodyAndParamNoConflictRequestBody","InlineBodyAndParamNoConflictRes","InlineBodyAndParamNoConflictResJSON","InlineBodyAndParamNoConflictResponse","JSONQueryParamsObjectRequest","JSONQueryParamsObjectRes","JSONQueryParamsObjectResArgs","JSONQueryParamsObjectResponse","MixedParametersCamelCaseRequest","MixedParametersCamelCaseRes","MixedParametersCamelCaseResArgs","MixedParametersCamelCaseResHeaders","MixedParametersCamelCaseResponse","MixedParametersPrimitivesRequest","MixedParametersPrimitivesRes","MixedParametersPrimitivesResArgs","MixedParametersPrimitivesResHeaders","MixedParametersPrimitivesResponse","MixedQueryParamsRequest","MixedQueryParamsRes","MixedQueryParamsResponse","MixedTypeOneOfPostRequestBody","MixedTypeOneOfPostRes","MixedTypeOneOfPostResJSON","MixedTypeOneOfPostResponse","MultipleMixedOptionsAuthResponse","MultipleMixedOptionsAuthSecurity","MultipleMixedSchemeAuthResponse","MultipleMixedSchemeAuthSecurity","MultipleOptionsWithMixedSchemesAuthResponse","MultipleOptionsWithMixedSchemesAuthSecurity","MultipleOptionsWithMixedSchemesAuthSecurityOption1","MultipleOptionsWithMixedSchemesAuthSecurityOption2","MultipleOptionsWithSimpleSchemesAuthResponse","MultipleOptionsWithSimpleSchemesAuthSecurity","MultipleOptionsWithSimpleSchemesAuthSecurityOption1","MultipleOptionsWithSimpleSchemesAuthSecurityOption2","MultipleSimpleOptionsAuthResponse","MultipleSimpleOptionsAuthSecurity","MultipleSimpleSchemeAuthResponse","MultipleSimpleSchemeAuthSecurity","NameOverrideGetEnumNameOverride","NameOverrideGetRequest","NameOverrideGetResponse","NestFirstGetResponse","NestedFirstGetResponse","NestedGetResponse","NestedSecondGetResponse","NullableObjectPostRes","NullableObjectPostResponse","NullableOneOfRefInObjectPostRes","NullableOneOfRefInObjectPostResponse","NullableOneOfSchemaPostRequestBody","NullableOneOfSchemaPostRes","NullableOneOfSchemaPostResJSON","NullableOneOfSchemaPostResponse","NullableOneOfTypeInObjectPostRes","NullableOneOfTypeInObjectPostResponse","NullableRequiredEmptyObjectPostRequestBody","NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj","NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj","NullableRequiredEmptyObjectPostRequestBodyRequiredObj","NullableRequiredEmptyObjectPostResponse","NullableRequiredPropertyPostRequestBody","NullableRequiredPropertyPostRequestBodyNullableRequiredEnum","NullableRequiredPropertyPostResponse","NullableRequiredSharedObjectPostRequestBody","NullableRequiredSharedObjectPostResponse","NullableTypedObjectPostRes","NullableTypedObjectPostResponse","Oauth2AuthNewResponse","Oauth2AuthNewSecurity","Oauth2AuthResponse","Oauth2AuthSecurity","Oauth2AuthToken","Oauth2OverrideRequest","Oauth2OverrideResponse","Oauth2OverrideSecurity","Oauth2OverrideToken","ObjectCircularReferenceGetResponse","OneOfCircularReferenceGetResponse","OpenIDConnectAuthNewResponse","OpenIDConnectAuthNewSecurity","OpenIDConnectAuthResponse","OpenIDConnectAuthSecurity","OpenIDConnectAuthToken","OverriddenResponse","PaginationCursorBodyRequestBody","PaginationCursorBodyRes","PaginationCursorBodyResponse","PaginationCursorParamsRequest","PaginationCursorParamsRes","PaginationCursorParamsResponse","PaginationLimitOffsetOffsetBodyRes","PaginationLimitOffsetOffsetBodyResponse","PaginationLimitOffsetOffsetParamsRequest","PaginationLimitOffsetOffsetParamsRes","PaginationLimitOffsetOffsetParamsResponse","PaginationLimitOffsetPageBodyRes","PaginationLimitOffsetPageBodyResponse","PaginationLimitOffsetPageParamsRequest","PaginationLimitOffsetPageParamsRes","PaginationLimitOffsetPageParamsResponse","PathParameterJSONRequest","PathParameterJSONRes","PathParameterJSONResponse","PipeDelimitedQueryParamsArrayRequest","PipeDelimitedQueryParamsArrayRes","PipeDelimitedQueryParamsArrayResArgs","PipeDelimitedQueryParamsArrayResponse","PrimitiveTypeOneOfPostRequestBody","PrimitiveTypeOneOfPostRes","PrimitiveTypeOneOfPostResJSON","PrimitiveTypeOneOfPostResponse","PutAnythingIgnoredGeneration200ApplicationJSON","PutAnythingIgnoredGenerationResponse","RequestBodyPostApplicationJSONArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjResponse","RequestBodyPostApplicationJSONArrayOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayOfArrayResponse","RequestBodyPostApplicationJSONArrayOfMapCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfMapResponse","RequestBodyPostApplicationJSONArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayResponse","RequestBodyPostApplicationJSONDeepCamelCaseRes","RequestBodyPostApplicationJSONDeepCamelCaseResponse","RequestBodyPostApplicationJSONDeepRes","RequestBodyPostApplicationJSONDeepResponse","RequestBodyPostApplicationJSONMapCamelCaseResponse","RequestBodyPostApplicationJSONMapObjCamelCaseResponse","RequestBodyPostApplicationJSONMapObjResponse","RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONMapOfArrayResponse","RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse","RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapOfMapResponse","RequestBodyPostApplicationJSONMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapResponse","RequestBodyPostApplicationJSONMultipleJSONFilteredRes","RequestBodyPostApplicationJSONMultipleJSONFilteredResponse","RequestBodyPostApplicationJSONSimpleCamelCaseRes","RequestBodyPostApplicationJSONSimpleCamelCaseResponse","RequestBodyPostApplicationJSONSimpleRes","RequestBodyPostApplicationJSONSimpleResponse","RequestBodyPostComplexNumberTypes200ApplicationJSON","RequestBodyPostComplexNumberTypesRequest","RequestBodyPostComplexNumberTypesResponse","RequestBodyPostDefaultsAndConsts200ApplicationJSON","RequestBodyPostDefaultsAndConstsResponse","RequestBodyPostEmptyObject200ApplicationJSON","RequestBodyPostEmptyObject200ApplicationJSONEmpty","RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies","RequestBodyPostEmptyObjectRequestBody","RequestBodyPostEmptyObjectRequestBodyEmpty","RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties","RequestBodyPostEmptyObjectResponse","RequestBodyPostFormDeepRes","RequestBodyPostFormDeepResForm","RequestBodyPostFormDeepResponse","RequestBodyPostFormMapPrimitiveRes","RequestBodyPostFormMapPrimitiveResponse","RequestBodyPostFormSimpleRes","RequestBodyPostFormSimpleResForm","RequestBodyPostFormSimpleResponse","RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesArrayBigIntResponse","RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDateResponse","RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDecimalStrResponse","RequestBodyPostJSONDataTypesBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntResponse","RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntStrResponse","RequestBodyPostJSONDataTypesBoolean200ApplicationJSON","RequestBodyPostJSONDataTypesBooleanResponse","RequestBodyPostJSONDataTypesDate200ApplicationJSON","RequestBodyPostJSONDataTypesDateResponse","RequestBodyPostJSONDataTypesDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesDateTimeResponse","RequestBodyPostJSONDataTypesDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalResponse","RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalStrResponse","RequestBodyPostJSONDataTypesFloat32200ApplicationJSON","RequestBodyPostJSONDataTypesFloat32Response","RequestBodyPostJSONDataTypesInt32200ApplicationJSON","RequestBodyPostJSONDataTypesInt32Response","RequestBodyPostJSONDataTypesInteger200ApplicationJSON","RequestBodyPostJSONDataTypesIntegerResponse","RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesMapBigIntStrResponse","RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesMapDateTimeResponse","RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesMapDecimalResponse","RequestBodyPostJSONDataTypesNumber200ApplicationJSON","RequestBodyPostJSONDataTypesNumberResponse","RequestBodyPostJSONDataTypesString200ApplicationJSON","RequestBodyPostJSONDataTypesStringResponse","RequestBodyPostMultipleContentTypesComponentFilteredRes","RequestBodyPostMultipleContentTypesComponentFilteredResponse","RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON","RequestBodyPostMultipleContentTypesInlineFilteredRes","RequestBodyPostMultipleContentTypesInlineFilteredResponse","RequestBodyPostMultipleContentTypesSplitApplicationJSON","RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitFormRes","RequestBodyPostMultipleContentTypesSplitFormResponse","RequestBodyPostMultipleContentTypesSplitJSONRes","RequestBodyPostMultipleContentTypesSplitJSONResponse","RequestBodyPostMultipleContentTypesSplitMultipartFormData","RequestBodyPostMultipleContentTypesSplitMultipartRes","RequestBodyPostMultipleContentTypesSplitMultipartResponse","RequestBodyPostMultipleContentTypesSplitParamApplicationJSON","RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitParamFormRequest","RequestBodyPostMultipleContentTypesSplitParamFormRes","RequestBodyPostMultipleContentTypesSplitParamFormResponse","RequestBodyPostMultipleContentTypesSplitParamJSONRequest","RequestBodyPostMultipleContentTypesSplitParamJSONRes","RequestBodyPostMultipleContentTypesSplitParamJSONResponse","RequestBodyPostMultipleContentTypesSplitParamMultipartFormData","RequestBodyPostMultipleContentTypesSplitParamMultipartRequest","RequestBodyPostMultipleContentTypesSplitParamMultipartRes","RequestBodyPostMultipleContentTypesSplitParamMultipartResponse","RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNotNullableNotRequiredStringBodyResponse","RequestBodyPostNullArray200ApplicationJSON","RequestBodyPostNullArrayResponse","RequestBodyPostNullDictionary200ApplicationJSON","RequestBodyPostNullDictionaryResponse","RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNullableNotRequiredStringBodyResponse","RequestBodyPostNullableRequiredStringBody200ApplicationJSON","RequestBodyPostNullableRequiredStringBodyResponse","RequestBodyPutBytesRes","RequestBodyPutBytesResponse","RequestBodyPutBytesWithParamsRequest","RequestBodyPutBytesWithParamsRes","RequestBodyPutBytesWithParamsResArgs","RequestBodyPutBytesWithParamsResponse","RequestBodyPutMultipartDeepRes","RequestBodyPutMultipartDeepResForm","RequestBodyPutMultipartDeepResponse","RequestBodyPutMultipartDifferentFileNameRequestBody","RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName","RequestBodyPutMultipartDifferentFileNameRes","RequestBodyPutMultipartDifferentFileNameResponse","RequestBodyPutMultipartFileRequestBody","RequestBodyPutMultipartFileRequestBodyFile","RequestBodyPutMultipartFileRes","RequestBodyPutMultipartFileResponse","RequestBodyPutMultipartSimpleRes","RequestBodyPutMultipartSimpleResForm","RequestBodyPutMultipartSimpleResponse","RequestBodyPutStringRes","RequestBodyPutStringResponse","RequestBodyPutStringWithParamsRequest","RequestBodyPutStringWithParamsRes","RequestBodyPutStringWithParamsResArgs","RequestBodyPutStringWithParamsResponse","RequestBodyReadAndWriteResponse","RequestBodyReadOnlyInputResponse","RequestBodyReadOnlyUnionResponse","RequestBodyReadWriteOnlyUnionResponse","RequestBodyWriteOnlyOutputResponse","RequestBodyWriteOnlyResponse","RequestBodyWriteOnlyUnionResponse","ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON","ResponseBodyAdditionalPropertiesComplexNumbersPostResponse","ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON","ResponseBodyAdditionalPropertiesDatePostResponse","ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON","ResponseBodyAdditionalPropertiesObjectPostResponse","ResponseBodyAdditionalPropertiesPost200ApplicationJSON","ResponseBodyAdditionalPropertiesPostResponse","ResponseBodyBytesGetResponse","ResponseBodyEmptyWithHeadersRequest","ResponseBodyEmptyWithHeadersResponse","ResponseBodyJSONGetResponse","ResponseBodyOptionalGetResponse","ResponseBodyReadOnlyResponse","ResponseBodyStringGetResponse","ResponseBodyXMLGetResponse","ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON","ResponseBodyZeroValueComplexTypePtrsPostResponse","RetriesGetRequest","RetriesGetResponse","RetriesGetRetries","SelectGlobalServerResponse","SelectServerWithIDResponse","ServerWithProtocolTemplateResponse","ServerWithTemplatesGlobalResponse","ServerWithTemplatesResponse","ServersByIDWithTemplatesResponse","SimplePathParameterArraysRequest","SimplePathParameterArraysRes","SimplePathParameterArraysResponse","SimplePathParameterMapsRequest","SimplePathParameterMapsRes","SimplePathParameterMapsResponse","SimplePathParameterObjectsRequest","SimplePathParameterObjectsRes","SimplePathParameterObjectsResponse","SimplePathParameterPrimitivesRequest","SimplePathParameterPrimitivesRes","SimplePathParameterPrimitivesResponse","StatusGetErrorRequest","StatusGetErrorResponse","StatusGetXSpeakeasyErrorsRequest","StatusGetXSpeakeasyErrorsResponse","StronglyTypedOneOfPostRes","StronglyTypedOneOfPostResponse","TelemetrySpeakeasyUserAgentGetRequest","TelemetrySpeakeasyUserAgentGetRes","TelemetrySpeakeasyUserAgentGetResponse","TelemetryUserAgentGetRes","TelemetryUserAgentGetResponse","TypeFromAnchor","TypedObjectNullableOneOfPostRes","TypedObjectNullableOneOfPostResponse","TypedObjectOneOfPostRes","TypedObjectOneOfPostResponse","TypedParameterGenerationGetObj","TypedParameterGenerationGetRequest","TypedParameterGenerationGetResponse","UnionDateNullRes","UnionDateNullResponse","UnionDateTimeNullRes","UnionDateTimeNullResponse","UpdateResourceRequest","UpdateResourceResponse","UsageExamplePost200ApplicationJSON","UsageExamplePost200ApplicationJSONJSON","UsageExamplePostEnumParameter","UsageExamplePostOptEnumParameter","UsageExamplePostRequest","UsageExamplePostRequestBody","UsageExamplePostResponse","UsageExamplePostSecurity","WeaklyTypedOneOfPostRes","WeaklyTypedOneOfPostResponse","API_KEY_AUTH_GLOBAL_NEW_SERVERS","AUTH_GLOBAL_SERVERS","BASIC_AUTH_NEW_SERVERS","CONNECTION_ERROR_GET_SERVERS","MULTIPLE_MIXED_OPTIONS_AUTH_SERVERS","MULTIPLE_MIXED_SCHEME_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_MIXED_SCHEMES_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_SIMPLE_SCHEMES_AUTH_SERVERS","MULTIPLE_SIMPLE_OPTIONS_AUTH_SERVERS","MULTIPLE_SIMPLE_SCHEME_AUTH_SERVERS","OAUTH2_AUTH_NEW_SERVERS","OPEN_ID_CONNECT_AUTH_NEW_SERVERS","PAGINATION_CURSOR_BODY_SERVERS","PAGINATION_CURSOR_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_PARAMS_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_SERVERS","REQUEST_BODY_READ_AND_WRITE_SERVERS","REQUEST_BODY_READ_ONLY_INPUT_SERVERS","REQUEST_BODY_READ_ONLY_UNION_SERVERS","REQUEST_BODY_READ_WRITE_ONLY_UNION_SERVERS","REQUEST_BODY_WRITE_ONLY_OUTPUT_SERVERS","REQUEST_BODY_WRITE_ONLY_SERVERS","REQUEST_BODY_WRITE_ONLY_UNION_SERVERS","RESPONSE_BODY_OPTIONAL_GET_SERVERS","RESPONSE_BODY_READ_ONLY_SERVERS","RETRIES_GET_SERVERS","SELECT_SERVER_WITH_ID_SERVERS","SELECT_SERVER_WITH_ID_SERVER_BROKEN","SELECT_SERVER_WITH_ID_SERVER_VALID","SERVERS_BY_ID_WITH_TEMPLATES_SERVERS","SERVERS_BY_ID_WITH_TEMPLATES_SERVER_MAIN","SERVER_WITH_PROTOCOL_TEMPLATE_SERVERS","SERVER_WITH_PROTOCOL_TEMPLATE_SERVER_MAIN","SERVER_WITH_TEMPLATES_SERVERS","STATUS_GET_X_SPEAKEASY_ERRORS_SERVERS"] +__all__ = ["APIKeyAuthGlobalNewResponse","APIKeyAuthGlobalResponse","APIKeyAuthGlobalToken","APIKeyAuthResponse","APIKeyAuthSecurity","APIKeyAuthToken","AnchorTypesGetResponse","ArrayCircularReferenceGetResponse","AuthGlobalResponse","BasicAuthNewResponse","BasicAuthNewSecurity","BasicAuthRequest","BasicAuthResponse","BasicAuthSecurity","BasicAuthUser","BearerAuthResponse","BearerAuthSecurity","BearerAuthToken","CircularReferenceGetResponse","ComponentBodyAndParamConflictRequest","ComponentBodyAndParamConflictRes","ComponentBodyAndParamConflictResponse","ComponentBodyAndParamNoConflictRequest","ComponentBodyAndParamNoConflictRes","ComponentBodyAndParamNoConflictResponse","ConflictingParamsRequest","ConflictingParamsRes","ConflictingParamsResponse","ConnectionErrorGetResponse","CreateFileRequestBody","CreateFileRequestBodyFile","CreateFileResponse","CreateResourceResponse","DateParamWithDefaultRequest","DateParamWithDefaultResponse","DateTimeParamWithDefaultRequest","DateTimeParamWithDefaultResponse","DecimalParamWithDefaultRequest","DecimalParamWithDefaultResponse","DeepObjectQueryParamsMapRequest","DeepObjectQueryParamsMapRes","DeepObjectQueryParamsMapResArgs","DeepObjectQueryParamsMapResponse","DeepObjectQueryParamsObjectObjArrParam","DeepObjectQueryParamsObjectRequest","DeepObjectQueryParamsObjectRes","DeepObjectQueryParamsObjectResArgs","DeepObjectQueryParamsObjectResponse","DeleteResourceRequest","DeleteResourceResponse","DeprecatedFieldInSchemaPostResponse","DeprecatedObjectInSchemaGet200ApplicationJSON","DeprecatedObjectInSchemaGetResponse","DeprecatedOperationNoCommentsGetRequest","DeprecatedOperationNoCommentsGetResponse","DeprecatedOperationWithCommentsGetRequest","DeprecatedOperationWithCommentsGetResponse","DuplicateParamDuplicateParamResponse","DuplicateParamRequest","DuplicateParamResponse","EmptyObjectGetRequest","EmptyObjectGetResponse","EmptyResponseObjectWithCommentGet200ApplicationOctetStream","EmptyResponseObjectWithCommentGetResponse","FlattenedTypedObjectPostRes","FlattenedTypedObjectPostResponse","FormQueryParamsArrayRequest","FormQueryParamsArrayRes","FormQueryParamsArrayResArgs","FormQueryParamsArrayResponse","FormQueryParamsCamelObjectObjParam","FormQueryParamsCamelObjectObjParamExploded","FormQueryParamsCamelObjectRequest","FormQueryParamsCamelObjectRes","FormQueryParamsCamelObjectResArgs","FormQueryParamsCamelObjectResponse","FormQueryParamsMapRequest","FormQueryParamsMapRes","FormQueryParamsMapResponse","FormQueryParamsObjectRequest","FormQueryParamsObjectRes","FormQueryParamsObjectResArgs","FormQueryParamsObjectResponse","FormQueryParamsPrimitiveRequest","FormQueryParamsPrimitiveRes","FormQueryParamsPrimitiveResArgs","FormQueryParamsPrimitiveResponse","FormQueryParamsRefParamObjectRequest","FormQueryParamsRefParamObjectRes","FormQueryParamsRefParamObjectResArgs","FormQueryParamsRefParamObjectResponse","GetDocumentationPerLanguageRequest","GetDocumentationPerLanguageResponse","GetGlobalNameOverride200ApplicationJSON","GetGlobalNameOverrideResponse","GetResourceRequest","GetResourceResponse","GlobalBearerAuthResponse","GlobalBearerAuthToken","GlobalPathParameterGetRequest","GlobalPathParameterGetRes","GlobalPathParameterGetResponse","GlobalsQueryParameterGetRequest","GlobalsQueryParameterGetRes","GlobalsQueryParameterGetResArgs","GlobalsQueryParameterGetResponse","GroupFirstGetResponse","GroupSecondGetResponse","HeaderParamsArrayRequest","HeaderParamsArrayRes","HeaderParamsArrayResHeaders","HeaderParamsArrayResponse","HeaderParamsMapRequest","HeaderParamsMapRes","HeaderParamsMapResHeaders","HeaderParamsMapResponse","HeaderParamsObjectRequest","HeaderParamsObjectRes","HeaderParamsObjectResHeaders","HeaderParamsObjectResponse","HeaderParamsPrimitiveRequest","HeaderParamsPrimitiveRes","HeaderParamsPrimitiveResHeaders","HeaderParamsPrimitiveResponse","IgnoredGenerationGet200ApplicationJSON","IgnoredGenerationGetResponse","IgnoresPostApplicationJSON","IgnoresPostRequest","IgnoresPostResponse","InlineBodyAndParamConflictRequest","InlineBodyAndParamConflictRequestBody","InlineBodyAndParamConflictRes","InlineBodyAndParamConflictResJSON","InlineBodyAndParamConflictResponse","InlineBodyAndParamNoConflictRequest","InlineBodyAndParamNoConflictRequestBody","InlineBodyAndParamNoConflictRes","InlineBodyAndParamNoConflictResJSON","InlineBodyAndParamNoConflictResponse","JSONQueryParamsObjectRequest","JSONQueryParamsObjectRes","JSONQueryParamsObjectResArgs","JSONQueryParamsObjectResponse","MixedParametersCamelCaseRequest","MixedParametersCamelCaseRes","MixedParametersCamelCaseResArgs","MixedParametersCamelCaseResHeaders","MixedParametersCamelCaseResponse","MixedParametersPrimitivesRequest","MixedParametersPrimitivesRes","MixedParametersPrimitivesResArgs","MixedParametersPrimitivesResHeaders","MixedParametersPrimitivesResponse","MixedQueryParamsRequest","MixedQueryParamsRes","MixedQueryParamsResponse","MixedTypeOneOfPostRequestBody","MixedTypeOneOfPostRes","MixedTypeOneOfPostResJSON","MixedTypeOneOfPostResponse","MultipleMixedOptionsAuthResponse","MultipleMixedOptionsAuthSecurity","MultipleMixedSchemeAuthResponse","MultipleMixedSchemeAuthSecurity","MultipleOptionsWithMixedSchemesAuthResponse","MultipleOptionsWithMixedSchemesAuthSecurity","MultipleOptionsWithMixedSchemesAuthSecurityOption1","MultipleOptionsWithMixedSchemesAuthSecurityOption2","MultipleOptionsWithSimpleSchemesAuthResponse","MultipleOptionsWithSimpleSchemesAuthSecurity","MultipleOptionsWithSimpleSchemesAuthSecurityOption1","MultipleOptionsWithSimpleSchemesAuthSecurityOption2","MultipleSimpleOptionsAuthResponse","MultipleSimpleOptionsAuthSecurity","MultipleSimpleSchemeAuthResponse","MultipleSimpleSchemeAuthSecurity","NameOverrideGetEnumNameOverride","NameOverrideGetRequest","NameOverrideGetResponse","NestFirstGetResponse","NestedFirstGetResponse","NestedGetResponse","NestedSecondGetResponse","NullableObjectPostRes","NullableObjectPostResponse","NullableOneOfRefInObjectPostRes","NullableOneOfRefInObjectPostResponse","NullableOneOfSchemaPostRequestBody","NullableOneOfSchemaPostRes","NullableOneOfSchemaPostResJSON","NullableOneOfSchemaPostResponse","NullableOneOfTypeInObjectPostRes","NullableOneOfTypeInObjectPostResponse","NullableRequiredEmptyObjectPostRequestBody","NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj","NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj","NullableRequiredEmptyObjectPostRequestBodyRequiredObj","NullableRequiredEmptyObjectPostResponse","NullableRequiredPropertyPostRequestBody","NullableRequiredPropertyPostRequestBodyNullableRequiredEnum","NullableRequiredPropertyPostResponse","NullableRequiredSharedObjectPostRequestBody","NullableRequiredSharedObjectPostResponse","NullableTypedObjectPostRes","NullableTypedObjectPostResponse","Oauth2AuthNewResponse","Oauth2AuthNewSecurity","Oauth2AuthResponse","Oauth2AuthSecurity","Oauth2AuthToken","Oauth2OverrideRequest","Oauth2OverrideResponse","Oauth2OverrideSecurity","Oauth2OverrideToken","ObjectCircularReferenceGetResponse","OneOfCircularReferenceGetResponse","OpenIDConnectAuthNewResponse","OpenIDConnectAuthNewSecurity","OpenIDConnectAuthResponse","OpenIDConnectAuthSecurity","OpenIDConnectAuthToken","OverriddenResponse","PaginationCursorBodyRequestBody","PaginationCursorBodyRes","PaginationCursorBodyResponse","PaginationCursorParamsRequest","PaginationCursorParamsRes","PaginationCursorParamsResponse","PaginationLimitOffsetOffsetBodyRes","PaginationLimitOffsetOffsetBodyResponse","PaginationLimitOffsetOffsetParamsRequest","PaginationLimitOffsetOffsetParamsRes","PaginationLimitOffsetOffsetParamsResponse","PaginationLimitOffsetPageBodyRes","PaginationLimitOffsetPageBodyResponse","PaginationLimitOffsetPageParamsRequest","PaginationLimitOffsetPageParamsRes","PaginationLimitOffsetPageParamsResponse","PathParameterJSONRequest","PathParameterJSONRes","PathParameterJSONResponse","PipeDelimitedQueryParamsArrayRequest","PipeDelimitedQueryParamsArrayRes","PipeDelimitedQueryParamsArrayResArgs","PipeDelimitedQueryParamsArrayResponse","PrimitiveTypeOneOfPostRequestBody","PrimitiveTypeOneOfPostRes","PrimitiveTypeOneOfPostResJSON","PrimitiveTypeOneOfPostResponse","PutAnythingIgnoredGeneration200ApplicationJSON","PutAnythingIgnoredGenerationResponse","RequestBodyPostApplicationJSONArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjResponse","RequestBodyPostApplicationJSONArrayOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayOfArrayResponse","RequestBodyPostApplicationJSONArrayOfMapCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfMapResponse","RequestBodyPostApplicationJSONArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayResponse","RequestBodyPostApplicationJSONDeepCamelCaseRes","RequestBodyPostApplicationJSONDeepCamelCaseResponse","RequestBodyPostApplicationJSONDeepRes","RequestBodyPostApplicationJSONDeepResponse","RequestBodyPostApplicationJSONMapCamelCaseResponse","RequestBodyPostApplicationJSONMapObjCamelCaseResponse","RequestBodyPostApplicationJSONMapObjResponse","RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONMapOfArrayResponse","RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse","RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapOfMapResponse","RequestBodyPostApplicationJSONMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapResponse","RequestBodyPostApplicationJSONMultipleJSONFilteredRes","RequestBodyPostApplicationJSONMultipleJSONFilteredResponse","RequestBodyPostApplicationJSONSimpleCamelCaseRes","RequestBodyPostApplicationJSONSimpleCamelCaseResponse","RequestBodyPostApplicationJSONSimpleRes","RequestBodyPostApplicationJSONSimpleResponse","RequestBodyPostComplexNumberTypes200ApplicationJSON","RequestBodyPostComplexNumberTypesRequest","RequestBodyPostComplexNumberTypesResponse","RequestBodyPostDefaultsAndConsts200ApplicationJSON","RequestBodyPostDefaultsAndConstsResponse","RequestBodyPostEmptyObject200ApplicationJSON","RequestBodyPostEmptyObject200ApplicationJSONEmpty","RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies","RequestBodyPostEmptyObjectRequestBody","RequestBodyPostEmptyObjectRequestBodyEmpty","RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties","RequestBodyPostEmptyObjectResponse","RequestBodyPostFormDeepRes","RequestBodyPostFormDeepResForm","RequestBodyPostFormDeepResponse","RequestBodyPostFormMapPrimitiveRes","RequestBodyPostFormMapPrimitiveResponse","RequestBodyPostFormSimpleRes","RequestBodyPostFormSimpleResForm","RequestBodyPostFormSimpleResHeaders","RequestBodyPostFormSimpleResponse","RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesArrayBigIntResponse","RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDateResponse","RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDecimalStrResponse","RequestBodyPostJSONDataTypesBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntResponse","RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntStrResponse","RequestBodyPostJSONDataTypesBoolean200ApplicationJSON","RequestBodyPostJSONDataTypesBooleanResponse","RequestBodyPostJSONDataTypesDate200ApplicationJSON","RequestBodyPostJSONDataTypesDateResponse","RequestBodyPostJSONDataTypesDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesDateTimeResponse","RequestBodyPostJSONDataTypesDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalResponse","RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalStrResponse","RequestBodyPostJSONDataTypesFloat32200ApplicationJSON","RequestBodyPostJSONDataTypesFloat32Response","RequestBodyPostJSONDataTypesInt32200ApplicationJSON","RequestBodyPostJSONDataTypesInt32Response","RequestBodyPostJSONDataTypesInteger200ApplicationJSON","RequestBodyPostJSONDataTypesIntegerResponse","RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesMapBigIntStrResponse","RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesMapDateTimeResponse","RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesMapDecimalResponse","RequestBodyPostJSONDataTypesNumber200ApplicationJSON","RequestBodyPostJSONDataTypesNumberResponse","RequestBodyPostJSONDataTypesString200ApplicationJSON","RequestBodyPostJSONDataTypesStringResponse","RequestBodyPostMultipleContentTypesComponentFilteredRes","RequestBodyPostMultipleContentTypesComponentFilteredResponse","RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON","RequestBodyPostMultipleContentTypesInlineFilteredRes","RequestBodyPostMultipleContentTypesInlineFilteredResponse","RequestBodyPostMultipleContentTypesSplitApplicationJSON","RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitFormRes","RequestBodyPostMultipleContentTypesSplitFormResponse","RequestBodyPostMultipleContentTypesSplitJSONRes","RequestBodyPostMultipleContentTypesSplitJSONResponse","RequestBodyPostMultipleContentTypesSplitMultipartFormData","RequestBodyPostMultipleContentTypesSplitMultipartRes","RequestBodyPostMultipleContentTypesSplitMultipartResponse","RequestBodyPostMultipleContentTypesSplitParamApplicationJSON","RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitParamFormRequest","RequestBodyPostMultipleContentTypesSplitParamFormRes","RequestBodyPostMultipleContentTypesSplitParamFormResponse","RequestBodyPostMultipleContentTypesSplitParamJSONRequest","RequestBodyPostMultipleContentTypesSplitParamJSONRes","RequestBodyPostMultipleContentTypesSplitParamJSONResponse","RequestBodyPostMultipleContentTypesSplitParamMultipartFormData","RequestBodyPostMultipleContentTypesSplitParamMultipartRequest","RequestBodyPostMultipleContentTypesSplitParamMultipartRes","RequestBodyPostMultipleContentTypesSplitParamMultipartResponse","RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNotNullableNotRequiredStringBodyResponse","RequestBodyPostNullArray200ApplicationJSON","RequestBodyPostNullArrayResponse","RequestBodyPostNullDictionary200ApplicationJSON","RequestBodyPostNullDictionaryResponse","RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNullableNotRequiredStringBodyResponse","RequestBodyPostNullableRequiredStringBody200ApplicationJSON","RequestBodyPostNullableRequiredStringBodyResponse","RequestBodyPutBytesRes","RequestBodyPutBytesResponse","RequestBodyPutBytesWithParamsRequest","RequestBodyPutBytesWithParamsRes","RequestBodyPutBytesWithParamsResArgs","RequestBodyPutBytesWithParamsResponse","RequestBodyPutMultipartDeepRes","RequestBodyPutMultipartDeepResForm","RequestBodyPutMultipartDeepResponse","RequestBodyPutMultipartDifferentFileNameRequestBody","RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName","RequestBodyPutMultipartDifferentFileNameRes","RequestBodyPutMultipartDifferentFileNameResponse","RequestBodyPutMultipartFileRequestBody","RequestBodyPutMultipartFileRequestBodyFile","RequestBodyPutMultipartFileRes","RequestBodyPutMultipartFileResponse","RequestBodyPutMultipartSimpleRes","RequestBodyPutMultipartSimpleResForm","RequestBodyPutMultipartSimpleResHeaders","RequestBodyPutMultipartSimpleResponse","RequestBodyPutStringRes","RequestBodyPutStringResponse","RequestBodyPutStringWithParamsRequest","RequestBodyPutStringWithParamsRes","RequestBodyPutStringWithParamsResArgs","RequestBodyPutStringWithParamsResponse","RequestBodyReadAndWriteResponse","RequestBodyReadOnlyInputResponse","RequestBodyReadOnlyUnionResponse","RequestBodyReadWriteOnlyUnionResponse","RequestBodyWriteOnlyOutputResponse","RequestBodyWriteOnlyResponse","RequestBodyWriteOnlyUnionResponse","ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON","ResponseBodyAdditionalPropertiesComplexNumbersPostResponse","ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON","ResponseBodyAdditionalPropertiesDatePostResponse","ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON","ResponseBodyAdditionalPropertiesObjectPostResponse","ResponseBodyAdditionalPropertiesPost200ApplicationJSON","ResponseBodyAdditionalPropertiesPostResponse","ResponseBodyBytesGetResponse","ResponseBodyEmptyWithHeadersRequest","ResponseBodyEmptyWithHeadersResponse","ResponseBodyJSONGetResponse","ResponseBodyOptionalGetResponse","ResponseBodyReadOnlyResponse","ResponseBodyStringGetResponse","ResponseBodyXMLGetResponse","ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON","ResponseBodyZeroValueComplexTypePtrsPostResponse","RetriesGetRequest","RetriesGetResponse","RetriesGetRetries","SelectGlobalServerResponse","SelectServerWithIDResponse","ServerWithProtocolTemplateResponse","ServerWithTemplatesGlobalResponse","ServerWithTemplatesResponse","ServersByIDWithTemplatesResponse","SimplePathParameterArraysRequest","SimplePathParameterArraysRes","SimplePathParameterArraysResponse","SimplePathParameterMapsRequest","SimplePathParameterMapsRes","SimplePathParameterMapsResponse","SimplePathParameterObjectsRequest","SimplePathParameterObjectsRes","SimplePathParameterObjectsResponse","SimplePathParameterPrimitivesRequest","SimplePathParameterPrimitivesRes","SimplePathParameterPrimitivesResponse","StatusGetErrorRequest","StatusGetErrorResponse","StatusGetXSpeakeasyErrorsRequest","StatusGetXSpeakeasyErrorsResponse","StronglyTypedOneOfPostRes","StronglyTypedOneOfPostResponse","TelemetrySpeakeasyUserAgentGetRequest","TelemetrySpeakeasyUserAgentGetRes","TelemetrySpeakeasyUserAgentGetResponse","TelemetryUserAgentGetRes","TelemetryUserAgentGetResponse","TypeFromAnchor","TypedObjectNullableOneOfPostRes","TypedObjectNullableOneOfPostResponse","TypedObjectOneOfPostRes","TypedObjectOneOfPostResponse","TypedParameterGenerationGetObj","TypedParameterGenerationGetRequest","TypedParameterGenerationGetResponse","UnionBigIntDecimalRequestBody","UnionBigIntDecimalRes","UnionBigIntDecimalResJSON","UnionBigIntDecimalResponse","UnionDateNullRes","UnionDateNullResponse","UnionDateTimeBigIntRequestBody","UnionDateTimeBigIntRes","UnionDateTimeBigIntResJSON","UnionDateTimeBigIntResponse","UnionDateTimeNullRes","UnionDateTimeNullResponse","UpdateResourceRequest","UpdateResourceResponse","UsageExamplePost200ApplicationJSON","UsageExamplePost200ApplicationJSONJSON","UsageExamplePostEnumParameter","UsageExamplePostOptEnumParameter","UsageExamplePostRequest","UsageExamplePostRequestBody","UsageExamplePostResponse","UsageExamplePostSecurity","WeaklyTypedOneOfPostRes","WeaklyTypedOneOfPostResponse","API_KEY_AUTH_GLOBAL_NEW_SERVERS","AUTH_GLOBAL_SERVERS","BASIC_AUTH_NEW_SERVERS","CONNECTION_ERROR_GET_SERVERS","MULTIPLE_MIXED_OPTIONS_AUTH_SERVERS","MULTIPLE_MIXED_SCHEME_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_MIXED_SCHEMES_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_SIMPLE_SCHEMES_AUTH_SERVERS","MULTIPLE_SIMPLE_OPTIONS_AUTH_SERVERS","MULTIPLE_SIMPLE_SCHEME_AUTH_SERVERS","OAUTH2_AUTH_NEW_SERVERS","OPEN_ID_CONNECT_AUTH_NEW_SERVERS","PAGINATION_CURSOR_BODY_SERVERS","PAGINATION_CURSOR_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_PARAMS_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_SERVERS","REQUEST_BODY_READ_AND_WRITE_SERVERS","REQUEST_BODY_READ_ONLY_INPUT_SERVERS","REQUEST_BODY_READ_ONLY_UNION_SERVERS","REQUEST_BODY_READ_WRITE_ONLY_UNION_SERVERS","REQUEST_BODY_WRITE_ONLY_OUTPUT_SERVERS","REQUEST_BODY_WRITE_ONLY_SERVERS","REQUEST_BODY_WRITE_ONLY_UNION_SERVERS","RESPONSE_BODY_OPTIONAL_GET_SERVERS","RESPONSE_BODY_READ_ONLY_SERVERS","RETRIES_GET_SERVERS","SELECT_SERVER_WITH_ID_SERVERS","SELECT_SERVER_WITH_ID_SERVER_BROKEN","SELECT_SERVER_WITH_ID_SERVER_VALID","SERVERS_BY_ID_WITH_TEMPLATES_SERVERS","SERVERS_BY_ID_WITH_TEMPLATES_SERVER_MAIN","SERVER_WITH_PROTOCOL_TEMPLATE_SERVERS","SERVER_WITH_PROTOCOL_TEMPLATE_SERVER_MAIN","SERVER_WITH_TEMPLATES_SERVERS","STATUS_GET_X_SPEAKEASY_ERRORS_SERVERS"] diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py b/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py index df27727af..e87a2f177 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py @@ -29,11 +29,20 @@ class RequestBodyPostFormSimpleResForm: +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class RequestBodyPostFormSimpleResHeaders: + content_type: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Content-Type') }}) + + + + @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class RequestBodyPostFormSimpleRes: r"""OK""" form: RequestBodyPostFormSimpleResForm = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form') }}) + headers: RequestBodyPostFormSimpleResHeaders = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headers') }}) diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py index fb8a34d82..bd6dea03f 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py @@ -29,11 +29,20 @@ class RequestBodyPutMultipartSimpleResForm: +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class RequestBodyPutMultipartSimpleResHeaders: + content_type: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Content-Type') }}) + + + + @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class RequestBodyPutMultipartSimpleRes: r"""OK""" form: RequestBodyPutMultipartSimpleResForm = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form') }}) + headers: RequestBodyPutMultipartSimpleResHeaders = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headers') }}) diff --git a/python-client-sdk/src/sdk/models/operations/unionbigintdecimal.py b/python-client-sdk/src/sdk/models/operations/unionbigintdecimal.py new file mode 100755 index 000000000..637215581 --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/unionbigintdecimal.py @@ -0,0 +1,42 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from dataclasses_json import Undefined, dataclass_json +from decimal import Decimal +from sdk import utils +from typing import Optional, Union + + +@dataclasses.dataclass +class UnionBigIntDecimalRequestBody: + pass + + +@dataclasses.dataclass +class UnionBigIntDecimalResJSON: + pass + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class UnionBigIntDecimalRes: + r"""OK""" + json: Union[int, Decimal] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.union_encoder({int: utils.bigintencoder(True), Decimal: utils.decimalencoder(True, False)}), 'decoder': utils.union_decoder([utils.bigintdecoder,utils.decimaldecoder]) }}) + + + + +@dataclasses.dataclass +class UnionBigIntDecimalResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + res: Optional[UnionBigIntDecimalRes] = dataclasses.field(default=None) + r"""OK""" + + diff --git a/python-client-sdk/src/sdk/models/operations/uniondatetimebigint.py b/python-client-sdk/src/sdk/models/operations/uniondatetimebigint.py new file mode 100755 index 000000000..33c5bb0fc --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/uniondatetimebigint.py @@ -0,0 +1,43 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import dateutil.parser +import requests as requests_http +from dataclasses_json import Undefined, dataclass_json +from datetime import datetime +from sdk import utils +from typing import Optional, Union + + +@dataclasses.dataclass +class UnionDateTimeBigIntRequestBody: + pass + + +@dataclasses.dataclass +class UnionDateTimeBigIntResJSON: + pass + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class UnionDateTimeBigIntRes: + r"""OK""" + json: Union[datetime, int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.union_encoder({datetime: utils.datetimeisoformat(True)}), 'decoder': utils.union_decoder([dateutil.parser.isoparse]) }}) + + + + +@dataclasses.dataclass +class UnionDateTimeBigIntResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + res: Optional[UnionDateTimeBigIntRes] = dataclasses.field(default=None) + r"""OK""" + + diff --git a/python-client-sdk/src/sdk/sdkconfiguration.py b/python-client-sdk/src/sdk/sdkconfiguration.py index 9345461a8..3751569ff 100755 --- a/python-client-sdk/src/sdk/sdkconfiguration.py +++ b/python-client-sdk/src/sdk/sdkconfiguration.py @@ -39,9 +39,9 @@ class SDKConfiguration: globals: Dict[str, Dict[str, Dict[str, Any]]] = field(default_factory=Dict) language: str = 'python' openapi_doc_version: str = '0.1.0' - sdk_version: str = '2.0.3' + sdk_version: str = '2.0.4' gen_version: str = '2.173.0' - user_agent: str = 'speakeasy-sdk/python 2.0.3 2.173.0 0.1.0 openapi' + user_agent: str = 'speakeasy-sdk/python 2.0.4 2.173.0 0.1.0 openapi' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: diff --git a/python-client-sdk/src/sdk/unions.py b/python-client-sdk/src/sdk/unions.py index a5bd11907..fb61d6d9a 100755 --- a/python-client-sdk/src/sdk/unions.py +++ b/python-client-sdk/src/sdk/unions.py @@ -2,6 +2,7 @@ from .sdkconfiguration import SDKConfiguration from datetime import date, datetime +from decimal import Decimal from sdk import utils from sdk.models import errors, operations, shared from typing import Optional, Union @@ -334,6 +335,38 @@ def typed_object_one_of_post(self, request: Union[shared.TypedObject1, shared.Ty return res + def union_big_int_decimal(self, request: Union[int, Decimal]) -> operations.UnionBigIntDecimalResponse: + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/unionBigIntDecimal' + headers = {} + req_content_type, data, form = utils.serialize_request_body(request, "request", False, False, 'json', utils.union_encoder({int: utils.bigintencoder(True), Decimal: utils.decimalencoder(True, False)})) + if req_content_type not in ('multipart/form-data', 'multipart/mixed'): + headers['content-type'] = req_content_type + if data is None and form is None: + raise Exception('request body is required') + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('POST', url, data=data, files=form, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.UnionBigIntDecimalResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[operations.UnionBigIntDecimalRes]) + res.res = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + def union_date_null(self, request: date) -> operations.UnionDateNullResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -366,6 +399,38 @@ def union_date_null(self, request: date) -> operations.UnionDateNullResponse: return res + def union_date_time_big_int(self, request: Union[datetime, int]) -> operations.UnionDateTimeBigIntResponse: + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/unionDateTimeBigInt' + headers = {} + req_content_type, data, form = utils.serialize_request_body(request, "request", False, False, 'json', utils.union_encoder({datetime: utils.datetimeisoformat(True)})) + if req_content_type not in ('multipart/form-data', 'multipart/mixed'): + headers['content-type'] = req_content_type + if data is None and form is None: + raise Exception('request body is required') + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('POST', url, data=data, files=form, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.UnionDateTimeBigIntResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[operations.UnionDateTimeBigIntRes]) + res.res = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + def union_date_time_null(self, request: datetime) -> operations.UnionDateTimeNullResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) diff --git a/python-client-sdk/testsprimary/test_telemetry.py b/python-client-sdk/testsprimary/test_telemetry.py index c7d444eff..241fa2956 100755 --- a/python-client-sdk/testsprimary/test_telemetry.py +++ b/python-client-sdk/testsprimary/test_telemetry.py @@ -18,7 +18,7 @@ def test_telemetry_user_agent_get(): assert res is not None assert res.status_code == 200 assert res.res is not None - assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 2.0.3 2.173.0 0.1.0 openapi' + assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 2.0.4 2.173.0 0.1.0 openapi' def test_telemetry_speakeasy_user_agent_get(): @@ -34,4 +34,4 @@ def test_telemetry_speakeasy_user_agent_get(): assert res.status_code == 200 assert res.res is not None assert res.res.headers['User-Agent'] == user_agent - assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 2.0.3 2.173.0 0.1.0 openapi' + assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 2.0.4 2.173.0 0.1.0 openapi' diff --git a/ruby-client-sdk/README.md b/ruby-client-sdk/README.md index 575d369ea..e0b77d16c 100755 --- a/ruby-client-sdk/README.md +++ b/ruby-client-sdk/README.md @@ -550,7 +550,9 @@ end * [strongly_typed_one_of_post](docs/sdks/unions/README.md#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](docs/sdks/unions/README.md#typed_object_nullable_one_of_post) * [typed_object_one_of_post](docs/sdks/unions/README.md#typed_object_one_of_post) +* [union_big_int_decimal](docs/sdks/unions/README.md#union_big_int_decimal) * [union_date_null](docs/sdks/unions/README.md#union_date_null) +* [union_date_time_big_int](docs/sdks/unions/README.md#union_date_time_big_int) * [union_date_time_null](docs/sdks/unions/README.md#union_date_time_null) * [weakly_typed_one_of_post](docs/sdks/unions/README.md#weakly_typed_one_of_post) diff --git a/ruby-client-sdk/docs/models/operations/requestbodypostformsimpleres.md b/ruby-client-sdk/docs/models/operations/requestbodypostformsimpleres.md index 57b1737c4..49bce8021 100755 --- a/ruby-client-sdk/docs/models/operations/requestbodypostformsimpleres.md +++ b/ruby-client-sdk/docs/models/operations/requestbodypostformsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `form` | [Operations::RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `form` | [Operations::RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | +| `headers` | [Operations::RequestBodyPostFormSimpleResHeaders](../../models/operations/requestbodypostformsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md b/ruby-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md new file mode 100755 index 000000000..78b2ae1f5 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPostFormSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `content_type` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md b/ruby-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md index 0ff472483..906a962e2 100755 --- a/ruby-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md +++ b/ruby-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `form` | [Operations::RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `form` | [Operations::RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | +| `headers` | [Operations::RequestBodyPutMultipartSimpleResHeaders](../../models/operations/requestbodyputmultipartsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md b/ruby-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md new file mode 100755 index 000000000..8afeda75f --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `content_type` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/unionbigintdecimalres.md b/ruby-client-sdk/docs/models/operations/unionbigintdecimalres.md new file mode 100755 index 000000000..cffc5bee3 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/unionbigintdecimalres.md @@ -0,0 +1,10 @@ +# UnionBigIntDecimalRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *Object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/unionbigintdecimalresponse.md b/ruby-client-sdk/docs/models/operations/unionbigintdecimalresponse.md new file mode 100755 index 000000000..d9f743b9c --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/unionbigintdecimalresponse.md @@ -0,0 +1,11 @@ +# UnionBigIntDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [T.nilable(Operations::UnionBigIntDecimalRes)](../../models/operations/unionbigintdecimalres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/uniondatetimebigintres.md b/ruby-client-sdk/docs/models/operations/uniondatetimebigintres.md new file mode 100755 index 000000000..e1d25db7f --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/uniondatetimebigintres.md @@ -0,0 +1,10 @@ +# UnionDateTimeBigIntRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *Object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/uniondatetimebigintresponse.md b/ruby-client-sdk/docs/models/operations/uniondatetimebigintresponse.md new file mode 100755 index 000000000..c8eb3b83c --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/uniondatetimebigintresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [T.nilable(Operations::UnionDateTimeBigIntRes)](../../models/operations/uniondatetimebigintres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/ruby-client-sdk/docs/sdks/unions/README.md b/ruby-client-sdk/docs/sdks/unions/README.md index 5b9d0aefe..33b7c6573 100755 --- a/ruby-client-sdk/docs/sdks/unions/README.md +++ b/ruby-client-sdk/docs/sdks/unions/README.md @@ -17,7 +17,9 @@ Endpoints for testing union types. * [strongly_typed_one_of_post](#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](#typed_object_nullable_one_of_post) * [typed_object_one_of_post](#typed_object_one_of_post) +* [union_big_int_decimal](#union_big_int_decimal) * [union_date_null](#union_date_null) +* [union_date_time_big_int](#union_date_time_big_int) * [union_date_time_null](#union_date_time_null) * [weakly_typed_one_of_post](#weakly_typed_one_of_post) @@ -435,6 +437,46 @@ end **[T.nilable(Operations::TypedObjectOneOfPostResponse)](../../models/operations/typedobjectoneofpostresponse.md)** +## union_big_int_decimal + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = ::.new( + request="string", +) + +res = s.unions.union_big_int_decimal(req) + +if ! res.res.nil? + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [Object](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[T.nilable(Operations::UnionBigIntDecimalResponse)](../../models/operations/unionbigintdecimalresponse.md)** + + ## union_date_null ### Example Usage @@ -475,6 +517,46 @@ end **[T.nilable(Operations::UnionDateNullResponse)](../../models/operations/uniondatenullresponse.md)** +## union_date_time_big_int + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = ::.new( + request="string", +) + +res = s.unions.union_date_time_big_int(req) + +if ! res.res.nil? + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [Object](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[T.nilable(Operations::UnionDateTimeBigIntResponse)](../../models/operations/uniondatetimebigintresponse.md)** + + ## union_date_time_null ### Example Usage diff --git a/ruby-client-sdk/files.gen b/ruby-client-sdk/files.gen index 222cbb5b6..a2dc2af10 100755 --- a/ruby-client-sdk/files.gen +++ b/ruby-client-sdk/files.gen @@ -269,7 +269,9 @@ lib/sdk/models/operations/primitivetypeoneofpost.rb lib/sdk/models/operations/stronglytypedoneofpost.rb lib/sdk/models/operations/typedobjectnullableoneofpost.rb lib/sdk/models/operations/typedobjectoneofpost.rb +lib/sdk/models/operations/unionbigintdecimal.rb lib/sdk/models/operations/uniondatenull.rb +lib/sdk/models/operations/uniondatetimebigint.rb lib/sdk/models/operations/uniondatetimenull.rb lib/sdk/models/operations/weaklytypedoneofpost.rb lib/sdk/models/operations/put_anything_ignoredgeneration.rb @@ -615,6 +617,7 @@ docs/models/operations/requestbodypostformdeepresponse.md docs/models/operations/requestbodypostformmapprimitiveres.md docs/models/operations/requestbodypostformmapprimitiveresponse.md docs/models/operations/requestbodypostformsimpleresform.md +docs/models/operations/requestbodypostformsimpleresheaders.md docs/models/operations/requestbodypostformsimpleres.md docs/models/operations/requestbodypostformsimpleresponse.md docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md @@ -707,6 +710,7 @@ docs/models/operations/requestbodyputmultipartfilerequestbody.md docs/models/operations/requestbodyputmultipartfileres.md docs/models/operations/requestbodyputmultipartfileresponse.md docs/models/operations/requestbodyputmultipartsimpleresform.md +docs/models/operations/requestbodyputmultipartsimpleresheaders.md docs/models/operations/requestbodyputmultipartsimpleres.md docs/models/operations/requestbodyputmultipartsimpleresponse.md docs/models/operations/requestbodyputstringres.md @@ -784,8 +788,12 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/unionbigintdecimalres.md +docs/models/operations/unionbigintdecimalresponse.md docs/models/operations/uniondatenullres.md docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimebigintres.md +docs/models/operations/uniondatetimebigintresponse.md docs/models/operations/uniondatetimenullres.md docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md diff --git a/ruby-client-sdk/gen.yaml b/ruby-client-sdk/gen.yaml index 1854df1e1..bc8cbb0b6 100755 --- a/ruby-client-sdk/gen.yaml +++ b/ruby-client-sdk/gen.yaml @@ -1,8 +1,8 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 - speakeasyVersion: 1.111.0 + speakeasyVersion: 1.112.1 generationVersion: 2.173.0 generation: comments: {} @@ -28,7 +28,7 @@ features: nameOverrides: 2.81.1 serverIDs: 2.81.1 ruby: - version: 1.36.1 + version: 1.36.2 author: Speakeasy description: Ruby Client SDK Generated by Speakeasy installationURL: https://github.com/speakeasy-api/openapi-generation-tests -d ruby-client-sdk diff --git a/ruby-client-sdk/lib/openapi.rb b/ruby-client-sdk/lib/openapi.rb index 05d89c33e..2f9acfada 100755 --- a/ruby-client-sdk/lib/openapi.rb +++ b/ruby-client-sdk/lib/openapi.rb @@ -249,7 +249,9 @@ require_relative 'sdk/models/operations/typedobjectnullableoneofpost' require_relative 'sdk/models/operations/typedobjectoneofpost' require_relative 'sdk/models/operations/typedparametergenerationget' +require_relative 'sdk/models/operations/unionbigintdecimal' require_relative 'sdk/models/operations/uniondatenull' +require_relative 'sdk/models/operations/uniondatetimebigint' require_relative 'sdk/models/operations/uniondatetimenull' require_relative 'sdk/models/operations/updateresource' require_relative 'sdk/models/operations/usageexamplepost' diff --git a/ruby-client-sdk/lib/sdk/models/operations/requestbodypostformsimple.rb b/ruby-client-sdk/lib/sdk/models/operations/requestbodypostformsimple.rb index 4a7621df3..8a122ee27 100755 --- a/ruby-client-sdk/lib/sdk/models/operations/requestbodypostformsimple.rb +++ b/ruby-client-sdk/lib/sdk/models/operations/requestbodypostformsimple.rb @@ -61,6 +61,20 @@ def initialize(any: nil, bool: nil, date: nil, date_time: nil, enum: nil, float3 end end + + class RequestBodyPostFormSimpleResHeaders < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :content_type, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('Content-Type') } } + + + sig { params(content_type: String).void } + def initialize(content_type: nil) + @content_type = content_type + end + end + # OK class RequestBodyPostFormSimpleRes < OpenApiSDK::Utils::FieldAugmented extend T::Sig @@ -68,10 +82,13 @@ class RequestBodyPostFormSimpleRes < OpenApiSDK::Utils::FieldAugmented field :form, Operations::RequestBodyPostFormSimpleResForm, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('form') } } + field :headers, Operations::RequestBodyPostFormSimpleResHeaders, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('headers') } } + - sig { params(form: Operations::RequestBodyPostFormSimpleResForm).void } - def initialize(form: nil) + sig { params(form: Operations::RequestBodyPostFormSimpleResForm, headers: Operations::RequestBodyPostFormSimpleResHeaders).void } + def initialize(form: nil, headers: nil) @form = form + @headers = headers end end diff --git a/ruby-client-sdk/lib/sdk/models/operations/requestbodyputmultipartsimple.rb b/ruby-client-sdk/lib/sdk/models/operations/requestbodyputmultipartsimple.rb index b1085f374..39f183b94 100755 --- a/ruby-client-sdk/lib/sdk/models/operations/requestbodyputmultipartsimple.rb +++ b/ruby-client-sdk/lib/sdk/models/operations/requestbodyputmultipartsimple.rb @@ -61,6 +61,20 @@ def initialize(any: nil, bool: nil, date: nil, date_time: nil, enum: nil, float3 end end + + class RequestBodyPutMultipartSimpleResHeaders < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :content_type, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('Content-Type') } } + + + sig { params(content_type: String).void } + def initialize(content_type: nil) + @content_type = content_type + end + end + # OK class RequestBodyPutMultipartSimpleRes < OpenApiSDK::Utils::FieldAugmented extend T::Sig @@ -68,10 +82,13 @@ class RequestBodyPutMultipartSimpleRes < OpenApiSDK::Utils::FieldAugmented field :form, Operations::RequestBodyPutMultipartSimpleResForm, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('form') } } + field :headers, Operations::RequestBodyPutMultipartSimpleResHeaders, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('headers') } } + - sig { params(form: Operations::RequestBodyPutMultipartSimpleResForm).void } - def initialize(form: nil) + sig { params(form: Operations::RequestBodyPutMultipartSimpleResForm, headers: Operations::RequestBodyPutMultipartSimpleResHeaders).void } + def initialize(form: nil, headers: nil) @form = form + @headers = headers end end diff --git a/ruby-client-sdk/lib/sdk/models/operations/unionbigintdecimal.rb b/ruby-client-sdk/lib/sdk/models/operations/unionbigintdecimal.rb new file mode 100755 index 000000000..fa0730d8f --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/unionbigintdecimal.rb @@ -0,0 +1,48 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + # OK + class UnionBigIntDecimalRes < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :json, Object, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('json') } } + + + sig { params(json: Object).void } + def initialize(json: nil) + @json = json + end + end + + + class UnionBigIntDecimalResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + # OK + field :res, T.nilable(Operations::UnionBigIntDecimalRes) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), res: T.nilable(Operations::UnionBigIntDecimalRes)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil, res: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + @res = res + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/uniondatetimebigint.rb b/ruby-client-sdk/lib/sdk/models/operations/uniondatetimebigint.rb new file mode 100755 index 000000000..93d447d8d --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/uniondatetimebigint.rb @@ -0,0 +1,48 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + # OK + class UnionDateTimeBigIntRes < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :json, Object, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('json') } } + + + sig { params(json: Object).void } + def initialize(json: nil) + @json = json + end + end + + + class UnionDateTimeBigIntResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + # OK + field :res, T.nilable(Operations::UnionDateTimeBigIntRes) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), res: T.nilable(Operations::UnionDateTimeBigIntRes)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil, res: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + @res = res + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/sdkconfiguration.rb b/ruby-client-sdk/lib/sdk/sdkconfiguration.rb index 7f9be2677..f777e4519 100755 --- a/ruby-client-sdk/lib/sdk/sdkconfiguration.rb +++ b/ruby-client-sdk/lib/sdk/sdkconfiguration.rb @@ -54,9 +54,9 @@ def initialize(client, security, server_url, server_idx, server_defaults, global @globals = globals.nil? ? {} : globals @language = 'ruby' @openapi_doc_version = '0.1.0' - @sdk_version = '1.36.1' + @sdk_version = '1.36.2' @gen_version = '2.173.0' - @user_agent = 'speakeasy-sdk/ruby 1.36.1 2.173.0 0.1.0 openapi' + @user_agent = 'speakeasy-sdk/ruby 1.36.2 2.173.0 0.1.0 openapi' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/ruby-client-sdk/lib/sdk/unions.rb b/ruby-client-sdk/lib/sdk/unions.rb index 170434db1..b49626466 100755 --- a/ruby-client-sdk/lib/sdk/unions.rb +++ b/ruby-client-sdk/lib/sdk/unions.rb @@ -407,6 +407,45 @@ def typed_object_one_of_post(request) res end + sig { params(request: Object).returns(Utils::FieldAugmented) } + def union_big_int_decimal(request) + + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/unionBigIntDecimal" + headers = {} + req_content_type, data, form = Utils.serialize_request_body(request, :request, :json) + headers['content-type'] = req_content_type + raise StandardError, 'request body is required' if data.nil? && form.nil? + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.post(url) do |req| + req.headers = headers + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + if form + req.body = Utils.encode_form(form) + elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') + req.body = URI.encode_www_form(data) + else + req.body = data + end + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::UnionBigIntDecimalResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 200 + if Utils.match_content_type(content_type, 'application/json') + out = Utils.unmarshal_complex(r.env.response_body, Operations::UnionBigIntDecimalRes) + res.res = out + end + end + res + end + sig { params(request: Date).returns(Utils::FieldAugmented) } def union_date_null(request) @@ -446,6 +485,45 @@ def union_date_null(request) res end + sig { params(request: Object).returns(Utils::FieldAugmented) } + def union_date_time_big_int(request) + + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/unionDateTimeBigInt" + headers = {} + req_content_type, data, form = Utils.serialize_request_body(request, :request, :json) + headers['content-type'] = req_content_type + raise StandardError, 'request body is required' if data.nil? && form.nil? + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.post(url) do |req| + req.headers = headers + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + if form + req.body = Utils.encode_form(form) + elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') + req.body = URI.encode_www_form(data) + else + req.body = data + end + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::UnionDateTimeBigIntResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 200 + if Utils.match_content_type(content_type, 'application/json') + out = Utils.unmarshal_complex(r.env.response_body, Operations::UnionDateTimeBigIntRes) + res.res = out + end + end + res + end + sig { params(request: DateTime).returns(Utils::FieldAugmented) } def union_date_time_null(request) diff --git a/ruby-client-sdk/openapi.gemspec b/ruby-client-sdk/openapi.gemspec index ed137bb88..2f08e35e9 100755 --- a/ruby-client-sdk/openapi.gemspec +++ b/ruby-client-sdk/openapi.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'openapi' - s.version = '1.36.1' + s.version = '1.36.2' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/ruby-client-sdk/testprimary/telemetry_test.rb b/ruby-client-sdk/testprimary/telemetry_test.rb index 87a40f931..3891e0951 100755 --- a/ruby-client-sdk/testprimary/telemetry_test.rb +++ b/ruby-client-sdk/testprimary/telemetry_test.rb @@ -17,7 +17,7 @@ def test_telemetry_user_agent_get refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) - assert_equal('speakeasy-sdk/ruby 1.36.1 2.173.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) + assert_equal('speakeasy-sdk/ruby 1.36.2 2.173.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) end @@ -31,7 +31,7 @@ def test_telemetry_speakeasy_user_agent_get refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) assert_equal(user_agent, res.res.headers['User-Agent']) - assert_equal('speakeasy-sdk/ruby 1.36.1 2.173.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) + assert_equal('speakeasy-sdk/ruby 1.36.2 2.173.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) end end diff --git a/swift-client-sdk/README.md b/swift-client-sdk/README.md index 832aa7d79..8e2fdb8c8 100755 --- a/swift-client-sdk/README.md +++ b/swift-client-sdk/README.md @@ -28,7 +28,7 @@ You can add `OpenAPI` to your project directly in Xcode `(File > Add Packages... ```bash dependencies: [ - .package(url: "", .upToNextMajor(from: "0.1.1")) + .package(url: "", .upToNextMajor(from: "0.1.2")) ] ``` diff --git a/swift-client-sdk/Sources/OpenAPI/OpenAPI.docc/OpenAPI.md b/swift-client-sdk/Sources/OpenAPI/OpenAPI.docc/OpenAPI.md index f12e165b5..b0ad68d6a 100755 --- a/swift-client-sdk/Sources/OpenAPI/OpenAPI.docc/OpenAPI.md +++ b/swift-client-sdk/Sources/OpenAPI/OpenAPI.docc/OpenAPI.md @@ -510,7 +510,9 @@ case .empty: - ``Operations/TypedObjectNullableOneOfPostResponse`` - ``Operations/TypedObjectOneOfPostResponse`` - ``Operations/TypedParameterGenerationGetResponse`` +- ``Operations/UnionBigIntDecimalResponse`` - ``Operations/UnionDateNullResponse`` +- ``Operations/UnionDateTimeBigIntResponse`` - ``Operations/UnionDateTimeNullResponse`` - ``Operations/UpdateResourceResponse`` - ``Operations/UsageExamplePostResponse`` @@ -634,6 +636,7 @@ case .empty: - ``Operations/RequestBodyPostFormMapPrimitiveRes`` - ``Operations/RequestBodyPostFormSimpleRes`` - ``Operations/RequestBodyPostFormSimpleResForm`` +- ``Operations/RequestBodyPostFormSimpleResHeaders`` - ``Operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON`` - ``Operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON`` - ``Operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON`` @@ -685,6 +688,7 @@ case .empty: - ``Operations/RequestBodyPutMultipartFileRes`` - ``Operations/RequestBodyPutMultipartSimpleRes`` - ``Operations/RequestBodyPutMultipartSimpleResForm`` +- ``Operations/RequestBodyPutMultipartSimpleResHeaders`` - ``Operations/RequestBodyPutStringRes`` - ``Operations/RequestBodyPutStringWithParamsRes`` - ``Operations/RequestBodyPutStringWithParamsResArgs`` @@ -706,7 +710,13 @@ case .empty: - ``Operations/TypedObjectOneOfPostRes`` - ``Operations/TypedParameterGenerationGetObj`` - ``Operations/TypeFromAnchor`` +- ``Operations/UnionBigIntDecimalRequestBody`` +- ``Operations/UnionBigIntDecimalRes`` +- ``Operations/UnionBigIntDecimalResJson`` - ``Operations/UnionDateNullRes`` +- ``Operations/UnionDateTimeBigIntRequestBody`` +- ``Operations/UnionDateTimeBigIntRes`` +- ``Operations/UnionDateTimeBigIntResJson`` - ``Operations/UnionDateTimeNullRes`` - ``Operations/UsageExamplePost200ApplicationJSON`` - ``Operations/UsageExamplePost200ApplicationJSONJSON`` diff --git a/swift-client-sdk/Sources/OpenAPI/OpenAPI.swift b/swift-client-sdk/Sources/OpenAPI/OpenAPI.swift index 6ab758d9f..57f96bf68 100755 --- a/swift-client-sdk/Sources/OpenAPI/OpenAPI.swift +++ b/swift-client-sdk/Sources/OpenAPI/OpenAPI.swift @@ -2651,7 +2651,9 @@ public protocol TelemetryAPI { /// - ``stronglyTypedOneOfPost(request:)`` /// - ``typedObjectNullableOneOfPost(request:)`` /// - ``typedObjectOneOfPost(request:)`` +/// - ``unionBigIntDecimal(request:)`` /// - ``unionDateNull(request:)`` +/// - ``unionDateTimeBigInt(request:)`` /// - ``unionDateTimeNull(request:)`` /// - ``weaklyTypedOneOfPost(request:)`` /// @@ -2676,8 +2678,12 @@ public protocol UnionsAPI { func typedObjectOneOfPost(request: Shared.TypedObjectOneOf) async throws -> Response + func unionBigIntDecimal(request: Operations.UnionBigIntDecimalRequestBody) async throws -> Response + func unionDateNull(request: Date) async throws -> Response + func unionDateTimeBigInt(request: Operations.UnionDateTimeBigIntRequestBody) async throws -> Response + func unionDateTimeNull(request: Date) async throws -> Response func weaklyTypedOneOfPost(request: Shared.WeaklyTypedOneOfObject) async throws -> Response diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_UnionsAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_UnionsAPI.swift index f89d87fac..bb77724d5 100755 --- a/swift-client-sdk/Sources/OpenAPI/internal/api/_UnionsAPI.swift +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_UnionsAPI.swift @@ -100,6 +100,15 @@ class _UnionsAPI: UnionsAPI { ) } + public func unionBigIntDecimal(request: Operations.UnionBigIntDecimalRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureUnionBigIntDecimalRequest(with: configuration, request: request) + }, + handleResponse: handleUnionBigIntDecimalResponse + ) + } + public func unionDateNull(request: Date) async throws -> Response { return try await client.makeRequest( configureRequest: { configuration in @@ -109,6 +118,15 @@ class _UnionsAPI: UnionsAPI { ) } + public func unionDateTimeBigInt(request: Operations.UnionDateTimeBigIntRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureUnionDateTimeBigIntRequest(with: configuration, request: request) + }, + handleResponse: handleUnionDateTimeBigIntResponse + ) + } + public func unionDateTimeNull(request: Date) async throws -> Response { return try await client.makeRequest( configureRequest: { configuration in @@ -241,6 +259,17 @@ private func configureTypedObjectOneOfPostRequest(with configuration: URLRequest configuration.telemetryHeader = .speakeasyUserAgent } +private func configureUnionBigIntDecimalRequest(with configuration: URLRequestConfiguration, request: Operations.UnionBigIntDecimalRequestBody) throws { + configuration.path = "/anything/unionBigIntDecimal" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + private func configureUnionDateNullRequest(with configuration: URLRequestConfiguration, request: Date) throws { configuration.path = "/anything/unionDateNull" configuration.method = .post @@ -252,6 +281,17 @@ private func configureUnionDateNullRequest(with configuration: URLRequestConfigu configuration.telemetryHeader = .speakeasyUserAgent } +private func configureUnionDateTimeBigIntRequest(with configuration: URLRequestConfiguration, request: Operations.UnionDateTimeBigIntRequestBody) throws { + configuration.path = "/anything/unionDateTimeBigInt" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + private func configureUnionDateTimeNullRequest(with configuration: URLRequestConfiguration, request: Date) throws { configuration.path = "/anything/unionDateTimeNull" configuration.method = .post @@ -436,6 +476,22 @@ private func handleTypedObjectOneOfPostResponse(response: Client.APIResponse) th return .empty } +private func handleUnionBigIntDecimalResponse(response: Client.APIResponse) throws -> Operations.UnionBigIntDecimalResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.UnionBigIntDecimalRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + private func handleUnionDateNullResponse(response: Client.APIResponse) throws -> Operations.UnionDateNullResponse { let httpResponse = response.httpResponse @@ -452,6 +508,22 @@ private func handleUnionDateNullResponse(response: Client.APIResponse) throws -> return .empty } +private func handleUnionDateTimeBigIntResponse(response: Client.APIResponse) throws -> Operations.UnionDateTimeBigIntResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.UnionDateTimeBigIntRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + private func handleUnionDateTimeNullResponse(response: Client.APIResponse) throws -> Operations.UnionDateTimeNullResponse { let httpResponse = response.httpResponse diff --git a/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestBuilder.swift b/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestBuilder.swift index 366b017b0..dc4211442 100755 --- a/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestBuilder.swift +++ b/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestBuilder.swift @@ -62,7 +62,7 @@ final class URLRequestBuilder: URLRequestConfiguration { urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type") } - urlRequest.setValue("speakeasy-sdk/swift 0.1.1 2.173.0 0.1.0 OpenAPI", forHTTPHeaderField: telemetryHeader.headerName) + urlRequest.setValue("speakeasy-sdk/swift 0.1.2 2.173.0 0.1.0 OpenAPI", forHTTPHeaderField: telemetryHeader.headerName) addSecurityParameters(to: &urlRequest) diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UnionBigIntDecimalRequestBody+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionBigIntDecimalRequestBody+Serialization.swift new file mode 100755 index 000000000..404e22cb0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionBigIntDecimalRequestBody+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UnionBigIntDecimalRequestBody: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UnionBigIntDecimalResJson+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionBigIntDecimalResJson+Serialization.swift new file mode 100755 index 000000000..4e2423991 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionBigIntDecimalResJson+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UnionBigIntDecimalResJson: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UnionDateTimeBigIntRequestBody+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionDateTimeBigIntRequestBody+Serialization.swift new file mode 100755 index 000000000..5efbef74c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionDateTimeBigIntRequestBody+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UnionDateTimeBigIntRequestBody: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UnionDateTimeBigIntResJson+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionDateTimeBigIntResJson+Serialization.swift new file mode 100755 index 000000000..c41d83674 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UnionDateTimeBigIntResJson+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UnionDateTimeBigIntResJson: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift index 79ac0cac1..97fd34fbe 100755 --- a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift @@ -6,12 +6,14 @@ extension Operations { /// OK public struct RequestBodyPostFormSimpleRes { public let form: Operations.RequestBodyPostFormSimpleResForm + public let headers: Operations.RequestBodyPostFormSimpleResHeaders /// Creates an object with the specified parameters /// /// - public init(form: Operations.RequestBodyPostFormSimpleResForm) { + public init(form: Operations.RequestBodyPostFormSimpleResForm, headers: Operations.RequestBodyPostFormSimpleResHeaders) { self.form = form + self.headers = headers } } } @@ -19,6 +21,7 @@ extension Operations { extension Operations.RequestBodyPostFormSimpleRes: Codable { enum CodingKeys: String, CodingKey { case form + case headers } } diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResHeaders.swift new file mode 100755 index 000000000..0013c72b5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResHeaders.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostFormSimpleResHeaders { + public let contentType: String + + /// Creates an object with the specified parameters + /// + /// + public init(contentType: String) { + self.contentType = contentType + } + } +} + +extension Operations.RequestBodyPostFormSimpleResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case contentType = "Content-Type" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift index 701e9325c..2015d73f0 100755 --- a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift @@ -6,12 +6,14 @@ extension Operations { /// OK public struct RequestBodyPutMultipartSimpleRes { public let form: Operations.RequestBodyPutMultipartSimpleResForm + public let headers: Operations.RequestBodyPutMultipartSimpleResHeaders /// Creates an object with the specified parameters /// /// - public init(form: Operations.RequestBodyPutMultipartSimpleResForm) { + public init(form: Operations.RequestBodyPutMultipartSimpleResForm, headers: Operations.RequestBodyPutMultipartSimpleResHeaders) { self.form = form + self.headers = headers } } } @@ -19,6 +21,7 @@ extension Operations { extension Operations.RequestBodyPutMultipartSimpleRes: Codable { enum CodingKeys: String, CodingKey { case form + case headers } } diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResHeaders.swift new file mode 100755 index 000000000..b0ef22e68 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResHeaders.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutMultipartSimpleResHeaders { + public let contentType: String + + /// Creates an object with the specified parameters + /// + /// + public init(contentType: String) { + self.contentType = contentType + } + } +} + +extension Operations.RequestBodyPutMultipartSimpleResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case contentType = "Content-Type" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalRequestBody.swift new file mode 100755 index 000000000..974d9b1a6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalRequestBody.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum UnionBigIntDecimalRequestBody { + case string(String) + case number(Double) + } +} + +extension Operations.UnionBigIntDecimalRequestBody: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Double(from: decoder) { + self = .number(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .number(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalRes.swift new file mode 100755 index 000000000..1bcdb98e8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct UnionBigIntDecimalRes { + public let json: Operations.UnionBigIntDecimalResJson + + /// Creates an object with the specified parameters + /// + /// + public init(json: Operations.UnionBigIntDecimalResJson) { + self.json = json + } + } +} + +extension Operations.UnionBigIntDecimalRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalResJson.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalResJson.swift new file mode 100755 index 000000000..1723ad6b4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalResJson.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum UnionBigIntDecimalResJson { + case string(String) + case number(Double) + } +} + +extension Operations.UnionBigIntDecimalResJson: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Double(from: decoder) { + self = .number(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .number(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalResponse.swift new file mode 100755 index 000000000..ed1f81aa8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionBigIntDecimalResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum UnionBigIntDecimalResponse { + case empty + case res(Operations.UnionBigIntDecimalRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.UnionBigIntDecimalRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntRequestBody.swift new file mode 100755 index 000000000..4769c5506 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntRequestBody.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum UnionDateTimeBigIntRequestBody { + case dateTime(Date) + case integer(Int) + } +} + +extension Operations.UnionDateTimeBigIntRequestBody: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Date(from: decoder) { + self = .dateTime(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .dateTime(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntRes.swift new file mode 100755 index 000000000..e0b5639de --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct UnionDateTimeBigIntRes { + public let json: Operations.UnionDateTimeBigIntResJson + + /// Creates an object with the specified parameters + /// + /// + public init(json: Operations.UnionDateTimeBigIntResJson) { + self.json = json + } + } +} + +extension Operations.UnionDateTimeBigIntRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntResJson.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntResJson.swift new file mode 100755 index 000000000..fbd368796 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntResJson.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum UnionDateTimeBigIntResJson { + case dateTime(Date) + case integer(Int) + } +} + +extension Operations.UnionDateTimeBigIntResJson: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Date(from: decoder) { + self = .dateTime(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .dateTime(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntResponse.swift new file mode 100755 index 000000000..e71a3957c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeBigIntResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum UnionDateTimeBigIntResponse { + case empty + case res(Operations.UnionDateTimeBigIntRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.UnionDateTimeBigIntRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/files.gen b/swift-client-sdk/files.gen index cf2c6f642..6c95628db 100755 --- a/swift-client-sdk/files.gen +++ b/swift-client-sdk/files.gen @@ -447,6 +447,7 @@ Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveRes.swift Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveResponse.swift Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResForm.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResHeaders.swift Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResponse.swift Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.swift Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.swift @@ -551,6 +552,7 @@ Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRes.swift Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileResponse.swift Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResForm.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResHeaders.swift Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResponse.swift Sources/OpenAPI/models/operations/RequestBodyPutStringRes.swift Sources/OpenAPI/models/operations/RequestBodyPutStringResponse.swift @@ -636,8 +638,20 @@ Sources/OpenAPI/internal/models/TypedParameterGenerationGetObj+Serialization.swi Sources/OpenAPI/models/operations/TypedParameterGenerationGetRequest.swift Sources/OpenAPI/internal/models/TypedParameterGenerationGetRequest+Serialization.swift Sources/OpenAPI/models/operations/TypedParameterGenerationGetResponse.swift +Sources/OpenAPI/models/operations/UnionBigIntDecimalRequestBody.swift +Sources/OpenAPI/internal/models/UnionBigIntDecimalRequestBody+Serialization.swift +Sources/OpenAPI/models/operations/UnionBigIntDecimalRes.swift +Sources/OpenAPI/models/operations/UnionBigIntDecimalResJson.swift +Sources/OpenAPI/internal/models/UnionBigIntDecimalResJson+Serialization.swift +Sources/OpenAPI/models/operations/UnionBigIntDecimalResponse.swift Sources/OpenAPI/models/operations/UnionDateNullRes.swift Sources/OpenAPI/models/operations/UnionDateNullResponse.swift +Sources/OpenAPI/models/operations/UnionDateTimeBigIntRequestBody.swift +Sources/OpenAPI/internal/models/UnionDateTimeBigIntRequestBody+Serialization.swift +Sources/OpenAPI/models/operations/UnionDateTimeBigIntRes.swift +Sources/OpenAPI/models/operations/UnionDateTimeBigIntResJson.swift +Sources/OpenAPI/internal/models/UnionDateTimeBigIntResJson+Serialization.swift +Sources/OpenAPI/models/operations/UnionDateTimeBigIntResponse.swift Sources/OpenAPI/models/operations/UnionDateTimeNullRes.swift Sources/OpenAPI/models/operations/UnionDateTimeNullResponse.swift Sources/OpenAPI/models/operations/UpdateResourceRequest.swift diff --git a/swift-client-sdk/gen.yaml b/swift-client-sdk/gen.yaml index 392240bdf..0bb7573e9 100755 --- a/swift-client-sdk/gen.yaml +++ b/swift-client-sdk/gen.yaml @@ -1,8 +1,8 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 - speakeasyVersion: 1.111.0 + speakeasyVersion: 1.112.1 generationVersion: 2.173.0 generation: comments: {} @@ -27,7 +27,7 @@ features: nameOverrides: 2.81.1 serverIDs: 2.81.1 swift: - version: 0.1.1 + version: 0.1.2 author: Speakeasy description: Swift Client SDK Generated by Speakeasy packageName: OpenAPI diff --git a/typescript-client-sdk/README.md b/typescript-client-sdk/README.md index 76fa97c73..2d4dae955 100755 --- a/typescript-client-sdk/README.md +++ b/typescript-client-sdk/README.md @@ -392,7 +392,9 @@ import { RFCDate } from "openapi/dist/sdk/types"; * [stronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [typedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [unionBigIntDecimal](docs/sdks/unions/README.md#unionbigintdecimal) * [unionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [unionDateTimeBigInt](docs/sdks/unions/README.md#uniondatetimebigint) * [unionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [weaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) diff --git a/typescript-client-sdk/__tests__primary/telemetry.test.ts b/typescript-client-sdk/__tests__primary/telemetry.test.ts index e45fbdd90..ae93d91b8 100755 --- a/typescript-client-sdk/__tests__primary/telemetry.test.ts +++ b/typescript-client-sdk/__tests__primary/telemetry.test.ts @@ -21,7 +21,7 @@ test("Test Telemetry User Agent Get", async () => { expect(res.statusCode).toBeDefined(); expect(res.statusCode).toBe(200); expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe( - "speakeasy-sdk/typescript 1.40.2 2.173.0 0.1.0 openapi" + "speakeasy-sdk/typescript 1.40.3 2.173.0 0.1.0 openapi" ); }); @@ -39,6 +39,6 @@ test("Test Telemetry Speakeasy User Agent Get", async () => { expect(res.statusCode).toBe(200); expect(res.res?.headers["User-Agent"]).toBe(userAgent); expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe( - "speakeasy-sdk/typescript 1.40.2 2.173.0 0.1.0 openapi" + "speakeasy-sdk/typescript 1.40.3 2.173.0 0.1.0 openapi" ); }); diff --git a/typescript-client-sdk/docs/models/operations/requestbodypostformsimpleres.md b/typescript-client-sdk/docs/models/operations/requestbodypostformsimpleres.md index c4883fdf2..188da40ab 100755 --- a/typescript-client-sdk/docs/models/operations/requestbodypostformsimpleres.md +++ b/typescript-client-sdk/docs/models/operations/requestbodypostformsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `form` | [RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `form` | [RequestBodyPostFormSimpleResForm](../../models/operations/requestbodypostformsimpleresform.md) | :heavy_check_mark: | N/A | +| `headers` | [RequestBodyPostFormSimpleResHeaders](../../models/operations/requestbodypostformsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md b/typescript-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md new file mode 100755 index 000000000..760072213 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/requestbodypostformsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPostFormSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `contentType` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md b/typescript-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md index 97cfaa654..fce756fe8 100755 --- a/typescript-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md +++ b/typescript-client-sdk/docs/models/operations/requestbodyputmultipartsimpleres.md @@ -5,6 +5,7 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/requestbodyputmultipartsimpleresform.md) | :heavy_check_mark: | N/A | +| `headers` | [RequestBodyPutMultipartSimpleResHeaders](../../models/operations/requestbodyputmultipartsimpleresheaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md b/typescript-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md new file mode 100755 index 000000000..62bf0b0f3 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/requestbodyputmultipartsimpleresheaders.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartSimpleResHeaders + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `contentType` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/unionbigintdecimalres.md b/typescript-client-sdk/docs/models/operations/unionbigintdecimalres.md new file mode 100755 index 000000000..0519cf131 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/unionbigintdecimalres.md @@ -0,0 +1,10 @@ +# UnionBigIntDecimalRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *any* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/unionbigintdecimalresponse.md b/typescript-client-sdk/docs/models/operations/unionbigintdecimalresponse.md new file mode 100755 index 000000000..fef8e7e1f --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/unionbigintdecimalresponse.md @@ -0,0 +1,11 @@ +# UnionBigIntDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionBigIntDecimalRes](../../models/operations/unionbigintdecimalres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/uniondatetimebigintres.md b/typescript-client-sdk/docs/models/operations/uniondatetimebigintres.md new file mode 100755 index 000000000..ed8065bfe --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/uniondatetimebigintres.md @@ -0,0 +1,10 @@ +# UnionDateTimeBigIntRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `json` | *any* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/uniondatetimebigintresponse.md b/typescript-client-sdk/docs/models/operations/uniondatetimebigintresponse.md new file mode 100755 index 000000000..baa25f79f --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/uniondatetimebigintresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionDateTimeBigIntRes](../../models/operations/uniondatetimebigintres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/typescript-client-sdk/docs/sdks/parameters/README.md b/typescript-client-sdk/docs/sdks/parameters/README.md index 2d6ba9cee..fa2202804 100755 --- a/typescript-client-sdk/docs/sdks/parameters/README.md +++ b/typescript-client-sdk/docs/sdks/parameters/README.md @@ -806,7 +806,7 @@ const deepObjParam: DeepObject = { bool: true, int: 1, map: { - "key": { + "key2": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", @@ -826,7 +826,7 @@ const deepObjParam: DeepObject = { str: "test", strOpt: "testOptional", }, - "key2": { + "key": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", diff --git a/typescript-client-sdk/docs/sdks/requestbodies/README.md b/typescript-client-sdk/docs/sdks/requestbodies/README.md index 3ffd0b94f..9b92217c4 100755 --- a/typescript-client-sdk/docs/sdks/requestbodies/README.md +++ b/typescript-client-sdk/docs/sdks/requestbodies/README.md @@ -2065,7 +2065,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; bool: true, int: 1, map: { - "key2": { + "key": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", @@ -2085,7 +2085,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; str: "test", strOpt: "testOptional", }, - "key": { + "key2": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", diff --git a/typescript-client-sdk/docs/sdks/unions/README.md b/typescript-client-sdk/docs/sdks/unions/README.md index 521f164a0..2067fa816 100755 --- a/typescript-client-sdk/docs/sdks/unions/README.md +++ b/typescript-client-sdk/docs/sdks/unions/README.md @@ -17,7 +17,9 @@ Endpoints for testing union types. * [stronglyTypedOneOfPost](#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [typedObjectOneOfPost](#typedobjectoneofpost) +* [unionBigIntDecimal](#unionbigintdecimal) * [unionDateNull](#uniondatenull) +* [unionDateTimeBigInt](#uniondatetimebigint) * [unionDateTimeNull](#uniondatetimenull) * [weaklyTypedOneOfPost](#weaklytypedoneofpost) @@ -417,6 +419,44 @@ import { SDK } from "openapi"; **Promise<[operations.TypedObjectOneOfPostResponse](../../models/operations/typedobjectoneofpostresponse.md)>** +## unionBigIntDecimal + +### Example Usage + +```typescript +import { SDK } from "openapi"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); + + const res = await sdk.unions.unionBigIntDecimal("string"); + + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `request` | [any](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.UnionBigIntDecimalResponse](../../models/operations/unionbigintdecimalresponse.md)>** + + ## unionDateNull ### Example Usage @@ -455,6 +495,44 @@ import { SDK } from "openapi"; **Promise<[operations.UnionDateNullResponse](../../models/operations/uniondatenullresponse.md)>** +## unionDateTimeBigInt + +### Example Usage + +```typescript +import { SDK } from "openapi"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); + + const res = await sdk.unions.unionDateTimeBigInt("string"); + + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `request` | [any](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.UnionDateTimeBigIntResponse](../../models/operations/uniondatetimebigintresponse.md)>** + + ## unionDateTimeNull ### Example Usage diff --git a/typescript-client-sdk/files.gen b/typescript-client-sdk/files.gen index 443671386..b60ad043a 100755 --- a/typescript-client-sdk/files.gen +++ b/typescript-client-sdk/files.gen @@ -262,7 +262,9 @@ src/sdk/models/operations/primitivetypeoneofpost.ts src/sdk/models/operations/stronglytypedoneofpost.ts src/sdk/models/operations/typedobjectnullableoneofpost.ts src/sdk/models/operations/typedobjectoneofpost.ts +src/sdk/models/operations/unionbigintdecimal.ts src/sdk/models/operations/uniondatenull.ts +src/sdk/models/operations/uniondatetimebigint.ts src/sdk/models/operations/uniondatetimenull.ts src/sdk/models/operations/weaklytypedoneofpost.ts src/sdk/models/operations/putanythingignoredgeneration.ts @@ -612,6 +614,7 @@ docs/models/operations/requestbodypostformdeepresponse.md docs/models/operations/requestbodypostformmapprimitiveres.md docs/models/operations/requestbodypostformmapprimitiveresponse.md docs/models/operations/requestbodypostformsimpleresform.md +docs/models/operations/requestbodypostformsimpleresheaders.md docs/models/operations/requestbodypostformsimpleres.md docs/models/operations/requestbodypostformsimpleresponse.md docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md @@ -704,6 +707,7 @@ docs/models/operations/requestbodyputmultipartfilerequestbody.md docs/models/operations/requestbodyputmultipartfileres.md docs/models/operations/requestbodyputmultipartfileresponse.md docs/models/operations/requestbodyputmultipartsimpleresform.md +docs/models/operations/requestbodyputmultipartsimpleresheaders.md docs/models/operations/requestbodyputmultipartsimpleres.md docs/models/operations/requestbodyputmultipartsimpleresponse.md docs/models/operations/requestbodyputstringres.md @@ -781,8 +785,12 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/unionbigintdecimalres.md +docs/models/operations/unionbigintdecimalresponse.md docs/models/operations/uniondatenullres.md docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimebigintres.md +docs/models/operations/uniondatetimebigintresponse.md docs/models/operations/uniondatetimenullres.md docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md diff --git a/typescript-client-sdk/gen.yaml b/typescript-client-sdk/gen.yaml index 5e860a57c..b5acc1f11 100755 --- a/typescript-client-sdk/gen.yaml +++ b/typescript-client-sdk/gen.yaml @@ -1,8 +1,8 @@ configVersion: 1.0.0 management: - docChecksum: 2d5cff0b57f6738e0a08cfe2de4e248d + docChecksum: 0c1717dc8f9e83b99bad896fa719645c docVersion: 0.1.0 - speakeasyVersion: 1.111.0 + speakeasyVersion: 1.112.1 generationVersion: 2.173.0 generation: comments: {} @@ -32,7 +32,7 @@ features: retries: 2.82.1 serverIDs: 2.81.2 typescript: - version: 1.40.2 + version: 1.40.3 author: Speakeasy clientServerStatusCodesAsErrors: true flattenGlobalSecurity: false diff --git a/typescript-client-sdk/package-lock.json b/typescript-client-sdk/package-lock.json index 9204a203d..afe396f72 100755 --- a/typescript-client-sdk/package-lock.json +++ b/typescript-client-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "openapi", - "version": "1.40.2", + "version": "1.40.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openapi", - "version": "1.40.2", + "version": "1.40.3", "dependencies": { "axios": "^1.1.3", "class-transformer": "^0.5.1", diff --git a/typescript-client-sdk/package.json b/typescript-client-sdk/package.json index 7cd3b7817..94400d826 100755 --- a/typescript-client-sdk/package.json +++ b/typescript-client-sdk/package.json @@ -1,6 +1,6 @@ { "name": "openapi", - "version": "1.40.2", + "version": "1.40.3", "author": "Speakeasy", "scripts": { "prepare": "tsc --build", diff --git a/typescript-client-sdk/src/sdk/models/operations/index.ts b/typescript-client-sdk/src/sdk/models/operations/index.ts index c51032e6c..2200909a3 100755 --- a/typescript-client-sdk/src/sdk/models/operations/index.ts +++ b/typescript-client-sdk/src/sdk/models/operations/index.ts @@ -203,7 +203,9 @@ export * from "./telemetryuseragentget"; export * from "./typedobjectnullableoneofpost"; export * from "./typedobjectoneofpost"; export * from "./typedparametergenerationget"; +export * from "./unionbigintdecimal"; export * from "./uniondatenull"; +export * from "./uniondatetimebigint"; export * from "./uniondatetimenull"; export * from "./updateresource"; export * from "./usageexamplepost"; diff --git a/typescript-client-sdk/src/sdk/models/operations/requestbodypostformsimple.ts b/typescript-client-sdk/src/sdk/models/operations/requestbodypostformsimple.ts index 69f75c75c..4562a00fc 100755 --- a/typescript-client-sdk/src/sdk/models/operations/requestbodypostformsimple.ts +++ b/typescript-client-sdk/src/sdk/models/operations/requestbodypostformsimple.ts @@ -64,6 +64,12 @@ export class RequestBodyPostFormSimpleResForm extends SpeakeasyBase { strOpt?: string; } +export class RequestBodyPostFormSimpleResHeaders extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "Content-Type" }) + contentType: string; +} + /** * OK */ @@ -72,6 +78,11 @@ export class RequestBodyPostFormSimpleRes extends SpeakeasyBase { @Expose({ name: "form" }) @Type(() => RequestBodyPostFormSimpleResForm) form: RequestBodyPostFormSimpleResForm; + + @SpeakeasyMetadata() + @Expose({ name: "headers" }) + @Type(() => RequestBodyPostFormSimpleResHeaders) + headers: RequestBodyPostFormSimpleResHeaders; } export class RequestBodyPostFormSimpleResponse extends SpeakeasyBase { diff --git a/typescript-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.ts b/typescript-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.ts index 268bf47ea..1f1eace01 100755 --- a/typescript-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.ts +++ b/typescript-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.ts @@ -64,6 +64,12 @@ export class RequestBodyPutMultipartSimpleResForm extends SpeakeasyBase { strOpt?: string; } +export class RequestBodyPutMultipartSimpleResHeaders extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "Content-Type" }) + contentType: string; +} + /** * OK */ @@ -72,6 +78,11 @@ export class RequestBodyPutMultipartSimpleRes extends SpeakeasyBase { @Expose({ name: "form" }) @Type(() => RequestBodyPutMultipartSimpleResForm) form: RequestBodyPutMultipartSimpleResForm; + + @SpeakeasyMetadata() + @Expose({ name: "headers" }) + @Type(() => RequestBodyPutMultipartSimpleResHeaders) + headers: RequestBodyPutMultipartSimpleResHeaders; } export class RequestBodyPutMultipartSimpleResponse extends SpeakeasyBase { diff --git a/typescript-client-sdk/src/sdk/models/operations/unionbigintdecimal.ts b/typescript-client-sdk/src/sdk/models/operations/unionbigintdecimal.ts new file mode 100755 index 000000000..89cf0f025 --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/unionbigintdecimal.ts @@ -0,0 +1,42 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { AxiosResponse } from "axios"; +import { Expose } from "class-transformer"; + +/** + * OK + */ +export class UnionBigIntDecimalRes extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "json" }) + json: any; +} + +export class UnionBigIntDecimalResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; + + /** + * OK + */ + @SpeakeasyMetadata() + res?: UnionBigIntDecimalRes; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/uniondatetimebigint.ts b/typescript-client-sdk/src/sdk/models/operations/uniondatetimebigint.ts new file mode 100755 index 000000000..005b3b238 --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/uniondatetimebigint.ts @@ -0,0 +1,42 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { AxiosResponse } from "axios"; +import { Expose } from "class-transformer"; + +/** + * OK + */ +export class UnionDateTimeBigIntRes extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "json" }) + json: any; +} + +export class UnionDateTimeBigIntResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; + + /** + * OK + */ + @SpeakeasyMetadata() + res?: UnionDateTimeBigIntRes; +} diff --git a/typescript-client-sdk/src/sdk/sdk.ts b/typescript-client-sdk/src/sdk/sdk.ts index f6725638b..813457249 100755 --- a/typescript-client-sdk/src/sdk/sdk.ts +++ b/typescript-client-sdk/src/sdk/sdk.ts @@ -130,9 +130,9 @@ export class SDKConfiguration { serverDefaults: any; language = "typescript"; openapiDocVersion = "0.1.0"; - sdkVersion = "1.40.2"; + sdkVersion = "1.40.3"; genVersion = "2.173.0"; - userAgent = "speakeasy-sdk/typescript 1.40.2 2.173.0 0.1.0 openapi"; + userAgent = "speakeasy-sdk/typescript 1.40.3 2.173.0 0.1.0 openapi"; globals: any; retryConfig?: utils.RetryConfig; public constructor(init?: Partial) { diff --git a/typescript-client-sdk/src/sdk/unions.ts b/typescript-client-sdk/src/sdk/unions.ts index 4982460b1..8a442435e 100755 --- a/typescript-client-sdk/src/sdk/unions.ts +++ b/typescript-client-sdk/src/sdk/unions.ts @@ -933,6 +933,96 @@ export class Unions { return res; } + async unionBigIntDecimal( + req: any, + config?: AxiosRequestConfig + ): Promise { + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/unionBigIntDecimal"; + + let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; + + try { + [reqBodyHeaders, reqBody] = utils.serializeRequestBody(req, "request", "json"); + } catch (e: unknown) { + if (e instanceof Error) { + throw new Error(`Error serializing request body, cause: ${e.message}`); + } + } + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { + ...reqBodyHeaders, + ...config?.headers, + ...properties.headers, + }; + if (reqBody == null) throw new Error("request body is required"); + headers["Accept"] = "application/json"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url, + method: "post", + headers: headers, + responseType: "arraybuffer", + data: reqBody, + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.UnionBigIntDecimalResponse = + new operations.UnionBigIntDecimalResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + const decodedRes = new TextDecoder().decode(httpRes?.data); + switch (true) { + case httpRes?.status == 200: + if (utils.matchContentType(contentType, `application/json`)) { + res.res = utils.objectToClass( + JSON.parse(decodedRes), + operations.UnionBigIntDecimalRes + ); + } else { + throw new errors.SDKError( + "unknown content-type received: " + contentType, + httpRes.status, + decodedRes, + httpRes + ); + } + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + decodedRes, + httpRes + ); + } + + return res; + } + async unionDateNull( req: RFCDate, config?: AxiosRequestConfig @@ -1022,6 +1112,96 @@ export class Unions { return res; } + async unionDateTimeBigInt( + req: any, + config?: AxiosRequestConfig + ): Promise { + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/unionDateTimeBigInt"; + + let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; + + try { + [reqBodyHeaders, reqBody] = utils.serializeRequestBody(req, "request", "json"); + } catch (e: unknown) { + if (e instanceof Error) { + throw new Error(`Error serializing request body, cause: ${e.message}`); + } + } + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { + ...reqBodyHeaders, + ...config?.headers, + ...properties.headers, + }; + if (reqBody == null) throw new Error("request body is required"); + headers["Accept"] = "application/json"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url, + method: "post", + headers: headers, + responseType: "arraybuffer", + data: reqBody, + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.UnionDateTimeBigIntResponse = + new operations.UnionDateTimeBigIntResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + const decodedRes = new TextDecoder().decode(httpRes?.data); + switch (true) { + case httpRes?.status == 200: + if (utils.matchContentType(contentType, `application/json`)) { + res.res = utils.objectToClass( + JSON.parse(decodedRes), + operations.UnionDateTimeBigIntRes + ); + } else { + throw new errors.SDKError( + "unknown content-type received: " + contentType, + httpRes.status, + decodedRes, + httpRes + ); + } + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + decodedRes, + httpRes + ); + } + + return res; + } + async unionDateTimeNull( req: Date, config?: AxiosRequestConfig