Skip to content

Commit 7e836c3

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.277.6 (#264)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 0f09780 commit 7e836c3

27 files changed

+2139
-382
lines changed

platform/.speakeasy/gen.lock

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 803b84ac-e26a-4a5c-9224-dbc3d0c7712a
33
management:
4-
docChecksum: 91b86a7707fc536ccbdc7b7345d775a0
4+
docChecksum: 45c9274f0e3c7dac25b46ab3b4007b5f
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.274.1
7-
generationVersion: 2.314.0
8-
releaseVersion: 3.6.0
9-
configChecksum: da622ef0f54bd9e9d3a34c5694447ea5
6+
speakeasyVersion: 1.277.6
7+
generationVersion: 2.319.7
8+
releaseVersion: 3.6.1
9+
configChecksum: e1137e6a45616de97875384f08e19dd5
1010
repoURL: https://github.com/codatio/client-sdk-csharp.git
1111
repoSubDirectory: platform
1212
published: true
1313
features:
1414
csharp:
1515
constsAndDefaults: 0.0.1
16-
core: 3.8.0
16+
core: 3.8.2
1717
deprecations: 2.81.2
1818
examples: 2.81.3
1919
globalSecurity: 2.83.4
@@ -22,7 +22,7 @@ features:
2222
ignores: 2.81.1
2323
inputOutputModels: 2.83.0
2424
nameOverrides: 2.81.2
25-
responseFormat: 0.0.1
25+
responseFormat: 0.0.2
2626
webhooks: 1.0.0
2727
generatedFiles:
2828
- Codat/Platform/Settings.cs
@@ -49,7 +49,7 @@ generatedFiles:
4949
- Codat/Platform/Utils/IsoDateTimeSerializer.cs
5050
- Codat/Platform/Utils/RequestBodySerializer.cs
5151
- Codat/Platform/Utils/ResponseBodyDeserializer.cs
52-
- Codat/Platform/Utils/SecuritySerializer.cs
52+
- Codat/Platform/Utils/SecurityMetadata.cs
5353
- Codat/Platform/Utils/SpeakeasyHttpClient.cs
5454
- Codat/Platform/Utils/SpeakeasyMetadata.cs
5555
- Codat/Platform/Utils/URLBuilder.cs
@@ -449,3 +449,5 @@ generatedFiles:
449449
- docs/sdks/webhooks/README.md
450450
- USAGE.md
451451
- .gitattributes
452+
- Codat/Platform/Hooks/SDKHooks.cs
453+
- Codat/Platform/Hooks/HookTypes.cs

platform/Codat/Platform/Codat.Platform.csproj

Lines changed: 1 addition & 1 deletion
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.0</Version>
5+
<Version>3.6.1</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

platform/Codat/Platform/CodatPlatform.cs

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#nullable enable
1111
namespace Codat.Platform
1212
{
13+
using Codat.Platform.Hooks;
1314
using Codat.Platform.Models.Errors;
1415
using Codat.Platform.Models.Shared;
1516
using Codat.Platform.Utils;
@@ -117,16 +118,28 @@ public class SDKConfig
117118
"https://api.codat.io",
118119
};
119120

120-
public string serverUrl = "";
121-
public int serverIndex = 0;
121+
public string ServerUrl = "";
122+
public int ServerIndex = 0;
123+
public SDKHooks hooks = new SDKHooks();
122124

123-
public string GetTemplatedServerDetails()
125+
public string GetTemplatedServerUrl()
124126
{
125-
if (!String.IsNullOrEmpty(this.serverUrl))
127+
if (!String.IsNullOrEmpty(this.ServerUrl))
126128
{
127-
return Utilities.TemplateUrl(Utilities.RemoveSuffix(this.serverUrl, "/"), new Dictionary<string, string>());
129+
return Utilities.TemplateUrl(Utilities.RemoveSuffix(this.ServerUrl, "/"), new Dictionary<string, string>());
128130
}
129-
return Utilities.TemplateUrl(SDKConfig.ServerList[this.serverIndex], new Dictionary<string, string>());
131+
return Utilities.TemplateUrl(SDKConfig.ServerList[this.ServerIndex], new Dictionary<string, string>());
132+
}
133+
134+
public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
135+
{
136+
string preHooksUrl = GetTemplatedServerUrl();
137+
var (postHooksUrl, postHooksClient) = this.hooks.SDKInit(preHooksUrl, client);
138+
if (preHooksUrl != postHooksUrl)
139+
{
140+
this.ServerUrl = postHooksUrl;
141+
}
142+
return postHooksClient;
130143
}
131144
}
132145

@@ -165,10 +178,10 @@ public class CodatPlatform: ICodatPlatform
165178
public SDKConfig SDKConfiguration { get; private set; }
166179

167180
private const string _language = "csharp";
168-
private const string _sdkVersion = "3.6.0";
169-
private const string _sdkGenVersion = "2.314.0";
181+
private const string _sdkVersion = "3.6.1";
182+
private const string _sdkGenVersion = "2.319.7";
170183
private const string _openapiDocVersion = "3.0.0";
171-
private const string _userAgent = "speakeasy-sdk/csharp 3.6.0 2.314.0 3.0.0 Codat.Platform";
184+
private const string _userAgent = "speakeasy-sdk/csharp 3.6.1 2.319.7 3.0.0 Codat.Platform";
172185
private string _serverUrl = "";
173186
private int _serverIndex = 0;
174187
private ISpeakeasyHttpClient _defaultClient;
@@ -222,21 +235,44 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
222235

223236
SDKConfiguration = new SDKConfig()
224237
{
225-
serverIndex = _serverIndex,
226-
serverUrl = _serverUrl
238+
ServerIndex = _serverIndex,
239+
ServerUrl = _serverUrl
227240
};
228241

242+
_defaultClient = SDKConfiguration.InitHooks(_defaultClient);
243+
244+
229245
Settings = new Settings(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
246+
247+
230248
Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
249+
250+
231251
ConnectionManagement = new ConnectionManagement(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
252+
253+
232254
Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
255+
256+
233257
CustomDataType = new CustomDataType(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
258+
259+
234260
PushData = new PushData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
261+
262+
235263
RefreshData = new RefreshData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
264+
265+
236266
Groups = new Groups(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
267+
268+
237269
Integrations = new Integrations(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
270+
271+
238272
SupplementalData = new SupplementalData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
273+
274+
239275
Webhooks = new Webhooks(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
240276
}
241277
}
242-
}
278+
}

0 commit comments

Comments
 (0)