Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.274.1 (#262)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Apr 26, 2024
1 parent 31db77a commit 25ab079
Show file tree
Hide file tree
Showing 308 changed files with 4,624 additions and 2,438 deletions.
463 changes: 245 additions & 218 deletions platform/.speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/CodatPlatform.sln → platform/Codat.Platform.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

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

Global
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Platform</PackageId>
<Version>3.5.0</Version>
<Version>3.6.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#nullable enable
namespace Codat.Platform
{
using Codat.Platform.Models.Errors;
using Codat.Platform.Models.Shared;
using Codat.Platform.Utils;
using Newtonsoft.Json;
Expand All @@ -18,8 +19,6 @@ namespace Codat.Platform
using System.Threading.Tasks;
using System;



/// <summary>
/// Platform API: Platform API
///
Expand All @@ -28,72 +27,96 @@ namespace Codat.Platform
/// <br/>
/// These end points cover creating and managing your companies, data connections, and integrations.<br/>
/// <br/>
/// <a href="https://docs.codat.io/core-concepts/companies">Read about the building blocks of Codat...</a><br/>
/// <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/>
/// <br/>
/// <a href="https://github.com/codatio/oas">See our OpenAPI spec</a>
/// ---<br/>
/// &lt;!-- Start Codat Tags Table --&gt;<br/>
/// ## Endpoints<br/>
/// <br/>
/// | Endpoints | Description |<br/>
/// | :- |:- |<br/>
/// | Companies | Create and manage your SMB users&apos; companies. |<br/>
/// | Connections | Create new and manage existing data connections for a company. |<br/>
/// | Connection management | Configure connection management UI and retrieve access tokens for authentication. |<br/>
/// | Groups | Define and manage sets of companies based on a chosen characteristic. |<br/>
/// | Webhooks | Create and manage webhooks that listen to Codat&apos;s events. |<br/>
/// | Integrations | Get a list of integrations supported by Codat and their logos. |<br/>
/// | Refresh data | Initiate data refreshes, view pull status and history. |<br/>
/// | Settings | Manage company profile configuration, sync settings, and API keys. |<br/>
/// | Push data | Initiate and monitor Create, Update, and Delete operations. |<br/>
/// | Supplemental data | Configure and pull additional data you can include in Codat&apos;s standard data types. |<br/>
/// | Custom data type | Configure and pull additional data types that are not included in Codat&apos;s standardized data model. |<br/>
/// &lt;!-- End Codat Tags Table --&gt;
/// </remarks>
/// </summary>
public interface ICodatPlatform
{

/// <summary>
/// Manage your Codat instance.
/// Manage company profile configuration, sync settings, and API keys.
/// </summary>
public ISettings Settings { get; }

/// <summary>
/// Create and manage your Codat companies.
/// Create and manage your SMB users&apos; companies.
/// </summary>
public ICompanies Companies { get; }

/// <summary>
/// Manage your companies&apos; data connections.
/// Configure connection management UI and retrieve access tokens for authentication.
/// </summary>
public IConnectionManagement ConnectionManagement { get; }

/// <summary>
/// Create new and manage existing data connections for a company.
/// </summary>
public IConnections Connections { get; }

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

/// <summary>
/// View push options and get push statuses.
/// Initiate and monitor Create, Update, and Delete operations.
/// </summary>
public IPushData PushData { get; }

/// <summary>
/// Asynchronously retrieve data from an integration to refresh data in Codat.
/// Initiate data refreshes, view pull status and history.
/// </summary>
public IRefreshData RefreshData { get; }

/// <summary>
/// Create groups and link them to your Codat companies.
/// Define and manage sets of companies based on a chosen characteristic.
/// </summary>
public IGroups Groups { get; }

/// <summary>
/// View and manage your available integrations in Codat.
/// Get a list of integrations supported by Codat and their logos.
/// </summary>
public IIntegrations Integrations { get; }

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

/// <summary>
/// Manage webhooks, rules, and events.
/// Create and manage webhooks that listen to Codat&apos;s events.
/// </summary>
public IWebhooks Webhooks { get; }
}

public class SDKConfig
{
public static string[] ServerList = new string[]
{
/// <summary>
/// List of server URLs available to the SDK.
/// </summary>
public static readonly string[] ServerList = {
"https://api.codat.io",
};
/// Contains the list of servers available to the SDK

public string serverUrl = "";
public int serverIndex = 0;

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

private const string _language = "csharp";
private const string _sdkVersion = "3.5.0";
private const string _sdkGenVersion = "2.277.0";
private const string _sdkVersion = "3.6.0";
private const string _sdkGenVersion = "2.314.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 3.5.0 2.277.0 3.0.0 Codat.Platform";
private const string _userAgent = "speakeasy-sdk/csharp 3.6.0 2.314.0 3.0.0 Codat.Platform";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _defaultClient;
private Func<Security>? _securitySource;
public ISettings Settings { get; private set; }
public ICompanies Companies { get; private set; }
public IConnectionManagement ConnectionManagement { get; private set; }
public IConnections Connections { get; private set; }
public ICustomDataType CustomDataType { get; private set; }
public IPushData PushData { get; private set; }
Expand All @@ -148,6 +189,10 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
{
if (serverIndex != null)
{
if (serverIndex.Value < 0 || serverIndex.Value >= SDKConfig.ServerList.Length)
{
throw new Exception($"Invalid server index {serverIndex.Value}");
}
_serverIndex = serverIndex.Value;
}

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

Settings = new Settings(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
ConnectionManagement = new ConnectionManagement(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
CustomDataType = new CustomDataType(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
PushData = new PushData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Expand Down
Loading

0 comments on commit 25ab079

Please sign in to comment.