Skip to content

Commit 2876391

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.571.1
1 parent 6025c1c commit 2876391

File tree

17 files changed

+169
-31
lines changed

17 files changed

+169
-31
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 89968bf0-a755-4d50-9acb-d47410010f05
33
management:
4-
docChecksum: 17226457b23fc2563102eb22d263bc30
4+
docChecksum: e0ab62d51241a027c4f5e73fc8860a3f
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.561.0
7-
generationVersion: 2.628.0
8-
releaseVersion: 5.0.0-rc.4
9-
configChecksum: f3d6e491d6a8639407af1874416c9ae0
6+
speakeasyVersion: 1.571.1
7+
generationVersion: 2.640.2
8+
releaseVersion: 5.0.0-rc.5
9+
configChecksum: aa8ec15dde661bbd4cffa7d38a0b35c7
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript
1313
published: true
1414
features:
1515
typescript:
1616
additionalDependencies: 0.1.0
17-
constsAndDefaults: 0.1.11
17+
constsAndDefaults: 0.1.12
1818
core: 3.21.11
1919
deepObjectParams: 0.1.0
2020
defaultEnabledRetries: 0.1.0
@@ -179,6 +179,7 @@ generatedFiles:
179179
- docs/sdk/models/shared/publishingtoken.md
180180
- docs/sdk/models/shared/pullrequestmetadata.md
181181
- docs/sdk/models/shared/relationship.md
182+
- docs/sdk/models/shared/relativediff.md
182183
- docs/sdk/models/shared/remotedocument.md
183184
- docs/sdk/models/shared/remotesource.md
184185
- docs/sdk/models/shared/remotesourcesubscriptionsettings.md
@@ -605,6 +606,7 @@ generatedFiles:
605606
- src/sdk/models/shared/preflightrequest.ts
606607
- src/sdk/models/shared/preflighttoken.ts
607608
- src/sdk/models/shared/publishingtoken.ts
609+
- src/sdk/models/shared/relativediff.ts
608610
- src/sdk/models/shared/remotedocument.ts
609611
- src/sdk/models/shared/remotesource.ts
610612
- src/sdk/models/shared/remotesourcesubscriptionsettings.ts

.speakeasy/workflow.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
speakeasyVersion: 1.561.0
1+
speakeasyVersion: 1.571.1
22
sources:
33
my-source:
4-
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:2e5dc78239617b9501f2028df534aa4601c61396c89a582390d75a797fc228cc
6-
sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9
4+
sourceNamespace: ts-client-source
5+
sourceRevisionDigest: sha256:1ec1463951476d6f3ca5f79f0c9887dc789d480ce6d3ab669c3dfd492d1ac33d
6+
sourceBlobDigest: sha256:8140d40b16de57969381048277f9e66220c8a8bfd6a771257d2d044ab1e193f5
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1746577270
9+
- speakeasy-sdk-regen-1750420304
1010
- 0.4.0
1111
targets:
1212
speakeasy-client-sdk-typescript:
1313
source: my-source
14-
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:2e5dc78239617b9501f2028df534aa4601c61396c89a582390d75a797fc228cc
16-
sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9
14+
sourceNamespace: ts-client-source
15+
sourceRevisionDigest: sha256:1ec1463951476d6f3ca5f79f0c9887dc789d480ce6d3ab669c3dfd492d1ac33d
16+
sourceBlobDigest: sha256:8140d40b16de57969381048277f9e66220c8a8bfd6a771257d2d044ab1e193f5
1717
codeSamplesNamespace: my-source-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:65717f579dccb319b073cb22e553e23bd3419cf420967387c00d148c041f5dc1
18+
codeSamplesRevisionDigest: sha256:7769044d45a4b1cc724fa1a944c510eaaa1429107a4ed72670f4de561500458c
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest
2222
sources:
2323
my-source:
2424
inputs:
25-
- location: https://speakeasy.com/openapi.yaml
25+
- location: https://spec.speakeasy.com/speakeasy-self/speakeasy-self/speakeasy-api
2626
registry:
27-
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/my-source
27+
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/ts-client-source
2828
targets:
2929
speakeasy-client-sdk-typescript:
3030
target: typescript

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,4 +1706,14 @@ Based on:
17061706
### Generated
17071707
- [typescript v5.0.0-rc.4] .
17081708
### Releases
1709-
- [NPM v5.0.0-rc.4] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.4 - .
1709+
- [NPM v5.0.0-rc.4] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.4 - .
1710+
1711+
## 2025-06-29 00:24:30
1712+
### Changes
1713+
Based on:
1714+
- OpenAPI Doc
1715+
- Speakeasy CLI 1.571.1 (2.640.2) https://github.com/speakeasy-api/speakeasy
1716+
### Generated
1717+
- [typescript v5.0.0-rc.5] .
1718+
### Releases
1719+
- [NPM v5.0.0-rc.5] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.5 - .
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# RelativeDiff
2+
3+
A relative diff between the current revision and the previous revision.
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { RelativeDiff } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/shared";
9+
10+
let value: RelativeDiff = {};
11+
```
12+
13+
## Fields
14+
15+
| Field | Type | Required | Description |
16+
| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- |
17+
| `addedLines` | *number* | :heavy_minus_sign: | The number of lines added against the previous revision |
18+
| `removedLines` | *number* | :heavy_minus_sign: | The number of lines removed against the previous revision |

docs/sdk/models/shared/revisioncontentsmetadata.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ let value: RevisionContentsMetadata = {
4040
| `namespace` | *string* | :heavy_check_mark: | The fully qualified namespace |
4141
| `numOverlayActions` | *number* | :heavy_check_mark: | The number of overlay actions in the OAS. Will be 0 if the OAS is not an overlay. |
4242
| `operationIds` | *string*[] | :heavy_check_mark: | The operation IDs contained in the OAS. Will be empty if the OAS is an overlay. |
43+
| `relativeDiff` | [shared.RelativeDiff](../../../sdk/models/shared/relativediff.md) | :heavy_minus_sign: | A relative diff between the current revision and the previous revision. |
4344
| `revisionDigest` | *string* | :heavy_check_mark: | The digest of the parent bundle |
4445
| `tags` | *string*[] | :heavy_check_mark: | The tags contained in the OAS -- NOT the OCI tags. Will be empty if the OAS is an overlay. |
4546
| `title` | *string* | :heavy_check_mark: | The OAS title |

gen.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ generation:
1414
auth:
1515
oAuth2ClientCredentialsEnabled: false
1616
oAuth2PasswordEnabled: false
17+
tests:
18+
generateTests: true
19+
generateNewTests: false
20+
skipResponseBodyAssertions: false
1721
typescript:
18-
version: 5.0.0-rc.4
22+
version: 5.0.0-rc.5
1923
additionalDependencies:
2024
dependencies: {}
2125
devDependencies: {}
@@ -24,6 +28,7 @@ typescript:
2428
author: Speakeasy
2529
baseErrorName: SpeakeasyError
2630
clientServerStatusCodesAsErrors: true
31+
constFieldsAlwaysOptional: true
2732
defaultErrorName: SDKError
2833
enableCustomCodeRegions: false
2934
enableMCPServer: true

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
5-
"version": "5.0.0-rc.4",
5+
"version": "5.0.0-rc.5",
66
"exports": {
77
".": "./src/index.ts",
88
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
3-
"version": "5.0.0-rc.4",
3+
"version": "5.0.0-rc.5",
44
"author": "Speakeasy",
55
"bin": {
66
"mcp": "bin/mcp-server.js"

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6565
export const SDK_METADATA = {
6666
language: "typescript",
6767
openapiDocVersion: "0.4.0",
68-
sdkVersion: "5.0.0-rc.4",
69-
genVersion: "2.628.0",
68+
sdkVersion: "5.0.0-rc.5",
69+
genVersion: "2.640.2",
7070
userAgent:
71-
"speakeasy-sdk/typescript 5.0.0-rc.4 2.628.0 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
71+
"speakeasy-sdk/typescript 5.0.0-rc.5 2.640.2 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
7272
} as const;

src/lib/security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import * as shared from "../sdk/models/shared/index.js";
66

77
type OAuth2PasswordFlow = {
88
username: string;
9-
password?: string | undefined;
10-
clientID: string;
9+
password: string;
10+
clientID?: string | undefined;
1111
clientSecret?: string | undefined;
1212
tokenURL: string;
1313
};

src/mcp-server/mcp-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
1919
export const app = buildApplication(routes, {
2020
name: "mcp",
2121
versionInfo: {
22-
currentVersion: "5.0.0-rc.4",
22+
currentVersion: "5.0.0-rc.5",
2323
},
2424
});
2525

src/mcp-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function createMCPServer(deps: {
101101
}) {
102102
const server = new McpServer({
103103
name: "Speakeasy",
104-
version: "5.0.0-rc.4",
104+
version: "5.0.0-rc.5",
105105
});
106106

107107
const client = new SpeakeasyCore({

src/sdk/models/shared/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export * from "./organizationusageresponse.js";
4242
export * from "./preflightrequest.js";
4343
export * from "./preflighttoken.js";
4444
export * from "./publishingtoken.js";
45+
export * from "./relativediff.js";
4546
export * from "./remotedocument.js";
4647
export * from "./remotesource.js";
4748
export * from "./remotesourcesubscriptionsettings.js";

src/sdk/models/shared/relativediff.ts

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3+
*/
4+
5+
import * as z from "zod";
6+
import { remap as remap$ } from "../../../lib/primitives.js";
7+
import { safeParse } from "../../../lib/schemas.js";
8+
import { Result as SafeParseResult } from "../../types/fp.js";
9+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10+
11+
/**
12+
* A relative diff between the current revision and the previous revision.
13+
*/
14+
export type RelativeDiff = {
15+
/**
16+
* The number of lines added against the previous revision
17+
*/
18+
addedLines?: number | undefined;
19+
/**
20+
* The number of lines removed against the previous revision
21+
*/
22+
removedLines?: number | undefined;
23+
};
24+
25+
/** @internal */
26+
export const RelativeDiff$inboundSchema: z.ZodType<
27+
RelativeDiff,
28+
z.ZodTypeDef,
29+
unknown
30+
> = z.object({
31+
added_lines: z.number().int().optional(),
32+
removed_lines: z.number().int().optional(),
33+
}).transform((v) => {
34+
return remap$(v, {
35+
"added_lines": "addedLines",
36+
"removed_lines": "removedLines",
37+
});
38+
});
39+
40+
/** @internal */
41+
export type RelativeDiff$Outbound = {
42+
added_lines?: number | undefined;
43+
removed_lines?: number | undefined;
44+
};
45+
46+
/** @internal */
47+
export const RelativeDiff$outboundSchema: z.ZodType<
48+
RelativeDiff$Outbound,
49+
z.ZodTypeDef,
50+
RelativeDiff
51+
> = z.object({
52+
addedLines: z.number().int().optional(),
53+
removedLines: z.number().int().optional(),
54+
}).transform((v) => {
55+
return remap$(v, {
56+
addedLines: "added_lines",
57+
removedLines: "removed_lines",
58+
});
59+
});
60+
61+
/**
62+
* @internal
63+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64+
*/
65+
export namespace RelativeDiff$ {
66+
/** @deprecated use `RelativeDiff$inboundSchema` instead. */
67+
export const inboundSchema = RelativeDiff$inboundSchema;
68+
/** @deprecated use `RelativeDiff$outboundSchema` instead. */
69+
export const outboundSchema = RelativeDiff$outboundSchema;
70+
/** @deprecated use `RelativeDiff$Outbound` instead. */
71+
export type Outbound = RelativeDiff$Outbound;
72+
}
73+
74+
export function relativeDiffToJSON(relativeDiff: RelativeDiff): string {
75+
return JSON.stringify(RelativeDiff$outboundSchema.parse(relativeDiff));
76+
}
77+
78+
export function relativeDiffFromJSON(
79+
jsonString: string,
80+
): SafeParseResult<RelativeDiff, SDKValidationError> {
81+
return safeParse(
82+
jsonString,
83+
(x) => RelativeDiff$inboundSchema.parse(JSON.parse(x)),
84+
`Failed to parse 'RelativeDiff' from JSON`,
85+
);
86+
}

src/sdk/models/shared/revisioncontentsmetadata.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ import { safeParse } from "../../../lib/schemas.js";
88
import { ClosedEnum } from "../../types/enums.js";
99
import { Result as SafeParseResult } from "../../types/fp.js";
1010
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11+
import {
12+
RelativeDiff,
13+
RelativeDiff$inboundSchema,
14+
RelativeDiff$Outbound,
15+
RelativeDiff$outboundSchema,
16+
} from "./relativediff.js";
1117

1218
export const RevisionContentsMetadataType = {
1319
OpenapiBundle: "OPENAPI_BUNDLE",
@@ -43,6 +49,10 @@ export type RevisionContentsMetadata = {
4349
* The operation IDs contained in the OAS. Will be empty if the OAS is an overlay.
4450
*/
4551
operationIds: Array<string>;
52+
/**
53+
* A relative diff between the current revision and the previous revision.
54+
*/
55+
relativeDiff?: RelativeDiff | undefined;
4656
/**
4757
* The digest of the parent bundle
4858
*/
@@ -100,6 +110,7 @@ export const RevisionContentsMetadata$inboundSchema: z.ZodType<
100110
namespace: z.string(),
101111
num_overlay_actions: z.number().int(),
102112
operation_ids: z.array(z.string()),
113+
relative_diff: RelativeDiff$inboundSchema.optional(),
103114
revision_digest: z.string(),
104115
tags: z.array(z.string()),
105116
title: z.string(),
@@ -112,6 +123,7 @@ export const RevisionContentsMetadata$inboundSchema: z.ZodType<
112123
"created_at": "createdAt",
113124
"num_overlay_actions": "numOverlayActions",
114125
"operation_ids": "operationIds",
126+
"relative_diff": "relativeDiff",
115127
"revision_digest": "revisionDigest",
116128
"workspace_id": "workspaceId",
117129
});
@@ -126,6 +138,7 @@ export type RevisionContentsMetadata$Outbound = {
126138
namespace: string;
127139
num_overlay_actions: number;
128140
operation_ids: Array<string>;
141+
relative_diff?: RelativeDiff$Outbound | undefined;
129142
revision_digest: string;
130143
tags: Array<string>;
131144
title: string;
@@ -147,6 +160,7 @@ export const RevisionContentsMetadata$outboundSchema: z.ZodType<
147160
namespace: z.string(),
148161
numOverlayActions: z.number().int(),
149162
operationIds: z.array(z.string()),
163+
relativeDiff: RelativeDiff$outboundSchema.optional(),
150164
revisionDigest: z.string(),
151165
tags: z.array(z.string()),
152166
title: z.string(),
@@ -159,6 +173,7 @@ export const RevisionContentsMetadata$outboundSchema: z.ZodType<
159173
createdAt: "created_at",
160174
numOverlayActions: "num_overlay_actions",
161175
operationIds: "operation_ids",
176+
relativeDiff: "relative_diff",
162177
revisionDigest: "revision_digest",
163178
workspaceId: "workspace_id",
164179
});

src/sdk/types/constdatetime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export function constDateTime(
1111
return (
1212
typeof v === "string" && new Date(v).getTime() === new Date(val).getTime()
1313
);
14-
}, `Value must be equivelant to ${val}`);
14+
}, `Value must be equivalent to ${val}`);
1515
}

0 commit comments

Comments
 (0)