Skip to content

Commit 8062558

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent a904cd8 commit 8062558

4 files changed

Lines changed: 19 additions & 18 deletions

File tree

ScrapeBadger.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{082D979B-EFF5-4587-875A-5B85DEAE3B82}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{BE156B94-8C1C-4659-9991-29042F5CA5B5}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger.Test", "src\ScrapeBadger.Test\ScrapeBadger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{082D979B-EFF5-4587-875A-5B85DEAE3B82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{082D979B-EFF5-4587-875A-5B85DEAE3B82}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{082D979B-EFF5-4587-875A-5B85DEAE3B82}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{082D979B-EFF5-4587-875A-5B85DEAE3B82}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{BE156B94-8C1C-4659-9991-29042F5CA5B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{BE156B94-8C1C-4659-9991-29042F5CA5B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{BE156B94-8C1C-4659-9991-29042F5CA5B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{BE156B94-8C1C-4659-9991-29042F5CA5B5}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

api/openapi.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5934,9 +5934,10 @@ paths:
59345934
title: Web Search
59355935
type: string
59365936
style: form
5937-
- description: Public http(s) URL of an image to attach to the prompt. Gemini
5938-
reads it and answers about it. POST also accepts `image_base64`. Exactly
5939-
one of the two.
5937+
- description: "UNAVAILABLE. Signed-out Gemini refuses image questions — it\
5938+
\ accepts the upload and then answers PERMISSION_DENIED to its own generate\
5939+
\ RPC, so this returns 422 immediately rather than charging for a render\
5940+
\ that cannot succeed. Use /v1/chatgpt/ask for image input."
59405941
explode: true
59415942
in: query
59425943
name: image_url

docs/GeminiApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace Example
4848
var prompt = "prompt_example"; // string | The prompt to send to Gemini (max 4096 characters).
4949
var country = "country_example"; // string | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
5050
var webSearch = "\"auto\""; // string | auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. (optional) (default to "auto")
51-
var imageUrl = "imageUrl_example"; // string | Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. (optional)
51+
var imageUrl = "imageUrl_example"; // string | UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)
5252
5353
try
5454
{
@@ -94,7 +94,7 @@ catch (ApiException e)
9494
| **prompt** | **string** | The prompt to send to Gemini (max 4096 characters). | |
9595
| **country** | **string** | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. | [optional] |
9696
| **webSearch** | **string** | auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. | [optional] [default to "auto"] |
97-
| **imageUrl** | **string** | Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. | [optional] |
97+
| **imageUrl** | **string** | UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. | [optional] |
9898

9999
### Return type
100100

src/ScrapeBadger/Api/GeminiApi.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface IGeminiApiSync : IApiAccessor
3737
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
3838
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
3939
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
40-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
40+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
4141
/// <returns>Object</returns>
4242
Object GeminiAskGeminiAQuestion(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string));
4343

@@ -51,7 +51,7 @@ public interface IGeminiApiSync : IApiAccessor
5151
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
5252
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
5353
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
54-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
54+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
5555
/// <returns>ApiResponse of Object</returns>
5656
ApiResponse<Object> GeminiAskGeminiAQuestionWithHttpInfo(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string));
5757
/// <summary>
@@ -182,7 +182,7 @@ public interface IGeminiApiAsync : IApiAccessor
182182
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
183183
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
184184
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
185-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
185+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
186186
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
187187
/// <returns>Task of Object</returns>
188188
System.Threading.Tasks.Task<Object> GeminiAskGeminiAQuestionAsync(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
@@ -197,7 +197,7 @@ public interface IGeminiApiAsync : IApiAccessor
197197
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
198198
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
199199
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
200-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
200+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
201201
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
202202
/// <returns>Task of ApiResponse (Object)</returns>
203203
System.Threading.Tasks.Task<ApiResponse<Object>> GeminiAskGeminiAQuestionWithHttpInfoAsync(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
@@ -540,7 +540,7 @@ public ScrapeBadger.Client.ExceptionFactory ExceptionFactory
540540
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
541541
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
542542
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
543-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
543+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
544544
/// <returns>Object</returns>
545545
public Object GeminiAskGeminiAQuestion(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string))
546546
{
@@ -555,7 +555,7 @@ public ScrapeBadger.Client.ExceptionFactory ExceptionFactory
555555
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
556556
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
557557
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
558-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
558+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
559559
/// <returns>ApiResponse of Object</returns>
560560
public ScrapeBadger.Client.ApiResponse<Object> GeminiAskGeminiAQuestionWithHttpInfo(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string))
561561
{
@@ -618,7 +618,7 @@ public ScrapeBadger.Client.ExceptionFactory ExceptionFactory
618618
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
619619
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
620620
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
621-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
621+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
622622
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
623623
/// <returns>Task of Object</returns>
624624
public async System.Threading.Tasks.Task<Object> GeminiAskGeminiAQuestionAsync(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
@@ -634,7 +634,7 @@ public ScrapeBadger.Client.ExceptionFactory ExceptionFactory
634634
/// <param name="prompt">The prompt to send to Gemini (max 4096 characters).</param>
635635
/// <param name="country">ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)</param>
636636
/// <param name="webSearch">auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. (optional, default to &quot;auto&quot;)</param>
637-
/// <param name="imageUrl">Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. (optional)</param>
637+
/// <param name="imageUrl">UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)</param>
638638
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
639639
/// <returns>Task of ApiResponse (Object)</returns>
640640
public async System.Threading.Tasks.Task<ScrapeBadger.Client.ApiResponse<Object>> GeminiAskGeminiAQuestionWithHttpInfoAsync(string prompt, string country = default(string), string webSearch = default(string), string imageUrl = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))

0 commit comments

Comments
 (0)