Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.390.7
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 6, 2024
1 parent dcbc536 commit 0a353cc
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 38 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: 7a2c976b-8158-4d12-8b59-c491e9e10cfd
management:
docChecksum: c2a5d8222f4117f238343d6187ef2751
docVersion: 1.0.0
speakeasyVersion: 1.390.1
generationVersion: 2.409.0
releaseVersion: 0.8.0
configChecksum: a5020d00b2ca2c1547da58a95f2577ab
speakeasyVersion: 1.390.7
generationVersion: 2.409.8
releaseVersion: 0.8.1
configChecksum: c249368b76c463e79a088cae484016ec
repoURL: https://github.com/ding-live/ding-typescript.git
repoSubDirectory: .
installationURL: https://github.com/ding-live/ding-typescript
published: true
features:
typescript:
additionalDependencies: 0.1.0
core: 3.16.0
core: 3.16.1
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.1
examples: 2.81.4
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ async function run() {
checkCode: "123456",
customerUuid: "8f1196d5-806e-4b71-9b24-5f96ec052808",
});

// Handle the result
console.log(result);
} catch (err) {
switch (true) {
case err instanceof SDKValidationError: {
Expand All @@ -200,9 +203,6 @@ async function run() {
}
}
}

// Handle the result
console.log(result);
}

run();
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,14 @@ Based on:
### Generated
- [typescript v0.8.0] .
### Releases
- [NPM v0.8.0] https://www.npmjs.com/package/@ding-live/ding/v/0.8.0 - .
- [NPM v0.8.0] https://www.npmjs.com/package/@ding-live/ding/v/0.8.0 - .

## 2024-09-06 00:03:12
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.390.7 (2.409.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.8.1] .
### Releases
- [NPM v0.8.1] https://www.npmjs.com/package/@ding-live/ding/v/0.8.1 - .
2 changes: 1 addition & 1 deletion docs/sdks/lookup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ding = new Ding({

async function run() {
const result = await ding.lookup.lookup("6e93aa15-9177-4d09-8395-b69ce50db1c8", "<value>");

// Handle the result
console.log(result)
}
Expand Down
8 changes: 4 additions & 4 deletions docs/sdks/otp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function run() {
checkCode: "123456",
customerUuid: "8f1196d5-806e-4b71-9b24-5f96ec052808",
});

// Handle the result
console.log(result)
}
Expand Down Expand Up @@ -112,7 +112,7 @@ async function run() {
customerUuid: "c9f826e0-deca-41ec-871f-ecd6e8efeb46",
phoneNumber: "+1234567890",
});

// Handle the result
console.log(result)
}
Expand Down Expand Up @@ -193,7 +193,7 @@ async function run() {
phoneNumber: "+1234567890",
status: "onboarded",
});

// Handle the result
console.log(result)
}
Expand Down Expand Up @@ -270,7 +270,7 @@ const ding = new Ding({

async function run() {
const result = await ding.otp.retry();

// Handle the result
console.log(result)
}
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.8.0
version: 0.8.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
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": "@ding-live/ding",
"version": "0.8.0",
"version": "0.8.1",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ding-live/ding",
"version": "0.8.0",
"version": "0.8.1",
"author": "Ding",
"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 @@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "0.8.0",
genVersion: "2.409.0",
userAgent: "speakeasy-sdk/typescript 0.8.0 2.409.0 1.0.0 @ding-live/ding",
sdkVersion: "0.8.1",
genVersion: "2.409.8",
userAgent: "speakeasy-sdk/typescript 0.8.1 2.409.8 1.0.0 @ding-live/ding",
} as const;
18 changes: 0 additions & 18 deletions src/lib/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import { Readable } from "stream";
import { createReadStream } from "fs";
import { readFile } from "fs/promises";

export function toStream(filePath: string): ReadableStream<Uint8Array> {
return Readable.toWeb(
createReadStream(filePath),
) as ReadableStream<Uint8Array>;
}

export async function toByteArray(filePath: string): Promise<Buffer> {
return readFile(filePath);
}

export async function toString(filePath: string): Promise<string> {
return readFile(filePath, "utf8");
}

/**
* Consumes a stream and returns a concatenated array buffer. Useful in
* situations where we need to read the whole file because it forms part of a
Expand Down

0 comments on commit 0a353cc

Please sign in to comment.