diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e46875f..095076e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: f28179cc-ef59-426d-9e85-60cec22fc642 management: docChecksum: d13f5102cda97c578071c17197996172 docVersion: 0.0.1 - speakeasyVersion: 1.269.1 + speakeasyVersion: 1.272.0 generationVersion: 2.312.1 - releaseVersion: 0.24.4 - configChecksum: e898c52661b3e0d1837c6c2d8b801d02 + releaseVersion: 0.24.5 + configChecksum: 92157209ffa5c1159c8556491f90b1cd repoURL: https://github.com/dubinc/dub-node.git installationURL: https://github.com/dubinc/dub-node published: true diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index fcd5396..c726344 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.24.4 + version: 0.24.5 additionalDependencies: dependencies: {} devDependencies: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2e02fd9..4acba52 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.269.1 +speakeasyVersion: 1.272.0 sources: my-first-source: {} targets: diff --git a/README.md b/README.md index 7f971a6..6c08829 100644 --- a/README.md +++ b/README.md @@ -47,10 +47,6 @@ const dub = new Dub({ async function run() { const result = await dub.links.create({ url: "https://google/com", - externalId: "123456", - tagIds: ["clux0rgak00011..."], - tagNames: "", - geo: {}, }); // Handle the result @@ -150,10 +146,7 @@ const dub = new Dub({ async function run() { let result; try { - result = await dub.links.list({ - tagIds: [""], - tagNames: "", - }); + result = await dub.links.list({}); } catch (err) { switch (true) { case err instanceof errors.SDKValidationError: { @@ -235,10 +228,7 @@ const dub = new Dub({ }); async function run() { - const result = await dub.links.list({ - tagIds: [""], - tagNames: "", - }); + const result = await dub.links.list({}); // Handle the result console.log(result); @@ -263,10 +253,7 @@ const dub = new Dub({ }); async function run() { - const result = await dub.links.list({ - tagIds: [""], - tagNames: "", - }); + const result = await dub.links.list({}); // Handle the result console.log(result); @@ -347,10 +334,7 @@ const dub = new Dub({ }); async function run() { - const result = await dub.links.list({ - tagIds: [""], - tagNames: "", - }); + const result = await dub.links.list({}); // Handle the result console.log(result); diff --git a/RELEASES.md b/RELEASES.md index 6b59f42..1f72341 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -156,4 +156,14 @@ Based on: ### Generated - [typescript v0.24.4] . ### Releases -- [NPM v0.24.4] https://www.npmjs.com/package/dub/v/0.24.4 - . \ No newline at end of file +- [NPM v0.24.4] https://www.npmjs.com/package/dub/v/0.24.4 - . + +## 2024-04-24 11:53:21 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.272.0 (2.312.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.24.5] . +### Releases +- [NPM v0.24.5] https://www.npmjs.com/package/dub/v/0.24.5 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index b3b9566..296748c 100644 --- a/USAGE.md +++ b/USAGE.md @@ -10,10 +10,6 @@ const dub = new Dub({ async function run() { const result = await dub.links.create({ url: "https://google/com", - externalId: "123456", - tagIds: ["clux0rgak00011..."], - tagNames: "", - geo: {}, }); // Handle the result diff --git a/docs/sdks/domains/README.md b/docs/sdks/domains/README.md index 52b9024..4512e21 100644 --- a/docs/sdks/domains/README.md +++ b/docs/sdks/domains/README.md @@ -69,7 +69,6 @@ Add a domain to the authenticated workspace. ```typescript import { Dub } from "dub"; -import { Type } from "dub/models/operations"; const dub = new Dub({ token: "DUB_API_KEY", @@ -79,11 +78,6 @@ const dub = new Dub({ async function run() { const result = await dub.domains.add({ slug: "acme.com", - type: Type.Redirect, - target: "https://acme.com/landing", - expiredUrl: "https://acme.com/expired", - archived: false, - placeholder: "https://dub.co/help/article/what-is-dub", }); // Handle the result @@ -181,7 +175,6 @@ Edit a domain for the authenticated workspace. ```typescript import { Dub } from "dub"; -import { EditDomainType } from "dub/models/operations"; const dub = new Dub({ token: "DUB_API_KEY", @@ -190,14 +183,7 @@ const dub = new Dub({ async function run() { const slug = "acme.com"; - const requestBody = { - slug: "acme.com", - type: EditDomainType.Redirect, - target: "https://acme.com/landing", - expiredUrl: "https://acme.com/expired", - archived: false, - placeholder: "https://dub.co/help/article/what-is-dub", - }; + const requestBody = {}; const result = await dub.domains.update(slug, requestBody); diff --git a/docs/sdks/links/README.md b/docs/sdks/links/README.md index 9c7e937..6266c14 100644 --- a/docs/sdks/links/README.md +++ b/docs/sdks/links/README.md @@ -26,12 +26,7 @@ const dub = new Dub({ }); async function run() { - const result = await dub.links.list({ - tagIds: [ - "", - ], - tagNames: "", - }); + const result = await dub.links.list({}); // Handle the result console.log(result) @@ -84,12 +79,6 @@ const dub = new Dub({ async function run() { const result = await dub.links.create({ url: "https://google/com", - externalId: "123456", - tagIds: [ - "clux0rgak00011...", - ], - tagNames: "", - geo: {}, }); // Handle the result @@ -134,7 +123,6 @@ Retrieve the number of links for the authenticated workspace. The provided query ```typescript import { Dub } from "dub"; -import { One } from "dub/models/operations"; const dub = new Dub({ token: "DUB_API_KEY", @@ -142,11 +130,7 @@ const dub = new Dub({ }); async function run() { - const result = await dub.links.count({ - tagIds: "", - tagNames: "", - groupBy: One.Domain, - }); + const result = await dub.links.count({}); // Handle the result console.log(result) @@ -254,14 +238,6 @@ async function run() { const linkId = ""; const requestBody = { url: "https://google/com", - externalId: "123456", - tagIds: [ - "clux0rgak00011...", - ], - tagNames: [ - "", - ], - geo: {}, }; const result = await dub.links.update(linkId, requestBody); @@ -372,14 +348,6 @@ async function run() { const result = await dub.links.createMany([ { url: "https://google/com", - externalId: "123456", - tagIds: [ - "clux0rgak00011...", - ], - tagNames: [ - "", - ], - geo: {}, }, ]); diff --git a/jsr.json b/jsr.json index ccd5f40..9e98c55 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "dub", - "version": "0.24.4", + "version": "0.24.5", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 8a8113c..48c7fb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dub", - "version": "0.24.4", + "version": "0.24.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dub", - "version": "0.24.4", + "version": "0.24.5", "devDependencies": { "@types/jsonpath": "^0.2.4", "@types/node": "^20.12.7", diff --git a/package.json b/package.json index a29e32f..4a4a1d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dub", - "version": "0.24.4", + "version": "0.24.5", "author": "Dub", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index c99b52e..d1c3638 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "0.24.4", + sdkVersion: "0.24.5", genVersion: "2.312.1", - userAgent: "speakeasy-sdk/typescript 0.24.4 2.312.1 0.0.1 dub", + userAgent: "speakeasy-sdk/typescript 0.24.5 2.312.1 0.0.1 dub", } as const;