Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace ScrapeGraphAI
{
public partial class AdminClient
{


private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement s_QueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostSecurityRequirement0 =
new global::ScrapeGraphAI.EndPointSecurityRequirement
{
Authorizations = new global::ScrapeGraphAI.EndPointAuthorizationRequirement[]
{ new global::ScrapeGraphAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "SGAI-APIKEY",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement[] s_QueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostSecurityRequirements =
new global::ScrapeGraphAI.EndPointSecurityRequirement[]
{ s_QueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostSecurityRequirement0,
};
partial void PrepareQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::ScrapeGraphAI.QueryRedisCacheByPatternRequest request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostR
httpClient: HttpClient,
request: request);


var __authorizations = global::ScrapeGraphAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_QueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostSecurityRequirements,
operationName: "QueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostAsync");

var __pathBuilder = new global::ScrapeGraphAI.PathBuilder(
path: "/v1/admin/query_redis_cache_by_pattern",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostR
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class AdminClient : global::ScrapeGraphAI.IAdminClient, gl
/// <summary>
///
/// </summary>
public const string DefaultBaseUrl = "https://api.scrapegraphai.com";
public const string DefaultBaseUrl = "https://api.scrapegraphai.com/";

private bool _disposeHttpClient = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace ScrapeGraphAI
{
public partial class AgenticScrapperClient
{


private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement s_AgenticBrowserV2V1WorkflowsExecutePostSecurityRequirement0 =
new global::ScrapeGraphAI.EndPointSecurityRequirement
{
Authorizations = new global::ScrapeGraphAI.EndPointAuthorizationRequirement[]
{ new global::ScrapeGraphAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "SGAI-APIKEY",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement[] s_AgenticBrowserV2V1WorkflowsExecutePostSecurityRequirements =
new global::ScrapeGraphAI.EndPointSecurityRequirement[]
{ s_AgenticBrowserV2V1WorkflowsExecutePostSecurityRequirement0,
};
partial void PrepareAgenticBrowserV2V1WorkflowsExecutePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::ScrapeGraphAI.WorkflowDefinition request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessAgenticBrowserV2V1WorkflowsExecutePostResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::ScrapeGraphAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AgenticBrowserV2V1WorkflowsExecutePostSecurityRequirements,
operationName: "AgenticBrowserV2V1WorkflowsExecutePostAsync");

var __pathBuilder = new global::ScrapeGraphAI.PathBuilder(
path: "/v1/workflows/execute",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessAgenticBrowserV2V1WorkflowsExecutePostResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace ScrapeGraphAI
{
public partial class AgenticScrapperClient
{


private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement s_AgenticScrapperV1AgenticScrapperPostSecurityRequirement0 =
new global::ScrapeGraphAI.EndPointSecurityRequirement
{
Authorizations = new global::ScrapeGraphAI.EndPointAuthorizationRequirement[]
{ new global::ScrapeGraphAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "SGAI-APIKEY",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement[] s_AgenticScrapperV1AgenticScrapperPostSecurityRequirements =
new global::ScrapeGraphAI.EndPointSecurityRequirement[]
{ s_AgenticScrapperV1AgenticScrapperPostSecurityRequirement0,
};
partial void PrepareAgenticScrapperV1AgenticScrapperPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::ScrapeGraphAI.AgenticScrapperRequest request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessAgenticScrapperV1AgenticScrapperPostResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::ScrapeGraphAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_AgenticScrapperV1AgenticScrapperPostSecurityRequirements,
operationName: "AgenticScrapperV1AgenticScrapperPostAsync");

var __pathBuilder = new global::ScrapeGraphAI.PathBuilder(
path: "/v1/agentic-scrapper",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessAgenticScrapperV1AgenticScrapperPostResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace ScrapeGraphAI
{
public partial class AgenticScrapperClient
{


private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement s_GetLiveSessionUrlV1GetLiveSessionUrlPostSecurityRequirement0 =
new global::ScrapeGraphAI.EndPointSecurityRequirement
{
Authorizations = new global::ScrapeGraphAI.EndPointAuthorizationRequirement[]
{ new global::ScrapeGraphAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "SGAI-APIKEY",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement[] s_GetLiveSessionUrlV1GetLiveSessionUrlPostSecurityRequirements =
new global::ScrapeGraphAI.EndPointSecurityRequirement[]
{ s_GetLiveSessionUrlV1GetLiveSessionUrlPostSecurityRequirement0,
};
partial void PrepareGetLiveSessionUrlV1GetLiveSessionUrlPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::ScrapeGraphAI.AgenticScrapperLiveSessionUrlRequest request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessGetLiveSessionUrlV1GetLiveSessionUrlPostResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::ScrapeGraphAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetLiveSessionUrlV1GetLiveSessionUrlPostSecurityRequirements,
operationName: "GetLiveSessionUrlV1GetLiveSessionUrlPostAsync");

var __pathBuilder = new global::ScrapeGraphAI.PathBuilder(
path: "/v1/get-live-session-url",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessGetLiveSessionUrlV1GetLiveSessionUrlPostResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace ScrapeGraphAI
{
public partial class AgenticScrapperClient
{


private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement s_StopSessionV1StopSessionPostSecurityRequirement0 =
new global::ScrapeGraphAI.EndPointSecurityRequirement
{
Authorizations = new global::ScrapeGraphAI.EndPointAuthorizationRequirement[]
{ new global::ScrapeGraphAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "SGAI-APIKEY",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement[] s_StopSessionV1StopSessionPostSecurityRequirements =
new global::ScrapeGraphAI.EndPointSecurityRequirement[]
{ s_StopSessionV1StopSessionPostSecurityRequirement0,
};
partial void PrepareStopSessionV1StopSessionPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::ScrapeGraphAI.AgenticScrapperStopSessionRequest request);
Expand Down Expand Up @@ -40,9 +59,15 @@ partial void ProcessStopSessionV1StopSessionPostResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::ScrapeGraphAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_StopSessionV1StopSessionPostSecurityRequirements,
operationName: "StopSessionV1StopSessionPostAsync");

var __pathBuilder = new global::ScrapeGraphAI.PathBuilder(
path: "/v1/stop-session",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -52,7 +77,7 @@ partial void ProcessStopSessionV1StopSessionPostResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class AgenticScrapperClient : global::ScrapeGraphAI.IAgent
/// <summary>
///
/// </summary>
public const string DefaultBaseUrl = "https://api.scrapegraphai.com";
public const string DefaultBaseUrl = "https://api.scrapegraphai.com/";

private bool _disposeHttpClient = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace ScrapeGraphAI
{
public partial class CrawlerClient
{


private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement s_GetCrawlResultV1CrawlTaskIdGetSecurityRequirement0 =
new global::ScrapeGraphAI.EndPointSecurityRequirement
{
Authorizations = new global::ScrapeGraphAI.EndPointAuthorizationRequirement[]
{ new global::ScrapeGraphAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "SGAI-APIKEY",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement[] s_GetCrawlResultV1CrawlTaskIdGetSecurityRequirements =
new global::ScrapeGraphAI.EndPointSecurityRequirement[]
{ s_GetCrawlResultV1CrawlTaskIdGetSecurityRequirement0,
};
partial void PrepareGetCrawlResultV1CrawlTaskIdGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string taskId);
Expand Down Expand Up @@ -38,9 +57,15 @@ partial void ProcessGetCrawlResultV1CrawlTaskIdGetResponseContent(
httpClient: HttpClient,
taskId: ref taskId);


var __authorizations = global::ScrapeGraphAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetCrawlResultV1CrawlTaskIdGetSecurityRequirements,
operationName: "GetCrawlResultV1CrawlTaskIdGetAsync");

var __pathBuilder = new global::ScrapeGraphAI.PathBuilder(
path: $"/v1/crawl/{taskId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -50,7 +75,7 @@ partial void ProcessGetCrawlResultV1CrawlTaskIdGetResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace ScrapeGraphAI
{
public partial class CrawlerClient
{


private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement s_GetWebhookLogsV1WebhookLogsCrawlerIdGetSecurityRequirement0 =
new global::ScrapeGraphAI.EndPointSecurityRequirement
{
Authorizations = new global::ScrapeGraphAI.EndPointAuthorizationRequirement[]
{ new global::ScrapeGraphAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "SGAI-APIKEY",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::ScrapeGraphAI.EndPointSecurityRequirement[] s_GetWebhookLogsV1WebhookLogsCrawlerIdGetSecurityRequirements =
new global::ScrapeGraphAI.EndPointSecurityRequirement[]
{ s_GetWebhookLogsV1WebhookLogsCrawlerIdGetSecurityRequirement0,
};
partial void PrepareGetWebhookLogsV1WebhookLogsCrawlerIdGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string crawlerId);
Expand Down Expand Up @@ -38,9 +57,15 @@ partial void ProcessGetWebhookLogsV1WebhookLogsCrawlerIdGetResponseContent(
httpClient: HttpClient,
crawlerId: ref crawlerId);


var __authorizations = global::ScrapeGraphAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetWebhookLogsV1WebhookLogsCrawlerIdGetSecurityRequirements,
operationName: "GetWebhookLogsV1WebhookLogsCrawlerIdGetAsync");

var __pathBuilder = new global::ScrapeGraphAI.PathBuilder(
path: $"/v1/webhook/logs/{crawlerId}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -50,7 +75,7 @@ partial void ProcessGetWebhookLogsV1WebhookLogsCrawlerIdGetResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Loading