mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-06 04:19:37 +00:00
ci: regenerated with OpenAPI Doc latest, Speakeasy CLI 1.361.1
This commit is contained in:
@@ -3,10 +3,10 @@ id: 599a9576-4665-431e-be1e-44cc13ef28aa
|
||||
management:
|
||||
docChecksum: dd4d04e62622de8f631720b5be68964d
|
||||
docVersion: latest
|
||||
speakeasyVersion: 1.360.0
|
||||
generationVersion: 2.392.0
|
||||
releaseVersion: 0.6.0
|
||||
configChecksum: 10b03678b9f493d15f149a0580702c40
|
||||
speakeasyVersion: 1.361.1
|
||||
generationVersion: 2.393.4
|
||||
releaseVersion: 0.6.1
|
||||
configChecksum: 5e1692e0168fde15bf2cb519ffb5cdcd
|
||||
repoURL: https://github.com/LukeHagar/discoursejs.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/discoursejs
|
||||
@@ -15,8 +15,8 @@ features:
|
||||
typescript:
|
||||
additionalDependencies: 0.1.0
|
||||
additionalProperties: 0.1.1
|
||||
constsAndDefaults: 0.1.6
|
||||
core: 3.13.0
|
||||
constsAndDefaults: 0.1.7
|
||||
core: 3.13.1
|
||||
defaultEnabledRetries: 0.1.0
|
||||
deprecations: 2.81.1
|
||||
envVarSecurityUsage: 0.1.1
|
||||
@@ -170,6 +170,7 @@ generatedFiles:
|
||||
- src/sdk/models/errors/sdkerror.ts
|
||||
- src/sdk/models/errors/sdkvalidationerror.ts
|
||||
- src/sdk/types/blobs.ts
|
||||
- src/sdk/types/constdatetime.ts
|
||||
- src/sdk/types/enums.ts
|
||||
- src/sdk/types/fp.ts
|
||||
- src/sdk/types/index.ts
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -188,4 +188,14 @@ Based on:
|
||||
### Generated
|
||||
- [typescript v0.6.0] .
|
||||
### Releases
|
||||
- [NPM v0.6.0] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.6.0 - .
|
||||
- [NPM v0.6.0] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.6.0 - .
|
||||
|
||||
## 2024-08-11 00:24:53
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc latest
|
||||
- Speakeasy CLI 1.361.1 (2.393.4) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.6.1] .
|
||||
### Releases
|
||||
- [NPM v0.6.1] https://www.npmjs.com/package/@lukehagar/discoursejs/v/0.6.1 - .
|
||||
2
gen.yaml
2
gen.yaml
@@ -11,7 +11,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.6.0
|
||||
version: 0.6.1
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies: {}
|
||||
|
||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "@lukehagar/discoursejs",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lukehagar/discoursejs",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"author": "LukeHagar",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
export const SDK_METADATA = {
|
||||
language: "typescript",
|
||||
openapiDocVersion: "latest",
|
||||
sdkVersion: "0.6.0",
|
||||
genVersion: "2.392.0",
|
||||
userAgent: "speakeasy-sdk/typescript 0.6.0 2.392.0 latest @lukehagar/discoursejs",
|
||||
sdkVersion: "0.6.1",
|
||||
genVersion: "2.393.4",
|
||||
userAgent: "speakeasy-sdk/typescript 0.6.1 2.393.4 latest @lukehagar/discoursejs",
|
||||
} as const;
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export * from "./httpclienterrors.js";
|
||||
export * from "./sdkerror.js";
|
||||
export * from "./sdkvalidationerror.js";
|
||||
|
||||
@@ -10,15 +10,17 @@ export class SDKValidationError extends Error {
|
||||
*/
|
||||
public readonly rawValue: unknown;
|
||||
|
||||
/**
|
||||
* The raw message that failed validation.
|
||||
*/
|
||||
public readonly rawMessage: unknown;
|
||||
|
||||
constructor(message: string, cause: unknown, rawValue: unknown) {
|
||||
super(message);
|
||||
super(`${message}: ${cause}`);
|
||||
this.name = "SDKValidationError";
|
||||
this.cause = cause;
|
||||
this.rawValue = rawValue;
|
||||
}
|
||||
|
||||
public override toString(): string {
|
||||
return `${this.message}: ${this.cause}`;
|
||||
this.rawMessage = message;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,7 +30,7 @@ export class SDKValidationError extends Error {
|
||||
*/
|
||||
public pretty(): string {
|
||||
if (this.cause instanceof z.ZodError) {
|
||||
return `${this.message}\n${formatZodError(this.cause)}`;
|
||||
return `${this.rawMessage}\n${formatZodError(this.cause)}`;
|
||||
} else {
|
||||
return this.toString();
|
||||
}
|
||||
|
||||
15
src/sdk/types/constdatetime.ts
Normal file
15
src/sdk/types/constdatetime.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as z from "zod";
|
||||
|
||||
export function constDateTime(
|
||||
val: string,
|
||||
): z.ZodType<string, z.ZodTypeDef, unknown> {
|
||||
return z.custom<string>((v) => {
|
||||
return (
|
||||
typeof v === "string" && new Date(v).getTime() === new Date(val).getTime()
|
||||
);
|
||||
}, `Value must be equivelant to ${val}`);
|
||||
}
|
||||
Reference in New Issue
Block a user