ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.285.1 (#102)

Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
github-actions[bot]
2024-05-09 11:39:35 +05:30
committed by GitHub
parent 7e5687c711
commit a3f7a2e30b
3 changed files with 361 additions and 350 deletions

View File

@@ -1,18 +1,19 @@
speakeasyVersion: 1.284.0
speakeasyVersion: 1.285.1
sources:
my-first-source:
sourceNamespace: my-first-source
sourceRevisionDigest: sha256:c9c3e5b8bbf8abc3b96312f564660c2c090c80ea62bfcdb53f5d4e255a5fcc1a
sourceBlobDigest: sha256:2463b26a086334d69a58fb100b409862dfb9ee04a7211cc436a9c06b3a05d6c1
sourceRevisionDigest: sha256:f649bbfd443ab1f410f772b0cc1a8fd4f3ca6491b1662c55d9ba732b67d1c809
sourceBlobDigest: sha256:b76d35f06695399d6328570e0db59823fd95024783e73330503db724e7656537
tags:
- latest
- main
targets:
my-first-target:
source: my-first-source
sourceNamespace: my-first-source
sourceRevisionDigest: sha256:c9c3e5b8bbf8abc3b96312f564660c2c090c80ea62bfcdb53f5d4e255a5fcc1a
sourceBlobDigest: sha256:2463b26a086334d69a58fb100b409862dfb9ee04a7211cc436a9c06b3a05d6c1
outLocation: /home/disintegrator/code/dubinc/dub-node
sourceRevisionDigest: sha256:f649bbfd443ab1f410f772b0cc1a8fd4f3ca6491b1662c55d9ba732b67d1c809
sourceBlobDigest: sha256:b76d35f06695399d6328570e0db59823fd95024783e73330503db724e7656537
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest

View File

@@ -246,4 +246,14 @@ Based on:
### Generated
- [typescript v0.28.1] .
### Releases
- [NPM v0.28.1] https://www.npmjs.com/package/dub/v/0.28.1 - .
- [NPM v0.28.1] https://www.npmjs.com/package/dub/v/0.28.1 - .
## 2024-05-09 01:13:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.285.1 (2.326.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.29.0] .
### Releases
- [NPM v0.29.0] https://www.npmjs.com/package/dub/v/0.29.0 - .

View File

@@ -3,11 +3,11 @@ info:
title: CodeSamples overlay for typescript target
version: 0.0.0
actions:
- target: $["paths"]["/links"]["post"]
- target: $["paths"]["/links/{linkId}"]["patch"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "createLink"
"label": "updateLink"
"source": |-
import { Dub } from "dub";
@@ -17,7 +17,7 @@ actions:
});
async function run() {
const result = await dub.create({
const result = await dub.update("<value>", {
url: "https://google/com",
});
@@ -26,11 +26,11 @@ actions:
}
run();
- target: $["paths"]["/analytics/os"]["get"]
- target: $["paths"]["/analytics/browser"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getOSAnalytics"
"label": "getBrowserAnalytics"
"source": |-
import { Dub } from "dub";
@@ -40,18 +40,18 @@ actions:
});
async function run() {
const result = await dub.os({});
const result = await dub.browsers({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}/transfer"]["post"]
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "transferDomain"
"label": "getWorkspace"
"source": |-
import { Dub } from "dub";
@@ -61,8 +61,8 @@ actions:
});
async function run() {
const result = await dub.transfer("acme.com", {
newWorkspaceId: "<value>",
const result = await dub.get({
idOrSlug: "<value>",
});
// Handle the result
@@ -90,132 +90,6 @@ actions:
console.log(result)
}
run();
- target: $["paths"]["/analytics/country"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getCountryAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.countries({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/device"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getDeviceAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.devices({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}/primary"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "setPrimaryDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.setPrimary("acme.com");
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/clicks"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getClicksAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.clicks({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/top_urls"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTopURLs"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.topUrls({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/qr"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getQRCode"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.get({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/metatags"]["get"]
update:
@@ -239,6 +113,92 @@ actions:
console.log(result)
}
run();
- target: $["paths"]["/analytics/clicks"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getClicksAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.clicks({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "addDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.add({
slug: "acme.com",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}/primary"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "setPrimaryDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.setPrimary("acme.com");
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/city"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getCityAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.cities({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/links"]["get"]
update:
@@ -261,11 +221,11 @@ actions:
}
run();
- target: $["paths"]["/analytics/timeseries"]["get"]
- target: $["paths"]["/analytics/top_links"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTimeseriesAnalytics"
"label": "getTopLinks"
"source": |-
import { Dub } from "dub";
@@ -275,18 +235,18 @@ actions:
});
async function run() {
const result = await dub.timeseries({});
const result = await dub.topLinks({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/tags"]["get"]
- target: $["paths"]["/links"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTags"
"label": "createLink"
"source": |-
import { Dub } from "dub";
@@ -296,70 +256,9 @@ actions:
});
async function run() {
const result = await dub.list({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "listDomains"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.list({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}"]["patch"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "updateDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.update("acme.com", {});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/links/info"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getLinkInfo"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.get({});
const result = await dub.create({
url: "https://google/com",
});
// Handle the result
console.log(result)
@@ -390,6 +289,27 @@ actions:
console.log(result)
}
run();
- target: $["paths"]["/qr"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getQRCode"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.get({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/referer"]["get"]
update:
@@ -412,11 +332,11 @@ actions:
}
run();
- target: $["paths"]["/analytics/top_links"]["get"]
- target: $["paths"]["/domains"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTopLinks"
"label": "listDomains"
"source": |-
import { Dub } from "dub";
@@ -426,7 +346,91 @@ actions:
});
async function run() {
const result = await dub.topLinks({});
const result = await dub.list({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/links/count"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getLinksCount"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.count({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/device"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getDeviceAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.devices({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/top_urls"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTopURLs"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.topUrls({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/workspaces"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getWorkspaces"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.list();
// Handle the result
console.log(result)
@@ -480,11 +484,11 @@ actions:
}
run();
- target: $["paths"]["/links/count"]["get"]
- target: $["paths"]["/analytics/country"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getLinksCount"
"label": "getCountryAnalytics"
"source": |-
import { Dub } from "dub";
@@ -494,139 +498,7 @@ actions:
});
async function run() {
const result = await dub.count({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/city"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getCityAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.cities({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/browser"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getBrowserAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.browsers({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getWorkspace"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.get({
idOrSlug: "<value>",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/links/{linkId}"]["patch"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "updateLink"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.update("<value>", {
url: "https://google/com",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/workspaces"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getWorkspaces"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.list();
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "addDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.add({
slug: "acme.com",
});
const result = await dub.countries({});
// Handle the result
console.log(result)
@@ -653,4 +525,132 @@ actions:
console.log(result)
}
run();
- target: $["paths"]["/analytics/os"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getOSAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.os({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/analytics/timeseries"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTimeseriesAnalytics"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.timeseries({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/tags"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTags"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.list({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}"]["patch"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "updateDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.update("acme.com", {});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}/transfer"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "transferDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.transfer("acme.com", {
newWorkspaceId: "<value>",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/links/info"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getLinkInfo"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.get({});
// Handle the result
console.log(result)
}
run();