Skip to content

Commit 7ebcb69

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.100.2 (#176)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 16e9465 commit 7ebcb69

File tree

196 files changed

+924
-805
lines changed

Some content is hidden

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

196 files changed

+924
-805
lines changed

platform/CodatPlatform/CodatPlatform.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Codat.Platform</PackageId>
5-
<Version>2.1.0</Version>
5+
<Version>2.2.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>
99
<PackageReadmeFile>README.md</PackageReadmeFile>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
11+
<NoWarn>1591</NoWarn>
1112
</PropertyGroup>
1213

1314
<ItemGroup>

platform/CodatPlatform/CodatPlatformSDK.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface ICodatPlatformSDK
3939
public ICompaniesSDK Companies { get; }
4040

4141
/// <summary>
42-
/// Manage your companies&amp;apos; data connections.
42+
/// Manage your companies&apos; data connections.
4343
/// </summary>
4444
public IConnectionsSDK Connections { get; }
4545

@@ -100,9 +100,10 @@ public class CodatPlatformSDK: ICodatPlatformSDK
100100
};
101101

102102
private const string _language = "csharp";
103-
private const string _sdkVersion = "2.1.0";
104-
private const string _sdkGenVersion = "2.129.1";
103+
private const string _sdkVersion = "2.2.0";
104+
private const string _sdkGenVersion = "2.159.2";
105105
private const string _openapiDocVersion = "3.0.0";
106+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Platform";
106107
private string _serverUrl = "";
107108
private ISpeakeasyHttpClient _defaultClient;
108109
private ISpeakeasyHttpClient _securityClient;

platform/CodatPlatform/Companies.cs

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public interface ICompaniesSDK
6161
/// List companies
6262
///
6363
/// <remarks>
64-
/// Returns a list of your companies. The company schema contains a list of <a href="https://docs.codat.io/codat-api#/schemas/Connection">connections</a> related to the company.
64+
/// Returns a list of your companies. The company schema contains a list of <a href="https://docs.codat.io/platform-api#/schemas/Connection">connections</a> related to the company.
6565
/// </remarks>
6666
/// </summary>
6767
Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request = null);
@@ -83,9 +83,10 @@ public class CompaniesSDK: ICompaniesSDK
8383
{
8484
public SDKConfig Config { get; private set; }
8585
private const string _language = "csharp";
86-
private const string _sdkVersion = "2.1.0";
87-
private const string _sdkGenVersion = "2.129.1";
86+
private const string _sdkVersion = "2.2.0";
87+
private const string _sdkGenVersion = "2.159.2";
8888
private const string _openapiDocVersion = "3.0.0";
89+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Platform";
8990
private string _serverUrl = "";
9091
private ISpeakeasyHttpClient _defaultClient;
9192
private ISpeakeasyHttpClient _securityClient;
@@ -110,7 +111,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
110111

111112

112113
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
113-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
114+
httpRequest.Headers.Add("user-agent", _userAgent);
114115

115116
var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json");
116117
if (serializedBody != null)
@@ -130,9 +131,10 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
130131
ContentType = contentType,
131132
RawResponse = httpResponse
132133
};
134+
133135
if((response.StatusCode == 200))
134136
{
135-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
137+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
136138
{
137139
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
138140
}
@@ -141,7 +143,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
141143
}
142144
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 429))
143145
{
144-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
146+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
145147
{
146148
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
147149
}
@@ -163,7 +165,7 @@ public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? reque
163165

164166

165167
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
166-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
168+
httpRequest.Headers.Add("user-agent", _userAgent);
167169

168170

169171
var client = _securityClient;
@@ -178,14 +180,15 @@ public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? reque
178180
ContentType = contentType,
179181
RawResponse = httpResponse
180182
};
183+
181184
if((response.StatusCode == 204))
182185
{
183186

184187
return response;
185188
}
186189
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
187190
{
188-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
191+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
189192
{
190193
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
191194
}
@@ -207,7 +210,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
207210

208211

209212
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
210-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
213+
httpRequest.Headers.Add("user-agent", _userAgent);
211214

212215

213216
var client = _securityClient;
@@ -222,9 +225,10 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
222225
ContentType = contentType,
223226
RawResponse = httpResponse
224227
};
228+
225229
if((response.StatusCode == 200))
226230
{
227-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
231+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
228232
{
229233
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
230234
}
@@ -233,7 +237,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
233237
}
234238
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
235239
{
236-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
240+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
237241
{
238242
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
239243
}
@@ -255,7 +259,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
255259

256260

257261
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
258-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
262+
httpRequest.Headers.Add("user-agent", _userAgent);
259263

260264

261265
var client = _securityClient;
@@ -270,9 +274,10 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
270274
ContentType = contentType,
271275
RawResponse = httpResponse
272276
};
277+
273278
if((response.StatusCode == 200))
274279
{
275-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
280+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
276281
{
277282
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
278283
}
@@ -281,7 +286,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
281286
}
282287
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 429))
283288
{
284-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
289+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
285290
{
286291
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
287292
}
@@ -303,7 +308,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
303308

304309

305310
var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString);
306-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
311+
httpRequest.Headers.Add("user-agent", _userAgent);
307312

308313
var serializedBody = RequestBodySerializer.Serialize(request, "CompanyRequestBody", "json");
309314
if (serializedBody != null)
@@ -323,9 +328,10 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
323328
ContentType = contentType,
324329
RawResponse = httpResponse
325330
};
331+
326332
if((response.StatusCode == 200))
327333
{
328-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
334+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
329335
{
330336
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
331337
}
@@ -334,7 +340,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
334340
}
335341
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
336342
{
337-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
343+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
338344
{
339345
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
340346
}

0 commit comments

Comments
 (0)