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

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.296.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and srenatus committed May 25, 2024
1 parent 3a2bcb0 commit 1714db3
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 31 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: 2f8b2839-3001-46b4-b5e0-cec0aad583ed
management:
docChecksum: 11b8c1e1d3f9d5dab18c36b33f81200d
docVersion: 0.2.0
speakeasyVersion: 1.295.1
generationVersion: 2.335.5
releaseVersion: 0.5.2
configChecksum: cc2269682b53237ba2378e836973facd
speakeasyVersion: 1.296.1
generationVersion: 2.338.1
releaseVersion: 0.5.3
configChecksum: ec6399e801910d1c8431e08c8fbfc05d
repoURL: https://github.com/StyraInc/opa-typescript.git
installationURL: https://github.com/StyraInc/opa-typescript
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.5
core: 3.9.6
core: 3.9.9
examples: 2.81.4
flattening: 2.81.1
globalSecurityCallbacks: 0.1.0
Expand All @@ -31,7 +31,7 @@ generatedFiles:
- src/lib/config.ts
- src/lib/encodings.ts
- src/lib/http.ts
- src/lib/primitives.ts
- src/lib/is-plain-object.ts
- src/lib/retries.ts
- src/lib/schemas.ts
- src/lib/sdks.ts
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.5.2
version: 0.5.3
additionalDependencies:
dependencies: {}
devDependencies:
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.295.1
speakeasyVersion: 1.296.1
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:afcf2c7bd5a0d9c83447f691d726b4eb54b22ca75beb3c61e2beadb03f4f9140
sourceBlobDigest: sha256:3a16fd7e7d5f1041e95d2d75148d4430eb86240cf42a06b1a9ea99c3b51eafde
sourceRevisionDigest: sha256:e5363378778e705fabd93c9682aed9c5ad4edeca0ebdb36b464159a8f775cf72
sourceBlobDigest: sha256:7e918d8c2ec6ceaf427d7e23111f34ca5611163d12dfd90c544bce84c3f701a5
tags:
- latest
- main
targets:
first-target:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:afcf2c7bd5a0d9c83447f691d726b4eb54b22ca75beb3c61e2beadb03f4f9140
sourceBlobDigest: sha256:3a16fd7e7d5f1041e95d2d75148d4430eb86240cf42a06b1a9ea99c3b51eafde
sourceRevisionDigest: sha256:e5363378778e705fabd93c9682aed9c5ad4edeca0ebdb36b464159a8f775cf72
sourceBlobDigest: sha256:7e918d8c2ec6ceaf427d7e23111f34ca5611163d12dfd90c544bce84c3f701a5
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,14 @@ Based on:
### Generated
- [typescript v0.5.2] .
### Releases
- [NPM v0.5.2] https://www.npmjs.com/package/@styra/opa/v/0.5.2 - .
- [NPM v0.5.2] https://www.npmjs.com/package/@styra/opa/v/0.5.2 - .

## 2024-05-25 00:14:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.5.3] .
### Releases
- [NPM v0.5.3] https://www.npmjs.com/package/@styra/opa/v/0.5.3 - .
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@styra/opa",
"version": "0.5.2",
"version": "0.5.3",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@styra/opa",
"version": "0.5.2",
"version": "0.5.3",
"author": "Styra",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.2.0",
sdkVersion: "0.5.2",
genVersion: "2.335.5",
userAgent: "speakeasy-sdk/typescript 0.5.2 2.335.5 0.2.0 @styra/opa",
sdkVersion: "0.5.3",
genVersion: "2.338.1",
userAgent: "speakeasy-sdk/typescript 0.5.3 2.338.1 0.2.0 @styra/opa",
} as const;
2 changes: 1 addition & 1 deletion src/lib/encodings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import { bytesToBase64 } from "./base64";
import { isPlainObject } from "./primitives";
import { isPlainObject } from "./is-plain-object";

export class EncodingError extends Error {
constructor(message: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { never as znever } from "zod";
import { parse } from "./schemas";
import { isPlainObject } from "./primitives";
import { isPlainObject } from "./is-plain-object";
import * as errors from "../sdk/models/errors";

export type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
Expand Down
43 changes: 43 additions & 0 deletions src/lib/is-plain-object.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

/*
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

// Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js

export function isPlainObject(value: unknown): value is object {
if (typeof value !== "object" || value === null) {
return false;
}

const prototype = Object.getPrototypeOf(value);
return (
(prototype === null ||
prototype === Object.prototype ||
Object.getPrototypeOf(prototype) === null) &&
!(Symbol.toStringTag in value) &&
!(Symbol.iterator in value)
);
}
9 changes: 0 additions & 9 deletions src/lib/primitives.ts

This file was deleted.

0 comments on commit 1714db3

Please sign in to comment.