Skip to content

Commit

Permalink
Merge pull request #15 from ryan-timothy-albert/speakeasy-sdk-regen-1…
Browse files Browse the repository at this point in the history
…715625450

chore: 🐝 Update SDK - Generate THIRD-TARGET
  • Loading branch information
ryan-timothy-albert authored May 13, 2024
2 parents 2b817c3 + 47cd527 commit 4b29e52
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 66 deletions.
11 changes: 6 additions & 5 deletions ts/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ id: f4be10ce-8651-4157-98c6-d75e2342372f
management:
docChecksum: 1bdb7a6f8bf3995d4b40475228403253
docVersion: 1.0.0
speakeasyVersion: 1.285.2
generationVersion: 2.326.3
releaseVersion: 0.0.2
configChecksum: 39c9cc4642d591d10cfdda3d4de64078
speakeasyVersion: 1.286.3
generationVersion: 2.329.0
releaseVersion: 0.0.3
configChecksum: c8c93b946c6f12dfb1b8304111a56f1e
repoURL: https://github.com/ryan-timothy-albert/multi-sdk-sample.git
repoSubDirectory: ts
installationURL: https://gitpkg.now.sh/ryan-timothy-albert/multi-sdk-sample/ts
published: true
features:
typescript:
additionalDependencies: 0.1.0
core: 3.9.3
core: 3.9.4
flattening: 2.81.1
globalSecurityCallbacks: 0.1.0
globalServerURLs: 2.82.4
Expand Down
2 changes: 1 addition & 1 deletion ts/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 0.0.2
version: 0.0.3
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
4 changes: 2 additions & 2 deletions ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
### NPM

```bash
npm add https://gitpkg.now.sh/ryan-timothy-albert/multi-sdk-sample/ts
npm add openapi
```

### Yarn

```bash
yarn add https://gitpkg.now.sh/ryan-timothy-albert/multi-sdk-sample/ts
yarn add openapi
```
<!-- End SDK Installation [installation] -->

Expand Down
12 changes: 11 additions & 1 deletion ts/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.285.2 (2.326.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.0.2] ts
- [typescript v0.0.2] ts

## 2024-05-13 18:37:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.286.3 (2.329.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.0.3] ts
### Releases
- [NPM v0.0.3] https://www.npmjs.com/package/openapi/v/0.0.3 - ts
2 changes: 1 addition & 1 deletion ts/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "openapi",
"version": "0.0.2",
"version": "0.0.3",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions ts/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 ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openapi",
"version": "0.0.2",
"version": "0.0.3",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions ts/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "0.0.2",
genVersion: "2.326.3",
userAgent: "speakeasy-sdk/typescript 0.0.2 2.326.3 1.0.0 openapi",
sdkVersion: "0.0.3",
genVersion: "2.329.0",
userAgent: "speakeasy-sdk/typescript 0.0.3 2.329.0 1.0.0 openapi",
} as const;
7 changes: 1 addition & 6 deletions ts/src/models/components/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ export type ErrorT = {

/** @internal */
export namespace ErrorT$ {
export type Inbound = {
code: number;
message: string;
};

export const inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
.object({
code: z.number().int(),
message: z.string(),
Expand Down
7 changes: 1 addition & 6 deletions ts/src/models/components/httpmetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ export type HTTPMetadata = {

/** @internal */
export namespace HTTPMetadata$ {
export type Inbound = {
Response: Response;
Request: Request;
};

export const inboundSchema: z.ZodType<HTTPMetadata, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<HTTPMetadata, z.ZodTypeDef, unknown> = z
.object({
Response: z.instanceof(Response),
Request: z.instanceof(Request),
Expand Down
8 changes: 1 addition & 7 deletions ts/src/models/components/pet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ export type Pet = {

/** @internal */
export namespace Pet$ {
export type Inbound = {
id: number;
name: string;
tag?: string | undefined;
};

export const inboundSchema: z.ZodType<Pet, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<Pet, z.ZodTypeDef, unknown> = z
.object({
id: z.number().int(),
name: z.string(),
Expand Down
7 changes: 1 addition & 6 deletions ts/src/models/operations/createpets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ export type CreatePetsResponse = {

/** @internal */
export namespace CreatePetsResponse$ {
export type Inbound = {
HttpMeta: components.HTTPMetadata$.Inbound;
Error?: components.ErrorT$.Inbound | undefined;
};

export const inboundSchema: z.ZodType<CreatePetsResponse, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<CreatePetsResponse, z.ZodTypeDef, unknown> = z
.object({
HttpMeta: components.HTTPMetadata$.inboundSchema,
Error: components.ErrorT$.inboundSchema.optional(),
Expand Down
15 changes: 2 additions & 13 deletions ts/src/models/operations/listpets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ export type ListPetsResponse = {

/** @internal */
export namespace ListPetsRequest$ {
export type Inbound = {
limit?: number | undefined;
};

export const inboundSchema: z.ZodType<ListPetsRequest, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<ListPetsRequest, z.ZodTypeDef, unknown> = z
.object({
limit: z.number().int().optional(),
})
Expand All @@ -58,14 +54,7 @@ export namespace ListPetsRequest$ {

/** @internal */
export namespace ListPetsResponse$ {
export type Inbound = {
HttpMeta: components.HTTPMetadata$.Inbound;
Pets?: Array<components.Pet$.Inbound> | undefined;
Error?: components.ErrorT$.Inbound | undefined;
Headers: Record<string, Array<string>>;
};

export const inboundSchema: z.ZodType<ListPetsResponse, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<ListPetsResponse, z.ZodTypeDef, unknown> = z
.object({
HttpMeta: components.HTTPMetadata$.inboundSchema,
Pets: z.array(components.Pet$.inboundSchema).optional(),
Expand Down
14 changes: 2 additions & 12 deletions ts/src/models/operations/showpetbyid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ export type ShowPetByIdResponse = {

/** @internal */
export namespace ShowPetByIdRequest$ {
export type Inbound = {
petId: string;
};

export const inboundSchema: z.ZodType<ShowPetByIdRequest, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<ShowPetByIdRequest, z.ZodTypeDef, unknown> = z
.object({
petId: z.string(),
})
Expand All @@ -57,13 +53,7 @@ export namespace ShowPetByIdRequest$ {

/** @internal */
export namespace ShowPetByIdResponse$ {
export type Inbound = {
HttpMeta: components.HTTPMetadata$.Inbound;
Pet?: components.Pet$.Inbound | undefined;
Error?: components.ErrorT$.Inbound | undefined;
};

export const inboundSchema: z.ZodType<ShowPetByIdResponse, z.ZodTypeDef, Inbound> = z
export const inboundSchema: z.ZodType<ShowPetByIdResponse, z.ZodTypeDef, unknown> = z
.object({
HttpMeta: components.HTTPMetadata$.inboundSchema,
Pet: components.Pet$.inboundSchema.optional(),
Expand Down

0 comments on commit 4b29e52

Please sign in to comment.