Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.440.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 18, 2024
1 parent 9b83bb0 commit e945b3f
Show file tree
Hide file tree
Showing 27 changed files with 398 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: ede0e8e6-5a63-4cc3-bd29-551cf1036a60
management:
docChecksum: 55065f93fdcc6be1a140cbf922085627
docVersion: 4.0.0
speakeasyVersion: 1.440.0
generationVersion: 2.457.9
releaseVersion: 5.0.1
configChecksum: 66b76bf8e7baa7a300290bcec25c290e
speakeasyVersion: 1.440.1
generationVersion: 2.460.1
releaseVersion: 5.0.2
configChecksum: f09366df1e7a65e92e416f39cc6cbfef
repoURL: https://github.com/ryan-timothy-albert/simple-ts-sdk.git
installationURL: https://github.com/ryan-timothy-albert/simple-ts-sdk
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.18.4
core: 3.18.5
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
enumUnions: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 5.0.1
version: 5.0.2
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,20 +1,20 @@
speakeasyVersion: 1.440.0
speakeasyVersion: 1.440.1
sources:
petstore-oas:
sourceNamespace: petstore-oas
sourceRevisionDigest: sha256:2e9e0eec8cdcebbd2d499eff088c0b8752703d5c9d6a4b76c6f38c78b72e0ec9
sourceRevisionDigest: sha256:96078a8937f1c35cf4a889da6bfdc1376426a223ecc2e87fb1049b95d6721117
sourceBlobDigest: sha256:2c233fb0aeec9e0604105c8f8f7b34580440014e60aeb2acb1ae4919ed6698c3
tags:
- latest
- speakeasy-sdk-regen-1731615180
- speakeasy-sdk-regen-1731949759
targets:
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
sourceRevisionDigest: sha256:2e9e0eec8cdcebbd2d499eff088c0b8752703d5c9d6a4b76c6f38c78b72e0ec9
sourceRevisionDigest: sha256:96078a8937f1c35cf4a889da6bfdc1376426a223ecc2e87fb1049b95d6721117
sourceBlobDigest: sha256:2c233fb0aeec9e0604105c8f8f7b34580440014e60aeb2acb1ae4919ed6698c3
codeSamplesNamespace: petstore-oas-code-samples
codeSamplesRevisionDigest: sha256:f682af43eaad45820052c926ddc0d857b73ace54d9bd58f575e14bef3ca1f015
codeSamplesRevisionDigest: sha256:5dbaa9fec47cd92ce34b50115d374b2ef7eabce0b36fb24a3ddc7f2f1253d5f4
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,14 @@ Based on:
### Generated
- [typescript v5.0.1] .
### Releases
- [NPM v5.0.1] https://www.npmjs.com/package/ryan-simple-test-act/v/5.0.1 - .
- [NPM v5.0.1] https://www.npmjs.com/package/ryan-simple-test-act/v/5.0.1 - .

## 2024-11-18 17:09:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.440.1 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v5.0.2] .
### Releases
- [NPM v5.0.2] https://www.npmjs.com/package/ryan-simple-test-act/v/5.0.2 - .
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": "ryan-simple-test-act",
"version": "5.0.1",
"version": "5.0.2",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/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": "ryan-simple-test-act",
"version": "5.0.1",
"version": "5.0.2",
"author": "ryan-timothy-albert",
"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 @@ -81,8 +81,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "4.0.0",
sdkVersion: "5.0.1",
genVersion: "2.457.9",
sdkVersion: "5.0.2",
genVersion: "2.460.1",
userAgent:
"speakeasy-sdk/typescript 5.0.1 2.457.9 4.0.0 ryan-simple-test-act",
"speakeasy-sdk/typescript 5.0.2 2.460.1 4.0.0 ryan-simple-test-act",
} as const;
2 changes: 1 addition & 1 deletion src/lib/matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export function match<T, E>(
raw = await response.json();
break;
case "bytes":
raw = await response.arrayBuffer();
raw = new Uint8Array(await response.arrayBuffer());
break;
case "stream":
raw = response.body;
Expand Down
17 changes: 17 additions & 0 deletions src/models/components/apiresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/

import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

export type ApiResponse = {
code?: number | undefined;
Expand Down Expand Up @@ -51,3 +54,17 @@ export namespace ApiResponse$ {
/** @deprecated use `ApiResponse$Outbound` instead. */
export type Outbound = ApiResponse$Outbound;
}

export function apiResponseToJSON(apiResponse: ApiResponse): string {
return JSON.stringify(ApiResponse$outboundSchema.parse(apiResponse));
}

export function apiResponseFromJSON(
jsonString: string,
): SafeParseResult<ApiResponse, SDKValidationError> {
return safeParse(
jsonString,
(x) => ApiResponse$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'ApiResponse' from JSON`,
);
}
17 changes: 17 additions & 0 deletions src/models/components/category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/

import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

export type Category = {
id?: number | undefined;
Expand Down Expand Up @@ -47,3 +50,17 @@ export namespace Category$ {
/** @deprecated use `Category$Outbound` instead. */
export type Outbound = Category$Outbound;
}

export function categoryToJSON(category: Category): string {
return JSON.stringify(Category$outboundSchema.parse(category));
}

export function categoryFromJSON(
jsonString: string,
): SafeParseResult<Category, SDKValidationError> {
return safeParse(
jsonString,
(x) => Category$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Category' from JSON`,
);
}
17 changes: 17 additions & 0 deletions src/models/components/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
*/

import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

/**
* Order Status
Expand Down Expand Up @@ -97,3 +100,17 @@ export namespace Order$ {
/** @deprecated use `Order$Outbound` instead. */
export type Outbound = Order$Outbound;
}

export function orderToJSON(order: Order): string {
return JSON.stringify(Order$outboundSchema.parse(order));
}

export function orderFromJSON(
jsonString: string,
): SafeParseResult<Order, SDKValidationError> {
return safeParse(
jsonString,
(x) => Order$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Order' from JSON`,
);
}
17 changes: 17 additions & 0 deletions src/models/components/pet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
*/

import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import {
Category,
Category$inboundSchema,
Expand Down Expand Up @@ -105,3 +108,17 @@ export namespace Pet$ {
/** @deprecated use `Pet$Outbound` instead. */
export type Outbound = Pet$Outbound;
}

export function petToJSON(pet: Pet): string {
return JSON.stringify(Pet$outboundSchema.parse(pet));
}

export function petFromJSON(
jsonString: string,
): SafeParseResult<Pet, SDKValidationError> {
return safeParse(
jsonString,
(x) => Pet$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Pet' from JSON`,
);
}
17 changes: 17 additions & 0 deletions src/models/components/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

export type Security = {
apiKey: string;
Expand Down Expand Up @@ -52,3 +55,17 @@ export namespace Security$ {
/** @deprecated use `Security$Outbound` instead. */
export type Outbound = Security$Outbound;
}

export function securityToJSON(security: Security): string {
return JSON.stringify(Security$outboundSchema.parse(security));
}

export function securityFromJSON(
jsonString: string,
): SafeParseResult<Security, SDKValidationError> {
return safeParse(
jsonString,
(x) => Security$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Security' from JSON`,
);
}
17 changes: 17 additions & 0 deletions src/models/components/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/

import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

export type Tag = {
id?: number | undefined;
Expand Down Expand Up @@ -41,3 +44,17 @@ export namespace Tag$ {
/** @deprecated use `Tag$Outbound` instead. */
export type Outbound = Tag$Outbound;
}

export function tagToJSON(tag: Tag): string {
return JSON.stringify(Tag$outboundSchema.parse(tag));
}

export function tagFromJSON(
jsonString: string,
): SafeParseResult<Tag, SDKValidationError> {
return safeParse(
jsonString,
(x) => Tag$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'Tag' from JSON`,
);
}
17 changes: 17 additions & 0 deletions src/models/components/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/

import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

export type User = {
id?: number | undefined;
Expand Down Expand Up @@ -68,3 +71,17 @@ export namespace User$ {
/** @deprecated use `User$Outbound` instead. */
export type Outbound = User$Outbound;
}

export function userToJSON(user: User): string {
return JSON.stringify(User$outboundSchema.parse(user));
}

export function userFromJSON(
jsonString: string,
): SafeParseResult<User, SDKValidationError> {
return safeParse(
jsonString,
(x) => User$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'User' from JSON`,
);
}
21 changes: 21 additions & 0 deletions src/models/operations/deleteorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/

import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

export type DeleteOrderRequest = {
/**
Expand Down Expand Up @@ -46,3 +49,21 @@ export namespace DeleteOrderRequest$ {
/** @deprecated use `DeleteOrderRequest$Outbound` instead. */
export type Outbound = DeleteOrderRequest$Outbound;
}

export function deleteOrderRequestToJSON(
deleteOrderRequest: DeleteOrderRequest,
): string {
return JSON.stringify(
DeleteOrderRequest$outboundSchema.parse(deleteOrderRequest),
);
}

export function deleteOrderRequestFromJSON(
jsonString: string,
): SafeParseResult<DeleteOrderRequest, SDKValidationError> {
return safeParse(
jsonString,
(x) => DeleteOrderRequest$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'DeleteOrderRequest' from JSON`,
);
}
21 changes: 21 additions & 0 deletions src/models/operations/deletepet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";

export type DeletePetRequest = {
apiKey?: string | undefined;
Expand Down Expand Up @@ -59,3 +62,21 @@ export namespace DeletePetRequest$ {
/** @deprecated use `DeletePetRequest$Outbound` instead. */
export type Outbound = DeletePetRequest$Outbound;
}

export function deletePetRequestToJSON(
deletePetRequest: DeletePetRequest,
): string {
return JSON.stringify(
DeletePetRequest$outboundSchema.parse(deletePetRequest),
);
}

export function deletePetRequestFromJSON(
jsonString: string,
): SafeParseResult<DeletePetRequest, SDKValidationError> {
return safeParse(
jsonString,
(x) => DeletePetRequest$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'DeletePetRequest' from JSON`,
);
}
Loading

0 comments on commit e945b3f

Please sign in to comment.