Skip to content

Commit 4e1b4ac

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.91.0 (#124)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 086b3fd commit 4e1b4ac

File tree

237 files changed

+1425
-534
lines changed

Some content is hidden

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

237 files changed

+1425
-534
lines changed

platform/CodatPlatform/CodatPlatform.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>1.1.0</Version>
5+
<Version>2.1.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

platform/CodatPlatform/CodatPlatformSDK.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ public class SDKConfig
7878
{
7979
}
8080

81+
/// <summary>
82+
/// Platform API: Platform API
83+
///
84+
/// <remarks>
85+
/// An API for the common components of all of Codat&apos;s products.<br/>
86+
/// <br/>
87+
/// These end points cover creating and managing your companies, data connections, and integrations.<br/>
88+
/// <br/>
89+
/// <a href="https://docs.codat.io/core-concepts/companies">Read about the building blocks of Codat...</a><br/>
90+
/// <br/>
91+
/// <a href="https://github.com/codatio/oas">See our OpenAPI spec</a>
92+
/// </remarks>
93+
/// </summary>
8194
public class CodatPlatformSDK: ICodatPlatformSDK
8295
{
8396
public SDKConfig Config { get; private set; }
@@ -87,8 +100,8 @@ public class CodatPlatformSDK: ICodatPlatformSDK
87100
};
88101

89102
private const string _language = "csharp";
90-
private const string _sdkVersion = "1.1.0";
91-
private const string _sdkGenVersion = "2.116.0";
103+
private const string _sdkVersion = "2.1.0";
104+
private const string _sdkGenVersion = "2.129.1";
92105
private const string _openapiDocVersion = "3.0.0";
93106
private string _serverUrl = "";
94107
private ISpeakeasyHttpClient _defaultClient;

platform/CodatPlatform/Companies.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,15 @@ public interface ICompaniesSDK
7676
Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? request = null);
7777
}
7878

79+
/// <summary>
80+
/// Create and manage your Codat companies.
81+
/// </summary>
7982
public class CompaniesSDK: ICompaniesSDK
8083
{
8184
public SDKConfig Config { get; private set; }
8285
private const string _language = "csharp";
83-
private const string _sdkVersion = "1.1.0";
84-
private const string _sdkGenVersion = "2.116.0";
86+
private const string _sdkVersion = "2.1.0";
87+
private const string _sdkGenVersion = "2.129.1";
8588
private const string _openapiDocVersion = "3.0.0";
8689
private string _serverUrl = "";
8790
private ISpeakeasyHttpClient _defaultClient;
@@ -131,7 +134,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
131134
{
132135
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
133136
{
134-
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
137+
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
135138
}
136139

137140
return response;
@@ -140,7 +143,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
140143
{
141144
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
142145
{
143-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
146+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
144147
}
145148

146149
return response;
@@ -184,7 +187,7 @@ public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? reque
184187
{
185188
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
186189
{
187-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
190+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
188191
}
189192

190193
return response;
@@ -223,7 +226,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
223226
{
224227
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
225228
{
226-
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
229+
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
227230
}
228231

229232
return response;
@@ -232,7 +235,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
232235
{
233236
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
234237
{
235-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
238+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
236239
}
237240

238241
return response;
@@ -271,7 +274,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
271274
{
272275
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
273276
{
274-
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
277+
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
275278
}
276279

277280
return response;
@@ -280,7 +283,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
280283
{
281284
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
282285
{
283-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
286+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
284287
}
285288

286289
return response;
@@ -324,7 +327,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
324327
{
325328
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
326329
{
327-
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
330+
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
328331
}
329332

330333
return response;
@@ -333,7 +336,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
333336
{
334337
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
335338
{
336-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
339+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
337340
}
338341

339342
return response;

platform/CodatPlatform/Connections.cs

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,15 @@ public interface IConnectionsSDK
8383
Task<UpdateConnectionAuthorizationResponse> UpdateAuthorizationAsync(UpdateConnectionAuthorizationRequest? request = null);
8484
}
8585

86+
/// <summary>
87+
/// Manage your companies&amp;apos; data connections.
88+
/// </summary>
8689
public class ConnectionsSDK: IConnectionsSDK
8790
{
8891
public SDKConfig Config { get; private set; }
8992
private const string _language = "csharp";
90-
private const string _sdkVersion = "1.1.0";
91-
private const string _sdkGenVersion = "2.116.0";
93+
private const string _sdkVersion = "2.1.0";
94+
private const string _sdkGenVersion = "2.129.1";
9295
private const string _openapiDocVersion = "3.0.0";
9396
private string _serverUrl = "";
9497
private ISpeakeasyHttpClient _defaultClient;
@@ -138,7 +141,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
138141
{
139142
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
140143
{
141-
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
144+
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
142145
}
143146

144147
return response;
@@ -147,7 +150,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
147150
{
148151
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
149152
{
150-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
153+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
151154
}
152155

153156
return response;
@@ -191,7 +194,7 @@ public async Task<DeleteConnectionResponse> DeleteAsync(DeleteConnectionRequest?
191194
{
192195
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
193196
{
194-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
197+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
195198
}
196199

197200
return response;
@@ -230,7 +233,7 @@ public async Task<GetConnectionResponse> GetAsync(GetConnectionRequest? request
230233
{
231234
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
232235
{
233-
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
236+
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
234237
}
235238

236239
return response;
@@ -239,7 +242,7 @@ public async Task<GetConnectionResponse> GetAsync(GetConnectionRequest? request
239242
{
240243
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
241244
{
242-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
245+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
243246
}
244247

245248
return response;
@@ -278,7 +281,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
278281
{
279282
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
280283
{
281-
response.Connections = JsonConvert.DeserializeObject<Connections>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
284+
response.Connections = JsonConvert.DeserializeObject<Connections>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
282285
}
283286

284287
return response;
@@ -287,7 +290,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
287290
{
288291
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
289292
{
290-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
293+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
291294
}
292295

293296
return response;
@@ -331,7 +334,7 @@ public async Task<UnlinkConnectionResponse> UnlinkAsync(UnlinkConnectionRequest?
331334
{
332335
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
333336
{
334-
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
337+
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
335338
}
336339

337340
return response;
@@ -340,7 +343,7 @@ public async Task<UnlinkConnectionResponse> UnlinkAsync(UnlinkConnectionRequest?
340343
{
341344
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
342345
{
343-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
346+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
344347
}
345348

346349
return response;
@@ -384,7 +387,7 @@ public async Task<UpdateConnectionAuthorizationResponse> UpdateAuthorizationAsyn
384387
{
385388
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
386389
{
387-
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
390+
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
388391
}
389392

390393
return response;

0 commit comments

Comments
 (0)