Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated dotnet Released Package Version #1728

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion connect/config-csharp.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
additionalProperties:
# https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/csharp.md
packageVersion: 0.0.8
packageVersion: 0.0.9
packageName: Trinsic.Connect
packageTitle: Trinsic Connect SDK
packageCompany: trinsic.id
Expand Down
2 changes: 1 addition & 1 deletion connect/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v1
- SDK version: 0.0.8
- SDK version: 0.0.9
- Generator version: 7.8.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

Expand Down
1 change: 1 addition & 0 deletions connect/dotnet/src/Trinsic.Connect/Api/AttachmentsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Trinsic.Connect.Api;


/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions connect/dotnet/src/Trinsic.Connect/Api/NetworkApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace Trinsic.Connect.Api;


/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions connect/dotnet/src/Trinsic.Connect/Api/SessionsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace Trinsic.Connect.Api;


/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion connect/dotnet/src/Trinsic.Connect/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ private HttpRequestMessage NewRequest(
}
}
}

_ = new List<Tuple<HttpContent, string, string>>();

string contentType = null;
Expand Down
26 changes: 19 additions & 7 deletions connect/dotnet/src/Trinsic.Connect/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "0.0.8";
public const string Version = "0.0.9";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -115,7 +115,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/0.0.8/csharp");
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/0.0.9/csharp");
BasePath = "https://connect.trinsic.id";
DefaultHeaders = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -362,7 +362,10 @@ public virtual string DateTimeFormat
public virtual IDictionary<string, string> ApiKeyPrefix
{
get => _apiKeyPrefix;
set => _apiKeyPrefix = value ?? throw new InvalidOperationException("ApiKeyPrefix collection may not be null.");
set
{
_apiKeyPrefix = value ?? throw new InvalidOperationException("ApiKeyPrefix collection may not be null.");
}
}

/// <summary>
Expand All @@ -372,7 +375,10 @@ public virtual IDictionary<string, string> ApiKeyPrefix
public virtual IDictionary<string, string> ApiKey
{
get => _apiKey;
set => _apiKey = value ?? throw new InvalidOperationException("ApiKey collection may not be null.");
set
{
_apiKey = value ?? throw new InvalidOperationException("ApiKey collection may not be null.");
}
}

/// <summary>
Expand All @@ -382,7 +388,10 @@ public virtual IDictionary<string, string> ApiKey
public virtual IList<IReadOnlyDictionary<string, object>> Servers
{
get => _servers;
set => _servers = value ?? throw new InvalidOperationException("Servers may not be null.");
set
{
_servers = value ?? throw new InvalidOperationException("Servers may not be null.");
}
}

/// <summary>
Expand All @@ -392,7 +401,10 @@ public virtual IList<IReadOnlyDictionary<string, object>> Servers
public virtual IReadOnlyDictionary<string, List<IReadOnlyDictionary<string, object>>> OperationServers
{
get => _operationServers;
set => _operationServers = value ?? throw new InvalidOperationException("Operation servers may not be null.");
set
{
_operationServers = value ?? throw new InvalidOperationException("Operation servers may not be null.");
}
}

/// <summary>
Expand Down Expand Up @@ -515,7 +527,7 @@ public static string ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: v1\n";
report += " SDK Package Version: 0.0.8\n";
report += " SDK Package Version: 0.0.9\n";

return report;
}
Expand Down
1 change: 1 addition & 0 deletions connect/dotnet/src/Trinsic.Connect/Client/FileParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Trinsic.Connect.Client;


/// <summary>
/// Represents a File passed to the API as a Parameter, allows using different backends for files
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using System.Collections.Generic;
using System.Net;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

Expand Down
37 changes: 23 additions & 14 deletions connect/dotnet/src/Trinsic.Connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v1
- SDK version: 0.0.8
- SDK version: 0.0.9
- Generator version: 7.8.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

Expand Down Expand Up @@ -112,17 +112,17 @@ namespace Example
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SessionsApi(httpClient, config, httpClientHandler);
var sessionId = "sessionId_example"; // string |
var apiInstance = new AttachmentsApi(httpClient, config, httpClientHandler);
var attachmentAccessKey = "attachmentAccessKey_example"; // string? | (optional)

try
{
CancelSessionResponse result = apiInstance.CancelSession(sessionId);
Debug.WriteLine(result);
// Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the linked resource. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant.
apiInstance.GetAttachment(attachmentAccessKey);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SessionsApi.CancelSession: " + e.Message );
Debug.Print("Exception when calling AttachmentsApi.GetAttachment: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
Expand All @@ -139,37 +139,46 @@ All URIs are relative to *https://connect.trinsic.id*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*SessionsApi* | [**CancelSession**](docs/SessionsApi.md#cancelsession) | **POST** /api/v1/sessions/{sessionId}/cancel |
*SessionsApi* | [**CreateSession**](docs/SessionsApi.md#createsession) | **POST** /api/v1/sessions |
*SessionsApi* | [**GetSession**](docs/SessionsApi.md#getsession) | **GET** /api/v1/sessions/{sessionId} |
*SessionsApi* | [**ListSessions**](docs/SessionsApi.md#listsessions) | **GET** /api/v1/sessions |
*SessionsApi* | [**RedactSession**](docs/SessionsApi.md#redactsession) | **POST** /api/v1/sessions/{sessionId}/redact |
*AttachmentsApi* | [**GetAttachment**](docs/AttachmentsApi.md#getattachment) | **GET** /api/v1/attachments/fetch | Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the linked resource. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant.
*NetworkApi* | [**IdentityLookup**](docs/NetworkApi.md#identitylookup) | **GET** /api/v1/network/identities/{phoneNumber} | Query the availability of an identity in the Trinsic Network by phone number
*NetworkApi* | [**ListProviders**](docs/NetworkApi.md#listproviders) | **GET** /api/v1/network/providers | List all identity providers available for use
*SessionsApi* | [**CancelSession**](docs/SessionsApi.md#cancelsession) | **POST** /api/v1/sessions/{sessionId}/cancel | Cancel a Session by its ID
*SessionsApi* | [**CreateSession**](docs/SessionsApi.md#createsession) | **POST** /api/v1/sessions | Create a Session to verify a user's identity
*SessionsApi* | [**ExchangeResultsKey**](docs/SessionsApi.md#exchangeresultskey) | **POST** /api/v1/sessions/{sessionId}/results | Exchange a Results Access Key for Identity Data
*SessionsApi* | [**GetSession**](docs/SessionsApi.md#getsession) | **GET** /api/v1/sessions/{sessionId} | Get a Session by its ID
*SessionsApi* | [**ListSessions**](docs/SessionsApi.md#listsessions) | **GET** /api/v1/sessions | List Sessions created by your account
*SessionsApi* | [**RedactSession**](docs/SessionsApi.md#redactsession) | **POST** /api/v1/sessions/{sessionId}/redact | Redact a Session, removing all identity data from Trinsic's servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.


<a id="documentation-for-models"></a>
## Documentation for Models

- [Model.Address](docs/Address.md)
- [Model.Attachments](docs/Attachments.md)
- [Model.CancelSessionResponse](docs/CancelSessionResponse.md)
- [Model.CreateSessionRequest](docs/CreateSessionRequest.md)
- [Model.CreateSessionResponse](docs/CreateSessionResponse.md)
- [Model.DisclosedFields](docs/DisclosedFields.md)
- [Model.DisclosedFieldsRequest](docs/DisclosedFieldsRequest.md)
- [Model.DocumentData](docs/DocumentData.md)
- [Model.ExchangeResultsKeyRequest](docs/ExchangeResultsKeyRequest.md)
- [Model.ExchangeResultsKeyResponse](docs/ExchangeResultsKeyResponse.md)
- [Model.FailureMessage](docs/FailureMessage.md)
- [Model.GetSessionResponseV1](docs/GetSessionResponseV1.md)
- [Model.IDVSessionState](docs/IDVSessionState.md)
- [Model.GetSessionResponse](docs/GetSessionResponse.md)
- [Model.IdentityData](docs/IdentityData.md)
- [Model.IdentityLookupResponse](docs/IdentityLookupResponse.md)
- [Model.Integration](docs/Integration.md)
- [Model.ListProvidersResponse](docs/ListProvidersResponse.md)
- [Model.ListSessionsResponse](docs/ListSessionsResponse.md)
- [Model.OrderDirection](docs/OrderDirection.md)
- [Model.PersonData](docs/PersonData.md)
- [Model.Session](docs/Session.md)
- [Model.SessionFailCode](docs/SessionFailCode.md)
- [Model.SessionOrdering](docs/SessionOrdering.md)
- [Model.SessionState](docs/SessionState.md)
- [Model.ValidationResult](docs/ValidationResult.md)
- [Model.Verification](docs/Verification.md)
- [Model.VerificationFailCode](docs/VerificationFailCode.md)
- [Model.VerificationState](docs/VerificationState.md)


<a id="documentation-for-authorization"></a>
Expand Down
2 changes: 1 addition & 1 deletion connect/dotnet/src/Trinsic.Connect/Trinsic.Connect.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>Trinsic Connect SDK</Description>
<Copyright>No Copyright</Copyright>
<RootNamespace>Trinsic.Connect</RootNamespace>
<Version>0.0.8</Version>
<Version>0.0.9</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Trinsic.Connect.xml</DocumentationFile>
<RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down