Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.448.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 27, 2024
1 parent 9700db6 commit 7f0178c
Show file tree
Hide file tree
Showing 13 changed files with 215 additions and 28 deletions.
11 changes: 6 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: 9fbd6321083c0c2d44365ff84b8e2cb8
docVersion: 1.0.0
speakeasyVersion: 1.445.2
generationVersion: 2.461.4
releaseVersion: 0.14.20
configChecksum: d0fd4f0c3c76757c731faa6fa5d6efcf
speakeasyVersion: 1.448.0
generationVersion: 2.466.0
releaseVersion: 0.14.21
configChecksum: cb873bcb407b861c19059d7129730121
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.18.6
core: 3.18.7
defaultEnabledRetries: 0.1.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.2
Expand Down Expand Up @@ -206,3 +206,4 @@ examples:
application/json: {"code": "invalid_phone_number", "doc_url": "https://docs.prelude.so/api-reference/errors#invalid_phone_number", "message": "+0 is not a valid phone number"}
"400":
application/json: {"code": "invalid_phone_number", "doc_url": "https://docs.prelude.so/api-reference/errors#invalid_phone_number", "message": "+0 is not a valid phone number"}
generatedTests: {}
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.445.2
speakeasyVersion: 1.448.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:1190115eac332845cc130360512e2c8a58453fcf5a60706935413c37ec413534
sourceRevisionDigest: sha256:57fc9341015579691c8f2d58c545455ab68a1ded368b2a228fb93c77cfe6c366
sourceBlobDigest: sha256:4d3dd890b21d2c069d944869e00ea2505c58a172c1b06fa3cb7b59c56c21a500
tags:
- latest
- speakeasy-sdk-regen-1732579418
- speakeasy-sdk-regen-1732665821
- 1.0.0
targets:
'@ding-live/ding':
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:1190115eac332845cc130360512e2c8a58453fcf5a60706935413c37ec413534
sourceRevisionDigest: sha256:57fc9341015579691c8f2d58c545455ab68a1ded368b2a228fb93c77cfe6c366
sourceBlobDigest: sha256:4d3dd890b21d2c069d944869e00ea2505c58a172c1b06fa3cb7b59c56c21a500
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:2a6b65d295c011a9557417b03cb4d37d14ae6cdd7be8dd3885a6d07ea5996dce
codeSamplesNamespace: my-source-typescript-code-samples
codeSamplesRevisionDigest: sha256:e6ab9c223a6655ea3b168fcc549c2e4370ed86d9d2c2d9bea8c49d8231771ff1
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -34,5 +34,5 @@ workflow:
token: $NPM_TOKEN
codeSamples:
registry:
location: registry.speakeasyapi.dev/ding/ding/my-source-code-samples
location: registry.speakeasyapi.dev/ding/ding/my-source-typescript-code-samples
blocking: false
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ targets:
token: $NPM_TOKEN
codeSamples:
registry:
location: registry.speakeasyapi.dev/ding/ding/my-source-code-samples
location: registry.speakeasyapi.dev/ding/ding/my-source-typescript-code-samples
blocking: false
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -806,4 +806,14 @@ Based on:
### Generated
- [typescript v0.14.20] .
### Releases
- [NPM v0.14.20] https://www.npmjs.com/package/@ding-live/ding/v/0.14.20 - .
- [NPM v0.14.20] https://www.npmjs.com/package/@ding-live/ding/v/0.14.20 - .

## 2024-11-27 00:03:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.448.0 (2.466.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.14.21] .
### Releases
- [NPM v0.14.21] https://www.npmjs.com/package/@ding-live/ding/v/0.14.21 - .
4 changes: 3 additions & 1 deletion docs/sdks/ding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

## Overview

Ding: The OTP API allows you to send authentication codes to your users using their phone numbers.
Ding: The OTP API allows you to send authentication codes to your users using their phone numbers.

### Available Operations
3 changes: 2 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.14.20
version: 0.14.21
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand All @@ -20,6 +20,7 @@ typescript:
author: Ding
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enableReactQuery: false
enumFormat: union
flattenGlobalSecurity: true
flatteningOrder: body-first
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.14.20",
"version": "0.14.21",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
106 changes: 104 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ding-live/ding",
"version": "0.14.20",
"version": "0.14.21",
"author": "Ding",
"main": "./index.js",
"sideEffects": false,
Expand All @@ -15,6 +15,8 @@
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"react": "^18 || ^19",
"react-dom": "^18 || ^19",
"zod": ">= 3"
},
"devDependencies": {
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.14.20",
genVersion: "2.461.4",
userAgent: "speakeasy-sdk/typescript 0.14.20 2.461.4 1.0.0 @ding-live/ding",
sdkVersion: "0.14.21",
genVersion: "2.466.0",
userAgent: "speakeasy-sdk/typescript 0.14.21 2.466.0 1.0.0 @ding-live/ding",
} as const;
62 changes: 62 additions & 0 deletions src/lib/primitives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,65 @@ export function remap<

return out;
}

export function combineSignals(
...signals: Array<AbortSignal | null | undefined>
): AbortSignal | null {
const filtered: AbortSignal[] = [];
for (const signal of signals) {
if (signal) {
filtered.push(signal);
}
}

switch (filtered.length) {
case 0:
case 1:
return filtered[0] || null;
default:
if ("any" in AbortSignal && typeof AbortSignal.any === "function") {
return AbortSignal.any(filtered);
}
return abortSignalAny(filtered);
}
}

export function abortSignalAny(signals: AbortSignal[]): AbortSignal {
const controller = new AbortController();
const result = controller.signal;
if (!signals.length) {
return controller.signal;
}

if (signals.length === 1) {
return signals[0] || controller.signal;
}

for (const signal of signals) {
if (signal.aborted) {
return signal;
}
}

function abort(this: AbortSignal) {
controller.abort(this.reason);
clean();
}

const signalRefs: WeakRef<AbortSignal>[] = [];
function clean() {
for (const signalRef of signalRefs) {
const signal = signalRef.deref();
if (signal) {
signal.removeEventListener("abort", abort);
}
}
}

for (const signal of signals) {
signalRefs.push(new WeakRef(signal));
signal.addEventListener("abort", abort);
}

return result;
}
Loading

0 comments on commit 7f0178c

Please sign in to comment.