Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.330.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jul 9, 2024
1 parent 672daaa commit 11016a3
Show file tree
Hide file tree
Showing 15 changed files with 249 additions and 127 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.326.3
speakeasyVersion: 1.330.0
sources:
source1:
sourceNamespace: source-1
sourceRevisionDigest: sha256:ac49c0f4c6476fb2b93161605a5d4f97663215a7835cac19e7c0d16cd2e9d39b
sourceBlobDigest: sha256:ee8b7da07674ee2a33ec867b19b8c8a8d3cd5490061478d253dea544ac5d2d75
sourceRevisionDigest: sha256:02083728f9902a51eac72f77398545b5368ce1c5fdb5b848367035b2e75737bf
sourceBlobDigest: sha256:6d125adf040b266c51ef0547b637b1bd9165553a54af4835feacbcc96a098296
tags:
- latest
- main
Expand All @@ -23,8 +23,8 @@ targets:
lending:
source: source1
sourceNamespace: source-1
sourceRevisionDigest: sha256:ac49c0f4c6476fb2b93161605a5d4f97663215a7835cac19e7c0d16cd2e9d39b
sourceBlobDigest: sha256:ee8b7da07674ee2a33ec867b19b8c8a8d3cd5490061478d253dea544ac5d2d75
sourceRevisionDigest: sha256:02083728f9902a51eac72f77398545b5368ce1c5fdb5b848367035b2e75737bf
sourceBlobDigest: sha256:6d125adf040b266c51ef0547b637b1bd9165553a54af4835feacbcc96a098296
outLocation: lending
workflow:
workflowVersion: 1.0.0
Expand Down
10 changes: 5 additions & 5 deletions lending/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: 7caa457a-d738-4713-931d-4e4f19784732
management:
docChecksum: 1bdb7a6f8bf3995d4b40475228403253
docVersion: 1.0.0
speakeasyVersion: 1.326.3
generationVersion: 2.359.6
releaseVersion: 0.0.16
configChecksum: 0368e5830f9c2a4b6b705a6ad5ce4534
speakeasyVersion: 1.330.0
generationVersion: 2.361.10
releaseVersion: 0.0.17
configChecksum: 37be3cd8c8969026a726cbb59e11c767
repoURL: https://github.com/ryan-timothy-albert/sample-ts-monorepo.git
repoSubDirectory: lending
installationURL: https://gitpkg.now.sh/ryan-timothy-albert/sample-ts-monorepo/lending
published: true
features:
typescript:
additionalDependencies: 0.1.0
core: 3.11.3
core: 3.11.5
globalSecurityCallbacks: 0.1.0
globalServerURLs: 2.82.4
responseFormat: 0.2.3
Expand Down
2 changes: 1 addition & 1 deletion lending/.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.16
version: 0.0.17
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,14 @@ Based on:
### Generated
- [typescript v0.0.16] lending
### Releases
- [NPM v0.0.16] https://www.npmjs.com/package/ryan-lending/v/0.0.16 - lending
- [NPM v0.0.16] https://www.npmjs.com/package/ryan-lending/v/0.0.16 - lending

## 2024-07-09 00:51:03
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.330.0 (2.361.10) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.0.17] lending
### Releases
- [NPM v0.0.17] https://www.npmjs.com/package/ryan-lending/v/0.0.17 - lending
2 changes: 1 addition & 1 deletion lending/RUNTIMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This SDK is intended to be used in JavaScript runtimes that support the following features:

* [Web Fetch API][web-fetch]
* [Web Streams API](web-streams) and in particular `ReadableStream`
* [Web Streams API][web-streams] and in particular `ReadableStream`
* [Async iterables][async-iter] using `Symbol.asyncIterator`

[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
Expand Down
2 changes: 1 addition & 1 deletion lending/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "ryan-lending",
"version": "0.0.16",
"version": "0.0.17",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions lending/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 lending/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ryan-lending",
"version": "0.0.16",
"version": "0.0.17",
"author": "ryan-timothy-albert",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions lending/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.16",
genVersion: "2.359.6",
userAgent: "speakeasy-sdk/typescript 0.0.16 2.359.6 1.0.0 ryan-lending",
sdkVersion: "0.0.17",
genVersion: "2.361.10",
userAgent: "speakeasy-sdk/typescript 0.0.17 2.361.10 1.0.0 ryan-lending",
} as const;
2 changes: 1 addition & 1 deletion lending/src/lib/sdks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const webWorkerLike =
const isBrowserLike =
webWorkerLike ||
(typeof navigator !== "undefined" && "serviceWorker" in navigator) ||
typeof window === "object";
(typeof window === "object" && typeof window.document !== "undefined");

export class ClientSDK {
private readonly client: HTTPClient;
Expand Down
39 changes: 26 additions & 13 deletions lending/src/models/components/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,32 @@ export type ErrorT = {
};

/** @internal */
export namespace ErrorT$ {
export const inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z.object({
code: z.number().int(),
message: z.string(),
});
export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z.object({
code: z.number().int(),
message: z.string(),
});

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

export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ErrorT> = z.object({
code: z.number().int(),
message: z.string(),
});
/** @internal */
export const ErrorT$outboundSchema: z.ZodType<ErrorT$Outbound, z.ZodTypeDef, ErrorT> = z.object({
code: z.number().int(),
message: z.string(),
});

/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export namespace ErrorT$ {
/** @deprecated use `ErrorT$inboundSchema` instead. */
export const inboundSchema = ErrorT$inboundSchema;
/** @deprecated use `ErrorT$outboundSchema` instead. */
export const outboundSchema = ErrorT$outboundSchema;
/** @deprecated use `ErrorT$Outbound` instead. */
export type Outbound = ErrorT$Outbound;
}
45 changes: 29 additions & 16 deletions lending/src/models/components/pet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,35 @@ export type Pet = {
};

/** @internal */
export namespace Pet$ {
export const inboundSchema: z.ZodType<Pet, z.ZodTypeDef, unknown> = z.object({
id: z.number().int(),
name: z.string(),
tag: z.string().optional(),
});
export const Pet$inboundSchema: z.ZodType<Pet, z.ZodTypeDef, unknown> = z.object({
id: z.number().int(),
name: z.string(),
tag: z.string().optional(),
});

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

export type Outbound = {
id: number;
name: string;
tag?: string | undefined;
};
/** @internal */
export const Pet$outboundSchema: z.ZodType<Pet$Outbound, z.ZodTypeDef, Pet> = z.object({
id: z.number().int(),
name: z.string(),
tag: z.string().optional(),
});

export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Pet> = z.object({
id: z.number().int(),
name: z.string(),
tag: z.string().optional(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export namespace Pet$ {
/** @deprecated use `Pet$inboundSchema` instead. */
export const inboundSchema = Pet$inboundSchema;
/** @deprecated use `Pet$outboundSchema` instead. */
export const outboundSchema = Pet$outboundSchema;
/** @deprecated use `Pet$Outbound` instead. */
export type Outbound = Pet$Outbound;
}
145 changes: 97 additions & 48 deletions lending/src/models/operations/listpets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,66 +21,115 @@ export type ListPetsResponse = {
};

/** @internal */
export namespace ListPetsRequest$ {
export const inboundSchema: z.ZodType<ListPetsRequest, z.ZodTypeDef, unknown> = z.object({
export const ListPetsRequest$inboundSchema: z.ZodType<ListPetsRequest, z.ZodTypeDef, unknown> =
z.object({
limit: z.number().int().optional(),
});

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

export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListPetsRequest> = z.object({
limit: z.number().int().optional(),
});
/** @internal */
export const ListPetsRequest$outboundSchema: z.ZodType<
ListPetsRequest$Outbound,
z.ZodTypeDef,
ListPetsRequest
> = z.object({
limit: z.number().int().optional(),
});

/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export namespace ListPetsRequest$ {
/** @deprecated use `ListPetsRequest$inboundSchema` instead. */
export const inboundSchema = ListPetsRequest$inboundSchema;
/** @deprecated use `ListPetsRequest$outboundSchema` instead. */
export const outboundSchema = ListPetsRequest$outboundSchema;
/** @deprecated use `ListPetsRequest$Outbound` instead. */
export type Outbound = ListPetsRequest$Outbound;
}

/** @internal */
export const ListPetsResponseResult$inboundSchema: z.ZodType<
ListPetsResponseResult,
z.ZodTypeDef,
unknown
> = z.union([components.ErrorT$inboundSchema, z.array(components.Pet$inboundSchema)]);

/** @internal */
export type ListPetsResponseResult$Outbound =
| components.ErrorT$Outbound
| Array<components.Pet$Outbound>;

/** @internal */
export const ListPetsResponseResult$outboundSchema: z.ZodType<
ListPetsResponseResult$Outbound,
z.ZodTypeDef,
ListPetsResponseResult
> = z.union([components.ErrorT$outboundSchema, z.array(components.Pet$outboundSchema)]);

/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export namespace ListPetsResponseResult$ {
export const inboundSchema: z.ZodType<ListPetsResponseResult, z.ZodTypeDef, unknown> = z.union([
components.ErrorT$.inboundSchema,
z.array(components.Pet$.inboundSchema),
]);

export type Outbound = components.ErrorT$.Outbound | Array<components.Pet$.Outbound>;
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListPetsResponseResult> =
z.union([components.ErrorT$.outboundSchema, z.array(components.Pet$.outboundSchema)]);
/** @deprecated use `ListPetsResponseResult$inboundSchema` instead. */
export const inboundSchema = ListPetsResponseResult$inboundSchema;
/** @deprecated use `ListPetsResponseResult$outboundSchema` instead. */
export const outboundSchema = ListPetsResponseResult$outboundSchema;
/** @deprecated use `ListPetsResponseResult$Outbound` instead. */
export type Outbound = ListPetsResponseResult$Outbound;
}

/** @internal */
export namespace ListPetsResponse$ {
export const inboundSchema: z.ZodType<ListPetsResponse, z.ZodTypeDef, unknown> = z
.object({
Headers: z.record(z.array(z.string())),
Result: z.union([
components.ErrorT$.inboundSchema,
z.array(components.Pet$.inboundSchema),
]),
})
.transform((v) => {
return remap$(v, {
Headers: "headers",
Result: "result",
});
export const ListPetsResponse$inboundSchema: z.ZodType<ListPetsResponse, z.ZodTypeDef, unknown> = z
.object({
Headers: z.record(z.array(z.string())),
Result: z.union([components.ErrorT$inboundSchema, z.array(components.Pet$inboundSchema)]),
})
.transform((v) => {
return remap$(v, {
Headers: "headers",
Result: "result",
});
});

export type Outbound = {
Headers: { [k: string]: Array<string> };
Result: components.ErrorT$.Outbound | Array<components.Pet$.Outbound>;
};

export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListPetsResponse> = z
.object({
headers: z.record(z.array(z.string())),
result: z.union([
components.ErrorT$.outboundSchema,
z.array(components.Pet$.outboundSchema),
]),
})
.transform((v) => {
return remap$(v, {
headers: "Headers",
result: "Result",
});
/** @internal */
export type ListPetsResponse$Outbound = {
Headers: { [k: string]: Array<string> };
Result: components.ErrorT$Outbound | Array<components.Pet$Outbound>;
};

/** @internal */
export const ListPetsResponse$outboundSchema: z.ZodType<
ListPetsResponse$Outbound,
z.ZodTypeDef,
ListPetsResponse
> = z
.object({
headers: z.record(z.array(z.string())),
result: z.union([components.ErrorT$outboundSchema, z.array(components.Pet$outboundSchema)]),
})
.transform((v) => {
return remap$(v, {
headers: "Headers",
result: "Result",
});
});

/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export namespace ListPetsResponse$ {
/** @deprecated use `ListPetsResponse$inboundSchema` instead. */
export const inboundSchema = ListPetsResponse$inboundSchema;
/** @deprecated use `ListPetsResponse$outboundSchema` instead. */
export const outboundSchema = ListPetsResponse$outboundSchema;
/** @deprecated use `ListPetsResponse$Outbound` instead. */
export type Outbound = ListPetsResponse$Outbound;
}
Loading

0 comments on commit 11016a3

Please sign in to comment.