Skip to content

Commit f8d35b8

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]actions-user
authored
chore: 🐝 Update SDK - 1 - Generate 1.5.2 (#116)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.2 * empty commit to trigger [run-tests] workflow * Update project file to version 1.5.2 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <[email protected]>
1 parent ea3040a commit f8d35b8

9 files changed

+53
-38
lines changed

.speakeasy/gen.lock

+17-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f1a8c321-72a7-41c5-8f5e-3d925aeafa1a
33
management:
4-
docChecksum: 57a6a2a8635b93792761326637cf849b
4+
docChecksum: f6d18c51f782926bf37ba7e351609a57
55
docVersion: 0.2.0
6-
speakeasyVersion: 1.528.1
7-
generationVersion: 2.565.1
8-
releaseVersion: 1.5.1
9-
configChecksum: 9ae8bcd924d476e8143435f61f21c6c4
6+
speakeasyVersion: 1.531.2
7+
generationVersion: 2.570.0
8+
releaseVersion: 1.5.2
9+
configChecksum: a5490e17236f8c521a3297447dfb8631
1010
repoURL: https://github.com/StyraInc/opa-csharp.git
1111
repoSubDirectory: Styra/Opa/OpenApi/
1212
published: true
@@ -15,7 +15,7 @@ features:
1515
additionalDependencies: 0.1.0
1616
additionalProperties: 0.0.1
1717
constsAndDefaults: 0.0.1
18-
core: 3.10.14
18+
core: 3.10.15
1919
examples: 2.81.5
2020
flattening: 2.81.3
2121
globalSecurity: 2.83.7
@@ -154,7 +154,7 @@ examples:
154154
application/json: {"input": true}
155155
responses:
156156
"200":
157-
application/json: {"result": true}
157+
application/json: {"result": false}
158158
"400":
159159
application/json: {"code": "<value>", "message": "<value>"}
160160
"500":
@@ -172,18 +172,21 @@ examples:
172172
"200":
173173
application/json: {"batch_decision_id": "1bef6b7d-cd13-4890-bfe1-fd2e8de32189", "responses": {"key": {"result": "<value>"}, "key1": {"result": 8210.24}}}
174174
"207":
175-
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"}}}
175+
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"}}}
176176
"400":
177177
application/json: {"code": "<value>", "message": "<value>"}
178178
"500":
179179
application/json: {"responses": {"key": {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}}}
180180
compileQueryWithPartialEvaluation:
181181
speakeasy-default-compile-query-with-partial-evaluation:
182+
parameters:
183+
path:
184+
path: "app/rbac"
185+
query: {}
186+
header: {}
182187
requestBody:
183-
application/json: {"query": "<value>", "input": []}
188+
application/json: {"input": []}
184189
responses:
185-
"500":
186-
application/json: {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}
187190
"200":
188191
application/json: {}
189192
application/vnd.styra.multitarget+json: {}
@@ -197,6 +200,8 @@ examples:
197200
application/vnd.styra.sql.sqlserver+json: {}
198201
"400":
199202
application/json: {"code": "<value>", "message": "<value>"}
203+
"500":
204+
application/json: {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}
200205
health:
201206
speakeasy-default-health:
202207
parameters:
@@ -208,5 +213,5 @@ examples:
208213
application/json: {}
209214
"500":
210215
application/json: {"code": "<value>"}
211-
examplesVersion: 1.0.0
216+
examplesVersion: 1.0.1
212217
generatedTests: {}

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: false
1616
oAuth2PasswordEnabled: false
1717
csharp:
18-
version: 1.5.1
18+
version: 1.5.2
1919
additionalDependencies: []
2020
author: Styra
2121
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.528.1
1+
speakeasyVersion: 1.531.2
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:e4fa67d2aebe13178d658b8d9079fff2c449d4e810f12c6dd8de64b4222b6e10
6-
sourceBlobDigest: sha256:ca5dae82b0e6fb836b1ba28934aa2ef17e3b4bfac1cebfe63cba4cc46d8034cb
5+
sourceRevisionDigest: sha256:386ec8c83a5cd60aab80b4251180b8b751faea8ec768454e4971ad986d91c6b9
6+
sourceBlobDigest: sha256:afa18e7ab19ab748542be70072cbd0d53be1c96f0fa3c7e54744f2b61e6464cb
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1742947449
9+
- speakeasy-sdk-regen-1743811446
1010
- 0.2.0
1111
targets:
1212
first-target:
1313
source: openapi
1414
sourceNamespace: openapi
15-
sourceRevisionDigest: sha256:e4fa67d2aebe13178d658b8d9079fff2c449d4e810f12c6dd8de64b4222b6e10
16-
sourceBlobDigest: sha256:ca5dae82b0e6fb836b1ba28934aa2ef17e3b4bfac1cebfe63cba4cc46d8034cb
15+
sourceRevisionDigest: sha256:386ec8c83a5cd60aab80b4251180b8b751faea8ec768454e4971ad986d91c6b9
16+
sourceBlobDigest: sha256:afa18e7ab19ab748542be70072cbd0d53be1c96f0fa3c7e54744f2b61e6464cb
1717
codeSamplesNamespace: openapi-csharp-code-samples
18-
codeSamplesRevisionDigest: sha256:c538b2ae76885434888df34b8d8291921bd761ffb1ead973d365c9fb4f204fe5
18+
codeSamplesRevisionDigest: sha256:debd3bbda5388026ea7f647932a010143178148c97530a940d36ee3c706b2bc5
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -325,4 +325,14 @@ Based on:
325325
### Generated
326326
- [csharp v1.5.1] .
327327
### Releases
328-
- [NuGet v1.5.1] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.5.1 - .
328+
- [NuGet v1.5.1] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.5.1 - .
329+
330+
## 2025-04-11 00:04:00
331+
### Changes
332+
Based on:
333+
- OpenAPI Doc
334+
- Speakeasy CLI 1.531.2 (2.570.0) https://github.com/speakeasy-api/speakeasy
335+
### Generated
336+
- [csharp v1.5.2] .
337+
### Releases
338+
- [NuGet v1.5.2] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.5.2 - .

Styra/Opa/OpenApi/Models/Requests/CompileQueryWithPartialEvaluationRequest.cs

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ namespace Styra.Opa.OpenApi.Models.Requests
1616
public class CompileQueryWithPartialEvaluationRequest
1717
{
1818

19+
/// <summary>
20+
/// 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.
21+
/// </summary>
22+
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=path")]
23+
public string Path { get; set; } = "";
24+
1925
/// <summary>
2026
/// 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
2127
/// </summary>

Styra/Opa/OpenApi/Models/Requests/CompileQueryWithPartialEvaluationRequestBody.cs

-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ namespace Styra.Opa.OpenApi.Models.Requests
2020
public class CompileQueryWithPartialEvaluationRequestBody
2121
{
2222

23-
/// <summary>
24-
/// The query to partially evaluate and compile.
25-
/// </summary>
26-
[JsonProperty("query")]
27-
public string Query { get; set; } = default!;
28-
2923
/// <summary>
3024
/// Additional options to use during partial evaluation. Only the disableInlining option is currently supported in OPA. Enterprise OPA may support additional options.
3125
/// </summary>

Styra/Opa/OpenApi/Models/Requests/ExecuteDefaultPolicyWithInputRequest.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ namespace Styra.Opa.OpenApi.Models.Requests
1515
public class ExecuteDefaultPolicyWithInputRequest
1616
{
1717

18-
/// <summary>
19-
/// The input document
20-
/// </summary>
21-
[SpeakeasyMetadata("request:mediaType=application/json")]
22-
public Input Input { get; set; } = default!;
23-
2418
/// <summary>
2519
/// If parameter is `true`, response will formatted for humans.
2620
/// </summary>
@@ -32,5 +26,11 @@ public class ExecuteDefaultPolicyWithInputRequest
3226
/// </summary>
3327
[SpeakeasyMetadata("header:style=simple,explode=false,name=Accept-Encoding")]
3428
public GzipAcceptEncoding? AcceptEncoding { get; set; }
29+
30+
/// <summary>
31+
/// The input document
32+
/// </summary>
33+
[SpeakeasyMetadata("request:mediaType=application/json")]
34+
public Input Input { get; set; } = default!;
3535
}
3636
}

Styra/Opa/OpenApi/OpaApiClient.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public class OpaApiClient: IOpaApiClient
108108
public SDKConfig SDKConfiguration { get; private set; }
109109

110110
private const string _language = "csharp";
111-
private const string _sdkVersion = "1.5.1";
112-
private const string _sdkGenVersion = "2.565.1";
111+
private const string _sdkVersion = "1.5.2";
112+
private const string _sdkGenVersion = "2.570.0";
113113
private const string _openapiDocVersion = "0.2.0";
114-
private const string _userAgent = "speakeasy-sdk/csharp 1.5.1 2.565.1 0.2.0 Styra.Opa.OpenApi";
114+
private const string _userAgent = "speakeasy-sdk/csharp 1.5.2 2.570.0 0.2.0 Styra.Opa.OpenApi";
115115
private string _serverUrl = "";
116116
private int _serverIndex = 0;
117117
private ISpeakeasyHttpClient _client;
@@ -598,7 +598,7 @@ public async Task<ExecuteBatchPolicyWithInputResponse> ExecuteBatchPolicyWithInp
598598
public async Task<CompileQueryWithPartialEvaluationResponse> CompileQueryWithPartialEvaluationAsync(CompileQueryWithPartialEvaluationRequest request)
599599
{
600600
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
601-
var urlString = URLBuilder.Build(baseUrl, "/v1/compile", request);
601+
var urlString = URLBuilder.Build(baseUrl, "/v1/compile/{path}", request);
602602

603603
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
604604
httpRequest.Headers.Add("user-agent", _userAgent);

Styra/Opa/Styra.Opa.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Styra.Opa</PackageId>
5-
<Version>1.5.1</Version>
5+
<Version>1.5.2</Version>
66
<Authors>Styra</Authors>
77
<TargetFramework>net8.0</TargetFramework>
88
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)