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:
|
management:
|
||||||
docChecksum: dd4d04e62622de8f631720b5be68964d
|
docChecksum: dd4d04e62622de8f631720b5be68964d
|
||||||
docVersion: latest
|
docVersion: latest
|
||||||
speakeasyVersion: 1.360.0
|
speakeasyVersion: 1.361.1
|
||||||
generationVersion: 2.392.0
|
generationVersion: 2.393.4
|
||||||
releaseVersion: 0.6.0
|
releaseVersion: 0.6.1
|
||||||
configChecksum: 10b03678b9f493d15f149a0580702c40
|
configChecksum: 5e1692e0168fde15bf2cb519ffb5cdcd
|
||||||
repoURL: https://github.com/LukeHagar/discoursejs.git
|
repoURL: https://github.com/LukeHagar/discoursejs.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/discoursejs
|
installationURL: https://github.com/LukeHagar/discoursejs
|
||||||
@@ -15,8 +15,8 @@ features:
|
|||||||
typescript:
|
typescript:
|
||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
additionalProperties: 0.1.1
|
additionalProperties: 0.1.1
|
||||||
constsAndDefaults: 0.1.6
|
constsAndDefaults: 0.1.7
|
||||||
core: 3.13.0
|
core: 3.13.1
|
||||||
defaultEnabledRetries: 0.1.0
|
defaultEnabledRetries: 0.1.0
|
||||||
deprecations: 2.81.1
|
deprecations: 2.81.1
|
||||||
envVarSecurityUsage: 0.1.1
|
envVarSecurityUsage: 0.1.1
|
||||||
@@ -170,6 +170,7 @@ generatedFiles:
|
|||||||
- src/sdk/models/errors/sdkerror.ts
|
- src/sdk/models/errors/sdkerror.ts
|
||||||
- src/sdk/models/errors/sdkvalidationerror.ts
|
- src/sdk/models/errors/sdkvalidationerror.ts
|
||||||
- src/sdk/types/blobs.ts
|
- src/sdk/types/blobs.ts
|
||||||
|
- src/sdk/types/constdatetime.ts
|
||||||
- src/sdk/types/enums.ts
|
- src/sdk/types/enums.ts
|
||||||
- src/sdk/types/fp.ts
|
- src/sdk/types/fp.ts
|
||||||
- src/sdk/types/index.ts
|
- src/sdk/types/index.ts
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -188,4 +188,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [typescript v0.6.0] .
|
- [typescript v0.6.0] .
|
||||||
### Releases
|
### 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:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.6.0
|
version: 0.6.1
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies: {}
|
devDependencies: {}
|
||||||
|
|||||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "@lukehagar/discoursejs",
|
"name": "@lukehagar/discoursejs",
|
||||||
"version": "0.6.0",
|
"version": "0.6.1",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
|
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/discoursejs",
|
"name": "@lukehagar/discoursejs",
|
||||||
"version": "0.6.0",
|
"version": "0.6.1",
|
||||||
"author": "LukeHagar",
|
"author": "LukeHagar",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|||||||
export const SDK_METADATA = {
|
export const SDK_METADATA = {
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "latest",
|
openapiDocVersion: "latest",
|
||||||
sdkVersion: "0.6.0",
|
sdkVersion: "0.6.1",
|
||||||
genVersion: "2.392.0",
|
genVersion: "2.393.4",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.6.0 2.392.0 latest @lukehagar/discoursejs",
|
userAgent: "speakeasy-sdk/typescript 0.6.1 2.393.4 latest @lukehagar/discoursejs",
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -2,5 +2,6 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export * from "./httpclienterrors.js";
|
||||||
export * from "./sdkerror.js";
|
export * from "./sdkerror.js";
|
||||||
export * from "./sdkvalidationerror.js";
|
export * from "./sdkvalidationerror.js";
|
||||||
|
|||||||
@@ -10,15 +10,17 @@ export class SDKValidationError extends Error {
|
|||||||
*/
|
*/
|
||||||
public readonly rawValue: unknown;
|
public readonly rawValue: unknown;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The raw message that failed validation.
|
||||||
|
*/
|
||||||
|
public readonly rawMessage: unknown;
|
||||||
|
|
||||||
constructor(message: string, cause: unknown, rawValue: unknown) {
|
constructor(message: string, cause: unknown, rawValue: unknown) {
|
||||||
super(message);
|
super(`${message}: ${cause}`);
|
||||||
this.name = "SDKValidationError";
|
this.name = "SDKValidationError";
|
||||||
this.cause = cause;
|
this.cause = cause;
|
||||||
this.rawValue = rawValue;
|
this.rawValue = rawValue;
|
||||||
}
|
this.rawMessage = message;
|
||||||
|
|
||||||
public override toString(): string {
|
|
||||||
return `${this.message}: ${this.cause}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -28,7 +30,7 @@ export class SDKValidationError extends Error {
|
|||||||
*/
|
*/
|
||||||
public pretty(): string {
|
public pretty(): string {
|
||||||
if (this.cause instanceof z.ZodError) {
|
if (this.cause instanceof z.ZodError) {
|
||||||
return `${this.message}\n${formatZodError(this.cause)}`;
|
return `${this.rawMessage}\n${formatZodError(this.cause)}`;
|
||||||
} else {
|
} else {
|
||||||
return this.toString();
|
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