Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.330.0 (#270)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Jul 9, 2024
1 parent 74e0c02 commit c8c1766
Show file tree
Hide file tree
Showing 248 changed files with 3,016 additions and 722 deletions.
26 changes: 19 additions & 7 deletions platform/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
lockVersion: 2.0.0
id: 803b84ac-e26a-4a5c-9224-dbc3d0c7712a
management:
docChecksum: 45c9274f0e3c7dac25b46ab3b4007b5f
docChecksum: ced98ff1180e32d5026f7d960a49babc
docVersion: 3.0.0
speakeasyVersion: 1.277.6
generationVersion: 2.319.7
releaseVersion: 3.6.1
configChecksum: e1137e6a45616de97875384f08e19dd5
speakeasyVersion: 1.330.0
generationVersion: 2.361.10
releaseVersion: 3.7.0
configChecksum: e558689099753511014e0b28c07cb15e
repoURL: https://github.com/codatio/client-sdk-csharp.git
repoSubDirectory: platform
published: true
features:
csharp:
additionalDependencies: 0.1.0
constsAndDefaults: 0.0.1
core: 3.8.2
core: 3.9.8
deprecations: 2.81.2
examples: 2.81.3
globalSecurity: 2.83.4
globalSecurityCallbacks: 0.1.0
globalServerURLs: 2.82.3
groups: 2.81.2
ignores: 2.81.1
inputOutputModels: 2.83.0
intellisenseMarkdownSupport: 0.1.0
nameOverrides: 2.81.2
responseFormat: 0.0.2
nullables: 0.1.0
responseFormat: 0.0.4
retries: 0.0.1
sdkHooks: 0.1.0
webhooks: 1.0.0
generatedFiles:
- Codat/Platform/Settings.cs
Expand All @@ -49,6 +55,9 @@ generatedFiles:
- Codat/Platform/Utils/IsoDateTimeSerializer.cs
- Codat/Platform/Utils/RequestBodySerializer.cs
- Codat/Platform/Utils/ResponseBodyDeserializer.cs
- Codat/Platform/Utils/Retries/BackoffStrategy.cs
- Codat/Platform/Utils/Retries/Retries.cs
- Codat/Platform/Utils/Retries/RetryConfig.cs
- Codat/Platform/Utils/SecurityMetadata.cs
- Codat/Platform/Utils/SpeakeasyHttpClient.cs
- Codat/Platform/Utils/SpeakeasyMetadata.cs
Expand Down Expand Up @@ -156,6 +165,7 @@ generatedFiles:
- Codat/Platform/Models/Shared/Connection.cs
- Codat/Platform/Models/Shared/DataConnectionStatus.cs
- Codat/Platform/Models/Shared/SourceType.cs
- Codat/Platform/Models/Shared/ErrorStatus.cs
- Codat/Platform/Models/Shared/DataConnectionError.cs
- Codat/Platform/Models/Shared/CompanyRequestBody.cs
- Codat/Platform/Models/Shared/Companies.cs
Expand Down Expand Up @@ -345,6 +355,7 @@ generatedFiles:
- docs/Models/Shared/Connection.md
- docs/Models/Shared/DataConnectionStatus.md
- docs/Models/Shared/SourceType.md
- docs/Models/Shared/ErrorStatus.md
- docs/Models/Shared/DataConnectionError.md
- docs/Models/Shared/CompanyRequestBody.md
- docs/Models/Shared/Companies.md
Expand Down Expand Up @@ -447,6 +458,7 @@ generatedFiles:
- docs/sdks/integrations/README.md
- docs/sdks/supplementaldata/README.md
- docs/sdks/webhooks/README.md
- NUGET.md
- USAGE.md
- .gitattributes
- Codat/Platform/Hooks/SDKHooks.cs
Expand Down
6 changes: 3 additions & 3 deletions platform/Codat/Platform/Codat.Platform.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Platform</PackageId>
<Version>3.6.1</Version>
<Version>3.7.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand All @@ -13,8 +13,8 @@
</PropertyGroup>

<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="/"/>
<None Include="../docs/*" Pack="true" PackagePath="/docs"/>
<None Include="..\..\NUGET.md" Pack="true" PackagePath="README.md"/>
<None Include="..\..\docs\**\*" Pack="true" PackagePath="\docs" CopyToOutputDirectory="PreserveNewest"/>

<PackageReference Include="newtonsoft.json" Version="13.0.3" />
<PackageReference Include="nodatime" Version="3.1.9" />
Expand Down
48 changes: 25 additions & 23 deletions platform/Codat/Platform/CodatPlatform.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
Expand All @@ -13,6 +12,7 @@ namespace Codat.Platform
using Codat.Platform.Hooks;
using Codat.Platform.Models.Errors;
using Codat.Platform.Models.Shared;
using Codat.Platform.Utils.Retries;
using Codat.Platform.Utils;
using Newtonsoft.Json;
using System.Collections.Generic;
Expand Down Expand Up @@ -64,7 +64,7 @@ public interface ICodatPlatform
public ICompanies Companies { get; }

/// <summary>
/// Configure connection management UI and retrieve access tokens for authentication.
/// Configure UI and retrieve access tokens for authentication used by **Connections SDK**.
/// </summary>
public IConnectionManagement ConnectionManagement { get; }

Expand Down Expand Up @@ -120,7 +120,8 @@ public class SDKConfig

public string ServerUrl = "";
public int ServerIndex = 0;
public SDKHooks hooks = new SDKHooks();
public SDKHooks Hooks = new SDKHooks();
public RetryConfig? RetryConfig = null;

public string GetTemplatedServerUrl()
{
Expand All @@ -134,7 +135,7 @@ public string GetTemplatedServerUrl()
public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
{
string preHooksUrl = GetTemplatedServerUrl();
var (postHooksUrl, postHooksClient) = this.hooks.SDKInit(preHooksUrl, client);
var (postHooksUrl, postHooksClient) = this.Hooks.SDKInit(preHooksUrl, client);
if (preHooksUrl != postHooksUrl)
{
this.ServerUrl = postHooksUrl;
Expand Down Expand Up @@ -178,13 +179,13 @@ public class CodatPlatform: ICodatPlatform
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "3.6.1";
private const string _sdkGenVersion = "2.319.7";
private const string _sdkVersion = "3.7.0";
private const string _sdkGenVersion = "2.361.10";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 3.6.1 2.319.7 3.0.0 Codat.Platform";
private const string _userAgent = "speakeasy-sdk/csharp 3.7.0 2.361.10 3.0.0 Codat.Platform";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
public ISettings Settings { get; private set; }
public ICompanies Companies { get; private set; }
Expand All @@ -198,7 +199,7 @@ public class CodatPlatform: ICodatPlatform
public ISupplementalData SupplementalData { get; private set; }
public IWebhooks Webhooks { get; private set; }

public CodatPlatform(Security? security = null, Func<Security>? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
public CodatPlatform(Security? security = null, Func<Security>? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null)
{
if (serverIndex != null)
{
Expand All @@ -218,7 +219,7 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
_serverUrl = serverUrl;
}

_defaultClient = new SpeakeasyHttpClient(client);
_client = client ?? new SpeakeasyHttpClient();

if(securitySource != null)
{
Expand All @@ -236,43 +237,44 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
SDKConfiguration = new SDKConfig()
{
ServerIndex = _serverIndex,
ServerUrl = _serverUrl
ServerUrl = _serverUrl,
RetryConfig = retryConfig
};

_defaultClient = SDKConfiguration.InitHooks(_defaultClient);
_client = SDKConfiguration.InitHooks(_client);


Settings = new Settings(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Settings = new Settings(_client, _securitySource, _serverUrl, SDKConfiguration);


Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Companies = new Companies(_client, _securitySource, _serverUrl, SDKConfiguration);


ConnectionManagement = new ConnectionManagement(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
ConnectionManagement = new ConnectionManagement(_client, _securitySource, _serverUrl, SDKConfiguration);


Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Connections = new Connections(_client, _securitySource, _serverUrl, SDKConfiguration);


CustomDataType = new CustomDataType(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
CustomDataType = new CustomDataType(_client, _securitySource, _serverUrl, SDKConfiguration);


PushData = new PushData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
PushData = new PushData(_client, _securitySource, _serverUrl, SDKConfiguration);


RefreshData = new RefreshData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
RefreshData = new RefreshData(_client, _securitySource, _serverUrl, SDKConfiguration);


Groups = new Groups(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Groups = new Groups(_client, _securitySource, _serverUrl, SDKConfiguration);


Integrations = new Integrations(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Integrations = new Integrations(_client, _securitySource, _serverUrl, SDKConfiguration);


SupplementalData = new SupplementalData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
SupplementalData = new SupplementalData(_client, _securitySource, _serverUrl, SDKConfiguration);


Webhooks = new Webhooks(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Webhooks = new Webhooks(_client, _securitySource, _serverUrl, SDKConfiguration);
}
}
}
Loading

0 comments on commit c8c1766

Please sign in to comment.