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 JasperAI
{
public partial class AudiencesClient
{


private static readonly global::JasperAI.EndPointSecurityRequirement s_GetAudienceByIdSecurityRequirement0 =
new global::JasperAI.EndPointSecurityRequirement
{
Authorizations = new global::JasperAI.EndPointAuthorizationRequirement[]
{ new global::JasperAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::JasperAI.EndPointSecurityRequirement[] s_GetAudienceByIdSecurityRequirements =
new global::JasperAI.EndPointSecurityRequirement[]
{ s_GetAudienceByIdSecurityRequirement0,
};
partial void PrepareGetAudienceByIdArguments(
global::System.Net.Http.HttpClient httpClient,
ref string id);
Expand Down Expand Up @@ -38,9 +57,15 @@ partial void ProcessGetAudienceByIdResponseContent(
httpClient: HttpClient,
id: ref id);


var __authorizations = global::JasperAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetAudienceByIdSecurityRequirements,
operationName: "GetAudienceByIdAsync");

var __pathBuilder = new global::JasperAI.PathBuilder(
path: $"/audiences/{id}",
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 ProcessGetAudienceByIdResponseContent(
__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 JasperAI
{
public partial class AudiencesClient
{


private static readonly global::JasperAI.EndPointSecurityRequirement s_GetAudiencesSecurityRequirement0 =
new global::JasperAI.EndPointSecurityRequirement
{
Authorizations = new global::JasperAI.EndPointAuthorizationRequirement[]
{ new global::JasperAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::JasperAI.EndPointSecurityRequirement[] s_GetAudiencesSecurityRequirements =
new global::JasperAI.EndPointSecurityRequirement[]
{ s_GetAudiencesSecurityRequirement0,
};
partial void PrepareGetAudiencesArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareGetAudiencesRequest(
Expand Down Expand Up @@ -33,9 +52,15 @@ partial void ProcessGetAudiencesResponseContent(
PrepareGetAudiencesArguments(
httpClient: HttpClient);


var __authorizations = global::JasperAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetAudiencesSecurityRequirements,
operationName: "GetAudiencesAsync");

var __pathBuilder = new global::JasperAI.PathBuilder(
path: "/audiences",
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 @@ -45,7 +70,7 @@ partial void ProcessGetAudiencesResponseContent(
__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
29 changes: 27 additions & 2 deletions src/libs/JasperAI/Generated/JasperAI.CommandClient.Command.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace JasperAI
{
public partial class CommandClient
{


private static readonly global::JasperAI.EndPointSecurityRequirement s_CommandSecurityRequirement0 =
new global::JasperAI.EndPointSecurityRequirement
{
Authorizations = new global::JasperAI.EndPointAuthorizationRequirement[]
{ new global::JasperAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::JasperAI.EndPointSecurityRequirement[] s_CommandSecurityRequirements =
new global::JasperAI.EndPointSecurityRequirement[]
{ s_CommandSecurityRequirement0,
};
partial void PrepareCommandArguments(
global::System.Net.Http.HttpClient httpClient,
global::JasperAI.CommandRequest request);
Expand Down Expand Up @@ -41,9 +60,15 @@ partial void ProcessCommandResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::JasperAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CommandSecurityRequirements,
operationName: "CommandAsync");

var __pathBuilder = new global::JasperAI.PathBuilder(
path: "/command",
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 @@ -53,7 +78,7 @@ partial void ProcessCommandResponseContent(
__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 JasperAI
{
public partial class DocumentsClient
{


private static readonly global::JasperAI.EndPointSecurityRequirement s_CreateDocumentSecurityRequirement0 =
new global::JasperAI.EndPointSecurityRequirement
{
Authorizations = new global::JasperAI.EndPointAuthorizationRequirement[]
{ new global::JasperAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::JasperAI.EndPointSecurityRequirement[] s_CreateDocumentSecurityRequirements =
new global::JasperAI.EndPointSecurityRequirement[]
{ s_CreateDocumentSecurityRequirement0,
};
partial void PrepareCreateDocumentArguments(
global::System.Net.Http.HttpClient httpClient,
global::JasperAI.DocumentCreateRequest request);
Expand Down Expand Up @@ -41,9 +60,15 @@ partial void ProcessCreateDocumentResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::JasperAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateDocumentSecurityRequirements,
operationName: "CreateDocumentAsync");

var __pathBuilder = new global::JasperAI.PathBuilder(
path: "/documents",
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 @@ -53,7 +78,7 @@ partial void ProcessCreateDocumentResponseContent(
__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 JasperAI
{
public partial class DocumentsClient
{


private static readonly global::JasperAI.EndPointSecurityRequirement s_DeleteDocumentByIdSecurityRequirement0 =
new global::JasperAI.EndPointSecurityRequirement
{
Authorizations = new global::JasperAI.EndPointAuthorizationRequirement[]
{ new global::JasperAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::JasperAI.EndPointSecurityRequirement[] s_DeleteDocumentByIdSecurityRequirements =
new global::JasperAI.EndPointSecurityRequirement[]
{ s_DeleteDocumentByIdSecurityRequirement0,
};
partial void PrepareDeleteDocumentByIdArguments(
global::System.Net.Http.HttpClient httpClient,
ref string documentId);
Expand Down Expand Up @@ -33,9 +52,15 @@ partial void ProcessDeleteDocumentByIdResponse(
httpClient: HttpClient,
documentId: ref documentId);


var __authorizations = global::JasperAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_DeleteDocumentByIdSecurityRequirements,
operationName: "DeleteDocumentByIdAsync");

var __pathBuilder = new global::JasperAI.PathBuilder(
path: $"/documents/{documentId}",
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.Delete,
Expand All @@ -45,7 +70,7 @@ partial void ProcessDeleteDocumentByIdResponse(
__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 JasperAI
{
public partial class DocumentsClient
{


private static readonly global::JasperAI.EndPointSecurityRequirement s_GetAllDocumentsSecurityRequirement0 =
new global::JasperAI.EndPointSecurityRequirement
{
Authorizations = new global::JasperAI.EndPointAuthorizationRequirement[]
{ new global::JasperAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::JasperAI.EndPointSecurityRequirement[] s_GetAllDocumentsSecurityRequirements =
new global::JasperAI.EndPointSecurityRequirement[]
{ s_GetAllDocumentsSecurityRequirement0,
};
partial void PrepareGetAllDocumentsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? userId,
Expand Down Expand Up @@ -77,6 +96,12 @@ partial void ProcessGetAllDocumentsResponseContent(
createdAtStart: ref createdAtStart,
createdAtEnd: ref createdAtEnd);


var __authorizations = global::JasperAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetAllDocumentsSecurityRequirements,
operationName: "GetAllDocumentsAsync");

var __pathBuilder = new global::JasperAI.PathBuilder(
path: "/documents",
baseUri: HttpClient.BaseAddress);
Expand All @@ -89,7 +114,7 @@ partial void ProcessGetAllDocumentsResponseContent(
.AddOptionalParameter("statuses", statuses)
.AddOptionalParameter("createdAtStart", createdAtStart?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
.AddOptionalParameter("createdAtEnd", createdAtEnd?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -99,7 +124,7 @@ partial void ProcessGetAllDocumentsResponseContent(
__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 JasperAI
{
public partial class DocumentsClient
{


private static readonly global::JasperAI.EndPointSecurityRequirement s_GetDocumentByIdSecurityRequirement0 =
new global::JasperAI.EndPointSecurityRequirement
{
Authorizations = new global::JasperAI.EndPointAuthorizationRequirement[]
{ new global::JasperAI.EndPointAuthorizationRequirement
{
Type = "ApiKey",
Location = "Header",
Name = "X-API-Key",
FriendlyName = "ApiKeyInHeader",
},
},
};
private static readonly global::JasperAI.EndPointSecurityRequirement[] s_GetDocumentByIdSecurityRequirements =
new global::JasperAI.EndPointSecurityRequirement[]
{ s_GetDocumentByIdSecurityRequirement0,
};
partial void PrepareGetDocumentByIdArguments(
global::System.Net.Http.HttpClient httpClient,
ref string documentId);
Expand Down Expand Up @@ -38,9 +57,15 @@ partial void ProcessGetDocumentByIdResponseContent(
httpClient: HttpClient,
documentId: ref documentId);


var __authorizations = global::JasperAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetDocumentByIdSecurityRequirements,
operationName: "GetDocumentByIdAsync");

var __pathBuilder = new global::JasperAI.PathBuilder(
path: $"/documents/{documentId}",
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 ProcessGetDocumentByIdResponseContent(
__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