mirror of
https://github.com/LukeHagar/dub-node.git
synced 2025-12-06 12:27:48 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.272.0 (#89)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
committed by
GitHub
parent
37d50041be
commit
f6145a97ce
@@ -3,10 +3,10 @@ id: f28179cc-ef59-426d-9e85-60cec22fc642
|
|||||||
management:
|
management:
|
||||||
docChecksum: d13f5102cda97c578071c17197996172
|
docChecksum: d13f5102cda97c578071c17197996172
|
||||||
docVersion: 0.0.1
|
docVersion: 0.0.1
|
||||||
speakeasyVersion: 1.269.1
|
speakeasyVersion: 1.272.0
|
||||||
generationVersion: 2.312.1
|
generationVersion: 2.312.1
|
||||||
releaseVersion: 0.24.4
|
releaseVersion: 0.24.5
|
||||||
configChecksum: e898c52661b3e0d1837c6c2d8b801d02
|
configChecksum: 92157209ffa5c1159c8556491f90b1cd
|
||||||
repoURL: https://github.com/dubinc/dub-node.git
|
repoURL: https://github.com/dubinc/dub-node.git
|
||||||
installationURL: https://github.com/dubinc/dub-node
|
installationURL: https://github.com/dubinc/dub-node
|
||||||
published: true
|
published: true
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.24.4
|
version: 0.24.5
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.269.1
|
speakeasyVersion: 1.272.0
|
||||||
sources:
|
sources:
|
||||||
my-first-source: {}
|
my-first-source: {}
|
||||||
targets:
|
targets:
|
||||||
|
|||||||
24
README.md
24
README.md
@@ -47,10 +47,6 @@ const dub = new Dub({
|
|||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.create({
|
const result = await dub.links.create({
|
||||||
url: "https://google/com",
|
url: "https://google/com",
|
||||||
externalId: "123456",
|
|
||||||
tagIds: ["clux0rgak00011..."],
|
|
||||||
tagNames: "<value>",
|
|
||||||
geo: {},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
@@ -150,10 +146,7 @@ const dub = new Dub({
|
|||||||
async function run() {
|
async function run() {
|
||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
result = await dub.links.list({
|
result = await dub.links.list({});
|
||||||
tagIds: ["<value>"],
|
|
||||||
tagNames: "<value>",
|
|
||||||
});
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case err instanceof errors.SDKValidationError: {
|
case err instanceof errors.SDKValidationError: {
|
||||||
@@ -235,10 +228,7 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.list({
|
const result = await dub.links.list({});
|
||||||
tagIds: ["<value>"],
|
|
||||||
tagNames: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -263,10 +253,7 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.list({
|
const result = await dub.links.list({});
|
||||||
tagIds: ["<value>"],
|
|
||||||
tagNames: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -347,10 +334,7 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.list({
|
const result = await dub.links.list({});
|
||||||
tagIds: ["<value>"],
|
|
||||||
tagNames: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -156,4 +156,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [typescript v0.24.4] .
|
- [typescript v0.24.4] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.24.4] https://www.npmjs.com/package/dub/v/0.24.4 - .
|
- [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 - .
|
||||||
4
USAGE.md
4
USAGE.md
@@ -10,10 +10,6 @@ const dub = new Dub({
|
|||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.create({
|
const result = await dub.links.create({
|
||||||
url: "https://google/com",
|
url: "https://google/com",
|
||||||
externalId: "123456",
|
|
||||||
tagIds: ["clux0rgak00011..."],
|
|
||||||
tagNames: "<value>",
|
|
||||||
geo: {},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ Add a domain to the authenticated workspace.
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
import { Type } from "dub/models/operations";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
@@ -79,11 +78,6 @@ const dub = new Dub({
|
|||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.add({
|
const result = await dub.domains.add({
|
||||||
slug: "acme.com",
|
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
|
// Handle the result
|
||||||
@@ -181,7 +175,6 @@ Edit a domain for the authenticated workspace.
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
import { EditDomainType } from "dub/models/operations";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
@@ -190,14 +183,7 @@ const dub = new Dub({
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const slug = "acme.com";
|
const slug = "acme.com";
|
||||||
const requestBody = {
|
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 result = await dub.domains.update(slug, requestBody);
|
const result = await dub.domains.update(slug, requestBody);
|
||||||
|
|
||||||
|
|||||||
@@ -26,12 +26,7 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.list({
|
const result = await dub.links.list({});
|
||||||
tagIds: [
|
|
||||||
"<value>",
|
|
||||||
],
|
|
||||||
tagNames: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -84,12 +79,6 @@ const dub = new Dub({
|
|||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.create({
|
const result = await dub.links.create({
|
||||||
url: "https://google/com",
|
url: "https://google/com",
|
||||||
externalId: "123456",
|
|
||||||
tagIds: [
|
|
||||||
"clux0rgak00011...",
|
|
||||||
],
|
|
||||||
tagNames: "<value>",
|
|
||||||
geo: {},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
@@ -134,7 +123,6 @@ Retrieve the number of links for the authenticated workspace. The provided query
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
import { One } from "dub/models/operations";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
@@ -142,11 +130,7 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.count({
|
const result = await dub.links.count({});
|
||||||
tagIds: "<value>",
|
|
||||||
tagNames: "<value>",
|
|
||||||
groupBy: One.Domain,
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -254,14 +238,6 @@ async function run() {
|
|||||||
const linkId = "<value>";
|
const linkId = "<value>";
|
||||||
const requestBody = {
|
const requestBody = {
|
||||||
url: "https://google/com",
|
url: "https://google/com",
|
||||||
externalId: "123456",
|
|
||||||
tagIds: [
|
|
||||||
"clux0rgak00011...",
|
|
||||||
],
|
|
||||||
tagNames: [
|
|
||||||
"<value>",
|
|
||||||
],
|
|
||||||
geo: {},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const result = await dub.links.update(linkId, requestBody);
|
const result = await dub.links.update(linkId, requestBody);
|
||||||
@@ -372,14 +348,6 @@ async function run() {
|
|||||||
const result = await dub.links.createMany([
|
const result = await dub.links.createMany([
|
||||||
{
|
{
|
||||||
url: "https://google/com",
|
url: "https://google/com",
|
||||||
externalId: "123456",
|
|
||||||
tagIds: [
|
|
||||||
"clux0rgak00011...",
|
|
||||||
],
|
|
||||||
tagNames: [
|
|
||||||
"<value>",
|
|
||||||
],
|
|
||||||
geo: {},
|
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.24.4",
|
"version": "0.24.5",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./models/errors": "./src/models/errors/index.ts",
|
"./models/errors": "./src/models/errors/index.ts",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.24.4",
|
"version": "0.24.5",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.24.4",
|
"version": "0.24.5",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jsonpath": "^0.2.4",
|
"@types/jsonpath": "^0.2.4",
|
||||||
"@types/node": "^20.12.7",
|
"@types/node": "^20.12.7",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.24.4",
|
"version": "0.24.5",
|
||||||
"author": "Dub",
|
"author": "Dub",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|||||||
export const SDK_METADATA = {
|
export const SDK_METADATA = {
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "0.0.1",
|
openapiDocVersion: "0.0.1",
|
||||||
sdkVersion: "0.24.4",
|
sdkVersion: "0.24.5",
|
||||||
genVersion: "2.312.1",
|
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;
|
} as const;
|
||||||
|
|||||||
Reference in New Issue
Block a user