Skip to content

chore: 🐝 Update SDK - 1 - Generate 1.5.2 #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2025
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
29 changes: 17 additions & 12 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f1a8c321-72a7-41c5-8f5e-3d925aeafa1a
management:
docChecksum: 57a6a2a8635b93792761326637cf849b
docChecksum: f6d18c51f782926bf37ba7e351609a57
docVersion: 0.2.0
speakeasyVersion: 1.528.1
generationVersion: 2.565.1
releaseVersion: 1.5.1
configChecksum: 9ae8bcd924d476e8143435f61f21c6c4
speakeasyVersion: 1.531.2
generationVersion: 2.570.0
releaseVersion: 1.5.2
configChecksum: a5490e17236f8c521a3297447dfb8631
repoURL: https://github.com/StyraInc/opa-csharp.git
repoSubDirectory: Styra/Opa/OpenApi/
published: true
Expand All @@ -15,7 +15,7 @@ features:
additionalDependencies: 0.1.0
additionalProperties: 0.0.1
constsAndDefaults: 0.0.1
core: 3.10.14
core: 3.10.15
examples: 2.81.5
flattening: 2.81.3
globalSecurity: 2.83.7
Expand Down Expand Up @@ -154,7 +154,7 @@ examples:
application/json: {"input": true}
responses:
"200":
application/json: {"result": true}
application/json: {"result": false}
"400":
application/json: {"code": "<value>", "message": "<value>"}
"500":
Expand All @@ -172,18 +172,21 @@ examples:
"200":
application/json: {"batch_decision_id": "1bef6b7d-cd13-4890-bfe1-fd2e8de32189", "responses": {"key": {"result": "<value>"}, "key1": {"result": 8210.24}}}
"207":
application/json: {"responses": {"key": {"http_status_code": "200", "result": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}, "key1": {"http_status_code": "200", "result": 6919.52, "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}}}
application/json: {"responses": {"key": {"http_status_code": "200", "code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}, "key1": {"http_status_code": "200", "code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}}}
"400":
application/json: {"code": "<value>", "message": "<value>"}
"500":
application/json: {"responses": {"key": {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}}}
compileQueryWithPartialEvaluation:
speakeasy-default-compile-query-with-partial-evaluation:
parameters:
path:
path: "app/rbac"
query: {}
header: {}
requestBody:
application/json: {"query": "<value>", "input": []}
application/json: {"input": []}
responses:
"500":
application/json: {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}
"200":
application/json: {}
application/vnd.styra.multitarget+json: {}
Expand All @@ -197,6 +200,8 @@ examples:
application/vnd.styra.sql.sqlserver+json: {}
"400":
application/json: {"code": "<value>", "message": "<value>"}
"500":
application/json: {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}
health:
speakeasy-default-health:
parameters:
Expand All @@ -208,5 +213,5 @@ examples:
application/json: {}
"500":
application/json: {"code": "<value>"}
examplesVersion: 1.0.0
examplesVersion: 1.0.1
generatedTests: {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
csharp:
version: 1.5.1
version: 1.5.2
additionalDependencies: []
author: Styra
clientServerStatusCodesAsErrors: true
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.528.1
speakeasyVersion: 1.531.2
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:e4fa67d2aebe13178d658b8d9079fff2c449d4e810f12c6dd8de64b4222b6e10
sourceBlobDigest: sha256:ca5dae82b0e6fb836b1ba28934aa2ef17e3b4bfac1cebfe63cba4cc46d8034cb
sourceRevisionDigest: sha256:386ec8c83a5cd60aab80b4251180b8b751faea8ec768454e4971ad986d91c6b9
sourceBlobDigest: sha256:afa18e7ab19ab748542be70072cbd0d53be1c96f0fa3c7e54744f2b61e6464cb
tags:
- latest
- speakeasy-sdk-regen-1742947449
- speakeasy-sdk-regen-1743811446
- 0.2.0
targets:
first-target:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:e4fa67d2aebe13178d658b8d9079fff2c449d4e810f12c6dd8de64b4222b6e10
sourceBlobDigest: sha256:ca5dae82b0e6fb836b1ba28934aa2ef17e3b4bfac1cebfe63cba4cc46d8034cb
sourceRevisionDigest: sha256:386ec8c83a5cd60aab80b4251180b8b751faea8ec768454e4971ad986d91c6b9
sourceBlobDigest: sha256:afa18e7ab19ab748542be70072cbd0d53be1c96f0fa3c7e54744f2b61e6464cb
codeSamplesNamespace: openapi-csharp-code-samples
codeSamplesRevisionDigest: sha256:c538b2ae76885434888df34b8d8291921bd761ffb1ead973d365c9fb4f204fe5
codeSamplesRevisionDigest: sha256:debd3bbda5388026ea7f647932a010143178148c97530a940d36ee3c706b2bc5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,14 @@ Based on:
### Generated
- [csharp v1.5.1] .
### Releases
- [NuGet v1.5.1] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.5.1 - .
- [NuGet v1.5.1] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.5.1 - .

## 2025-04-11 00:04:00
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.531.2 (2.570.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v1.5.2] .
### Releases
- [NuGet v1.5.2] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.5.2 - .
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ namespace Styra.Opa.OpenApi.Models.Requests
public class CompileQueryWithPartialEvaluationRequest
{

/// <summary>
/// The path separator is used to access values inside object and array documents. If the path indexes into an array, the server will attempt to convert the array index to an integer. If the path element cannot be converted to an integer, the server will respond with 404.
/// </summary>
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=path")]
public string Path { get; set; } = "";

/// <summary>
/// Indicates the server should respond with a gzip encoded body. The server will send the compressed response only if its length is above `server.encoding.gzip.min_length` value. See the configuration section
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ namespace Styra.Opa.OpenApi.Models.Requests
public class CompileQueryWithPartialEvaluationRequestBody
{

/// <summary>
/// The query to partially evaluate and compile.
/// </summary>
[JsonProperty("query")]
public string Query { get; set; } = default!;

/// <summary>
/// Additional options to use during partial evaluation. Only the disableInlining option is currently supported in OPA. Enterprise OPA may support additional options.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ namespace Styra.Opa.OpenApi.Models.Requests
public class ExecuteDefaultPolicyWithInputRequest
{

/// <summary>
/// The input document
/// </summary>
[SpeakeasyMetadata("request:mediaType=application/json")]
public Input Input { get; set; } = default!;

/// <summary>
/// If parameter is `true`, response will formatted for humans.
/// </summary>
Expand All @@ -32,5 +26,11 @@ public class ExecuteDefaultPolicyWithInputRequest
/// </summary>
[SpeakeasyMetadata("header:style=simple,explode=false,name=Accept-Encoding")]
public GzipAcceptEncoding? AcceptEncoding { get; set; }

/// <summary>
/// The input document
/// </summary>
[SpeakeasyMetadata("request:mediaType=application/json")]
public Input Input { get; set; } = default!;
}
}
8 changes: 4 additions & 4 deletions Styra/Opa/OpenApi/OpaApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ public class OpaApiClient: IOpaApiClient
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "1.5.1";
private const string _sdkGenVersion = "2.565.1";
private const string _sdkVersion = "1.5.2";
private const string _sdkGenVersion = "2.570.0";
private const string _openapiDocVersion = "0.2.0";
private const string _userAgent = "speakeasy-sdk/csharp 1.5.1 2.565.1 0.2.0 Styra.Opa.OpenApi";
private const string _userAgent = "speakeasy-sdk/csharp 1.5.2 2.570.0 0.2.0 Styra.Opa.OpenApi";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _client;
Expand Down Expand Up @@ -598,7 +598,7 @@ public async Task<ExecuteBatchPolicyWithInputResponse> ExecuteBatchPolicyWithInp
public async Task<CompileQueryWithPartialEvaluationResponse> CompileQueryWithPartialEvaluationAsync(CompileQueryWithPartialEvaluationRequest request)
{
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
var urlString = URLBuilder.Build(baseUrl, "/v1/compile", request);
var urlString = URLBuilder.Build(baseUrl, "/v1/compile/{path}", request);

var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
httpRequest.Headers.Add("user-agent", _userAgent);
Expand Down
2 changes: 1 addition & 1 deletion Styra/Opa/Styra.Opa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Styra.Opa</PackageId>
<Version>1.5.1</Version>
<Version>1.5.2</Version>
<Authors>Styra</Authors>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down