Skip to content

Commit 25ab079

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.274.1 (#262)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 31db77a commit 25ab079

File tree

308 files changed

+4624
-2438
lines changed

Some content is hidden

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

308 files changed

+4624
-2438
lines changed

platform/.speakeasy/gen.lock

Lines changed: 245 additions & 218 deletions
Large diffs are not rendered by default.

platform/CodatPlatform.sln renamed to platform/Codat.Platform.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Codat.Platform", "CodatPlatform\CodatPlatform.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Codat.Platform", "Codat\Platform\Codat.Platform.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
44
EndProject
55

66
Global

platform/CodatPlatform/CodatPlatform.csproj renamed to 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.5.0</Version>
5+
<Version>3.6.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

platform/CodatPlatform/CodatPlatform.cs renamed to platform/Codat/Platform/CodatPlatform.cs

Lines changed: 69 additions & 23 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.Models.Errors;
1314
using Codat.Platform.Models.Shared;
1415
using Codat.Platform.Utils;
1516
using Newtonsoft.Json;
@@ -18,8 +19,6 @@ namespace Codat.Platform
1819
using System.Threading.Tasks;
1920
using System;
2021

21-
22-
2322
/// <summary>
2423
/// Platform API: Platform API
2524
///
@@ -28,72 +27,96 @@ namespace Codat.Platform
2827
/// <br/>
2928
/// These end points cover creating and managing your companies, data connections, and integrations.<br/>
3029
/// <br/>
31-
/// <a href="https://docs.codat.io/core-concepts/companies">Read about the building blocks of Codat...</a><br/>
30+
/// <a href="https://docs.codat.io/core-concepts/companies">Read about the building blocks of Codat...</a> | <a href="https://github.com/codatio/oas">See our OpenAPI spec</a> <br/>
3231
/// <br/>
33-
/// <a href="https://github.com/codatio/oas">See our OpenAPI spec</a>
32+
/// ---<br/>
33+
/// &lt;!-- Start Codat Tags Table --&gt;<br/>
34+
/// ## Endpoints<br/>
35+
/// <br/>
36+
/// | Endpoints | Description |<br/>
37+
/// | :- |:- |<br/>
38+
/// | Companies | Create and manage your SMB users&apos; companies. |<br/>
39+
/// | Connections | Create new and manage existing data connections for a company. |<br/>
40+
/// | Connection management | Configure connection management UI and retrieve access tokens for authentication. |<br/>
41+
/// | Groups | Define and manage sets of companies based on a chosen characteristic. |<br/>
42+
/// | Webhooks | Create and manage webhooks that listen to Codat&apos;s events. |<br/>
43+
/// | Integrations | Get a list of integrations supported by Codat and their logos. |<br/>
44+
/// | Refresh data | Initiate data refreshes, view pull status and history. |<br/>
45+
/// | Settings | Manage company profile configuration, sync settings, and API keys. |<br/>
46+
/// | Push data | Initiate and monitor Create, Update, and Delete operations. |<br/>
47+
/// | Supplemental data | Configure and pull additional data you can include in Codat&apos;s standard data types. |<br/>
48+
/// | Custom data type | Configure and pull additional data types that are not included in Codat&apos;s standardized data model. |<br/>
49+
/// &lt;!-- End Codat Tags Table --&gt;
3450
/// </remarks>
3551
/// </summary>
3652
public interface ICodatPlatform
3753
{
3854

3955
/// <summary>
40-
/// Manage your Codat instance.
56+
/// Manage company profile configuration, sync settings, and API keys.
4157
/// </summary>
4258
public ISettings Settings { get; }
4359

4460
/// <summary>
45-
/// Create and manage your Codat companies.
61+
/// Create and manage your SMB users&apos; companies.
4662
/// </summary>
4763
public ICompanies Companies { get; }
4864

4965
/// <summary>
50-
/// Manage your companies&apos; data connections.
66+
/// Configure connection management UI and retrieve access tokens for authentication.
67+
/// </summary>
68+
public IConnectionManagement ConnectionManagement { get; }
69+
70+
/// <summary>
71+
/// Create new and manage existing data connections for a company.
5172
/// </summary>
5273
public IConnections Connections { get; }
5374

5475
/// <summary>
55-
/// View and configure custom data types for supported integrations.
76+
/// Configure and pull additional data types that are not included in Codat&apos;s standardized data model.
5677
/// </summary>
5778
public ICustomDataType CustomDataType { get; }
5879

5980
/// <summary>
60-
/// View push options and get push statuses.
81+
/// Initiate and monitor Create, Update, and Delete operations.
6182
/// </summary>
6283
public IPushData PushData { get; }
6384

6485
/// <summary>
65-
/// Asynchronously retrieve data from an integration to refresh data in Codat.
86+
/// Initiate data refreshes, view pull status and history.
6687
/// </summary>
6788
public IRefreshData RefreshData { get; }
6889

6990
/// <summary>
70-
/// Create groups and link them to your Codat companies.
91+
/// Define and manage sets of companies based on a chosen characteristic.
7192
/// </summary>
7293
public IGroups Groups { get; }
7394

7495
/// <summary>
75-
/// View and manage your available integrations in Codat.
96+
/// Get a list of integrations supported by Codat and their logos.
7697
/// </summary>
7798
public IIntegrations Integrations { get; }
7899

79100
/// <summary>
80-
/// View and configure supplemental data for supported data types.
101+
/// Configure and pull additional data you can include in Codat&apos;s standard data types.
81102
/// </summary>
82103
public ISupplementalData SupplementalData { get; }
83104

84105
/// <summary>
85-
/// Manage webhooks, rules, and events.
106+
/// Create and manage webhooks that listen to Codat&apos;s events.
86107
/// </summary>
87108
public IWebhooks Webhooks { get; }
88109
}
89-
110+
90111
public class SDKConfig
91112
{
92-
public static string[] ServerList = new string[]
93-
{
113+
/// <summary>
114+
/// List of server URLs available to the SDK.
115+
/// </summary>
116+
public static readonly string[] ServerList = {
94117
"https://api.codat.io",
95118
};
96-
/// Contains the list of servers available to the SDK
119+
97120
public string serverUrl = "";
98121
public int serverIndex = 0;
99122

@@ -115,26 +138,44 @@ public string GetTemplatedServerDetails()
115138
/// <br/>
116139
/// These end points cover creating and managing your companies, data connections, and integrations.<br/>
117140
/// <br/>
118-
/// <a href="https://docs.codat.io/core-concepts/companies">Read about the building blocks of Codat...</a><br/>
141+
/// <a href="https://docs.codat.io/core-concepts/companies">Read about the building blocks of Codat...</a> | <a href="https://github.com/codatio/oas">See our OpenAPI spec</a> <br/>
119142
/// <br/>
120-
/// <a href="https://github.com/codatio/oas">See our OpenAPI spec</a>
143+
/// ---<br/>
144+
/// &lt;!-- Start Codat Tags Table --&gt;<br/>
145+
/// ## Endpoints<br/>
146+
/// <br/>
147+
/// | Endpoints | Description |<br/>
148+
/// | :- |:- |<br/>
149+
/// | Companies | Create and manage your SMB users&apos; companies. |<br/>
150+
/// | Connections | Create new and manage existing data connections for a company. |<br/>
151+
/// | Connection management | Configure connection management UI and retrieve access tokens for authentication. |<br/>
152+
/// | Groups | Define and manage sets of companies based on a chosen characteristic. |<br/>
153+
/// | Webhooks | Create and manage webhooks that listen to Codat&apos;s events. |<br/>
154+
/// | Integrations | Get a list of integrations supported by Codat and their logos. |<br/>
155+
/// | Refresh data | Initiate data refreshes, view pull status and history. |<br/>
156+
/// | Settings | Manage company profile configuration, sync settings, and API keys. |<br/>
157+
/// | Push data | Initiate and monitor Create, Update, and Delete operations. |<br/>
158+
/// | Supplemental data | Configure and pull additional data you can include in Codat&apos;s standard data types. |<br/>
159+
/// | Custom data type | Configure and pull additional data types that are not included in Codat&apos;s standardized data model. |<br/>
160+
/// &lt;!-- End Codat Tags Table --&gt;
121161
/// </remarks>
122162
/// </summary>
123163
public class CodatPlatform: ICodatPlatform
124164
{
125165
public SDKConfig SDKConfiguration { get; private set; }
126166

127167
private const string _language = "csharp";
128-
private const string _sdkVersion = "3.5.0";
129-
private const string _sdkGenVersion = "2.277.0";
168+
private const string _sdkVersion = "3.6.0";
169+
private const string _sdkGenVersion = "2.314.0";
130170
private const string _openapiDocVersion = "3.0.0";
131-
private const string _userAgent = "speakeasy-sdk/csharp 3.5.0 2.277.0 3.0.0 Codat.Platform";
171+
private const string _userAgent = "speakeasy-sdk/csharp 3.6.0 2.314.0 3.0.0 Codat.Platform";
132172
private string _serverUrl = "";
133173
private int _serverIndex = 0;
134174
private ISpeakeasyHttpClient _defaultClient;
135175
private Func<Security>? _securitySource;
136176
public ISettings Settings { get; private set; }
137177
public ICompanies Companies { get; private set; }
178+
public IConnectionManagement ConnectionManagement { get; private set; }
138179
public IConnections Connections { get; private set; }
139180
public ICustomDataType CustomDataType { get; private set; }
140181
public IPushData PushData { get; private set; }
@@ -148,6 +189,10 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
148189
{
149190
if (serverIndex != null)
150191
{
192+
if (serverIndex.Value < 0 || serverIndex.Value >= SDKConfig.ServerList.Length)
193+
{
194+
throw new Exception($"Invalid server index {serverIndex.Value}");
195+
}
151196
_serverIndex = serverIndex.Value;
152197
}
153198

@@ -183,6 +228,7 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
183228

184229
Settings = new Settings(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
185230
Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
231+
ConnectionManagement = new ConnectionManagement(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
186232
Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
187233
CustomDataType = new CustomDataType(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
188234
PushData = new PushData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);

0 commit comments

Comments
 (0)