Skip to content

Commit c8c1766

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.330.0 (#270)
Co-authored-by: speakeasybot <[email protected]>
1 parent 74e0c02 commit c8c1766

File tree

248 files changed

+3016
-722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+3016
-722
lines changed

platform/.speakeasy/gen.lock

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
lockVersion: 2.0.0
22
id: 803b84ac-e26a-4a5c-9224-dbc3d0c7712a
33
management:
4-
docChecksum: 45c9274f0e3c7dac25b46ab3b4007b5f
4+
docChecksum: ced98ff1180e32d5026f7d960a49babc
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.277.6
7-
generationVersion: 2.319.7
8-
releaseVersion: 3.6.1
9-
configChecksum: e1137e6a45616de97875384f08e19dd5
6+
speakeasyVersion: 1.330.0
7+
generationVersion: 2.361.10
8+
releaseVersion: 3.7.0
9+
configChecksum: e558689099753511014e0b28c07cb15e
1010
repoURL: https://github.com/codatio/client-sdk-csharp.git
1111
repoSubDirectory: platform
1212
published: true
1313
features:
1414
csharp:
15+
additionalDependencies: 0.1.0
1516
constsAndDefaults: 0.0.1
16-
core: 3.8.2
17+
core: 3.9.8
1718
deprecations: 2.81.2
1819
examples: 2.81.3
1920
globalSecurity: 2.83.4
21+
globalSecurityCallbacks: 0.1.0
2022
globalServerURLs: 2.82.3
2123
groups: 2.81.2
2224
ignores: 2.81.1
2325
inputOutputModels: 2.83.0
26+
intellisenseMarkdownSupport: 0.1.0
2427
nameOverrides: 2.81.2
25-
responseFormat: 0.0.2
28+
nullables: 0.1.0
29+
responseFormat: 0.0.4
30+
retries: 0.0.1
31+
sdkHooks: 0.1.0
2632
webhooks: 1.0.0
2733
generatedFiles:
2834
- Codat/Platform/Settings.cs
@@ -49,6 +55,9 @@ generatedFiles:
4955
- Codat/Platform/Utils/IsoDateTimeSerializer.cs
5056
- Codat/Platform/Utils/RequestBodySerializer.cs
5157
- Codat/Platform/Utils/ResponseBodyDeserializer.cs
58+
- Codat/Platform/Utils/Retries/BackoffStrategy.cs
59+
- Codat/Platform/Utils/Retries/Retries.cs
60+
- Codat/Platform/Utils/Retries/RetryConfig.cs
5261
- Codat/Platform/Utils/SecurityMetadata.cs
5362
- Codat/Platform/Utils/SpeakeasyHttpClient.cs
5463
- Codat/Platform/Utils/SpeakeasyMetadata.cs
@@ -156,6 +165,7 @@ generatedFiles:
156165
- Codat/Platform/Models/Shared/Connection.cs
157166
- Codat/Platform/Models/Shared/DataConnectionStatus.cs
158167
- Codat/Platform/Models/Shared/SourceType.cs
168+
- Codat/Platform/Models/Shared/ErrorStatus.cs
159169
- Codat/Platform/Models/Shared/DataConnectionError.cs
160170
- Codat/Platform/Models/Shared/CompanyRequestBody.cs
161171
- Codat/Platform/Models/Shared/Companies.cs
@@ -345,6 +355,7 @@ generatedFiles:
345355
- docs/Models/Shared/Connection.md
346356
- docs/Models/Shared/DataConnectionStatus.md
347357
- docs/Models/Shared/SourceType.md
358+
- docs/Models/Shared/ErrorStatus.md
348359
- docs/Models/Shared/DataConnectionError.md
349360
- docs/Models/Shared/CompanyRequestBody.md
350361
- docs/Models/Shared/Companies.md
@@ -447,6 +458,7 @@ generatedFiles:
447458
- docs/sdks/integrations/README.md
448459
- docs/sdks/supplementaldata/README.md
449460
- docs/sdks/webhooks/README.md
461+
- NUGET.md
450462
- USAGE.md
451463
- .gitattributes
452464
- Codat/Platform/Hooks/SDKHooks.cs

platform/Codat/Platform/Codat.Platform.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Codat.Platform</PackageId>
5-
<Version>3.6.1</Version>
5+
<Version>3.7.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>
@@ -13,8 +13,8 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<None Include="../README.md" Pack="true" PackagePath="/"/>
17-
<None Include="../docs/*" Pack="true" PackagePath="/docs"/>
16+
<None Include="..\..\NUGET.md" Pack="true" PackagePath="README.md"/>
17+
<None Include="..\..\docs\**\*" Pack="true" PackagePath="\docs" CopyToOutputDirectory="PreserveNewest"/>
1818

1919
<PackageReference Include="newtonsoft.json" Version="13.0.3" />
2020
<PackageReference Include="nodatime" Version="3.1.9" />

platform/Codat/Platform/CodatPlatform.cs

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//------------------------------------------------------------------------------
32
// <auto-generated>
43
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
@@ -13,6 +12,7 @@ namespace Codat.Platform
1312
using Codat.Platform.Hooks;
1413
using Codat.Platform.Models.Errors;
1514
using Codat.Platform.Models.Shared;
15+
using Codat.Platform.Utils.Retries;
1616
using Codat.Platform.Utils;
1717
using Newtonsoft.Json;
1818
using System.Collections.Generic;
@@ -64,7 +64,7 @@ public interface ICodatPlatform
6464
public ICompanies Companies { get; }
6565

6666
/// <summary>
67-
/// Configure connection management UI and retrieve access tokens for authentication.
67+
/// Configure UI and retrieve access tokens for authentication used by **Connections SDK**.
6868
/// </summary>
6969
public IConnectionManagement ConnectionManagement { get; }
7070

@@ -120,7 +120,8 @@ public class SDKConfig
120120

121121
public string ServerUrl = "";
122122
public int ServerIndex = 0;
123-
public SDKHooks hooks = new SDKHooks();
123+
public SDKHooks Hooks = new SDKHooks();
124+
public RetryConfig? RetryConfig = null;
124125

125126
public string GetTemplatedServerUrl()
126127
{
@@ -134,7 +135,7 @@ public string GetTemplatedServerUrl()
134135
public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
135136
{
136137
string preHooksUrl = GetTemplatedServerUrl();
137-
var (postHooksUrl, postHooksClient) = this.hooks.SDKInit(preHooksUrl, client);
138+
var (postHooksUrl, postHooksClient) = this.Hooks.SDKInit(preHooksUrl, client);
138139
if (preHooksUrl != postHooksUrl)
139140
{
140141
this.ServerUrl = postHooksUrl;
@@ -178,13 +179,13 @@ public class CodatPlatform: ICodatPlatform
178179
public SDKConfig SDKConfiguration { get; private set; }
179180

180181
private const string _language = "csharp";
181-
private const string _sdkVersion = "3.6.1";
182-
private const string _sdkGenVersion = "2.319.7";
182+
private const string _sdkVersion = "3.7.0";
183+
private const string _sdkGenVersion = "2.361.10";
183184
private const string _openapiDocVersion = "3.0.0";
184-
private const string _userAgent = "speakeasy-sdk/csharp 3.6.1 2.319.7 3.0.0 Codat.Platform";
185+
private const string _userAgent = "speakeasy-sdk/csharp 3.7.0 2.361.10 3.0.0 Codat.Platform";
185186
private string _serverUrl = "";
186187
private int _serverIndex = 0;
187-
private ISpeakeasyHttpClient _defaultClient;
188+
private ISpeakeasyHttpClient _client;
188189
private Func<Security>? _securitySource;
189190
public ISettings Settings { get; private set; }
190191
public ICompanies Companies { get; private set; }
@@ -198,7 +199,7 @@ public class CodatPlatform: ICodatPlatform
198199
public ISupplementalData SupplementalData { get; private set; }
199200
public IWebhooks Webhooks { get; private set; }
200201

201-
public CodatPlatform(Security? security = null, Func<Security>? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
202+
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)
202203
{
203204
if (serverIndex != null)
204205
{
@@ -218,7 +219,7 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
218219
_serverUrl = serverUrl;
219220
}
220221

221-
_defaultClient = new SpeakeasyHttpClient(client);
222+
_client = client ?? new SpeakeasyHttpClient();
222223

223224
if(securitySource != null)
224225
{
@@ -236,43 +237,44 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
236237
SDKConfiguration = new SDKConfig()
237238
{
238239
ServerIndex = _serverIndex,
239-
ServerUrl = _serverUrl
240+
ServerUrl = _serverUrl,
241+
RetryConfig = retryConfig
240242
};
241243

242-
_defaultClient = SDKConfiguration.InitHooks(_defaultClient);
244+
_client = SDKConfiguration.InitHooks(_client);
243245

244246

245-
Settings = new Settings(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
247+
Settings = new Settings(_client, _securitySource, _serverUrl, SDKConfiguration);
246248

247249

248-
Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
250+
Companies = new Companies(_client, _securitySource, _serverUrl, SDKConfiguration);
249251

250252

251-
ConnectionManagement = new ConnectionManagement(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
253+
ConnectionManagement = new ConnectionManagement(_client, _securitySource, _serverUrl, SDKConfiguration);
252254

253255

254-
Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
256+
Connections = new Connections(_client, _securitySource, _serverUrl, SDKConfiguration);
255257

256258

257-
CustomDataType = new CustomDataType(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
259+
CustomDataType = new CustomDataType(_client, _securitySource, _serverUrl, SDKConfiguration);
258260

259261

260-
PushData = new PushData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
262+
PushData = new PushData(_client, _securitySource, _serverUrl, SDKConfiguration);
261263

262264

263-
RefreshData = new RefreshData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
265+
RefreshData = new RefreshData(_client, _securitySource, _serverUrl, SDKConfiguration);
264266

265267

266-
Groups = new Groups(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
268+
Groups = new Groups(_client, _securitySource, _serverUrl, SDKConfiguration);
267269

268270

269-
Integrations = new Integrations(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
271+
Integrations = new Integrations(_client, _securitySource, _serverUrl, SDKConfiguration);
270272

271273

272-
SupplementalData = new SupplementalData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
274+
SupplementalData = new SupplementalData(_client, _securitySource, _serverUrl, SDKConfiguration);
273275

274276

275-
Webhooks = new Webhooks(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
277+
Webhooks = new Webhooks(_client, _securitySource, _serverUrl, SDKConfiguration);
276278
}
277279
}
278280
}

0 commit comments

Comments
 (0)