Skip to content

Commit 22f3495

Browse files
committed
chore: update for 4.1.0
1 parent bd66d79 commit 22f3495

Some content is hidden

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

65 files changed

+816
-515
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ src/Kameleo.LocalApiClient/Model/Preference.cs
5656
src/Kameleo.LocalApiClient/Model/ProblemDetails.cs
5757
src/Kameleo.LocalApiClient/Model/ProblemResponse.cs
5858
src/Kameleo.LocalApiClient/Model/ProfileLifetimeState.cs
59+
src/Kameleo.LocalApiClient/Model/ProfileMinutesQuota.cs
5960
src/Kameleo.LocalApiClient/Model/ProfilePreview.cs
6061
src/Kameleo.LocalApiClient/Model/ProfileResponse.cs
6162
src/Kameleo.LocalApiClient/Model/ProfileStorageLocation.cs

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.11.0
1+
7.13.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ With [Kameleo](https://kameleo.io), you can easily create multiple virtual brows
2525
### 1. Install by NuGet
2626

2727
```
28-
Install-Package Kameleo.LocalApiClient
28+
dotnet add package Kameleo.LocalApiClient
2929
```
3030

3131
### 2. Start the Kameleo.CLI on your computer
@@ -88,7 +88,7 @@ var webdriver = new RemoteWebDriver(uri, opts);
8888

8989
// Use any WebDriver command to drive the browser
9090
// and enjoy full protection from bot detection products
91-
webdriver.Navigate().GoToUrl("https://google.com");
91+
await webdriver.Navigate().GoToUrlAsync("https://google.com");
9292
```
9393

9494
The full example can be found [here](https://github.com/kameleo-io/local-api-examples/blob/master/dotnet-csharp/connect_to_selenium/Program.cs).

src/Kameleo.LocalApiClient/Api/CookieApi.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface ICookieApiSync : IApiAccessor
3434
/// <param name="cookieRequest"> (optional)</param>
3535
/// <param name="operationIndex">Index associated with the operation.</param>
3636
/// <returns>List&lt;BrowserCookie&gt;</returns>
37-
List<BrowserCookie> AddCookies(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0);
37+
List<BrowserCookie> AddCookies(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0);
3838

3939
/// <summary>
4040
/// Adds a list of cookies to the profile, allowing you to inject cookies before starting the profile. If cookies already exist for a domain, they will be replaced with the new ones.
@@ -47,7 +47,7 @@ public interface ICookieApiSync : IApiAccessor
4747
/// <param name="cookieRequest"> (optional)</param>
4848
/// <param name="operationIndex">Index associated with the operation.</param>
4949
/// <returns>ApiResponse of List&lt;BrowserCookie&gt;</returns>
50-
ApiResponse<List<BrowserCookie>> AddCookiesWithHttpInfo(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0);
50+
ApiResponse<List<BrowserCookie>> AddCookiesWithHttpInfo(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0);
5151
/// <summary>
5252
/// Deletes all the cookies stored in the profile, which will likely log the profile out of all websites.
5353
/// </summary>
@@ -109,7 +109,7 @@ public interface ICookieApiAsync : IApiAccessor
109109
/// <param name="operationIndex">Index associated with the operation.</param>
110110
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
111111
/// <returns>Task of List&lt;BrowserCookie&gt;</returns>
112-
System.Threading.Tasks.Task<List<BrowserCookie>> AddCookiesAsync(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
112+
System.Threading.Tasks.Task<List<BrowserCookie>> AddCookiesAsync(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
113113

114114
/// <summary>
115115
/// Adds a list of cookies to the profile, allowing you to inject cookies before starting the profile. If cookies already exist for a domain, they will be replaced with the new ones.
@@ -123,7 +123,7 @@ public interface ICookieApiAsync : IApiAccessor
123123
/// <param name="operationIndex">Index associated with the operation.</param>
124124
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
125125
/// <returns>Task of ApiResponse (List&lt;BrowserCookie&gt;)</returns>
126-
System.Threading.Tasks.Task<ApiResponse<List<BrowserCookie>>> AddCookiesWithHttpInfoAsync(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
126+
System.Threading.Tasks.Task<ApiResponse<List<BrowserCookie>>> AddCookiesWithHttpInfoAsync(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
127127
/// <summary>
128128
/// Deletes all the cookies stored in the profile, which will likely log the profile out of all websites.
129129
/// </summary>
@@ -135,7 +135,7 @@ public interface ICookieApiAsync : IApiAccessor
135135
/// <param name="operationIndex">Index associated with the operation.</param>
136136
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
137137
/// <returns>Task of void</returns>
138-
System.Threading.Tasks.Task DeleteCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
138+
System.Threading.Tasks.Task DeleteCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
139139

140140
/// <summary>
141141
/// Deletes all the cookies stored in the profile, which will likely log the profile out of all websites.
@@ -148,7 +148,7 @@ public interface ICookieApiAsync : IApiAccessor
148148
/// <param name="operationIndex">Index associated with the operation.</param>
149149
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
150150
/// <returns>Task of ApiResponse</returns>
151-
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
151+
System.Threading.Tasks.Task<ApiResponse<Object>> DeleteCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
152152
/// <summary>
153153
/// Retrieves the list of cookies stored in the profile&#39;s browser. Note that this list does not include session cookies, which are not persisted between browser launches.
154154
/// </summary>
@@ -160,7 +160,7 @@ public interface ICookieApiAsync : IApiAccessor
160160
/// <param name="operationIndex">Index associated with the operation.</param>
161161
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
162162
/// <returns>Task of List&lt;BrowserCookie&gt;</returns>
163-
System.Threading.Tasks.Task<List<BrowserCookie>> ListCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
163+
System.Threading.Tasks.Task<List<BrowserCookie>> ListCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
164164

165165
/// <summary>
166166
/// Retrieves the list of cookies stored in the profile&#39;s browser. Note that this list does not include session cookies, which are not persisted between browser launches.
@@ -173,7 +173,7 @@ public interface ICookieApiAsync : IApiAccessor
173173
/// <param name="operationIndex">Index associated with the operation.</param>
174174
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
175175
/// <returns>Task of ApiResponse (List&lt;BrowserCookie&gt;)</returns>
176-
System.Threading.Tasks.Task<ApiResponse<List<BrowserCookie>>> ListCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
176+
System.Threading.Tasks.Task<ApiResponse<List<BrowserCookie>>> ListCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
177177
#endregion Asynchronous Operations
178178
}
179179

@@ -302,7 +302,7 @@ public Kameleo.LocalApiClient.Client.ExceptionFactory ExceptionFactory
302302
/// <param name="cookieRequest"> (optional)</param>
303303
/// <param name="operationIndex">Index associated with the operation.</param>
304304
/// <returns>List&lt;BrowserCookie&gt;</returns>
305-
public List<BrowserCookie> AddCookies(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0)
305+
public List<BrowserCookie> AddCookies(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0)
306306
{
307307
Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>> localVarResponse = AddCookiesWithHttpInfo(guid, cookieRequest);
308308
return localVarResponse.Data;
@@ -316,7 +316,7 @@ public Kameleo.LocalApiClient.Client.ExceptionFactory ExceptionFactory
316316
/// <param name="cookieRequest"> (optional)</param>
317317
/// <param name="operationIndex">Index associated with the operation.</param>
318318
/// <returns>ApiResponse of List&lt;BrowserCookie&gt;</returns>
319-
public Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>> AddCookiesWithHttpInfo(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0)
319+
public Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>> AddCookiesWithHttpInfo(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0)
320320
{
321321
Kameleo.LocalApiClient.Client.RequestOptions localVarRequestOptions = new Kameleo.LocalApiClient.Client.RequestOptions();
322322

@@ -372,7 +372,7 @@ public Kameleo.LocalApiClient.Client.ExceptionFactory ExceptionFactory
372372
/// <param name="operationIndex">Index associated with the operation.</param>
373373
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
374374
/// <returns>Task of List&lt;BrowserCookie&gt;</returns>
375-
public async System.Threading.Tasks.Task<List<BrowserCookie>> AddCookiesAsync(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
375+
public async System.Threading.Tasks.Task<List<BrowserCookie>> AddCookiesAsync(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
376376
{
377377
Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>> localVarResponse = await AddCookiesWithHttpInfoAsync(guid, cookieRequest, operationIndex, cancellationToken).ConfigureAwait(false);
378378
return localVarResponse.Data;
@@ -387,7 +387,7 @@ public Kameleo.LocalApiClient.Client.ExceptionFactory ExceptionFactory
387387
/// <param name="operationIndex">Index associated with the operation.</param>
388388
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
389389
/// <returns>Task of ApiResponse (List&lt;BrowserCookie&gt;)</returns>
390-
public async System.Threading.Tasks.Task<Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>>> AddCookiesWithHttpInfoAsync(Guid guid, List<CookieRequest> cookieRequest = default(List<CookieRequest>), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
390+
public async System.Threading.Tasks.Task<Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>>> AddCookiesWithHttpInfoAsync(Guid guid, List<CookieRequest> cookieRequest = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
391391
{
392392

393393
Kameleo.LocalApiClient.Client.RequestOptions localVarRequestOptions = new Kameleo.LocalApiClient.Client.RequestOptions();
@@ -507,7 +507,7 @@ public Kameleo.LocalApiClient.Client.ApiResponse<Object> DeleteCookiesWithHttpIn
507507
/// <param name="operationIndex">Index associated with the operation.</param>
508508
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
509509
/// <returns>Task of void</returns>
510-
public async System.Threading.Tasks.Task DeleteCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
510+
public async System.Threading.Tasks.Task DeleteCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
511511
{
512512
await DeleteCookiesWithHttpInfoAsync(guid, operationIndex, cancellationToken).ConfigureAwait(false);
513513
}
@@ -520,7 +520,7 @@ public Kameleo.LocalApiClient.Client.ApiResponse<Object> DeleteCookiesWithHttpIn
520520
/// <param name="operationIndex">Index associated with the operation.</param>
521521
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
522522
/// <returns>Task of ApiResponse</returns>
523-
public async System.Threading.Tasks.Task<Kameleo.LocalApiClient.Client.ApiResponse<Object>> DeleteCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
523+
public async System.Threading.Tasks.Task<Kameleo.LocalApiClient.Client.ApiResponse<Object>> DeleteCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
524524
{
525525

526526
Kameleo.LocalApiClient.Client.RequestOptions localVarRequestOptions = new Kameleo.LocalApiClient.Client.RequestOptions();
@@ -639,7 +639,7 @@ public Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>> ListCookie
639639
/// <param name="operationIndex">Index associated with the operation.</param>
640640
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
641641
/// <returns>Task of List&lt;BrowserCookie&gt;</returns>
642-
public async System.Threading.Tasks.Task<List<BrowserCookie>> ListCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
642+
public async System.Threading.Tasks.Task<List<BrowserCookie>> ListCookiesAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
643643
{
644644
Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>> localVarResponse = await ListCookiesWithHttpInfoAsync(guid, operationIndex, cancellationToken).ConfigureAwait(false);
645645
return localVarResponse.Data;
@@ -653,7 +653,7 @@ public Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>> ListCookie
653653
/// <param name="operationIndex">Index associated with the operation.</param>
654654
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
655655
/// <returns>Task of ApiResponse (List&lt;BrowserCookie&gt;)</returns>
656-
public async System.Threading.Tasks.Task<Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>>> ListCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
656+
public async System.Threading.Tasks.Task<Kameleo.LocalApiClient.Client.ApiResponse<List<BrowserCookie>>> ListCookiesWithHttpInfoAsync(Guid guid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
657657
{
658658

659659
Kameleo.LocalApiClient.Client.RequestOptions localVarRequestOptions = new Kameleo.LocalApiClient.Client.RequestOptions();

0 commit comments

Comments
 (0)