Skip to content

Commit

Permalink
Automated update by SDK Generator version:2.4.1 commit:b8d7057
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 11, 2024
1 parent 3adf0cd commit 210e52c
Show file tree
Hide file tree
Showing 1,324 changed files with 2,199 additions and 1,321 deletions.
6 changes: 6 additions & 0 deletions src/gen/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ docs/UpdateWebhookRequest.md
docs/UpdateWebhookResponse.md
docs/UploadSession.md
docs/User.md
docs/ValidateConnectionStateResponse.md
docs/ValidateConnectionStateResponseData.md
docs/VaultApi.md
docs/VaultEventType.md
docs/VirtualWebhooks.md
Expand Down Expand Up @@ -1295,6 +1297,8 @@ src/Apideck.Test/Model/UpdateWebhookRequestTests.cs
src/Apideck.Test/Model/UpdateWebhookResponseTests.cs
src/Apideck.Test/Model/UploadSessionTests.cs
src/Apideck.Test/Model/UserTests.cs
src/Apideck.Test/Model/ValidateConnectionStateResponseDataTests.cs
src/Apideck.Test/Model/ValidateConnectionStateResponseTests.cs
src/Apideck.Test/Model/VaultEventTypeTests.cs
src/Apideck.Test/Model/VirtualWebhooksTests.cs
src/Apideck.Test/Model/WalletDetailsTests.cs
Expand Down Expand Up @@ -1962,6 +1966,8 @@ src/Apideck/Model/UpdateWebhookRequest.cs
src/Apideck/Model/UpdateWebhookResponse.cs
src/Apideck/Model/UploadSession.cs
src/Apideck/Model/User.cs
src/Apideck/Model/ValidateConnectionStateResponse.cs
src/Apideck/Model/ValidateConnectionStateResponseData.cs
src/Apideck/Model/VaultEventType.cs
src/Apideck/Model/VirtualWebhooks.cs
src/Apideck/Model/WalletDetails.cs
Expand Down
10 changes: 5 additions & 5 deletions src/gen/Apideck.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{4329A181-9F89-45FB-AA3E-CB4E7C845875}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{4BF62DFC-3E01-4925-AF05-29F376ED33EB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck.Test", "src\Apideck.Test\Apideck.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4329A181-9F89-45FB-AA3E-CB4E7C845875}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4329A181-9F89-45FB-AA3E-CB4E7C845875}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4329A181-9F89-45FB-AA3E-CB4E7C845875}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4329A181-9F89-45FB-AA3E-CB4E7C845875}.Release|Any CPU.Build.0 = Release|Any CPU
{4BF62DFC-3E01-4925-AF05-29F376ED33EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4BF62DFC-3E01-4925-AF05-29F376ED33EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4BF62DFC-3E01-4925-AF05-29F376ED33EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4BF62DFC-3E01-4925-AF05-29F376ED33EB}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
12 changes: 12 additions & 0 deletions src/gen/docs/ValidateConnectionStateResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Apideck.Model.ValidateConnectionStateResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StatusCode** | **int** | HTTP Response Status Code |
**Status** | **string** | HTTP Response Status |
**Data** | [**ValidateConnectionStateResponseData**](ValidateConnectionStateResponseData.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions src/gen/docs/ValidateConnectionStateResponseData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Apideck.Model.ValidateConnectionStateResponseData

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | The unique identifier of the connection. | [optional] [readonly]
**State** | **ConnectionState** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

91 changes: 91 additions & 0 deletions src/gen/docs/VaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Method | HTTP request | Description
[**CustomFieldsAll**](VaultApi.md#customfieldsall) | **GET** /vault/connections/{unified_api}/{service_id}/{resource}/custom-fields | Get resource custom fields
[**LogsAll**](VaultApi.md#logsall) | **GET** /vault/logs | Get all consumer request logs
[**SessionsCreate**](VaultApi.md#sessionscreate) | **POST** /vault/sessions | Create Session
[**ValidateConnectionState**](VaultApi.md#validateconnectionstate) | **POST** /vault/connections/{unified_api}/{service_id}/validate | Validate Connection State


<a name="connectionsettingsall"></a>
Expand Down Expand Up @@ -1518,3 +1519,93 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

<a name="validateconnectionstate"></a>
# **ValidateConnectionState**
> ValidateConnectionStateResponse ValidateConnectionState (string serviceId, string unifiedApi, string consumerId = null, string appId = null, Object body = null)
Validate Connection State

This endpoint validates the current state of a given connection. This will perform different checks based on the connection auth type. For basic and apiKey auth types, the presence of required fields is checked. For connectors that implement OAuth2, this operation forces the refresh flow for an access token regardless of its expiry. Note: - Do not include any credentials in the request body. This operation does not persist changes, but only triggers the validation of connection state. - If a refresh token flow was performed and successful, the new access token will then be used for subsequent API requests.

### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Apideck.Api;
using Apideck.Client;
using Apideck.Model;

namespace Example
{
public class ValidateConnectionStateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://unify.apideck.com";
// Configure API key authorization: apiKey
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new VaultApi(config);
var serviceId = pipedrive; // string | Service ID of the resource to return
var unifiedApi = crm; // string | Unified API
var consumerId = "consumerId_example"; // string | ID of the consumer which you want to get or push data from (optional)
var appId = dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX; // string | The ID of your Unify application (optional)
var body = null; // Object | (optional)
try
{
// Validate Connection State
ValidateConnectionStateResponse result = apiInstance.ValidateConnectionState(serviceId, unifiedApi, consumerId, appId, body);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VaultApi.ValidateConnectionState: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**serviceId** | **string**| Service ID of the resource to return |
**unifiedApi** | **string**| Unified API |
**consumerId** | **string**| ID of the consumer which you want to get or push data from | [optional]
**appId** | **string**| The ID of your Unify application | [optional]
**body** | **Object**| | [optional]

### Return type

[**ValidateConnectionStateResponse**](ValidateConnectionStateResponse.md)

### Authorization

[apiKey](../README.md#apiKey)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Connection access token refreshed | - |
| **400** | Bad Request | - |
| **401** | Unauthorized | - |
| **402** | Payment Required | - |
| **404** | The specified resource was not found | - |
| **422** | Unprocessable | - |
| **0** | Unexpected error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/AccountingApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/AtsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/ConnectorApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/CrmApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/EcommerceApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/FileStorageApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/HrisApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/IssueTrackingApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/LeadApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/PosApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/SmsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
18 changes: 17 additions & 1 deletion src/gen/src/Apideck.Test/Api/VaultApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down Expand Up @@ -307,5 +307,21 @@ public void SessionsCreateTest()
//var response = instance.SessionsCreate(consumerId, appId, session);
//Assert.IsType<CreateSessionResponse>(response);
}

/// <summary>
/// Test ValidateConnectionState
/// </summary>
[Fact]
public void ValidateConnectionStateTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string serviceId = null;
//string unifiedApi = null;
//string consumerId = null;
//string appId = null;
//Object body = null;
//var response = instance.ValidateConnectionState(serviceId, unifiedApi, consumerId, appId, body);
//Assert.IsType<ValidateConnectionStateResponse>(response);
}
}
}
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/WebhookApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/AccountingEventTypeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/AccountingLocationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivitiesFilterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivitiesSortTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivityAttendeeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.6.2
* The version of the OpenAPI document: 10.6.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Loading

0 comments on commit 210e52c

Please sign in to comment.