Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit a0069a8

Browse files
github-actions[bot]srenatusspeakeasybot
authored
chore: 🐝 Update SDK - Generate (#81)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.310.0 * sdk: adapt imports Switched to tsx for running the tests because ts-node broke with the changed imports. As long as the tests run, I'm happy, so tsx it is. Signed-off-by: Stephan Renatus <stephan@styra.com> Co-authored-by: Stephan Renatus <stephan@styra.com> Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent da51238 commit a0069a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+703
-280
lines changed

.eslintrc.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
root: true,
4+
extends: [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:import/recommended",
8+
"plugin:import/typescript",
9+
],
10+
parser: "@typescript-eslint/parser",
11+
plugins: ["@typescript-eslint"],
12+
settings: {
13+
"import/resolver": {
14+
typescript: true,
15+
node: true,
16+
},
17+
},
18+
rules: {
19+
// Handled by typescript compiler
20+
"@typescript-eslint/no-unused-vars": "off",
21+
"@typescript-eslint/ban-types": "off",
22+
"@typescript-eslint/no-namespace": "off",
23+
"@typescript-eslint/no-explicit-any": "off",
24+
"import/no-named-as-default-member": "off",
25+
26+
"import/no-default-export": "error",
27+
},
28+
};

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
npx eslint --max-warnings=0 src README.md
2424
npx prettier . --check
2525
npx typedoc
26-
node --require ts-node/register --test tests/**/*.ts
26+
node --import tsx --test tests/**/*.ts

.speakeasy/gen.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ id: 2f8b2839-3001-46b4-b5e0-cec0aad583ed
33
management:
44
docChecksum: a34bd1c885aa42eb3175940494581f67
55
docVersion: 0.2.0
6-
speakeasyVersion: 1.308.2
7-
generationVersion: 2.342.6
8-
releaseVersion: 1.0.4
9-
configChecksum: 1995c0c509bb9dd57e9fdb68a6c4c34a
6+
speakeasyVersion: 1.310.0
7+
generationVersion: 2.347.4
8+
releaseVersion: 1.1.0
9+
configChecksum: 99f65df66594ce7014329beac9e93535
1010
repoURL: https://github.com/StyraInc/opa-typescript.git
1111
installationURL: https://github.com/StyraInc/opa-typescript
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.5
17-
core: 3.9.14
17+
core: 3.10.0
1818
examples: 2.81.4
1919
flattening: 2.81.1
2020
globalSecurityCallbacks: 0.1.0
@@ -24,6 +24,7 @@ features:
2424
unions: 2.85.5
2525
generatedFiles:
2626
- src/sdk/sdk.ts
27+
- .eslintrc.cjs
2728
- RUNTIMES.md
2829
- jsr.json
2930
- package.json

.speakeasy/gen.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
typescript:
15-
version: 1.0.4
15+
version: 1.1.0
1616
additionalDependencies:
1717
dependencies: {}
1818
devDependencies:
1919
eslint-plugin-markdown: ^4.0.1
2020
prettier: 3.2.5
2121
testcontainers: ^10.7.2
22-
ts-node: ^10.9.2
22+
tsx: ^4.15.6
2323
typedoc: ^0.25.13
2424
typedoc-plugin-extras: ^3.0.0
2525
typedoc-plugin-replace-text: ^3.3.0
@@ -45,3 +45,4 @@ typescript:
4545
packageName: '@styra/opa'
4646
responseFormat: envelope-http
4747
templateVersion: v2
48+
useIndexModules: true

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.308.2
1+
speakeasyVersion: 1.310.0
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:473fbb546938d5d1921711b67f717098e4b955459e46644f125249cf4a0c8330
6-
sourceBlobDigest: sha256:5961ff122dac54a894eb88f90d7059ff3290b75dad3c4d87878ad659d9f8caac
5+
sourceRevisionDigest: sha256:d96661aa54221239a15b7346fc50ae57d6a4a7043bad06e4d609155b92aa78e8
6+
sourceBlobDigest: sha256:75900bae2bb57a2616bcac901573f87dcfeb3126903bcd8ab54b5365d77293eb
77
tags:
88
- latest
9-
- sr-fix-license-in-package.json
9+
- sr-prep-regen
1010
targets:
1111
first-target:
1212
source: openapi
1313
sourceNamespace: openapi
14-
sourceRevisionDigest: sha256:473fbb546938d5d1921711b67f717098e4b955459e46644f125249cf4a0c8330
15-
sourceBlobDigest: sha256:5961ff122dac54a894eb88f90d7059ff3290b75dad3c4d87878ad659d9f8caac
14+
sourceRevisionDigest: sha256:d96661aa54221239a15b7346fc50ae57d6a4a7043bad06e4d609155b92aa78e8
15+
sourceBlobDigest: sha256:75900bae2bb57a2616bcac901573f87dcfeb3126903bcd8ab54b5365d77293eb
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

DEVELOPMENT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ The tests are defined in a TS file, `tests/authorizer.test.ts`.
2727

2828
Run all tests with
2929

30-
```
31-
node --require ts-node/register --test tests/**/*.ts
30+
```shell
31+
node --import tsx --test tests/**/*.ts
3232
```
3333

3434
and with testcontainers-node's debug logging:
3535

36-
```
37-
DEBUG='testcontainers*' node --require ts-node/register --test tests/**/*.ts
36+
```shell
37+
DEBUG='testcontainers*' node --import tsx --test tests/**/*.ts
3838
```

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,25 @@ You can use the Styra OPA SDK to connect to [Open Policy Agent](https://www.open
1818
npm add @styra/opa
1919
```
2020

21+
### PNPM
22+
23+
```bash
24+
pnpm add @styra/opa
25+
```
26+
27+
### Bun
28+
29+
```bash
30+
bun add @styra/opa
31+
```
32+
2133
### Yarn
2234

2335
```bash
24-
yarn add @styra/opa
36+
yarn add @styra/opa zod
37+
38+
# Note that Yarn does not install peer dependencies automatically. You will need
39+
# to install zod as shown above.
2540
```
2641
<!-- End SDK Installation [installation] -->
2742

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,14 @@ Based on:
298298
### Generated
299299
- [typescript v1.0.4] .
300300
### Releases
301-
- [NPM v1.0.4] https://www.npmjs.com/package/@styra/opa/v/1.0.4 - .
301+
- [NPM v1.0.4] https://www.npmjs.com/package/@styra/opa/v/1.0.4 - .
302+
303+
## 2024-06-20 08:19:31
304+
### Changes
305+
Based on:
306+
- OpenAPI Doc
307+
- Speakeasy CLI 1.310.0 (2.347.4) https://github.com/speakeasy-api/speakeasy
308+
### Generated
309+
- [typescript v1.1.0] .
310+
### Releases
311+
- [NPM v1.1.0] https://www.npmjs.com/package/@styra/opa/v/1.1.0 - .

docs/sdk/models/components/input.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,36 @@
22

33
Arbitrary JSON used within your policies by accessing `input`
44

5+
6+
## Supported Types
7+
8+
### `boolean`
9+
10+
```typescript
11+
const value: boolean = /* values here */
12+
```
13+
14+
### `string`
15+
16+
```typescript
17+
const value: string = /* values here */
18+
```
19+
20+
### `number`
21+
22+
```typescript
23+
const value: number = /* values here */
24+
```
25+
26+
### `any[]`
27+
28+
```typescript
29+
const value: any[] = /* values here */
30+
```
31+
32+
### `{ [k: string]: any }`
33+
34+
```typescript
35+
const value: { [k: string]: any } = /* values here */
36+
```
37+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# Responses
22

3+
4+
## Supported Types
5+
6+
### `components.ResponsesSuccessfulPolicyResponse`
7+
8+
```typescript
9+
const value: components.ResponsesSuccessfulPolicyResponse = /* values here */
10+
```
11+
12+
### `components.ServerError`
13+
14+
```typescript
15+
const value: components.ServerError = /* values here */
16+
```
17+

docs/sdk/models/components/result.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,36 @@
22

33
The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.
44

5+
6+
## Supported Types
7+
8+
### `boolean`
9+
10+
```typescript
11+
const value: boolean = /* values here */
12+
```
13+
14+
### `string`
15+
16+
```typescript
17+
const value: string = /* values here */
18+
```
19+
20+
### `number`
21+
22+
```typescript
23+
const value: number = /* values here */
24+
```
25+
26+
### `any[]`
27+
28+
```typescript
29+
const value: any[] = /* values here */
30+
```
31+
32+
### `{ [k: string]: any }`
33+
34+
```typescript
35+
const value: { [k: string]: any } = /* values here */
36+
```
37+

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@styra/opa",
5-
"version": "1.0.4",
5+
"version": "1.1.0",
66
"exports": {
77
".": "./src/index.ts",
88
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",

0 commit comments

Comments
 (0)