From 5779dc0d9935b9333e6074322c01c43dbfea944c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 25 May 2024 00:35:57 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.296.1 --- .speakeasy/gen.lock | 12 +++++------ .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 6 +++--- RELEASES.md | 12 ++++++++++- jsr.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/lib/config.ts | 6 +++--- src/lib/encodings.ts | 2 +- src/lib/http.ts | 2 +- src/lib/is-plain-object.ts | 43 ++++++++++++++++++++++++++++++++++++++ src/lib/primitives.ts | 9 -------- 12 files changed, 73 insertions(+), 29 deletions(-) create mode 100644 src/lib/is-plain-object.ts delete mode 100644 src/lib/primitives.ts diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c0faef1..9daf160 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,17 +3,17 @@ id: 6250b250-1f28-403b-a1c6-452ade2211c7 management: docChecksum: f773c956b74326e3015b5e1eeaaa65be docVersion: 1.0.0 - speakeasyVersion: 1.295.1 - generationVersion: 2.335.5 - releaseVersion: 0.1.7 - configChecksum: 82c2df32b6f2c59d747c14981c7b789a + speakeasyVersion: 1.296.1 + generationVersion: 2.338.1 + releaseVersion: 0.1.8 + configChecksum: c477ed889b5e865f3e17c7e224e25a2f repoURL: https://github.com/Codehagen/dingify-sdk.git installationURL: https://github.com/Codehagen/dingify-sdk published: true features: typescript: additionalDependencies: 0.1.0 - core: 3.9.6 + core: 3.9.9 globalSecurity: 2.82.9 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 @@ -33,7 +33,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 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index add7265..b7f81e6 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.1.7 + version: 0.1.8 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 000ae89..5ba7eed 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,8 +1,8 @@ -speakeasyVersion: 1.295.1 +speakeasyVersion: 1.296.1 sources: sample-source: sourceNamespace: sample-source - sourceRevisionDigest: sha256:42b57a8081125a75fef005fa849dc3249e6d67bba44eb2342887ebd0db9bc0a5 + sourceRevisionDigest: sha256:51a95b6c69ffc5c04013a8eee4efa2cefbf30bf5b70d5c39223ce6375ade8db9 sourceBlobDigest: sha256:a244ff635a59a6e58b707647c704f5987f4c60fd221e00d7ddc153b56cb5b97c tags: - latest @@ -11,7 +11,7 @@ targets: my-first-target: source: sample-source sourceNamespace: sample-source - sourceRevisionDigest: sha256:42b57a8081125a75fef005fa849dc3249e6d67bba44eb2342887ebd0db9bc0a5 + sourceRevisionDigest: sha256:51a95b6c69ffc5c04013a8eee4efa2cefbf30bf5b70d5c39223ce6375ade8db9 sourceBlobDigest: sha256:a244ff635a59a6e58b707647c704f5987f4c60fd221e00d7ddc153b56cb5b97c outLocation: /github/workspace/repo workflow: diff --git a/RELEASES.md b/RELEASES.md index e0272c6..1e4ae8a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -38,4 +38,14 @@ Based on: ### Generated - [typescript v0.1.7] . ### Releases -- [NPM v0.1.7] https://www.npmjs.com/package/dingify/v/0.1.7 - . \ No newline at end of file +- [NPM v0.1.7] https://www.npmjs.com/package/dingify/v/0.1.7 - . + +## 2024-05-25 00:35:23 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.1.8] . +### Releases +- [NPM v0.1.8] https://www.npmjs.com/package/dingify/v/0.1.8 - . \ No newline at end of file diff --git a/jsr.json b/jsr.json index 6189358..8c53f67 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "dingify", - "version": "0.1.7", + "version": "0.1.8", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 1d93255..b38bab7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dingify", - "version": "0.1.7", + "version": "0.1.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dingify", - "version": "0.1.7", + "version": "0.1.8", "devDependencies": { "@types/jsonpath": "^0.2.4", "@typescript-eslint/eslint-plugin": "^7.7.1", diff --git a/package.json b/package.json index a95ec8f..cfd8f60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dingify", - "version": "0.1.7", + "version": "0.1.8", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index 475cd4b..9e99e7b 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0.0", - sdkVersion: "0.1.7", - genVersion: "2.335.5", - userAgent: "speakeasy-sdk/typescript 0.1.7 2.335.5 1.0.0 dingify", + sdkVersion: "0.1.8", + genVersion: "2.338.1", + userAgent: "speakeasy-sdk/typescript 0.1.8 2.338.1 1.0.0 dingify", } as const; diff --git a/src/lib/encodings.ts b/src/lib/encodings.ts index 19093ee..8cd50f6 100644 --- a/src/lib/encodings.ts +++ b/src/lib/encodings.ts @@ -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) { diff --git a/src/lib/http.ts b/src/lib/http.ts index 07442b2..f28175d 100644 --- a/src/lib/http.ts +++ b/src/lib/http.ts @@ -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 "../models/errors"; export type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise; diff --git a/src/lib/is-plain-object.ts b/src/lib/is-plain-object.ts new file mode 100644 index 0000000..af0d6e7 --- /dev/null +++ b/src/lib/is-plain-object.ts @@ -0,0 +1,43 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +/* +MIT License + +Copyright (c) Sindre Sorhus (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) + ); +} diff --git a/src/lib/primitives.ts b/src/lib/primitives.ts deleted file mode 100644 index 998a33b..0000000 --- a/src/lib/primitives.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - -export function isPlainObject(value: unknown): value is object { - if (typeof value !== "object" || value == null) return false; - const proto = Object.getPrototypeOf(value); - return proto === null || proto === Object.prototype; -}