├── .gitignore ├── .openapi-generator-ignore ├── .openapi-generator ├── FILES └── VERSION ├── Kameleo.LocalApiClient.sln ├── LICENSE.txt ├── README.md ├── src └── Kameleo.LocalApiClient │ ├── Api │ ├── CookieApi.cs │ ├── FingerprintApi.cs │ ├── FolderApi.cs │ ├── GeneralApi.cs │ ├── KernelApi.cs │ └── ProfileApi.cs │ ├── Client │ ├── ApiClient.cs │ ├── ApiException.cs │ ├── ApiResponse.cs │ ├── ClientUtils.cs │ ├── Configuration.cs │ ├── ExceptionFactory.cs │ ├── GlobalConfiguration.cs │ ├── HttpMethod.cs │ ├── IApiAccessor.cs │ ├── IAsynchronousClient.cs │ ├── IReadableConfiguration.cs │ ├── ISynchronousClient.cs │ ├── Multimap.cs │ ├── OpenAPIDateConverter.cs │ ├── RequestOptions.cs │ └── RetryConfiguration.cs │ ├── Customization │ └── CookieRequest.cs │ ├── IKameleoLocalApiClient.cs │ ├── Kameleo.LocalApiClient.csproj │ ├── KameleoLocalApiClient.cs │ └── Model │ ├── AbstractOpenAPISchema.cs │ ├── AddProfileToFolderRequest.cs │ ├── AudioSpoofingType.cs │ ├── Browser.cs │ ├── BrowserCookie.cs │ ├── BrowserSettings.cs │ ├── CanvasSpoofingType.cs │ ├── CookieRequest.cs │ ├── CreateFolderRequest.cs │ ├── CreateProfileRequest.cs │ ├── DeleteFolderResponse.cs │ ├── Device.cs │ ├── DeviceMemoryChoice.cs │ ├── DeviceMemorySpoofingType.cs │ ├── ExportProfileRequest.cs │ ├── Fingerprint.cs │ ├── FingerprintPreview.cs │ ├── FolderResponse.cs │ ├── FontSpoofingType.cs │ ├── GeolocationChoice.cs │ ├── GeolocationSpoofingOptions.cs │ ├── GeolocationSpoofingType.cs │ ├── GroupRole.cs │ ├── HardwareConcurrencyChoice.cs │ ├── HardwareConcurrencySpoofingType.cs │ ├── ImportProfileRequest.cs │ ├── KernelResponse.cs │ ├── ListFoldersResponse.cs │ ├── Os.cs │ ├── PasswordManagerType.cs │ ├── Preference.cs │ ├── ProblemDetails.cs │ ├── ProblemResponse.cs │ ├── ProfileLifetimeState.cs │ ├── ProfilePreview.cs │ ├── ProfileResponse.cs │ ├── ProfileStorageLocation.cs │ ├── ProxyChoice.cs │ ├── ProxyConnectionType.cs │ ├── QuotaStatistics.cs │ ├── RunningProfilesStatistics.cs │ ├── ScreenChoice.cs │ ├── ScreenSpoofingType.cs │ ├── Server.cs │ ├── ShareAccess.cs │ ├── ShareAccessRequest.cs │ ├── ShareGroupRequest.cs │ ├── SharingOptionsResponse.cs │ ├── StatusResponse.cs │ ├── TimezoneChoice.cs │ ├── TimezoneSpoofingType.cs │ ├── UpdateFolderRequest.cs │ ├── UpdateProfileRequest.cs │ ├── User.cs │ ├── UserInfoResponse.cs │ ├── ValidationProblemDetails.cs │ ├── WebRtcChoice.cs │ ├── WebRtcSpoofingOptions.cs │ ├── WebRtcSpoofingType.cs │ ├── WebglMeta.cs │ ├── WebglMetaChoice.cs │ ├── WebglMetaSpoofingOptions.cs │ ├── WebglMetaSpoofingType.cs │ └── WebglSpoofingType.cs └── template ├── Configuration.mustache └── netcore_project.mustache /.gitignore: -------------------------------------------------------------------------------- 1 | *.[Cc]ache 2 | *.csproj.user 3 | *.[Rr]e[Ss]harper* 4 | *.sln.cache 5 | *.suo 6 | *.user 7 | *.orig 8 | *.pidb 9 | *.ide 10 | *.userprefs 11 | *.xml 12 | .DS_Store 13 | deploy/ 14 | dist/ 15 | [Bb]in/ 16 | [Dd]ebug/ 17 | [Oo]bj/ 18 | [Rr]elease/ 19 | _[Rr]e[Ss]harper*/ 20 | *.docstates 21 | *.tss 22 | *.ncrunchproject 23 | *.ncrunchsolution 24 | *.dotCover 25 | src/_NCrunch_Nancy/ 26 | Thumbs.db 27 | .idea 28 | *.GhostDoc.xml 29 | Gemfile.lock 30 | .vs/ 31 | packages/ 32 | .vscode/ 33 | .dotnet/ 34 | TestResults/ 35 | node_modules/ 36 | .env 37 | 38 | # Build related 39 | tools/** 40 | !tools/packages.config 41 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | .gitignore 5 | appveyor.yml 6 | api/openapi.yaml 7 | docs 8 | docs/**/* 9 | *.sh 10 | *.md 11 | src/**/*.md -------------------------------------------------------------------------------- /.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | Kameleo.LocalApiClient.sln 2 | src/Kameleo.LocalApiClient/Api/CookieApi.cs 3 | src/Kameleo.LocalApiClient/Api/FingerprintApi.cs 4 | src/Kameleo.LocalApiClient/Api/FolderApi.cs 5 | src/Kameleo.LocalApiClient/Api/GeneralApi.cs 6 | src/Kameleo.LocalApiClient/Api/KernelApi.cs 7 | src/Kameleo.LocalApiClient/Api/ProfileApi.cs 8 | src/Kameleo.LocalApiClient/Client/ApiClient.cs 9 | src/Kameleo.LocalApiClient/Client/ApiException.cs 10 | src/Kameleo.LocalApiClient/Client/ApiResponse.cs 11 | src/Kameleo.LocalApiClient/Client/ClientUtils.cs 12 | src/Kameleo.LocalApiClient/Client/Configuration.cs 13 | src/Kameleo.LocalApiClient/Client/ExceptionFactory.cs 14 | src/Kameleo.LocalApiClient/Client/GlobalConfiguration.cs 15 | src/Kameleo.LocalApiClient/Client/HttpMethod.cs 16 | src/Kameleo.LocalApiClient/Client/IApiAccessor.cs 17 | src/Kameleo.LocalApiClient/Client/IAsynchronousClient.cs 18 | src/Kameleo.LocalApiClient/Client/IReadableConfiguration.cs 19 | src/Kameleo.LocalApiClient/Client/ISynchronousClient.cs 20 | src/Kameleo.LocalApiClient/Client/Multimap.cs 21 | src/Kameleo.LocalApiClient/Client/OpenAPIDateConverter.cs 22 | src/Kameleo.LocalApiClient/Client/RequestOptions.cs 23 | src/Kameleo.LocalApiClient/Client/RetryConfiguration.cs 24 | src/Kameleo.LocalApiClient/Kameleo.LocalApiClient.csproj 25 | src/Kameleo.LocalApiClient/Model/AbstractOpenAPISchema.cs 26 | src/Kameleo.LocalApiClient/Model/AddProfileToFolderRequest.cs 27 | src/Kameleo.LocalApiClient/Model/AudioSpoofingType.cs 28 | src/Kameleo.LocalApiClient/Model/Browser.cs 29 | src/Kameleo.LocalApiClient/Model/BrowserCookie.cs 30 | src/Kameleo.LocalApiClient/Model/BrowserSettings.cs 31 | src/Kameleo.LocalApiClient/Model/CanvasSpoofingType.cs 32 | src/Kameleo.LocalApiClient/Model/CookieRequest.cs 33 | src/Kameleo.LocalApiClient/Model/CreateFolderRequest.cs 34 | src/Kameleo.LocalApiClient/Model/CreateProfileRequest.cs 35 | src/Kameleo.LocalApiClient/Model/DeleteFolderResponse.cs 36 | src/Kameleo.LocalApiClient/Model/Device.cs 37 | src/Kameleo.LocalApiClient/Model/DeviceMemoryChoice.cs 38 | src/Kameleo.LocalApiClient/Model/DeviceMemorySpoofingType.cs 39 | src/Kameleo.LocalApiClient/Model/ExportProfileRequest.cs 40 | src/Kameleo.LocalApiClient/Model/Fingerprint.cs 41 | src/Kameleo.LocalApiClient/Model/FingerprintPreview.cs 42 | src/Kameleo.LocalApiClient/Model/FolderResponse.cs 43 | src/Kameleo.LocalApiClient/Model/FontSpoofingType.cs 44 | src/Kameleo.LocalApiClient/Model/GeolocationChoice.cs 45 | src/Kameleo.LocalApiClient/Model/GeolocationSpoofingOptions.cs 46 | src/Kameleo.LocalApiClient/Model/GeolocationSpoofingType.cs 47 | src/Kameleo.LocalApiClient/Model/GroupRole.cs 48 | src/Kameleo.LocalApiClient/Model/HardwareConcurrencyChoice.cs 49 | src/Kameleo.LocalApiClient/Model/HardwareConcurrencySpoofingType.cs 50 | src/Kameleo.LocalApiClient/Model/ImportProfileRequest.cs 51 | src/Kameleo.LocalApiClient/Model/KernelResponse.cs 52 | src/Kameleo.LocalApiClient/Model/ListFoldersResponse.cs 53 | src/Kameleo.LocalApiClient/Model/Os.cs 54 | src/Kameleo.LocalApiClient/Model/PasswordManagerType.cs 55 | src/Kameleo.LocalApiClient/Model/Preference.cs 56 | src/Kameleo.LocalApiClient/Model/ProblemDetails.cs 57 | src/Kameleo.LocalApiClient/Model/ProblemResponse.cs 58 | src/Kameleo.LocalApiClient/Model/ProfileLifetimeState.cs 59 | src/Kameleo.LocalApiClient/Model/ProfilePreview.cs 60 | src/Kameleo.LocalApiClient/Model/ProfileResponse.cs 61 | src/Kameleo.LocalApiClient/Model/ProfileStorageLocation.cs 62 | src/Kameleo.LocalApiClient/Model/ProxyChoice.cs 63 | src/Kameleo.LocalApiClient/Model/ProxyConnectionType.cs 64 | src/Kameleo.LocalApiClient/Model/QuotaStatistics.cs 65 | src/Kameleo.LocalApiClient/Model/RunningProfilesStatistics.cs 66 | src/Kameleo.LocalApiClient/Model/ScreenChoice.cs 67 | src/Kameleo.LocalApiClient/Model/ScreenSpoofingType.cs 68 | src/Kameleo.LocalApiClient/Model/Server.cs 69 | src/Kameleo.LocalApiClient/Model/ShareAccess.cs 70 | src/Kameleo.LocalApiClient/Model/ShareAccessRequest.cs 71 | src/Kameleo.LocalApiClient/Model/ShareGroupRequest.cs 72 | src/Kameleo.LocalApiClient/Model/SharingOptionsResponse.cs 73 | src/Kameleo.LocalApiClient/Model/StatusResponse.cs 74 | src/Kameleo.LocalApiClient/Model/TimezoneChoice.cs 75 | src/Kameleo.LocalApiClient/Model/TimezoneSpoofingType.cs 76 | src/Kameleo.LocalApiClient/Model/UpdateFolderRequest.cs 77 | src/Kameleo.LocalApiClient/Model/UpdateProfileRequest.cs 78 | src/Kameleo.LocalApiClient/Model/User.cs 79 | src/Kameleo.LocalApiClient/Model/UserInfoResponse.cs 80 | src/Kameleo.LocalApiClient/Model/ValidationProblemDetails.cs 81 | src/Kameleo.LocalApiClient/Model/WebRtcChoice.cs 82 | src/Kameleo.LocalApiClient/Model/WebRtcSpoofingOptions.cs 83 | src/Kameleo.LocalApiClient/Model/WebRtcSpoofingType.cs 84 | src/Kameleo.LocalApiClient/Model/WebglMeta.cs 85 | src/Kameleo.LocalApiClient/Model/WebglMetaChoice.cs 86 | src/Kameleo.LocalApiClient/Model/WebglMetaSpoofingOptions.cs 87 | src/Kameleo.LocalApiClient/Model/WebglMetaSpoofingType.cs 88 | src/Kameleo.LocalApiClient/Model/WebglSpoofingType.cs 89 | -------------------------------------------------------------------------------- /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 7.11.0 2 | -------------------------------------------------------------------------------- /Kameleo.LocalApiClient.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 14 3 | VisualStudioVersion = 14.0.25420.1 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kameleo.LocalApiClient", "src\Kameleo.LocalApiClient\Kameleo.LocalApiClient.csproj", "{FB099D1F-0BD0-4137-9832-19FF090312D7}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|Any CPU = Debug|Any CPU 10 | Release|Any CPU = Release|Any CPU 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {FB099D1F-0BD0-4137-9832-19FF090312D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 14 | {FB099D1F-0BD0-4137-9832-19FF090312D7}.Debug|Any CPU.Build.0 = Debug|Any CPU 15 | {FB099D1F-0BD0-4137-9832-19FF090312D7}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | {FB099D1F-0BD0-4137-9832-19FF090312D7}.Release|Any CPU.Build.0 = Release|Any CPU 17 | {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2025 Kameleo Team 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/ApiException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | 13 | namespace Kameleo.LocalApiClient.Client 14 | { 15 | /// 16 | /// API Exception 17 | /// 18 | public class ApiException : Exception 19 | { 20 | /// 21 | /// Gets or sets the error code (HTTP status code) 22 | /// 23 | /// The error code (HTTP status code). 24 | public int ErrorCode { get; set; } 25 | 26 | /// 27 | /// Gets or sets the error content (body json object) 28 | /// 29 | /// The error content (Http response body). 30 | public object ErrorContent { get; private set; } 31 | 32 | /// 33 | /// Gets or sets the HTTP headers 34 | /// 35 | /// HTTP headers 36 | public Multimap Headers { get; private set; } 37 | 38 | /// 39 | /// Initializes a new instance of the class. 40 | /// 41 | public ApiException() { } 42 | 43 | /// 44 | /// Initializes a new instance of the class. 45 | /// 46 | /// HTTP status code. 47 | /// Error message. 48 | public ApiException(int errorCode, string message) : base(message) 49 | { 50 | this.ErrorCode = errorCode; 51 | } 52 | 53 | /// 54 | /// Initializes a new instance of the class. 55 | /// 56 | /// HTTP status code. 57 | /// Error message. 58 | /// Error content. 59 | /// HTTP Headers. 60 | public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) 61 | { 62 | this.ErrorCode = errorCode; 63 | this.ErrorContent = errorContent; 64 | this.Headers = headers; 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/ExceptionFactory.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | 13 | namespace Kameleo.LocalApiClient.Client 14 | { 15 | /// 16 | /// A delegate to ExceptionFactory method 17 | /// 18 | /// Method name 19 | /// Response 20 | /// Exceptions 21 | public delegate Exception ExceptionFactory(string methodName, IApiResponse response); 22 | } 23 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/GlobalConfiguration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System.Collections.Generic; 12 | 13 | namespace Kameleo.LocalApiClient.Client 14 | { 15 | /// 16 | /// provides a compile-time extension point for globally configuring 17 | /// API Clients. 18 | /// 19 | /// 20 | /// A customized implementation via partial class may reside in another file and may 21 | /// be excluded from automatic generation via a .openapi-generator-ignore file. 22 | /// 23 | public partial class GlobalConfiguration : Configuration 24 | { 25 | #region Private Members 26 | 27 | private static readonly object GlobalConfigSync = new { }; 28 | private static IReadableConfiguration _globalConfiguration; 29 | 30 | #endregion Private Members 31 | 32 | #region Constructors 33 | 34 | /// 35 | private GlobalConfiguration() 36 | { 37 | } 38 | 39 | /// 40 | public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) 41 | { 42 | } 43 | 44 | static GlobalConfiguration() 45 | { 46 | Instance = new GlobalConfiguration(); 47 | } 48 | 49 | #endregion Constructors 50 | 51 | /// 52 | /// Gets or sets the default Configuration. 53 | /// 54 | /// Configuration. 55 | public static IReadableConfiguration Instance 56 | { 57 | get { return _globalConfiguration; } 58 | set 59 | { 60 | lock (GlobalConfigSync) 61 | { 62 | _globalConfiguration = value; 63 | } 64 | } 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/HttpMethod.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | namespace Kameleo.LocalApiClient.Client 12 | { 13 | /// 14 | /// Http methods supported by swagger 15 | /// 16 | public enum HttpMethod 17 | { 18 | /// HTTP GET request. 19 | Get, 20 | /// HTTP POST request. 21 | Post, 22 | /// HTTP PUT request. 23 | Put, 24 | /// HTTP DELETE request. 25 | Delete, 26 | /// HTTP HEAD request. 27 | Head, 28 | /// HTTP OPTIONS request. 29 | Options, 30 | /// HTTP PATCH request. 31 | Patch 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/IApiAccessor.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | 13 | namespace Kameleo.LocalApiClient.Client 14 | { 15 | /// 16 | /// Represents configuration aspects required to interact with the API endpoints. 17 | /// 18 | public interface IApiAccessor 19 | { 20 | /// 21 | /// Gets or sets the configuration object 22 | /// 23 | /// An instance of the Configuration 24 | IReadableConfiguration Configuration { get; set; } 25 | 26 | /// 27 | /// Gets the base path of the API client. 28 | /// 29 | /// The base path 30 | string GetBasePath(); 31 | 32 | /// 33 | /// Provides a factory method hook for the creation of exceptions. 34 | /// 35 | ExceptionFactory ExceptionFactory { get; set; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/IReadableConfiguration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.Net; 14 | using System.Net.Security; 15 | using System.Security.Cryptography.X509Certificates; 16 | 17 | namespace Kameleo.LocalApiClient.Client 18 | { 19 | /// 20 | /// Represents a readable-only configuration contract. 21 | /// 22 | public interface IReadableConfiguration 23 | { 24 | /// 25 | /// Gets the access token. 26 | /// 27 | /// Access token. 28 | string AccessToken { get; } 29 | 30 | /// 31 | /// Gets the API key. 32 | /// 33 | /// API key. 34 | IDictionary ApiKey { get; } 35 | 36 | /// 37 | /// Gets the API key prefix. 38 | /// 39 | /// API key prefix. 40 | IDictionary ApiKeyPrefix { get; } 41 | 42 | /// 43 | /// Gets the base path. 44 | /// 45 | /// Base path. 46 | string BasePath { get; } 47 | 48 | /// 49 | /// Gets the date time format. 50 | /// 51 | /// Date time format. 52 | string DateTimeFormat { get; } 53 | 54 | /// 55 | /// Gets the default header. 56 | /// 57 | /// Default header. 58 | [Obsolete("Use DefaultHeaders instead.")] 59 | IDictionary DefaultHeader { get; } 60 | 61 | /// 62 | /// Gets the default headers. 63 | /// 64 | /// Default headers. 65 | IDictionary DefaultHeaders { get; } 66 | 67 | /// 68 | /// Gets the temp folder path. 69 | /// 70 | /// Temp folder path. 71 | string TempFolderPath { get; } 72 | 73 | /// 74 | /// Gets the HTTP connection timeout. 75 | /// 76 | /// HTTP connection timeout. 77 | TimeSpan Timeout { get; } 78 | 79 | /// 80 | /// Gets the proxy. 81 | /// 82 | /// Proxy. 83 | WebProxy Proxy { get; } 84 | 85 | /// 86 | /// Gets the user agent. 87 | /// 88 | /// User agent. 89 | string UserAgent { get; } 90 | 91 | /// 92 | /// Gets the username. 93 | /// 94 | /// Username. 95 | string Username { get; } 96 | 97 | /// 98 | /// Gets the password. 99 | /// 100 | /// Password. 101 | string Password { get; } 102 | 103 | /// 104 | /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. 105 | /// 106 | bool UseDefaultCredentials { get; } 107 | 108 | /// 109 | /// Get the servers associated with the operation. 110 | /// 111 | /// Operation servers. 112 | IReadOnlyDictionary>> OperationServers { get; } 113 | 114 | /// 115 | /// Gets the API key with prefix. 116 | /// 117 | /// API key identifier (authentication scheme). 118 | /// API key with prefix. 119 | string GetApiKeyWithPrefix(string apiKeyIdentifier); 120 | 121 | /// 122 | /// Gets the Operation server url at the provided index. 123 | /// 124 | /// Operation server name. 125 | /// Index of the operation server settings. 126 | /// 127 | string GetOperationServerUrl(string operation, int index); 128 | 129 | /// 130 | /// Gets certificate collection to be sent with requests. 131 | /// 132 | /// X509 Certificate collection. 133 | X509CertificateCollection ClientCertificates { get; } 134 | 135 | /// 136 | /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and 137 | /// overriding certificate errors in the scope of a request. 138 | /// 139 | RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/ISynchronousClient.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.IO; 13 | 14 | namespace Kameleo.LocalApiClient.Client 15 | { 16 | /// 17 | /// Contract for Synchronous RESTful API interactions. 18 | /// 19 | /// This interface allows consumers to provide a custom API accessor client. 20 | /// 21 | public interface ISynchronousClient 22 | { 23 | /// 24 | /// Executes a blocking call to some using the GET http verb. 25 | /// 26 | /// The relative path to invoke. 27 | /// The request parameters to pass along to the client. 28 | /// Per-request configurable settings. 29 | /// The return type. 30 | /// The response data, decorated with 31 | ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); 32 | 33 | /// 34 | /// Executes a blocking call to some using the POST http verb. 35 | /// 36 | /// The relative path to invoke. 37 | /// The request parameters to pass along to the client. 38 | /// Per-request configurable settings. 39 | /// The return type. 40 | /// The response data, decorated with 41 | ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); 42 | 43 | /// 44 | /// Executes a blocking call to some using the PUT http verb. 45 | /// 46 | /// The relative path to invoke. 47 | /// The request parameters to pass along to the client. 48 | /// Per-request configurable settings. 49 | /// The return type. 50 | /// The response data, decorated with 51 | ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); 52 | 53 | /// 54 | /// Executes a blocking call to some using the DELETE http verb. 55 | /// 56 | /// The relative path to invoke. 57 | /// The request parameters to pass along to the client. 58 | /// Per-request configurable settings. 59 | /// The return type. 60 | /// The response data, decorated with 61 | ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); 62 | 63 | /// 64 | /// Executes a blocking call to some using the HEAD http verb. 65 | /// 66 | /// The relative path to invoke. 67 | /// The request parameters to pass along to the client. 68 | /// Per-request configurable settings. 69 | /// The return type. 70 | /// The response data, decorated with 71 | ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); 72 | 73 | /// 74 | /// Executes a blocking call to some using the OPTIONS http verb. 75 | /// 76 | /// The relative path to invoke. 77 | /// The request parameters to pass along to the client. 78 | /// Per-request configurable settings. 79 | /// The return type. 80 | /// The response data, decorated with 81 | ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); 82 | 83 | /// 84 | /// Executes a blocking call to some using the PATCH http verb. 85 | /// 86 | /// The relative path to invoke. 87 | /// The request parameters to pass along to the client. 88 | /// Per-request configurable settings. 89 | /// The return type. 90 | /// The response data, decorated with 91 | ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/OpenAPIDateConverter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | using Newtonsoft.Json.Converters; 11 | 12 | namespace Kameleo.LocalApiClient.Client 13 | { 14 | /// 15 | /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 16 | /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types 17 | /// 18 | public class OpenAPIDateConverter : IsoDateTimeConverter 19 | { 20 | /// 21 | /// Initializes a new instance of the class. 22 | /// 23 | public OpenAPIDateConverter() 24 | { 25 | // full-date = date-fullyear "-" date-month "-" date-mday 26 | DateTimeFormat = "yyyy-MM-dd"; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/RequestOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Net; 15 | 16 | namespace Kameleo.LocalApiClient.Client 17 | { 18 | /// 19 | /// A container for generalized request inputs. This type allows consumers to extend the request functionality 20 | /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). 21 | /// 22 | public class RequestOptions 23 | { 24 | /// 25 | /// Parameters to be bound to path parts of the Request's URL 26 | /// 27 | public Dictionary PathParameters { get; set; } 28 | 29 | /// 30 | /// Query parameters to be applied to the request. 31 | /// Keys may have 1 or more values associated. 32 | /// 33 | public Multimap QueryParameters { get; set; } 34 | 35 | /// 36 | /// Header parameters to be applied to the request. 37 | /// Keys may have 1 or more values associated. 38 | /// 39 | public Multimap HeaderParameters { get; set; } 40 | 41 | /// 42 | /// Form parameters to be sent along with the request. 43 | /// 44 | public Dictionary FormParameters { get; set; } 45 | 46 | /// 47 | /// File parameters to be sent along with the request. 48 | /// 49 | public Multimap FileParameters { get; set; } 50 | 51 | /// 52 | /// Cookies to be sent along with the request. 53 | /// 54 | public List Cookies { get; set; } 55 | 56 | /// 57 | /// Operation associated with the request path. 58 | /// 59 | public string Operation { get; set; } 60 | 61 | /// 62 | /// Index associated with the operation. 63 | /// 64 | public int OperationIndex { get; set; } 65 | 66 | /// 67 | /// Any data associated with a request body. 68 | /// 69 | public Object Data { get; set; } 70 | 71 | /// 72 | /// Constructs a new instance of 73 | /// 74 | public RequestOptions() 75 | { 76 | PathParameters = new Dictionary(); 77 | QueryParameters = new Multimap(); 78 | HeaderParameters = new Multimap(); 79 | FormParameters = new Dictionary(); 80 | FileParameters = new Multimap(); 81 | Cookies = new List(); 82 | } 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Client/RetryConfiguration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using Polly; 12 | using RestSharp; 13 | 14 | namespace Kameleo.LocalApiClient.Client 15 | { 16 | /// 17 | /// Configuration class to set the polly retry policies to be applied to the requests. 18 | /// 19 | public static class RetryConfiguration 20 | { 21 | /// 22 | /// Retry policy 23 | /// 24 | public static Policy RetryPolicy { get; set; } 25 | 26 | /// 27 | /// Async retry policy 28 | /// 29 | public static AsyncPolicy AsyncRetryPolicy { get; set; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Customization/CookieRequest.cs: -------------------------------------------------------------------------------- 1 | // ReSharper disable once CheckNamespace 2 | namespace Kameleo.LocalApiClient.Model 3 | { 4 | public partial class CookieRequest 5 | { 6 | public CookieRequest(BrowserCookie cookie) 7 | : this( 8 | cookie.Domain, 9 | cookie.Name, 10 | cookie.Path, 11 | cookie.Value, 12 | cookie.HostOnly, 13 | cookie.HttpOnly, 14 | cookie.Secure, 15 | cookie.SameSite, 16 | cookie.ExpirationDate 17 | ) 18 | { } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/IKameleoLocalApiClient.cs: -------------------------------------------------------------------------------- 1 | using Kameleo.LocalApiClient.Api; 2 | using Kameleo.LocalApiClient.Client; 3 | 4 | namespace Kameleo.LocalApiClient 5 | { 6 | /// 7 | /// Encapsualte access to all the provided APIs by Kameleo.CLI. 8 | /// 9 | public interface IKameleoLocalApiClient 10 | { 11 | /// 12 | /// Configuration of the API client. 13 | /// 14 | IReadableConfiguration Configuration { get; } 15 | 16 | /// 17 | /// Represents a collection of functions to interact with the Fingerprint API endpoints. 18 | /// 19 | IFingerprintApiAsync Fingerprint { get; } 20 | 21 | /// 22 | /// Represents a collection of functions to interact with the Cookie API endpoints. 23 | /// 24 | ICookieApiAsync Cookie { get; } 25 | 26 | /// 27 | /// Represents a collection of functions to interact with the Folder API endpoints. 28 | /// 29 | IFolderApiAsync Folder { get; } 30 | 31 | /// 32 | /// Represents a collection of functions to interact with the General API endpoints. 33 | /// 34 | IGeneralApiAsync General { get; } 35 | 36 | /// 37 | /// Represents a collection of functions to interact with the Profile API endpoints. 38 | /// 39 | IProfileApi Profile { get; } 40 | 41 | /// 42 | /// Represents a collection of functions to interact with the Kernel API endpoints. 43 | /// 44 | IKernelApi Kernel { get; } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Kameleo.LocalApiClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | netstandard2.0 6 | Kameleo.LocalApiClient 7 | Kameleo.LocalApiClient 8 | Library 9 | Kameleo Team 10 | Kameleo 11 | This .NET Standard package provides convenient access to the Local API REST interface of the Kameleo Client. 12 | Kameleo.LocalApiClient 13 | 4.0.0 14 | MIT 15 | https://github.com/kameleo-io/local-api-client-csharp.git 16 | README.md 17 | git 18 | kameleo; stealth browsing platform; anti-detect browser; selenium; webdriver; browser automation; web scraping; puppeteer; playwright; headless; chrome; firefox; chromium; edge 19 | false 20 | 21 | CS0612 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/KameleoLocalApiClient.cs: -------------------------------------------------------------------------------- 1 | using Kameleo.LocalApiClient.Api; 2 | using Kameleo.LocalApiClient.Client; 3 | using System; 4 | 5 | namespace Kameleo.LocalApiClient 6 | { 7 | /// 8 | /// Encapsualte access to all the provided APIs by Kameleo.CLI. 9 | /// 10 | public class KameleoLocalApiClient : IKameleoLocalApiClient 11 | { 12 | private readonly Configuration _configuration; 13 | 14 | /// 15 | public IReadableConfiguration Configuration => _configuration; 16 | 17 | /// 18 | /// Initializes a new instance of the class using the default parameters. 19 | /// 20 | public KameleoLocalApiClient() : this(new Uri("http://localhost:5050")) 21 | { 22 | } 23 | 24 | /// 25 | /// Initializes a new instance of the class providing the base url of tha Kameleo.CLI. 26 | /// 27 | /// Base url of tha Kameleo.CLI 28 | public KameleoLocalApiClient(Uri baseUri) : this(new Configuration { BasePath = baseUri.ToString() }) 29 | { 30 | } 31 | 32 | /// 33 | /// Initializes a new instance of the class using object. 34 | /// 35 | /// 36 | public KameleoLocalApiClient(Configuration configuration) 37 | { 38 | _configuration = configuration; 39 | 40 | Fingerprint = new FingerprintApi(_configuration); 41 | Cookie = new CookieApi(_configuration); 42 | Folder = new FolderApi(_configuration); 43 | General = new GeneralApi(_configuration); 44 | Profile = new ProfileApi(_configuration); 45 | Kernel = new KernelApi(_configuration); 46 | } 47 | 48 | /// 49 | public IFingerprintApiAsync Fingerprint { get; } 50 | 51 | /// 52 | public ICookieApiAsync Cookie { get; } 53 | 54 | /// 55 | public IFolderApiAsync Folder { get; } 56 | 57 | /// 58 | public IGeneralApiAsync General { get; } 59 | 60 | /// 61 | public IProfileApi Profile { get; } 62 | 63 | /// 64 | public IKernelApi Kernel { get; } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/AbstractOpenAPISchema.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using Newtonsoft.Json; 13 | using Newtonsoft.Json.Serialization; 14 | 15 | namespace Kameleo.LocalApiClient.Model 16 | { 17 | /// 18 | /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification 19 | /// 20 | public abstract partial class AbstractOpenAPISchema 21 | { 22 | /// 23 | /// Custom JSON serializer 24 | /// 25 | static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings 26 | { 27 | // OpenAPI generated types generally hide default constructors. 28 | ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, 29 | MissingMemberHandling = MissingMemberHandling.Error, 30 | ContractResolver = new DefaultContractResolver 31 | { 32 | NamingStrategy = new CamelCaseNamingStrategy 33 | { 34 | OverrideSpecifiedNames = false 35 | } 36 | } 37 | }; 38 | 39 | /// 40 | /// Custom JSON serializer for objects with additional properties 41 | /// 42 | static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings 43 | { 44 | // OpenAPI generated types generally hide default constructors. 45 | ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, 46 | MissingMemberHandling = MissingMemberHandling.Ignore, 47 | ContractResolver = new DefaultContractResolver 48 | { 49 | NamingStrategy = new CamelCaseNamingStrategy 50 | { 51 | OverrideSpecifiedNames = false 52 | } 53 | } 54 | }; 55 | 56 | /// 57 | /// Gets or Sets the actual instance 58 | /// 59 | public abstract Object ActualInstance { get; set; } 60 | 61 | /// 62 | /// Gets or Sets IsNullable to indicate whether the instance is nullable 63 | /// 64 | public bool IsNullable { get; protected set; } 65 | 66 | /// 67 | /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` 68 | /// 69 | public string SchemaType { get; protected set; } 70 | 71 | /// 72 | /// Converts the instance into JSON string. 73 | /// 74 | public abstract string ToJson(); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/AddProfileToFolderRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// AddProfileToFolderRequest 30 | /// 31 | [DataContract(Name = "AddProfileToFolderRequest")] 32 | public partial class AddProfileToFolderRequest : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected AddProfileToFolderRequest() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Unique identifier of the profile. (required). 43 | public AddProfileToFolderRequest(Guid profileId = default(Guid)) 44 | { 45 | this.ProfileId = profileId; 46 | } 47 | 48 | /// 49 | /// Unique identifier of the profile. 50 | /// 51 | /// Unique identifier of the profile. 52 | /* 53 | 0036135c-6f62-429b-a9db-fd541aca96a7 54 | */ 55 | [DataMember(Name = "profileId", IsRequired = true, EmitDefaultValue = true)] 56 | public Guid ProfileId { get; set; } 57 | 58 | /// 59 | /// Returns the string presentation of the object 60 | /// 61 | /// String presentation of the object 62 | public override string ToString() 63 | { 64 | StringBuilder sb = new StringBuilder(); 65 | sb.Append("class AddProfileToFolderRequest {\n"); 66 | sb.Append(" ProfileId: ").Append(ProfileId).Append("\n"); 67 | sb.Append("}\n"); 68 | return sb.ToString(); 69 | } 70 | 71 | /// 72 | /// Returns the JSON string presentation of the object 73 | /// 74 | /// JSON string presentation of the object 75 | public virtual string ToJson() 76 | { 77 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 78 | } 79 | 80 | /// 81 | /// To validate all properties of the instance 82 | /// 83 | /// Validation context 84 | /// Validation Result 85 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 86 | { 87 | yield break; 88 | } 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/AudioSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the audio will be spoofed. Possible values: 'noise': Add some noise to the Audio generation 'block': Completely block the Audio API 'off': Turn off the spoofing, use the original settings 30 | /// 31 | /// Specifies how the audio will be spoofed. Possible values: 'noise': Add some noise to the Audio generation 'block': Completely block the Audio API 'off': Turn off the spoofing, use the original settings 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum AudioSpoofingType 34 | { 35 | /// 36 | /// Enum Off for value: off 37 | /// 38 | [EnumMember(Value = "off")] 39 | Off = 1, 40 | 41 | /// 42 | /// Enum Noise for value: noise 43 | /// 44 | [EnumMember(Value = "noise")] 45 | Noise = 2, 46 | 47 | /// 48 | /// Enum Block for value: block 49 | /// 50 | [EnumMember(Value = "block")] 51 | Block = 3 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/Browser.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Browser 30 | /// 31 | [DataContract(Name = "Browser")] 32 | public partial class Browser : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected Browser() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Product of the browser. Possible values are 'chrome', 'firefox', 'edge', 'safari'. (required). 43 | /// Major version of the browser. (required). 44 | /// Exact version of the browser. (required). 45 | public Browser(string product = default(string), int major = default(int), string varVersion = default(string)) 46 | { 47 | // to ensure "product" is required (not null) 48 | if (product == null) 49 | { 50 | throw new ArgumentNullException("product is a required property for Browser and cannot be null"); 51 | } 52 | this.Product = product; 53 | this.Major = major; 54 | // to ensure "varVersion" is required (not null) 55 | if (varVersion == null) 56 | { 57 | throw new ArgumentNullException("varVersion is a required property for Browser and cannot be null"); 58 | } 59 | this.VarVersion = varVersion; 60 | } 61 | 62 | /// 63 | /// Product of the browser. Possible values are 'chrome', 'firefox', 'edge', 'safari'. 64 | /// 65 | /// Product of the browser. Possible values are 'chrome', 'firefox', 'edge', 'safari'. 66 | /* 67 | chrome 68 | */ 69 | [DataMember(Name = "product", IsRequired = true, EmitDefaultValue = true)] 70 | public string Product { get; set; } 71 | 72 | /// 73 | /// Major version of the browser. 74 | /// 75 | /// Major version of the browser. 76 | /* 77 | 81 78 | */ 79 | [DataMember(Name = "major", IsRequired = true, EmitDefaultValue = true)] 80 | public int Major { get; set; } 81 | 82 | /// 83 | /// Exact version of the browser. 84 | /// 85 | /// Exact version of the browser. 86 | /* 87 | 81.0.4044 88 | */ 89 | [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] 90 | public string VarVersion { get; set; } 91 | 92 | /// 93 | /// Returns the string presentation of the object 94 | /// 95 | /// String presentation of the object 96 | public override string ToString() 97 | { 98 | StringBuilder sb = new StringBuilder(); 99 | sb.Append("class Browser {\n"); 100 | sb.Append(" Product: ").Append(Product).Append("\n"); 101 | sb.Append(" Major: ").Append(Major).Append("\n"); 102 | sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); 103 | sb.Append("}\n"); 104 | return sb.ToString(); 105 | } 106 | 107 | /// 108 | /// Returns the JSON string presentation of the object 109 | /// 110 | /// JSON string presentation of the object 111 | public virtual string ToJson() 112 | { 113 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 114 | } 115 | 116 | /// 117 | /// To validate all properties of the instance 118 | /// 119 | /// Validation context 120 | /// Validation Result 121 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 122 | { 123 | yield break; 124 | } 125 | } 126 | 127 | } 128 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/BrowserSettings.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Extra settings and preferences that can be applied to the browser at startup. 30 | /// 31 | [DataContract(Name = "BrowserSettings")] 32 | public partial class BrowserSettings : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | /// Command line arguments that can be passed to the browser at startup. This applies to both Chroma and Junglefox browsers. Do not include the starting double dash (- -).. 38 | /// List of preferences for browsers that can be passed at startup. In case of Chromium based options it will be a user profile preference. In case of Firefox profiles it will be a preference.. 39 | /// Special options available only in Kameleo, such as device scale factor for mobile emulated profiles. See the docs for more details.. 40 | public BrowserSettings(List arguments = default(List), List preferences = default(List), List additionalOptions = default(List)) 41 | { 42 | this.Arguments = arguments; 43 | this.Preferences = preferences; 44 | this.AdditionalOptions = additionalOptions; 45 | } 46 | 47 | /// 48 | /// Command line arguments that can be passed to the browser at startup. This applies to both Chroma and Junglefox browsers. Do not include the starting double dash (- -). 49 | /// 50 | /// Command line arguments that can be passed to the browser at startup. This applies to both Chroma and Junglefox browsers. Do not include the starting double dash (- -). 51 | [DataMember(Name = "arguments", EmitDefaultValue = true)] 52 | public List Arguments { get; set; } 53 | 54 | /// 55 | /// List of preferences for browsers that can be passed at startup. In case of Chromium based options it will be a user profile preference. In case of Firefox profiles it will be a preference. 56 | /// 57 | /// List of preferences for browsers that can be passed at startup. In case of Chromium based options it will be a user profile preference. In case of Firefox profiles it will be a preference. 58 | [DataMember(Name = "preferences", EmitDefaultValue = true)] 59 | public List Preferences { get; set; } 60 | 61 | /// 62 | /// Special options available only in Kameleo, such as device scale factor for mobile emulated profiles. See the docs for more details. 63 | /// 64 | /// Special options available only in Kameleo, such as device scale factor for mobile emulated profiles. See the docs for more details. 65 | [DataMember(Name = "additionalOptions", EmitDefaultValue = true)] 66 | public List AdditionalOptions { get; set; } 67 | 68 | /// 69 | /// Returns the string presentation of the object 70 | /// 71 | /// String presentation of the object 72 | public override string ToString() 73 | { 74 | StringBuilder sb = new StringBuilder(); 75 | sb.Append("class BrowserSettings {\n"); 76 | sb.Append(" Arguments: ").Append(Arguments).Append("\n"); 77 | sb.Append(" Preferences: ").Append(Preferences).Append("\n"); 78 | sb.Append(" AdditionalOptions: ").Append(AdditionalOptions).Append("\n"); 79 | sb.Append("}\n"); 80 | return sb.ToString(); 81 | } 82 | 83 | /// 84 | /// Returns the JSON string presentation of the object 85 | /// 86 | /// JSON string presentation of the object 87 | public virtual string ToJson() 88 | { 89 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 90 | } 91 | 92 | /// 93 | /// To validate all properties of the instance 94 | /// 95 | /// Validation context 96 | /// Validation Result 97 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 98 | { 99 | yield break; 100 | } 101 | } 102 | 103 | } 104 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/CanvasSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the canvas will be spoofed. Possible values: 'intelligent': Use intelligent canvas spoofing. This will result non-unique canvas fingerprints. 'noise': Add some noise to canvas generation. 'block': Completely block the 2D API. 'off': Turn off the spoofing, use the original settings. 30 | /// 31 | /// Specifies how the canvas will be spoofed. Possible values: 'intelligent': Use intelligent canvas spoofing. This will result non-unique canvas fingerprints. 'noise': Add some noise to canvas generation. 'block': Completely block the 2D API. 'off': Turn off the spoofing, use the original settings. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum CanvasSpoofingType 34 | { 35 | /// 36 | /// Enum Intelligent for value: intelligent 37 | /// 38 | [EnumMember(Value = "intelligent")] 39 | Intelligent = 1, 40 | 41 | /// 42 | /// Enum Noise for value: noise 43 | /// 44 | [EnumMember(Value = "noise")] 45 | Noise = 2, 46 | 47 | /// 48 | /// Enum Block for value: block 49 | /// 50 | [EnumMember(Value = "block")] 51 | Block = 3, 52 | 53 | /// 54 | /// Enum Off for value: off 55 | /// 56 | [EnumMember(Value = "off")] 57 | Off = 4 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/CreateFolderRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// CreateFolderRequest 30 | /// 31 | [DataContract(Name = "CreateFolderRequest")] 32 | public partial class CreateFolderRequest : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected CreateFolderRequest() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Human readable name of the new folder. (required). 43 | public CreateFolderRequest(string name = default(string)) 44 | { 45 | // to ensure "name" is required (not null) 46 | if (name == null) 47 | { 48 | throw new ArgumentNullException("name is a required property for CreateFolderRequest and cannot be null"); 49 | } 50 | this.Name = name; 51 | } 52 | 53 | /// 54 | /// Human readable name of the new folder. 55 | /// 56 | /// Human readable name of the new folder. 57 | /* 58 | My first folder 59 | */ 60 | [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] 61 | public string Name { get; set; } 62 | 63 | /// 64 | /// Returns the string presentation of the object 65 | /// 66 | /// String presentation of the object 67 | public override string ToString() 68 | { 69 | StringBuilder sb = new StringBuilder(); 70 | sb.Append("class CreateFolderRequest {\n"); 71 | sb.Append(" Name: ").Append(Name).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | // Name (string) maxLength 93 | if (this.Name != null && this.Name.Length > 100) 94 | { 95 | yield return new ValidationResult("Invalid value for Name, length must be less than 100.", new[] { "Name" }); 96 | } 97 | 98 | // Name (string) minLength 99 | if (this.Name != null && this.Name.Length < 1) 100 | { 101 | yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new[] { "Name" }); 102 | } 103 | 104 | yield break; 105 | } 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/DeleteFolderResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// DeleteFolderResponse 30 | /// 31 | [DataContract(Name = "DeleteFolderResponse")] 32 | public partial class DeleteFolderResponse : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected DeleteFolderResponse() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Ids of the deleted folders. (required). 43 | /// Ids of the deleted profiles. (required). 44 | /// Ids of the profiles moved to top-level. (required). 45 | public DeleteFolderResponse(List deletedFolders = default(List), List deletedProfiles = default(List), List movedProfiles = default(List)) 46 | { 47 | // to ensure "deletedFolders" is required (not null) 48 | if (deletedFolders == null) 49 | { 50 | throw new ArgumentNullException("deletedFolders is a required property for DeleteFolderResponse and cannot be null"); 51 | } 52 | this.DeletedFolders = deletedFolders; 53 | // to ensure "deletedProfiles" is required (not null) 54 | if (deletedProfiles == null) 55 | { 56 | throw new ArgumentNullException("deletedProfiles is a required property for DeleteFolderResponse and cannot be null"); 57 | } 58 | this.DeletedProfiles = deletedProfiles; 59 | // to ensure "movedProfiles" is required (not null) 60 | if (movedProfiles == null) 61 | { 62 | throw new ArgumentNullException("movedProfiles is a required property for DeleteFolderResponse and cannot be null"); 63 | } 64 | this.MovedProfiles = movedProfiles; 65 | } 66 | 67 | /// 68 | /// Ids of the deleted folders. 69 | /// 70 | /// Ids of the deleted folders. 71 | [DataMember(Name = "deletedFolders", IsRequired = true, EmitDefaultValue = true)] 72 | public List DeletedFolders { get; set; } 73 | 74 | /// 75 | /// Ids of the deleted profiles. 76 | /// 77 | /// Ids of the deleted profiles. 78 | [DataMember(Name = "deletedProfiles", IsRequired = true, EmitDefaultValue = true)] 79 | public List DeletedProfiles { get; set; } 80 | 81 | /// 82 | /// Ids of the profiles moved to top-level. 83 | /// 84 | /// Ids of the profiles moved to top-level. 85 | [DataMember(Name = "movedProfiles", IsRequired = true, EmitDefaultValue = true)] 86 | public List MovedProfiles { get; set; } 87 | 88 | /// 89 | /// Returns the string presentation of the object 90 | /// 91 | /// String presentation of the object 92 | public override string ToString() 93 | { 94 | StringBuilder sb = new StringBuilder(); 95 | sb.Append("class DeleteFolderResponse {\n"); 96 | sb.Append(" DeletedFolders: ").Append(DeletedFolders).Append("\n"); 97 | sb.Append(" DeletedProfiles: ").Append(DeletedProfiles).Append("\n"); 98 | sb.Append(" MovedProfiles: ").Append(MovedProfiles).Append("\n"); 99 | sb.Append("}\n"); 100 | return sb.ToString(); 101 | } 102 | 103 | /// 104 | /// Returns the JSON string presentation of the object 105 | /// 106 | /// JSON string presentation of the object 107 | public virtual string ToJson() 108 | { 109 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 110 | } 111 | 112 | /// 113 | /// To validate all properties of the instance 114 | /// 115 | /// Validation context 116 | /// Validation Result 117 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 118 | { 119 | yield break; 120 | } 121 | } 122 | 123 | } 124 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/Device.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Device 30 | /// 31 | [DataContract(Name = "Device")] 32 | public partial class Device : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected Device() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Type of the device. Possible values are: 'desktop', 'mobile'. (required). 43 | /// Name of the device. This is only available for mobile profiles.. 44 | public Device(string type = default(string), string name = default(string)) 45 | { 46 | // to ensure "type" is required (not null) 47 | if (type == null) 48 | { 49 | throw new ArgumentNullException("type is a required property for Device and cannot be null"); 50 | } 51 | this.Type = type; 52 | this.Name = name; 53 | } 54 | 55 | /// 56 | /// Type of the device. Possible values are: 'desktop', 'mobile'. 57 | /// 58 | /// Type of the device. Possible values are: 'desktop', 'mobile'. 59 | /* 60 | desktop 61 | */ 62 | [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] 63 | public string Type { get; set; } 64 | 65 | /// 66 | /// Name of the device. This is only available for mobile profiles. 67 | /// 68 | /// Name of the device. This is only available for mobile profiles. 69 | /* 70 | Samsung SM-A705FN 71 | */ 72 | [DataMember(Name = "name", EmitDefaultValue = true)] 73 | public string Name { get; set; } 74 | 75 | /// 76 | /// Returns the string presentation of the object 77 | /// 78 | /// String presentation of the object 79 | public override string ToString() 80 | { 81 | StringBuilder sb = new StringBuilder(); 82 | sb.Append("class Device {\n"); 83 | sb.Append(" Type: ").Append(Type).Append("\n"); 84 | sb.Append(" Name: ").Append(Name).Append("\n"); 85 | sb.Append("}\n"); 86 | return sb.ToString(); 87 | } 88 | 89 | /// 90 | /// Returns the JSON string presentation of the object 91 | /// 92 | /// JSON string presentation of the object 93 | public virtual string ToJson() 94 | { 95 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 96 | } 97 | 98 | /// 99 | /// To validate all properties of the instance 100 | /// 101 | /// Validation context 102 | /// Validation Result 103 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 104 | { 105 | yield break; 106 | } 107 | } 108 | 109 | } 110 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/DeviceMemoryChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// DeviceMemoryChoice 30 | /// 31 | [DataContract(Name = "DeviceMemoryChoice")] 32 | public partial class DeviceMemoryChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public DeviceMemorySpoofingType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected DeviceMemoryChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// extra. 50 | public DeviceMemoryChoice(DeviceMemorySpoofingType value = default(DeviceMemorySpoofingType), double? extra = default(double?)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// Gets or Sets Extra 58 | /// 59 | [DataMember(Name = "extra", EmitDefaultValue = true)] 60 | public double? Extra { get; set; } 61 | 62 | /// 63 | /// Returns the string presentation of the object 64 | /// 65 | /// String presentation of the object 66 | public override string ToString() 67 | { 68 | StringBuilder sb = new StringBuilder(); 69 | sb.Append("class DeviceMemoryChoice {\n"); 70 | sb.Append(" Value: ").Append(Value).Append("\n"); 71 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | yield break; 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/DeviceMemorySpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the deviceMemory will be spoofed. Possible values: 'automatic': Automatically set the values based on the fingerprint. 'manual': Manually set the value in the profile. Valid values: 0.25, 0.5, 1, 2, 4, 8. 'off': Turn off the spoofing, use the original settings. 30 | /// 31 | /// Specifies how the deviceMemory will be spoofed. Possible values: 'automatic': Automatically set the values based on the fingerprint. 'manual': Manually set the value in the profile. Valid values: 0.25, 0.5, 1, 2, 4, 8. 'off': Turn off the spoofing, use the original settings. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum DeviceMemorySpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Manual for value: manual 43 | /// 44 | [EnumMember(Value = "manual")] 45 | Manual = 2, 46 | 47 | /// 48 | /// Enum Off for value: off 49 | /// 50 | [EnumMember(Value = "off")] 51 | Off = 3 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ExportProfileRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Defines the target location for profile export. 30 | /// 31 | [DataContract(Name = "ExportProfileRequest")] 32 | public partial class ExportProfileRequest : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected ExportProfileRequest() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Specifies the file path for exporting the profile. (required). 43 | public ExportProfileRequest(string path = default(string)) 44 | { 45 | // to ensure "path" is required (not null) 46 | if (path == null) 47 | { 48 | throw new ArgumentNullException("path is a required property for ExportProfileRequest and cannot be null"); 49 | } 50 | this.Path = path; 51 | } 52 | 53 | /// 54 | /// Specifies the file path for exporting the profile. 55 | /// 56 | /// Specifies the file path for exporting the profile. 57 | /* 58 | C:\Users\Windows 10\Kameleo Profiles\profile1.kameleo 59 | */ 60 | [DataMember(Name = "path", IsRequired = true, EmitDefaultValue = true)] 61 | public string Path { get; set; } 62 | 63 | /// 64 | /// Returns the string presentation of the object 65 | /// 66 | /// String presentation of the object 67 | public override string ToString() 68 | { 69 | StringBuilder sb = new StringBuilder(); 70 | sb.Append("class ExportProfileRequest {\n"); 71 | sb.Append(" Path: ").Append(Path).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | // Path (string) minLength 93 | if (this.Path != null && this.Path.Length < 1) 94 | { 95 | yield return new ValidationResult("Invalid value for Path, length must be greater than 1.", new[] { "Path" }); 96 | } 97 | 98 | yield break; 99 | } 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/FontSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the fonts will be spoofed. Possible values: 'automatic': Spoof fonts based on the browser fingerpint. 'off': Don't spoof fonts, use the real fonts of your machine. 30 | /// 31 | /// Specifies how the fonts will be spoofed. Possible values: 'automatic': Spoof fonts based on the browser fingerpint. 'off': Don't spoof fonts, use the real fonts of your machine. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum FontSpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Off for value: off 43 | /// 44 | [EnumMember(Value = "off")] 45 | Off = 2 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/GeolocationChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// GeolocationChoice 30 | /// 31 | [DataContract(Name = "GeolocationChoice")] 32 | public partial class GeolocationChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public GeolocationSpoofingType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected GeolocationChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// extra. 50 | public GeolocationChoice(GeolocationSpoofingType value = default(GeolocationSpoofingType), GeolocationSpoofingOptions extra = default(GeolocationSpoofingOptions)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// Gets or Sets Extra 58 | /// 59 | [DataMember(Name = "extra", EmitDefaultValue = false)] 60 | public GeolocationSpoofingOptions Extra { get; set; } 61 | 62 | /// 63 | /// Returns the string presentation of the object 64 | /// 65 | /// String presentation of the object 66 | public override string ToString() 67 | { 68 | StringBuilder sb = new StringBuilder(); 69 | sb.Append("class GeolocationChoice {\n"); 70 | sb.Append(" Value: ").Append(Value).Append("\n"); 71 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | yield break; 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/GeolocationSpoofingOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// When the Geolocation spoofing is set to manual these extra settings will be used as well. 30 | /// 31 | [DataContract(Name = "GeolocationSpoofingOptions")] 32 | public partial class GeolocationSpoofingOptions : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected GeolocationSpoofingOptions() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// From -90 to 90 (required). 43 | /// From -180 to 180 (required). 44 | public GeolocationSpoofingOptions(float latitude = default(float), float longitude = default(float)) 45 | { 46 | this.Latitude = latitude; 47 | this.Longitude = longitude; 48 | } 49 | 50 | /// 51 | /// From -90 to 90 52 | /// 53 | /// From -90 to 90 54 | /* 55 | 59.43984 56 | */ 57 | [DataMember(Name = "latitude", IsRequired = true, EmitDefaultValue = true)] 58 | public float Latitude { get; set; } 59 | 60 | /// 61 | /// From -180 to 180 62 | /// 63 | /// From -180 to 180 64 | /* 65 | 24.75815 66 | */ 67 | [DataMember(Name = "longitude", IsRequired = true, EmitDefaultValue = true)] 68 | public float Longitude { get; set; } 69 | 70 | /// 71 | /// Returns the string presentation of the object 72 | /// 73 | /// String presentation of the object 74 | public override string ToString() 75 | { 76 | StringBuilder sb = new StringBuilder(); 77 | sb.Append("class GeolocationSpoofingOptions {\n"); 78 | sb.Append(" Latitude: ").Append(Latitude).Append("\n"); 79 | sb.Append(" Longitude: ").Append(Longitude).Append("\n"); 80 | sb.Append("}\n"); 81 | return sb.ToString(); 82 | } 83 | 84 | /// 85 | /// Returns the JSON string presentation of the object 86 | /// 87 | /// JSON string presentation of the object 88 | public virtual string ToJson() 89 | { 90 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 91 | } 92 | 93 | /// 94 | /// To validate all properties of the instance 95 | /// 96 | /// Validation context 97 | /// Validation Result 98 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 99 | { 100 | yield break; 101 | } 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/GeolocationSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the geolocation will be spoofed. Possible values: 'automatic': Automatically set the values based on the IP address 'manual': Manually set the longitude and latitude in the profile 'block': Completely block the Geolocation API 'off': Turn off the spoofing, use the original settings 30 | /// 31 | /// Specifies how the geolocation will be spoofed. Possible values: 'automatic': Automatically set the values based on the IP address 'manual': Manually set the longitude and latitude in the profile 'block': Completely block the Geolocation API 'off': Turn off the spoofing, use the original settings 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum GeolocationSpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Manual for value: manual 43 | /// 44 | [EnumMember(Value = "manual")] 45 | Manual = 2, 46 | 47 | /// 48 | /// Enum Block for value: block 49 | /// 50 | [EnumMember(Value = "block")] 51 | Block = 3, 52 | 53 | /// 54 | /// Enum Off for value: off 55 | /// 56 | [EnumMember(Value = "off")] 57 | Off = 4 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/GroupRole.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// GroupRole 30 | /// 31 | [DataContract(Name = "GroupRole")] 32 | public partial class GroupRole : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected GroupRole() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Unique identifier of the role. (required). 43 | /// Name of the role. (required). 44 | /// Description of the role. (required). 45 | public GroupRole(Guid id = default(Guid), string name = default(string), string description = default(string)) 46 | { 47 | this.Id = id; 48 | // to ensure "name" is required (not null) 49 | if (name == null) 50 | { 51 | throw new ArgumentNullException("name is a required property for GroupRole and cannot be null"); 52 | } 53 | this.Name = name; 54 | // to ensure "description" is required (not null) 55 | if (description == null) 56 | { 57 | throw new ArgumentNullException("description is a required property for GroupRole and cannot be null"); 58 | } 59 | this.Description = description; 60 | } 61 | 62 | /// 63 | /// Unique identifier of the role. 64 | /// 65 | /// Unique identifier of the role. 66 | [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] 67 | public Guid Id { get; set; } 68 | 69 | /// 70 | /// Name of the role. 71 | /// 72 | /// Name of the role. 73 | [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] 74 | public string Name { get; set; } 75 | 76 | /// 77 | /// Description of the role. 78 | /// 79 | /// Description of the role. 80 | [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] 81 | public string Description { get; set; } 82 | 83 | /// 84 | /// Returns the string presentation of the object 85 | /// 86 | /// String presentation of the object 87 | public override string ToString() 88 | { 89 | StringBuilder sb = new StringBuilder(); 90 | sb.Append("class GroupRole {\n"); 91 | sb.Append(" Id: ").Append(Id).Append("\n"); 92 | sb.Append(" Name: ").Append(Name).Append("\n"); 93 | sb.Append(" Description: ").Append(Description).Append("\n"); 94 | sb.Append("}\n"); 95 | return sb.ToString(); 96 | } 97 | 98 | /// 99 | /// Returns the JSON string presentation of the object 100 | /// 101 | /// JSON string presentation of the object 102 | public virtual string ToJson() 103 | { 104 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 105 | } 106 | 107 | /// 108 | /// To validate all properties of the instance 109 | /// 110 | /// Validation context 111 | /// Validation Result 112 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 113 | { 114 | yield break; 115 | } 116 | } 117 | 118 | } 119 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/HardwareConcurrencyChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// HardwareConcurrencyChoice 30 | /// 31 | [DataContract(Name = "HardwareConcurrencyChoice")] 32 | public partial class HardwareConcurrencyChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public HardwareConcurrencySpoofingType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected HardwareConcurrencyChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// extra. 50 | public HardwareConcurrencyChoice(HardwareConcurrencySpoofingType value = default(HardwareConcurrencySpoofingType), int? extra = default(int?)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// Gets or Sets Extra 58 | /// 59 | [DataMember(Name = "extra", EmitDefaultValue = true)] 60 | public int? Extra { get; set; } 61 | 62 | /// 63 | /// Returns the string presentation of the object 64 | /// 65 | /// String presentation of the object 66 | public override string ToString() 67 | { 68 | StringBuilder sb = new StringBuilder(); 69 | sb.Append("class HardwareConcurrencyChoice {\n"); 70 | sb.Append(" Value: ").Append(Value).Append("\n"); 71 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | yield break; 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/HardwareConcurrencySpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the hardwareConcurrency will be spoofed. Possible values: 'automatic': Automatically set the values based on the fingerprint. 'manual': Manually set the value in the profile. Valid values: 1, 2, 4, 8, 12, 16. 'off': Turn off the spoofing, use the original settings. 30 | /// 31 | /// Specifies how the hardwareConcurrency will be spoofed. Possible values: 'automatic': Automatically set the values based on the fingerprint. 'manual': Manually set the value in the profile. Valid values: 1, 2, 4, 8, 12, 16. 'off': Turn off the spoofing, use the original settings. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum HardwareConcurrencySpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Manual for value: manual 43 | /// 44 | [EnumMember(Value = "manual")] 45 | Manual = 2, 46 | 47 | /// 48 | /// Enum Off for value: off 49 | /// 50 | [EnumMember(Value = "off")] 51 | Off = 3 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ImportProfileRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies the source location for profile import. 30 | /// 31 | [DataContract(Name = "ImportProfileRequest")] 32 | public partial class ImportProfileRequest : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected ImportProfileRequest() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// The file path from which the profile will be imported. (required). 43 | public ImportProfileRequest(string path = default(string)) 44 | { 45 | // to ensure "path" is required (not null) 46 | if (path == null) 47 | { 48 | throw new ArgumentNullException("path is a required property for ImportProfileRequest and cannot be null"); 49 | } 50 | this.Path = path; 51 | } 52 | 53 | /// 54 | /// The file path from which the profile will be imported. 55 | /// 56 | /// The file path from which the profile will be imported. 57 | /* 58 | C:\Users\Windows 10\Kameleo Profiles\profile1.kameleo 59 | */ 60 | [DataMember(Name = "path", IsRequired = true, EmitDefaultValue = true)] 61 | public string Path { get; set; } 62 | 63 | /// 64 | /// Returns the string presentation of the object 65 | /// 66 | /// String presentation of the object 67 | public override string ToString() 68 | { 69 | StringBuilder sb = new StringBuilder(); 70 | sb.Append("class ImportProfileRequest {\n"); 71 | sb.Append(" Path: ").Append(Path).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | // Path (string) minLength 93 | if (this.Path != null && this.Path.Length < 1) 94 | { 95 | yield return new ValidationResult("Invalid value for Path, length must be greater than 1.", new[] { "Path" }); 96 | } 97 | 98 | yield break; 99 | } 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ListFoldersResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ListFoldersResponse 30 | /// 31 | [DataContract(Name = "ListFoldersResponse")] 32 | public partial class ListFoldersResponse : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected ListFoldersResponse() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// List of top-level folders, each folder may contain nested folders and cloud profiles. (required). 43 | /// List of profiles not associated with any folder. This includes both cloud and local profiles. (required). 44 | public ListFoldersResponse(List folders = default(List), List profiles = default(List)) 45 | { 46 | // to ensure "folders" is required (not null) 47 | if (folders == null) 48 | { 49 | throw new ArgumentNullException("folders is a required property for ListFoldersResponse and cannot be null"); 50 | } 51 | this.Folders = folders; 52 | // to ensure "profiles" is required (not null) 53 | if (profiles == null) 54 | { 55 | throw new ArgumentNullException("profiles is a required property for ListFoldersResponse and cannot be null"); 56 | } 57 | this.Profiles = profiles; 58 | } 59 | 60 | /// 61 | /// List of top-level folders, each folder may contain nested folders and cloud profiles. 62 | /// 63 | /// List of top-level folders, each folder may contain nested folders and cloud profiles. 64 | [DataMember(Name = "folders", IsRequired = true, EmitDefaultValue = true)] 65 | public List Folders { get; set; } 66 | 67 | /// 68 | /// List of profiles not associated with any folder. This includes both cloud and local profiles. 69 | /// 70 | /// List of profiles not associated with any folder. This includes both cloud and local profiles. 71 | [DataMember(Name = "profiles", IsRequired = true, EmitDefaultValue = true)] 72 | public List Profiles { get; set; } 73 | 74 | /// 75 | /// Returns the string presentation of the object 76 | /// 77 | /// String presentation of the object 78 | public override string ToString() 79 | { 80 | StringBuilder sb = new StringBuilder(); 81 | sb.Append("class ListFoldersResponse {\n"); 82 | sb.Append(" Folders: ").Append(Folders).Append("\n"); 83 | sb.Append(" Profiles: ").Append(Profiles).Append("\n"); 84 | sb.Append("}\n"); 85 | return sb.ToString(); 86 | } 87 | 88 | /// 89 | /// Returns the JSON string presentation of the object 90 | /// 91 | /// JSON string presentation of the object 92 | public virtual string ToJson() 93 | { 94 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 95 | } 96 | 97 | /// 98 | /// To validate all properties of the instance 99 | /// 100 | /// Validation context 101 | /// Validation Result 102 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 103 | { 104 | yield break; 105 | } 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/PasswordManagerType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Defines whether the browser can save login credentials. Possible values are: 'enabled': Credential saving is allowed. 'disabled': Credential saving is blocked. 30 | /// 31 | /// Defines whether the browser can save login credentials. Possible values are: 'enabled': Credential saving is allowed. 'disabled': Credential saving is blocked. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum PasswordManagerType 34 | { 35 | /// 36 | /// Enum Enabled for value: enabled 37 | /// 38 | [EnumMember(Value = "enabled")] 39 | Enabled = 1, 40 | 41 | /// 42 | /// Enum Disabled for value: disabled 43 | /// 44 | [EnumMember(Value = "disabled")] 45 | Disabled = 2 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/Preference.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Represents a Key-Value pair where Value can be a string or a boolean or an integer 30 | /// 31 | [DataContract(Name = "Preference")] 32 | public partial class Preference : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected Preference() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Key of the preference (required). 43 | /// Value of the preference. It can a string or a boolean or an integer (required). 44 | public Preference(string key = default(string), Object value = default(Object)) 45 | { 46 | // to ensure "key" is required (not null) 47 | if (key == null) 48 | { 49 | throw new ArgumentNullException("key is a required property for Preference and cannot be null"); 50 | } 51 | this.Key = key; 52 | // to ensure "value" is required (not null) 53 | if (value == null) 54 | { 55 | throw new ArgumentNullException("value is a required property for Preference and cannot be null"); 56 | } 57 | this.Value = value; 58 | } 59 | 60 | /// 61 | /// Key of the preference 62 | /// 63 | /// Key of the preference 64 | /* 65 | profile.managed_default_content_settings.images 66 | */ 67 | [DataMember(Name = "key", IsRequired = true, EmitDefaultValue = true)] 68 | public string Key { get; set; } 69 | 70 | /// 71 | /// Value of the preference. It can a string or a boolean or an integer 72 | /// 73 | /// Value of the preference. It can a string or a boolean or an integer 74 | /* 75 | 2 76 | */ 77 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 78 | public Object Value { get; set; } 79 | 80 | /// 81 | /// Returns the string presentation of the object 82 | /// 83 | /// String presentation of the object 84 | public override string ToString() 85 | { 86 | StringBuilder sb = new StringBuilder(); 87 | sb.Append("class Preference {\n"); 88 | sb.Append(" Key: ").Append(Key).Append("\n"); 89 | sb.Append(" Value: ").Append(Value).Append("\n"); 90 | sb.Append("}\n"); 91 | return sb.ToString(); 92 | } 93 | 94 | /// 95 | /// Returns the JSON string presentation of the object 96 | /// 97 | /// JSON string presentation of the object 98 | public virtual string ToJson() 99 | { 100 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 101 | } 102 | 103 | /// 104 | /// To validate all properties of the instance 105 | /// 106 | /// Validation context 107 | /// Validation Result 108 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 109 | { 110 | yield break; 111 | } 112 | } 113 | 114 | } 115 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ProblemDetails.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ProblemDetails 30 | /// 31 | [DataContract(Name = "ProblemDetails")] 32 | public partial class ProblemDetails : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | /// type. 38 | /// title. 39 | /// status. 40 | /// detail. 41 | /// instance. 42 | public ProblemDetails(string type = default(string), string title = default(string), int? status = default(int?), string detail = default(string), string instance = default(string)) 43 | { 44 | this.Type = type; 45 | this.Title = title; 46 | this.Status = status; 47 | this.Detail = detail; 48 | this.Instance = instance; 49 | this.AdditionalProperties = new Dictionary(); 50 | } 51 | 52 | /// 53 | /// Gets or Sets Type 54 | /// 55 | [DataMember(Name = "type", EmitDefaultValue = true)] 56 | public string Type { get; set; } 57 | 58 | /// 59 | /// Gets or Sets Title 60 | /// 61 | [DataMember(Name = "title", EmitDefaultValue = true)] 62 | public string Title { get; set; } 63 | 64 | /// 65 | /// Gets or Sets Status 66 | /// 67 | [DataMember(Name = "status", EmitDefaultValue = true)] 68 | public int? Status { get; set; } 69 | 70 | /// 71 | /// Gets or Sets Detail 72 | /// 73 | [DataMember(Name = "detail", EmitDefaultValue = true)] 74 | public string Detail { get; set; } 75 | 76 | /// 77 | /// Gets or Sets Instance 78 | /// 79 | [DataMember(Name = "instance", EmitDefaultValue = true)] 80 | public string Instance { get; set; } 81 | 82 | /// 83 | /// Gets or Sets additional properties 84 | /// 85 | [JsonExtensionData] 86 | public IDictionary AdditionalProperties { get; set; } 87 | 88 | /// 89 | /// Returns the string presentation of the object 90 | /// 91 | /// String presentation of the object 92 | public override string ToString() 93 | { 94 | StringBuilder sb = new StringBuilder(); 95 | sb.Append("class ProblemDetails {\n"); 96 | sb.Append(" Type: ").Append(Type).Append("\n"); 97 | sb.Append(" Title: ").Append(Title).Append("\n"); 98 | sb.Append(" Status: ").Append(Status).Append("\n"); 99 | sb.Append(" Detail: ").Append(Detail).Append("\n"); 100 | sb.Append(" Instance: ").Append(Instance).Append("\n"); 101 | sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); 102 | sb.Append("}\n"); 103 | return sb.ToString(); 104 | } 105 | 106 | /// 107 | /// Returns the JSON string presentation of the object 108 | /// 109 | /// JSON string presentation of the object 110 | public virtual string ToJson() 111 | { 112 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 113 | } 114 | 115 | /// 116 | /// To validate all properties of the instance 117 | /// 118 | /// Validation context 119 | /// Validation Result 120 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 121 | { 122 | yield break; 123 | } 124 | } 125 | 126 | } 127 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ProblemResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ProblemResponse 30 | /// 31 | [DataContract(Name = "ProblemResponse")] 32 | public partial class ProblemResponse : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | /// code. 38 | /// error. 39 | public ProblemResponse(int? code = default(int?), Dictionary> error = default(Dictionary>)) 40 | { 41 | this.Code = code; 42 | this.Error = error; 43 | } 44 | 45 | /// 46 | /// Gets or Sets Code 47 | /// 48 | [DataMember(Name = "code", EmitDefaultValue = true)] 49 | public int? Code { get; set; } 50 | 51 | /// 52 | /// Gets or Sets Error 53 | /// 54 | [DataMember(Name = "error", EmitDefaultValue = true)] 55 | public Dictionary> Error { get; set; } 56 | 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | StringBuilder sb = new StringBuilder(); 64 | sb.Append("class ProblemResponse {\n"); 65 | sb.Append(" Code: ").Append(Code).Append("\n"); 66 | sb.Append(" Error: ").Append(Error).Append("\n"); 67 | sb.Append("}\n"); 68 | return sb.ToString(); 69 | } 70 | 71 | /// 72 | /// Returns the JSON string presentation of the object 73 | /// 74 | /// JSON string presentation of the object 75 | public virtual string ToJson() 76 | { 77 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 78 | } 79 | 80 | /// 81 | /// To validate all properties of the instance 82 | /// 83 | /// Validation context 84 | /// Validation Result 85 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 86 | { 87 | yield break; 88 | } 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ProfileLifetimeState.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Represents the lifetime states of a profile, indicating which actions can be performed with the associated browser engine at each state. Possible values are: - Created: Profile is created; the associated browser engine is not started. - Starting: The associated browser engine is starting. - Running: The associated browser engine is currently running. - Terminating: The associated browser engine is in the process of terminating. - Terminated: The associated browser engine is not running but has been started at least once. - Locked: The profile is currently being used by another user. - Loading: The profile data or the browser engine is syncing with the cloud storage. - Unknown: State of the profile is undefined. 30 | /// 31 | /// Represents the lifetime states of a profile, indicating which actions can be performed with the associated browser engine at each state. Possible values are: - Created: Profile is created; the associated browser engine is not started. - Starting: The associated browser engine is starting. - Running: The associated browser engine is currently running. - Terminating: The associated browser engine is in the process of terminating. - Terminated: The associated browser engine is not running but has been started at least once. - Locked: The profile is currently being used by another user. - Loading: The profile data or the browser engine is syncing with the cloud storage. - Unknown: State of the profile is undefined. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum ProfileLifetimeState 34 | { 35 | /// 36 | /// Enum Created for value: created 37 | /// 38 | [EnumMember(Value = "created")] 39 | Created = 1, 40 | 41 | /// 42 | /// Enum Starting for value: starting 43 | /// 44 | [EnumMember(Value = "starting")] 45 | Starting = 2, 46 | 47 | /// 48 | /// Enum Running for value: running 49 | /// 50 | [EnumMember(Value = "running")] 51 | Running = 3, 52 | 53 | /// 54 | /// Enum Terminating for value: terminating 55 | /// 56 | [EnumMember(Value = "terminating")] 57 | Terminating = 4, 58 | 59 | /// 60 | /// Enum Terminated for value: terminated 61 | /// 62 | [EnumMember(Value = "terminated")] 63 | Terminated = 5, 64 | 65 | /// 66 | /// Enum Locked for value: locked 67 | /// 68 | [EnumMember(Value = "locked")] 69 | Locked = 6, 70 | 71 | /// 72 | /// Enum Loading for value: loading 73 | /// 74 | [EnumMember(Value = "loading")] 75 | Loading = 7, 76 | 77 | /// 78 | /// Enum Unknown for value: unknown 79 | /// 80 | [EnumMember(Value = "unknown")] 81 | Unknown = 8 82 | } 83 | 84 | } 85 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ProfileStorageLocation.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Defines ProfileStorageLocation 30 | /// 31 | [JsonConverter(typeof(StringEnumConverter))] 32 | public enum ProfileStorageLocation 33 | { 34 | /// 35 | /// Enum Local for value: local 36 | /// 37 | [EnumMember(Value = "local")] 38 | Local = 1, 39 | 40 | /// 41 | /// Enum Cloud for value: cloud 42 | /// 43 | [EnumMember(Value = "cloud")] 44 | Cloud = 2 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ProxyChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ProxyChoice 30 | /// 31 | [DataContract(Name = "ProxyChoice")] 32 | public partial class ProxyChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public ProxyConnectionType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected ProxyChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// extra. 50 | public ProxyChoice(ProxyConnectionType value = default(ProxyConnectionType), Server extra = default(Server)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// Gets or Sets Extra 58 | /// 59 | [DataMember(Name = "extra", EmitDefaultValue = false)] 60 | public Server Extra { get; set; } 61 | 62 | /// 63 | /// Returns the string presentation of the object 64 | /// 65 | /// String presentation of the object 66 | public override string ToString() 67 | { 68 | StringBuilder sb = new StringBuilder(); 69 | sb.Append("class ProxyChoice {\n"); 70 | sb.Append(" Value: ").Append(Value).Append("\n"); 71 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | yield break; 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ProxyConnectionType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Proxy connection settings of the profiles. Possible values: 'none': Direct connection without any proxy. 'http': Use a HTTP proxy for upstream communication. 'socks5': Use a SOCKS5 proxy for upstream communication. 'ssh': Use an SSH connection for upstream communication. Basically a SOCKS5 proxy created at the given SSH host. 30 | /// 31 | /// Proxy connection settings of the profiles. Possible values: 'none': Direct connection without any proxy. 'http': Use a HTTP proxy for upstream communication. 'socks5': Use a SOCKS5 proxy for upstream communication. 'ssh': Use an SSH connection for upstream communication. Basically a SOCKS5 proxy created at the given SSH host. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum ProxyConnectionType 34 | { 35 | /// 36 | /// Enum None for value: none 37 | /// 38 | [EnumMember(Value = "none")] 39 | None = 1, 40 | 41 | /// 42 | /// Enum Http for value: http 43 | /// 44 | [EnumMember(Value = "http")] 45 | Http = 2, 46 | 47 | /// 48 | /// Enum Socks5 for value: socks5 49 | /// 50 | [EnumMember(Value = "socks5")] 51 | Socks5 = 3, 52 | 53 | /// 54 | /// Enum Ssh for value: ssh 55 | /// 56 | [EnumMember(Value = "ssh")] 57 | Ssh = 4 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/QuotaStatistics.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// QuotaStatistics 30 | /// 31 | [DataContract(Name = "QuotaStatistics")] 32 | public partial class QuotaStatistics : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | public QuotaStatistics() 39 | { 40 | } 41 | 42 | /// 43 | /// Indicates the current usage, always a non-negative value. 44 | /// 45 | /// Indicates the current usage, always a non-negative value. 46 | [DataMember(Name = "currentUsage", IsRequired = true, EmitDefaultValue = true)] 47 | public int CurrentUsage { get; private set; } 48 | 49 | /// 50 | /// Returns false as CurrentUsage should not be serialized given that it's read-only. 51 | /// 52 | /// false (boolean) 53 | public bool ShouldSerializeCurrentUsage() 54 | { 55 | return false; 56 | } 57 | /// 58 | /// Indicates the maximum permitted value, with -1 implying no limit. 59 | /// 60 | /// Indicates the maximum permitted value, with -1 implying no limit. 61 | [DataMember(Name = "maximumLimit", IsRequired = true, EmitDefaultValue = true)] 62 | public int MaximumLimit { get; private set; } 63 | 64 | /// 65 | /// Returns false as MaximumLimit should not be serialized given that it's read-only. 66 | /// 67 | /// false (boolean) 68 | public bool ShouldSerializeMaximumLimit() 69 | { 70 | return false; 71 | } 72 | /// 73 | /// Returns the string presentation of the object 74 | /// 75 | /// String presentation of the object 76 | public override string ToString() 77 | { 78 | StringBuilder sb = new StringBuilder(); 79 | sb.Append("class QuotaStatistics {\n"); 80 | sb.Append(" CurrentUsage: ").Append(CurrentUsage).Append("\n"); 81 | sb.Append(" MaximumLimit: ").Append(MaximumLimit).Append("\n"); 82 | sb.Append("}\n"); 83 | return sb.ToString(); 84 | } 85 | 86 | /// 87 | /// Returns the JSON string presentation of the object 88 | /// 89 | /// JSON string presentation of the object 90 | public virtual string ToJson() 91 | { 92 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 93 | } 94 | 95 | /// 96 | /// To validate all properties of the instance 97 | /// 98 | /// Validation context 99 | /// Validation Result 100 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 101 | { 102 | yield break; 103 | } 104 | } 105 | 106 | } 107 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/RunningProfilesStatistics.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// RunningProfilesStatistics 30 | /// 31 | [DataContract(Name = "RunningProfilesStatistics")] 32 | public partial class RunningProfilesStatistics : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | /// automated. 38 | /// manual. 39 | public RunningProfilesStatistics(QuotaStatistics automated = default(QuotaStatistics), QuotaStatistics manual = default(QuotaStatistics)) 40 | { 41 | this.Automated = automated; 42 | this.Manual = manual; 43 | } 44 | 45 | /// 46 | /// Gets or Sets Automated 47 | /// 48 | [DataMember(Name = "automated", EmitDefaultValue = false)] 49 | public QuotaStatistics Automated { get; set; } 50 | 51 | /// 52 | /// Gets or Sets Manual 53 | /// 54 | [DataMember(Name = "manual", EmitDefaultValue = false)] 55 | public QuotaStatistics Manual { get; set; } 56 | 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | StringBuilder sb = new StringBuilder(); 64 | sb.Append("class RunningProfilesStatistics {\n"); 65 | sb.Append(" Automated: ").Append(Automated).Append("\n"); 66 | sb.Append(" Manual: ").Append(Manual).Append("\n"); 67 | sb.Append("}\n"); 68 | return sb.ToString(); 69 | } 70 | 71 | /// 72 | /// Returns the JSON string presentation of the object 73 | /// 74 | /// JSON string presentation of the object 75 | public virtual string ToJson() 76 | { 77 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 78 | } 79 | 80 | /// 81 | /// To validate all properties of the instance 82 | /// 83 | /// Validation context 84 | /// Validation Result 85 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 86 | { 87 | yield break; 88 | } 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ScreenChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ScreenChoice 30 | /// 31 | [DataContract(Name = "ScreenChoice")] 32 | public partial class ScreenChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public ScreenSpoofingType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected ScreenChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// The screen size of the device in pixels. For example: 1920x1080. 50 | public ScreenChoice(ScreenSpoofingType value = default(ScreenSpoofingType), string extra = default(string)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// The screen size of the device in pixels. For example: 1920x1080 58 | /// 59 | /// The screen size of the device in pixels. For example: 1920x1080 60 | [DataMember(Name = "extra", EmitDefaultValue = true)] 61 | public string Extra { get; set; } 62 | 63 | /// 64 | /// Returns the string presentation of the object 65 | /// 66 | /// String presentation of the object 67 | public override string ToString() 68 | { 69 | StringBuilder sb = new StringBuilder(); 70 | sb.Append("class ScreenChoice {\n"); 71 | sb.Append(" Value: ").Append(Value).Append("\n"); 72 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 73 | sb.Append("}\n"); 74 | return sb.ToString(); 75 | } 76 | 77 | /// 78 | /// Returns the JSON string presentation of the object 79 | /// 80 | /// JSON string presentation of the object 81 | public virtual string ToJson() 82 | { 83 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 84 | } 85 | 86 | /// 87 | /// To validate all properties of the instance 88 | /// 89 | /// Validation context 90 | /// Validation Result 91 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 92 | { 93 | yield break; 94 | } 95 | } 96 | 97 | } 98 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ScreenSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the screen will be spoofed. Possible values: 'automatic': Automatically override the screen resolution based on the fingerprint. 'manual': Manually override the screen resolution. 'off': Turn off the spoofing, use the original settings. 30 | /// 31 | /// Specifies how the screen will be spoofed. Possible values: 'automatic': Automatically override the screen resolution based on the fingerprint. 'manual': Manually override the screen resolution. 'off': Turn off the spoofing, use the original settings. 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum ScreenSpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Manual for value: manual 43 | /// 44 | [EnumMember(Value = "manual")] 45 | Manual = 2, 46 | 47 | /// 48 | /// Enum Off for value: off 49 | /// 50 | [EnumMember(Value = "off")] 51 | Off = 3 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ShareAccess.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ShareAccess 30 | /// 31 | [DataContract(Name = "ShareAccess")] 32 | public partial class ShareAccess : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected ShareAccess() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// user (required). 43 | /// role (required). 44 | /// Timestamp when the acess was granted to the user. (required). 45 | public ShareAccess(User user = default(User), GroupRole role = default(GroupRole), DateTime sharedAt = default(DateTime)) 46 | { 47 | // to ensure "user" is required (not null) 48 | if (user == null) 49 | { 50 | throw new ArgumentNullException("user is a required property for ShareAccess and cannot be null"); 51 | } 52 | this.User = user; 53 | // to ensure "role" is required (not null) 54 | if (role == null) 55 | { 56 | throw new ArgumentNullException("role is a required property for ShareAccess and cannot be null"); 57 | } 58 | this.Role = role; 59 | this.SharedAt = sharedAt; 60 | } 61 | 62 | /// 63 | /// Gets or Sets User 64 | /// 65 | [DataMember(Name = "user", IsRequired = true, EmitDefaultValue = true)] 66 | public User User { get; set; } 67 | 68 | /// 69 | /// Gets or Sets Role 70 | /// 71 | [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = true)] 72 | public GroupRole Role { get; set; } 73 | 74 | /// 75 | /// Timestamp when the acess was granted to the user. 76 | /// 77 | /// Timestamp when the acess was granted to the user. 78 | [DataMember(Name = "sharedAt", IsRequired = true, EmitDefaultValue = true)] 79 | public DateTime SharedAt { get; set; } 80 | 81 | /// 82 | /// Returns the string presentation of the object 83 | /// 84 | /// String presentation of the object 85 | public override string ToString() 86 | { 87 | StringBuilder sb = new StringBuilder(); 88 | sb.Append("class ShareAccess {\n"); 89 | sb.Append(" User: ").Append(User).Append("\n"); 90 | sb.Append(" Role: ").Append(Role).Append("\n"); 91 | sb.Append(" SharedAt: ").Append(SharedAt).Append("\n"); 92 | sb.Append("}\n"); 93 | return sb.ToString(); 94 | } 95 | 96 | /// 97 | /// Returns the JSON string presentation of the object 98 | /// 99 | /// JSON string presentation of the object 100 | public virtual string ToJson() 101 | { 102 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 103 | } 104 | 105 | /// 106 | /// To validate all properties of the instance 107 | /// 108 | /// Validation context 109 | /// Validation Result 110 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 111 | { 112 | yield break; 113 | } 114 | } 115 | 116 | } 117 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ShareAccessRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ShareAccessRequest 30 | /// 31 | [DataContract(Name = "ShareAccessRequest")] 32 | public partial class ShareAccessRequest : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected ShareAccessRequest() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Id of the selected role. (required). 43 | /// Id of the selected user. (required). 44 | public ShareAccessRequest(Guid roleId = default(Guid), Guid userId = default(Guid)) 45 | { 46 | this.RoleId = roleId; 47 | this.UserId = userId; 48 | } 49 | 50 | /// 51 | /// Id of the selected role. 52 | /// 53 | /// Id of the selected role. 54 | [DataMember(Name = "roleId", IsRequired = true, EmitDefaultValue = true)] 55 | public Guid RoleId { get; set; } 56 | 57 | /// 58 | /// Id of the selected user. 59 | /// 60 | /// Id of the selected user. 61 | [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] 62 | public Guid UserId { get; set; } 63 | 64 | /// 65 | /// Returns the string presentation of the object 66 | /// 67 | /// String presentation of the object 68 | public override string ToString() 69 | { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.Append("class ShareAccessRequest {\n"); 72 | sb.Append(" RoleId: ").Append(RoleId).Append("\n"); 73 | sb.Append(" UserId: ").Append(UserId).Append("\n"); 74 | sb.Append("}\n"); 75 | return sb.ToString(); 76 | } 77 | 78 | /// 79 | /// Returns the JSON string presentation of the object 80 | /// 81 | /// JSON string presentation of the object 82 | public virtual string ToJson() 83 | { 84 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 85 | } 86 | 87 | /// 88 | /// To validate all properties of the instance 89 | /// 90 | /// Validation context 91 | /// Validation Result 92 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 93 | { 94 | yield break; 95 | } 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ShareGroupRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ShareGroupRequest 30 | /// 31 | [DataContract(Name = "ShareGroupRequest")] 32 | public partial class ShareGroupRequest : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected ShareGroupRequest() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// List of share accesses to the folder. (required). 43 | public ShareGroupRequest(List shareAccesses = default(List)) 44 | { 45 | // to ensure "shareAccesses" is required (not null) 46 | if (shareAccesses == null) 47 | { 48 | throw new ArgumentNullException("shareAccesses is a required property for ShareGroupRequest and cannot be null"); 49 | } 50 | this.ShareAccesses = shareAccesses; 51 | } 52 | 53 | /// 54 | /// List of share accesses to the folder. 55 | /// 56 | /// List of share accesses to the folder. 57 | [DataMember(Name = "shareAccesses", IsRequired = true, EmitDefaultValue = true)] 58 | public List ShareAccesses { get; set; } 59 | 60 | /// 61 | /// Returns the string presentation of the object 62 | /// 63 | /// String presentation of the object 64 | public override string ToString() 65 | { 66 | StringBuilder sb = new StringBuilder(); 67 | sb.Append("class ShareGroupRequest {\n"); 68 | sb.Append(" ShareAccesses: ").Append(ShareAccesses).Append("\n"); 69 | sb.Append("}\n"); 70 | return sb.ToString(); 71 | } 72 | 73 | /// 74 | /// Returns the JSON string presentation of the object 75 | /// 76 | /// JSON string presentation of the object 77 | public virtual string ToJson() 78 | { 79 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 80 | } 81 | 82 | /// 83 | /// To validate all properties of the instance 84 | /// 85 | /// Validation context 86 | /// Validation Result 87 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 88 | { 89 | yield break; 90 | } 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/SharingOptionsResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// SharingOptionsResponse 30 | /// 31 | [DataContract(Name = "SharingOptionsResponse")] 32 | public partial class SharingOptionsResponse : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | /// List of users in your team.. 38 | /// List of roles you can give the users.. 39 | public SharingOptionsResponse(List users = default(List), List roles = default(List)) 40 | { 41 | this.Users = users; 42 | this.Roles = roles; 43 | } 44 | 45 | /// 46 | /// List of users in your team. 47 | /// 48 | /// List of users in your team. 49 | [DataMember(Name = "users", EmitDefaultValue = true)] 50 | public List Users { get; set; } 51 | 52 | /// 53 | /// List of roles you can give the users. 54 | /// 55 | /// List of roles you can give the users. 56 | [DataMember(Name = "roles", EmitDefaultValue = true)] 57 | public List Roles { get; set; } 58 | 59 | /// 60 | /// Returns the string presentation of the object 61 | /// 62 | /// String presentation of the object 63 | public override string ToString() 64 | { 65 | StringBuilder sb = new StringBuilder(); 66 | sb.Append("class SharingOptionsResponse {\n"); 67 | sb.Append(" Users: ").Append(Users).Append("\n"); 68 | sb.Append(" Roles: ").Append(Roles).Append("\n"); 69 | sb.Append("}\n"); 70 | return sb.ToString(); 71 | } 72 | 73 | /// 74 | /// Returns the JSON string presentation of the object 75 | /// 76 | /// JSON string presentation of the object 77 | public virtual string ToJson() 78 | { 79 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 80 | } 81 | 82 | /// 83 | /// To validate all properties of the instance 84 | /// 85 | /// Validation context 86 | /// Validation Result 87 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 88 | { 89 | yield break; 90 | } 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/StatusResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Status information about the profile 30 | /// 31 | [DataContract(Name = "StatusResponse")] 32 | public partial class StatusResponse : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets LifetimeState 37 | /// 38 | [DataMember(Name = "lifetimeState", IsRequired = true, EmitDefaultValue = true)] 39 | public ProfileLifetimeState LifetimeState { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected StatusResponse() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// lifetimeState (required). 49 | public StatusResponse(ProfileLifetimeState lifetimeState = default(ProfileLifetimeState)) 50 | { 51 | this.LifetimeState = lifetimeState; 52 | } 53 | 54 | /// 55 | /// Returns the string presentation of the object 56 | /// 57 | /// String presentation of the object 58 | public override string ToString() 59 | { 60 | StringBuilder sb = new StringBuilder(); 61 | sb.Append("class StatusResponse {\n"); 62 | sb.Append(" LifetimeState: ").Append(LifetimeState).Append("\n"); 63 | sb.Append("}\n"); 64 | return sb.ToString(); 65 | } 66 | 67 | /// 68 | /// Returns the JSON string presentation of the object 69 | /// 70 | /// JSON string presentation of the object 71 | public virtual string ToJson() 72 | { 73 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 74 | } 75 | 76 | /// 77 | /// To validate all properties of the instance 78 | /// 79 | /// Validation context 80 | /// Validation Result 81 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 82 | { 83 | yield break; 84 | } 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/TimezoneChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// TimezoneChoice 30 | /// 31 | [DataContract(Name = "TimezoneChoice")] 32 | public partial class TimezoneChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public TimezoneSpoofingType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected TimezoneChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// When the Timezone spoofing is set to manual the timezone in Iana format is required. For example: America/Grenada. 50 | public TimezoneChoice(TimezoneSpoofingType value = default(TimezoneSpoofingType), string extra = default(string)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// When the Timezone spoofing is set to manual the timezone in Iana format is required. For example: America/Grenada 58 | /// 59 | /// When the Timezone spoofing is set to manual the timezone in Iana format is required. For example: America/Grenada 60 | [DataMember(Name = "extra", EmitDefaultValue = true)] 61 | public string Extra { get; set; } 62 | 63 | /// 64 | /// Returns the string presentation of the object 65 | /// 66 | /// String presentation of the object 67 | public override string ToString() 68 | { 69 | StringBuilder sb = new StringBuilder(); 70 | sb.Append("class TimezoneChoice {\n"); 71 | sb.Append(" Value: ").Append(Value).Append("\n"); 72 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 73 | sb.Append("}\n"); 74 | return sb.ToString(); 75 | } 76 | 77 | /// 78 | /// Returns the JSON string presentation of the object 79 | /// 80 | /// JSON string presentation of the object 81 | public virtual string ToJson() 82 | { 83 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 84 | } 85 | 86 | /// 87 | /// To validate all properties of the instance 88 | /// 89 | /// Validation context 90 | /// Validation Result 91 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 92 | { 93 | yield break; 94 | } 95 | } 96 | 97 | } 98 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/TimezoneSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the timezone will be spoofed. Possble values: 'automatic': Timezone is automatically set by the IP 'manual': Timezone is manually overridden in the profile 'off': Turn off the spoofing, use the original settings 30 | /// 31 | /// Specifies how the timezone will be spoofed. Possble values: 'automatic': Timezone is automatically set by the IP 'manual': Timezone is manually overridden in the profile 'off': Turn off the spoofing, use the original settings 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum TimezoneSpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Manual for value: manual 43 | /// 44 | [EnumMember(Value = "manual")] 45 | Manual = 2, 46 | 47 | /// 48 | /// Enum Off for value: off 49 | /// 50 | [EnumMember(Value = "off")] 51 | Off = 3 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/UpdateFolderRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// UpdateFolderRequest 30 | /// 31 | [DataContract(Name = "UpdateFolderRequest")] 32 | public partial class UpdateFolderRequest : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected UpdateFolderRequest() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Human readable name of the folder. (required). 43 | public UpdateFolderRequest(string name = default(string)) 44 | { 45 | // to ensure "name" is required (not null) 46 | if (name == null) 47 | { 48 | throw new ArgumentNullException("name is a required property for UpdateFolderRequest and cannot be null"); 49 | } 50 | this.Name = name; 51 | } 52 | 53 | /// 54 | /// Human readable name of the folder. 55 | /// 56 | /// Human readable name of the folder. 57 | /* 58 | My renamed folder 59 | */ 60 | [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] 61 | public string Name { get; set; } 62 | 63 | /// 64 | /// Returns the string presentation of the object 65 | /// 66 | /// String presentation of the object 67 | public override string ToString() 68 | { 69 | StringBuilder sb = new StringBuilder(); 70 | sb.Append("class UpdateFolderRequest {\n"); 71 | sb.Append(" Name: ").Append(Name).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | // Name (string) maxLength 93 | if (this.Name != null && this.Name.Length > 100) 94 | { 95 | yield return new ValidationResult("Invalid value for Name, length must be less than 100.", new[] { "Name" }); 96 | } 97 | 98 | // Name (string) minLength 99 | if (this.Name != null && this.Name.Length < 1) 100 | { 101 | yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new[] { "Name" }); 102 | } 103 | 104 | yield break; 105 | } 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/User.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// User 30 | /// 31 | [DataContract(Name = "User")] 32 | public partial class User : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected User() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// Unique identifier of the user. (required). 43 | /// Dispaly name of the user. (required). 44 | /// Email address of the user. (required). 45 | public User(Guid id = default(Guid), string name = default(string), string email = default(string)) 46 | { 47 | this.Id = id; 48 | // to ensure "name" is required (not null) 49 | if (name == null) 50 | { 51 | throw new ArgumentNullException("name is a required property for User and cannot be null"); 52 | } 53 | this.Name = name; 54 | // to ensure "email" is required (not null) 55 | if (email == null) 56 | { 57 | throw new ArgumentNullException("email is a required property for User and cannot be null"); 58 | } 59 | this.Email = email; 60 | } 61 | 62 | /// 63 | /// Unique identifier of the user. 64 | /// 65 | /// Unique identifier of the user. 66 | [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] 67 | public Guid Id { get; set; } 68 | 69 | /// 70 | /// Dispaly name of the user. 71 | /// 72 | /// Dispaly name of the user. 73 | [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] 74 | public string Name { get; set; } 75 | 76 | /// 77 | /// Email address of the user. 78 | /// 79 | /// Email address of the user. 80 | [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = true)] 81 | public string Email { get; set; } 82 | 83 | /// 84 | /// Returns the string presentation of the object 85 | /// 86 | /// String presentation of the object 87 | public override string ToString() 88 | { 89 | StringBuilder sb = new StringBuilder(); 90 | sb.Append("class User {\n"); 91 | sb.Append(" Id: ").Append(Id).Append("\n"); 92 | sb.Append(" Name: ").Append(Name).Append("\n"); 93 | sb.Append(" Email: ").Append(Email).Append("\n"); 94 | sb.Append("}\n"); 95 | return sb.ToString(); 96 | } 97 | 98 | /// 99 | /// Returns the JSON string presentation of the object 100 | /// 101 | /// JSON string presentation of the object 102 | public virtual string ToJson() 103 | { 104 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 105 | } 106 | 107 | /// 108 | /// To validate all properties of the instance 109 | /// 110 | /// Validation context 111 | /// Validation Result 112 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 113 | { 114 | yield break; 115 | } 116 | } 117 | 118 | } 119 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/ValidationProblemDetails.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// ValidationProblemDetails 30 | /// 31 | [DataContract(Name = "ValidationProblemDetails")] 32 | public partial class ValidationProblemDetails : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | /// type. 38 | /// title. 39 | /// status. 40 | /// detail. 41 | /// instance. 42 | /// errors. 43 | public ValidationProblemDetails(string type = default(string), string title = default(string), int? status = default(int?), string detail = default(string), string instance = default(string), Dictionary> errors = default(Dictionary>)) 44 | { 45 | this.Type = type; 46 | this.Title = title; 47 | this.Status = status; 48 | this.Detail = detail; 49 | this.Instance = instance; 50 | this.Errors = errors; 51 | this.AdditionalProperties = new Dictionary(); 52 | } 53 | 54 | /// 55 | /// Gets or Sets Type 56 | /// 57 | [DataMember(Name = "type", EmitDefaultValue = true)] 58 | public string Type { get; set; } 59 | 60 | /// 61 | /// Gets or Sets Title 62 | /// 63 | [DataMember(Name = "title", EmitDefaultValue = true)] 64 | public string Title { get; set; } 65 | 66 | /// 67 | /// Gets or Sets Status 68 | /// 69 | [DataMember(Name = "status", EmitDefaultValue = true)] 70 | public int? Status { get; set; } 71 | 72 | /// 73 | /// Gets or Sets Detail 74 | /// 75 | [DataMember(Name = "detail", EmitDefaultValue = true)] 76 | public string Detail { get; set; } 77 | 78 | /// 79 | /// Gets or Sets Instance 80 | /// 81 | [DataMember(Name = "instance", EmitDefaultValue = true)] 82 | public string Instance { get; set; } 83 | 84 | /// 85 | /// Gets or Sets Errors 86 | /// 87 | [DataMember(Name = "errors", EmitDefaultValue = false)] 88 | public Dictionary> Errors { get; set; } 89 | 90 | /// 91 | /// Gets or Sets additional properties 92 | /// 93 | [JsonExtensionData] 94 | public IDictionary AdditionalProperties { get; set; } 95 | 96 | /// 97 | /// Returns the string presentation of the object 98 | /// 99 | /// String presentation of the object 100 | public override string ToString() 101 | { 102 | StringBuilder sb = new StringBuilder(); 103 | sb.Append("class ValidationProblemDetails {\n"); 104 | sb.Append(" Type: ").Append(Type).Append("\n"); 105 | sb.Append(" Title: ").Append(Title).Append("\n"); 106 | sb.Append(" Status: ").Append(Status).Append("\n"); 107 | sb.Append(" Detail: ").Append(Detail).Append("\n"); 108 | sb.Append(" Instance: ").Append(Instance).Append("\n"); 109 | sb.Append(" Errors: ").Append(Errors).Append("\n"); 110 | sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); 111 | sb.Append("}\n"); 112 | return sb.ToString(); 113 | } 114 | 115 | /// 116 | /// Returns the JSON string presentation of the object 117 | /// 118 | /// JSON string presentation of the object 119 | public virtual string ToJson() 120 | { 121 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 122 | } 123 | 124 | /// 125 | /// To validate all properties of the instance 126 | /// 127 | /// Validation context 128 | /// Validation Result 129 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 130 | { 131 | yield break; 132 | } 133 | } 134 | 135 | } 136 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebRtcChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// WebRtcChoice 30 | /// 31 | [DataContract(Name = "WebRtcChoice")] 32 | public partial class WebRtcChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public WebRtcSpoofingType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected WebRtcChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// extra. 50 | public WebRtcChoice(WebRtcSpoofingType value = default(WebRtcSpoofingType), WebRtcSpoofingOptions extra = default(WebRtcSpoofingOptions)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// Gets or Sets Extra 58 | /// 59 | [DataMember(Name = "extra", EmitDefaultValue = false)] 60 | public WebRtcSpoofingOptions Extra { get; set; } 61 | 62 | /// 63 | /// Returns the string presentation of the object 64 | /// 65 | /// String presentation of the object 66 | public override string ToString() 67 | { 68 | StringBuilder sb = new StringBuilder(); 69 | sb.Append("class WebRtcChoice {\n"); 70 | sb.Append(" Value: ").Append(Value).Append("\n"); 71 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | yield break; 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebRtcSpoofingOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// When the WebRTC spoofing is set to manual these extra settings will be used as well. 30 | /// 31 | [DataContract(Name = "WebRtcSpoofingOptions")] 32 | public partial class WebRtcSpoofingOptions : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected WebRtcSpoofingOptions() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// The WebRTC public IP address of the machine. (required). 43 | public WebRtcSpoofingOptions(string publicIp = default(string)) 44 | { 45 | // to ensure "publicIp" is required (not null) 46 | if (publicIp == null) 47 | { 48 | throw new ArgumentNullException("publicIp is a required property for WebRtcSpoofingOptions and cannot be null"); 49 | } 50 | this.PublicIp = publicIp; 51 | } 52 | 53 | /// 54 | /// The WebRTC public IP address of the machine. 55 | /// 56 | /// The WebRTC public IP address of the machine. 57 | /* 58 | 193.40.239.9 59 | */ 60 | [DataMember(Name = "publicIp", IsRequired = true, EmitDefaultValue = true)] 61 | public string PublicIp { get; set; } 62 | 63 | /// 64 | /// Returns the string presentation of the object 65 | /// 66 | /// String presentation of the object 67 | public override string ToString() 68 | { 69 | StringBuilder sb = new StringBuilder(); 70 | sb.Append("class WebRtcSpoofingOptions {\n"); 71 | sb.Append(" PublicIp: ").Append(PublicIp).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | yield break; 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebRtcSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the WebRTC will be spoofed. Possible values: 'automatic': Automatically set the webRTC public IP by the IP 'manual': Manually override the webRTC public IP and private IP in the profile 'block': Block the WebRTC functionality 'off': Turn off the spoofing, use the original settings 30 | /// 31 | /// Specifies how the WebRTC will be spoofed. Possible values: 'automatic': Automatically set the webRTC public IP by the IP 'manual': Manually override the webRTC public IP and private IP in the profile 'block': Block the WebRTC functionality 'off': Turn off the spoofing, use the original settings 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum WebRtcSpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Manual for value: manual 43 | /// 44 | [EnumMember(Value = "manual")] 45 | Manual = 2, 46 | 47 | /// 48 | /// Enum Block for value: block 49 | /// 50 | [EnumMember(Value = "block")] 51 | Block = 3, 52 | 53 | /// 54 | /// Enum Off for value: off 55 | /// 56 | [EnumMember(Value = "off")] 57 | Off = 4 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebglMeta.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// WebglMeta 30 | /// 31 | [DataContract(Name = "WebglMeta")] 32 | public partial class WebglMeta : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | [JsonConstructorAttribute] 38 | protected WebglMeta() { } 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// The UnmaskedVendor field from WebGL context (required). 43 | /// The UnmaskedRenderer field from WebGL context. 44 | public WebglMeta(string vendor = default(string), string renderer = default(string)) 45 | { 46 | // to ensure "vendor" is required (not null) 47 | if (vendor == null) 48 | { 49 | throw new ArgumentNullException("vendor is a required property for WebglMeta and cannot be null"); 50 | } 51 | this.Vendor = vendor; 52 | this.Renderer = renderer; 53 | } 54 | 55 | /// 56 | /// The UnmaskedVendor field from WebGL context 57 | /// 58 | /// The UnmaskedVendor field from WebGL context 59 | /* 60 | Google Inc. (AMD) 61 | */ 62 | [DataMember(Name = "vendor", IsRequired = true, EmitDefaultValue = true)] 63 | public string Vendor { get; set; } 64 | 65 | /// 66 | /// The UnmaskedRenderer field from WebGL context 67 | /// 68 | /// The UnmaskedRenderer field from WebGL context 69 | /* 70 | ANGLE (AMD, AMD Radeon(TM) RX Vega 11 Graphics Direct3D11 vs_5_0 ps_5_0, D3D11) 71 | */ 72 | [DataMember(Name = "renderer", EmitDefaultValue = true)] 73 | public string Renderer { get; set; } 74 | 75 | /// 76 | /// Returns the string presentation of the object 77 | /// 78 | /// String presentation of the object 79 | public override string ToString() 80 | { 81 | StringBuilder sb = new StringBuilder(); 82 | sb.Append("class WebglMeta {\n"); 83 | sb.Append(" Vendor: ").Append(Vendor).Append("\n"); 84 | sb.Append(" Renderer: ").Append(Renderer).Append("\n"); 85 | sb.Append("}\n"); 86 | return sb.ToString(); 87 | } 88 | 89 | /// 90 | /// Returns the JSON string presentation of the object 91 | /// 92 | /// JSON string presentation of the object 93 | public virtual string ToJson() 94 | { 95 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 96 | } 97 | 98 | /// 99 | /// To validate all properties of the instance 100 | /// 101 | /// Validation context 102 | /// Validation Result 103 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 104 | { 105 | yield break; 106 | } 107 | } 108 | 109 | } 110 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebglMetaChoice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// WebglMetaChoice 30 | /// 31 | [DataContract(Name = "WebglMetaChoice")] 32 | public partial class WebglMetaChoice : IValidatableObject 33 | { 34 | 35 | /// 36 | /// Gets or Sets Value 37 | /// 38 | [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] 39 | public WebglMetaSpoofingType Value { get; set; } 40 | /// 41 | /// Initializes a new instance of the class. 42 | /// 43 | [JsonConstructorAttribute] 44 | protected WebglMetaChoice() { } 45 | /// 46 | /// Initializes a new instance of the class. 47 | /// 48 | /// value (required). 49 | /// extra. 50 | public WebglMetaChoice(WebglMetaSpoofingType value = default(WebglMetaSpoofingType), WebglMetaSpoofingOptions extra = default(WebglMetaSpoofingOptions)) 51 | { 52 | this.Value = value; 53 | this.Extra = extra; 54 | } 55 | 56 | /// 57 | /// Gets or Sets Extra 58 | /// 59 | [DataMember(Name = "extra", EmitDefaultValue = false)] 60 | public WebglMetaSpoofingOptions Extra { get; set; } 61 | 62 | /// 63 | /// Returns the string presentation of the object 64 | /// 65 | /// String presentation of the object 66 | public override string ToString() 67 | { 68 | StringBuilder sb = new StringBuilder(); 69 | sb.Append("class WebglMetaChoice {\n"); 70 | sb.Append(" Value: ").Append(Value).Append("\n"); 71 | sb.Append(" Extra: ").Append(Extra).Append("\n"); 72 | sb.Append("}\n"); 73 | return sb.ToString(); 74 | } 75 | 76 | /// 77 | /// Returns the JSON string presentation of the object 78 | /// 79 | /// JSON string presentation of the object 80 | public virtual string ToJson() 81 | { 82 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 83 | } 84 | 85 | /// 86 | /// To validate all properties of the instance 87 | /// 88 | /// Validation context 89 | /// Validation Result 90 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 91 | { 92 | yield break; 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebglMetaSpoofingOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// When the WebGL Meta spoofing is used, these settings can override the values in the fingerprint. 30 | /// 31 | [DataContract(Name = "WebglMetaSpoofingOptions")] 32 | public partial class WebglMetaSpoofingOptions : IValidatableObject 33 | { 34 | /// 35 | /// Initializes a new instance of the class. 36 | /// 37 | /// Unmasked vendor. 38 | /// Unmasked renderer. 39 | public WebglMetaSpoofingOptions(string vendor = default(string), string renderer = default(string)) 40 | { 41 | this.Vendor = vendor; 42 | this.Renderer = renderer; 43 | } 44 | 45 | /// 46 | /// Unmasked vendor 47 | /// 48 | /// Unmasked vendor 49 | /* 50 | Google Inc. 51 | */ 52 | [DataMember(Name = "vendor", EmitDefaultValue = true)] 53 | public string Vendor { get; set; } 54 | 55 | /// 56 | /// Unmasked renderer 57 | /// 58 | /// Unmasked renderer 59 | /* 60 | ANGLE (Intel(R) HD Graphics 630 Direct3D11 vs_5_0 ps_5_0) 61 | */ 62 | [DataMember(Name = "renderer", EmitDefaultValue = true)] 63 | public string Renderer { get; set; } 64 | 65 | /// 66 | /// Returns the string presentation of the object 67 | /// 68 | /// String presentation of the object 69 | public override string ToString() 70 | { 71 | StringBuilder sb = new StringBuilder(); 72 | sb.Append("class WebglMetaSpoofingOptions {\n"); 73 | sb.Append(" Vendor: ").Append(Vendor).Append("\n"); 74 | sb.Append(" Renderer: ").Append(Renderer).Append("\n"); 75 | sb.Append("}\n"); 76 | return sb.ToString(); 77 | } 78 | 79 | /// 80 | /// Returns the JSON string presentation of the object 81 | /// 82 | /// JSON string presentation of the object 83 | public virtual string ToJson() 84 | { 85 | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); 86 | } 87 | 88 | /// 89 | /// To validate all properties of the instance 90 | /// 91 | /// Validation context 92 | /// Validation Result 93 | IEnumerable IValidatableObject.Validate(ValidationContext validationContext) 94 | { 95 | yield break; 96 | } 97 | } 98 | 99 | } 100 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebglMetaSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the WebGL vendor and renderer will be spoofed. Possible values: 'automatic': The vendor and renderer values comes from the fingerprint. 'manual': Manually configure WebGL metadata. For optimal results, choose a video card model similar to your device's to ensure realistic profile masking. 'off': Turn off the spoofing, use the original settings 30 | /// 31 | /// Specifies how the WebGL vendor and renderer will be spoofed. Possible values: 'automatic': The vendor and renderer values comes from the fingerprint. 'manual': Manually configure WebGL metadata. For optimal results, choose a video card model similar to your device's to ensure realistic profile masking. 'off': Turn off the spoofing, use the original settings 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum WebglMetaSpoofingType 34 | { 35 | /// 36 | /// Enum Automatic for value: automatic 37 | /// 38 | [EnumMember(Value = "automatic")] 39 | Automatic = 1, 40 | 41 | /// 42 | /// Enum Manual for value: manual 43 | /// 44 | [EnumMember(Value = "manual")] 45 | Manual = 2, 46 | 47 | /// 48 | /// Enum Off for value: off 49 | /// 50 | [EnumMember(Value = "off")] 51 | Off = 3 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/Kameleo.LocalApiClient/Model/WebglSpoofingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * kameleo-local-api 3 | * 4 | * You can use the following API endpoints to communicate with the local running Kameleo programmatically. 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Collections; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Runtime.Serialization; 18 | using System.Text; 19 | using System.Text.RegularExpressions; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using Newtonsoft.Json.Linq; 23 | using System.ComponentModel.DataAnnotations; 24 | using OpenAPIDateConverter = Kameleo.LocalApiClient.Client.OpenAPIDateConverter; 25 | 26 | namespace Kameleo.LocalApiClient.Model 27 | { 28 | /// 29 | /// Specifies how the WebGL will be spoofed. Possible values: 'noise': Add some noise to the WebGL generation 'block': Completely block the 3D API 'off': Turn off the spoofing, use the original settings 30 | /// 31 | /// Specifies how the WebGL will be spoofed. Possible values: 'noise': Add some noise to the WebGL generation 'block': Completely block the 3D API 'off': Turn off the spoofing, use the original settings 32 | [JsonConverter(typeof(StringEnumConverter))] 33 | public enum WebglSpoofingType 34 | { 35 | /// 36 | /// Enum Noise for value: noise 37 | /// 38 | [EnumMember(Value = "noise")] 39 | Noise = 1, 40 | 41 | /// 42 | /// Enum Block for value: block 43 | /// 44 | [EnumMember(Value = "block")] 45 | Block = 2, 46 | 47 | /// 48 | /// Enum Off for value: off 49 | /// 50 | [EnumMember(Value = "off")] 51 | Off = 3 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /template/netcore_project.mustache: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | {{targetFramework}} 6 | Kameleo.LocalApiClient 7 | Kameleo.LocalApiClient 8 | Library 9 | Kameleo Team 10 | Kameleo 11 | This .NET Standard package provides convenient access to the Local API REST interface of the Kameleo Client. 12 | Kameleo.LocalApiClient 13 | {{packageVersion}} 14 | MIT 15 | https://github.com/kameleo-io/local-api-client-csharp.git 16 | README.md 17 | git 18 | kameleo; stealth browsing platform; anti-detect browser; selenium; webdriver; browser automation; web scraping; puppeteer; playwright; headless; chrome; firefox; chromium; edge 19 | false 20 | 21 | CS0612 22 | 23 | 24 | 25 | {{#useCompareNetObjects}} 26 | 27 | {{/useCompareNetObjects}} 28 | {{^useGenericHost}} 29 | 30 | 31 | {{/useGenericHost}} 32 | {{#useRestSharp}} 33 | 34 | {{/useRestSharp}} 35 | {{#useGenericHost}} 36 | 37 | 38 | {{#supportsRetry}} 39 | 40 | {{/supportsRetry}} 41 | {{#net80OrLater}} 42 | 43 | {{/net80OrLater}} 44 | {{^net60OrLater}} 45 | 46 | {{#net47OrLater}} 47 | 48 | {{/net47OrLater}} 49 | {{/net60OrLater}} 50 | {{/useGenericHost}} 51 | {{^useGenericHost}} 52 | {{#supportsRetry}} 53 | 54 | {{/supportsRetry}} 55 | {{/useGenericHost}} 56 | {{#validatable}} 57 | {{^net60OrLater}} 58 | 59 | {{/net60OrLater}} 60 | {{/validatable}} 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | {{>netcore_project.additions}} 73 | --------------------------------------------------------------------------------