{"id":13602120,"url":"https://github.com/dubinc/dub-ts","last_synced_at":"2026-02-17T08:00:40.085Z","repository":{"id":216435208,"uuid":"741105957","full_name":"dubinc/dub-ts","owner":"dubinc","description":"Official Dub Typescript SDK","archived":false,"fork":false,"pushed_at":"2026-02-16T00:44:34.000Z","size":6155,"stargazers_count":62,"open_issues_count":3,"forks_count":19,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-16T08:22:33.352Z","etag":null,"topics":["api","dub","node","npm","sdk","speakeasy","speakeasyapi","typescript"],"latest_commit_sha":null,"homepage":"https://dub.co/solutions/typescript","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dubinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-09T17:53:29.000Z","updated_at":"2026-02-13T02:19:19.000Z","dependencies_parsed_at":"2024-03-22T20:28:16.969Z","dependency_job_id":"04175802-e77b-4be4-b4d6-f656d54d49f4","html_url":"https://github.com/dubinc/dub-ts","commit_stats":null,"previous_names":["dubinc/dub-node","dubinc/dub-ts"],"tags_count":209,"template":false,"template_full_name":null,"purl":"pkg:github/dubinc/dub-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubinc%2Fdub-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubinc%2Fdub-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubinc%2Fdub-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubinc%2Fdub-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubinc","download_url":"https://codeload.github.com/dubinc/dub-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubinc%2Fdub-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29537227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T05:00:25.817Z","status":"ssl_error","status_checked_at":"2026-02-17T04:57:16.126Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","dub","node","npm","sdk","speakeasy","speakeasyapi","typescript"],"created_at":"2024-08-01T18:01:14.564Z","updated_at":"2026-02-17T08:00:40.040Z","avatar_url":"https://github.com/dubinc.png","language":"TypeScript","funding_links":[],"categories":["api"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/dubinc/dub/assets/28986134/3815d859-afaa-48f9-a9b3-c09964e4d404\" alt=\"Dub.co TypeScript SDK to interact with APIs.\"\u003e\n  \u003ch3\u003eDub.co TypeScript SDK\u003c/h3\u003e\n  \u003ca href=\"https://speakeasyapi.dev/\"\u003e\u003cimg src=\"https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge\u0026logoColor=FBE331\u0026logo=speakeasy\u0026labelColor=545454\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\" style=\"width: 100px; height: 28px;\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\nLearn more about the Dub.co TypeScript SDK in the [official documentation](https://dub.co/docs/sdks/typescript/overview).\n\n\u003c!-- Start Table of Contents [toc] --\u003e\n## Table of Contents\n\u003c!-- $toc-max-depth=2 --\u003e\n  * [SDK Installation](#sdk-installation)\n  * [Requirements](#requirements)\n  * [SDK Example Usage](#sdk-example-usage)\n  * [Available Resources and Operations](#available-resources-and-operations)\n  * [Error Handling](#error-handling)\n  * [Server Selection](#server-selection)\n  * [Custom HTTP Client](#custom-http-client)\n  * [Authentication](#authentication)\n  * [Retries](#retries)\n  * [Pagination](#pagination)\n  * [Standalone functions](#standalone-functions)\n  * [Debugging](#debugging)\n* [Development](#development)\n  * [Contributions](#contributions)\n\n\u003c!-- End Table of Contents [toc] --\u003e\n\n\u003c!-- Start SDK Installation [installation] --\u003e\n## SDK Installation\n\nThe SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.\n\n### NPM\n\n```bash\nnpm add dub\n```\n\n### PNPM\n\n```bash\npnpm add dub\n```\n\n### Bun\n\n```bash\nbun add dub\n```\n\n### Yarn\n\n```bash\nyarn add dub\n```\n\n\u003e [!NOTE]\n\u003e This package is published with CommonJS and ES Modules (ESM) support.\n\u003c!-- End SDK Installation [installation] --\u003e\n\n\u003c!-- Start Requirements [requirements] --\u003e\n## Requirements\n\nFor supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).\n\u003c!-- End Requirements [requirements] --\u003e\n\n\u003c!-- Start SDK Example Usage [usage] --\u003e\n## SDK Example Usage\n\n### Example 1\n\n```typescript\nimport { Dub } from \"dub\";\n\nconst dub = new Dub({\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  const result = await dub.links.create();\n\n  console.log(result);\n}\n\nrun();\n\n```\n\n### Example 2\n\n```typescript\nimport { Dub } from \"dub\";\n\nconst dub = new Dub({\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  const result = await dub.links.upsert();\n\n  console.log(result);\n}\n\nrun();\n\n```\n\u003c!-- End SDK Example Usage [usage] --\u003e\n\n\u003c!-- Start Available Resources and Operations [operations] --\u003e\n## Available Resources and Operations\n\n\u003cdetails open\u003e\n\u003csummary\u003eAvailable methods\u003c/summary\u003e\n\n### [Analytics](docs/sdks/analytics/README.md)\n\n* [retrieve](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.\n\n### [Bounties](docs/sdks/bounties/README.md)\n\n* [listSubmissions](docs/sdks/bounties/README.md#listsubmissions) - List bounty submissions\n* [approveSubmission](docs/sdks/bounties/README.md#approvesubmission) - Approve a bounty submission\n* [rejectSubmission](docs/sdks/bounties/README.md#rejectsubmission) - Reject a bounty submission\n\n### [Commissions](docs/sdks/commissions/README.md)\n\n* [list](docs/sdks/commissions/README.md#list) - List all commissions\n* [update](docs/sdks/commissions/README.md#update) - Update a commission.\n\n### [Customers](docs/sdks/customers/README.md)\n\n* [list](docs/sdks/customers/README.md#list) - Retrieve a list of customers\n* [get](docs/sdks/customers/README.md#get) - Retrieve a customer\n* [delete](docs/sdks/customers/README.md#delete) - Delete a customer\n* [update](docs/sdks/customers/README.md#update) - Update a customer\n\n### [Domains](docs/sdks/domains/README.md)\n\n* [list](docs/sdks/domains/README.md#list) - Retrieve a list of domains\n* [create](docs/sdks/domains/README.md#create) - Create a domain\n* [delete](docs/sdks/domains/README.md#delete) - Delete a domain\n* [update](docs/sdks/domains/README.md#update) - Update a domain\n* [register](docs/sdks/domains/README.md#register) - Register a domain\n* [checkStatus](docs/sdks/domains/README.md#checkstatus) - Check the availability of one or more domains\n\n### [EmbedTokens](docs/sdks/embedtokens/README.md)\n\n* [referrals](docs/sdks/embedtokens/README.md#referrals) - Create a referrals embed token\n\n### [Events](docs/sdks/events/README.md)\n\n* [list](docs/sdks/events/README.md#list) - Retrieve a list of events\n\n### [Folders](docs/sdks/folders/README.md)\n\n* [list](docs/sdks/folders/README.md#list) - Retrieve a list of folders\n* [create](docs/sdks/folders/README.md#create) - Create a folder\n* [delete](docs/sdks/folders/README.md#delete) - Delete a folder\n* [update](docs/sdks/folders/README.md#update) - Update a folder\n\n### [Links](docs/sdks/links/README.md)\n\n* [list](docs/sdks/links/README.md#list) - Retrieve a list of links\n* [create](docs/sdks/links/README.md#create) - Create a link\n* [count](docs/sdks/links/README.md#count) - Retrieve links count\n* [get](docs/sdks/links/README.md#get) - Retrieve a link\n* [delete](docs/sdks/links/README.md#delete) - Delete a link\n* [update](docs/sdks/links/README.md#update) - Update a link\n* [createMany](docs/sdks/links/README.md#createmany) - Bulk create links\n* [deleteMany](docs/sdks/links/README.md#deletemany) - Bulk delete links\n* [updateMany](docs/sdks/links/README.md#updatemany) - Bulk update links\n* [upsert](docs/sdks/links/README.md#upsert) - Upsert a link\n\n### [Partners](docs/sdks/partners/README.md)\n\n* [list](docs/sdks/partners/README.md#list) - List all partners\n* [create](docs/sdks/partners/README.md#create) - Create or update a partner\n* [retrieveLinks](docs/sdks/partners/README.md#retrievelinks) - Retrieve a partner's links.\n* [createLink](docs/sdks/partners/README.md#createlink) - Create a link for a partner\n* [upsertLink](docs/sdks/partners/README.md#upsertlink) - Upsert a link for a partner\n* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner\n* [ban](docs/sdks/partners/README.md#ban) - Ban a partner\n* [deactivate](docs/sdks/partners/README.md#deactivate) - Deactivate a partner\n\n### [Payouts](docs/sdks/payouts/README.md)\n\n* [list](docs/sdks/payouts/README.md#list) - List all payouts\n\n### [QRCodes](docs/sdks/qrcodes/README.md)\n\n* [get](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code\n\n### [Tags](docs/sdks/tags/README.md)\n\n* [list](docs/sdks/tags/README.md#list) - Retrieve a list of tags\n* [create](docs/sdks/tags/README.md#create) - Create a tag\n* [delete](docs/sdks/tags/README.md#delete) - Delete a tag\n* [update](docs/sdks/tags/README.md#update) - Update a tag\n\n### [Track](docs/sdks/track/README.md)\n\n* [lead](docs/sdks/track/README.md#lead) - Track a lead\n* [sale](docs/sdks/track/README.md#sale) - Track a sale\n\n\u003c/details\u003e\n\u003c!-- End Available Resources and Operations [operations] --\u003e\n\n\u003c!-- Start Error Handling [errors] --\u003e\n## Error Handling\n\n[`DubError`](./src/models/errors/duberror.ts) is the base class for all HTTP error responses. It has the following properties:\n\n| Property            | Type       | Description                                                                             |\n| ------------------- | ---------- | --------------------------------------------------------------------------------------- |\n| `error.message`     | `string`   | Error message                                                                           |\n| `error.statusCode`  | `number`   | HTTP response status code eg `404`                                                      |\n| `error.headers`     | `Headers`  | HTTP response headers                                                                   |\n| `error.body`        | `string`   | HTTP body. Can be empty string if no body is returned.                                  |\n| `error.rawResponse` | `Response` | Raw HTTP response                                                                       |\n| `error.data$`       |            | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |\n\n### Example\n```typescript\nimport { Dub } from \"dub\";\nimport * as errors from \"dub/models/errors\";\n\nconst dub = new Dub({\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  try {\n    const result = await dub.links.list();\n\n    for await (const page of result) {\n      console.log(page);\n    }\n  } catch (error) {\n    // The base class for HTTP error responses\n    if (error instanceof errors.DubError) {\n      console.log(error.message);\n      console.log(error.statusCode);\n      console.log(error.body);\n      console.log(error.headers);\n\n      // Depending on the method different errors may be thrown\n      if (error instanceof errors.BadRequest) {\n        console.log(error.data$.error); // errors.ErrorT\n      }\n    }\n  }\n}\n\nrun();\n\n```\n\n### Error Classes\n**Primary errors:**\n* [`DubError`](./src/models/errors/duberror.ts): The base class for HTTP error responses.\n  * [`BadRequest`](./src/models/errors/badrequest.ts): The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). Status code `400`.\n  * [`Unauthorized`](./src/models/errors/unauthorized.ts): Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response. Status code `401`.\n  * [`Forbidden`](./src/models/errors/forbidden.ts): The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server. Status code `403`.\n  * [`NotFound`](./src/models/errors/notfound.ts): The server cannot find the requested resource. Status code `404`.\n  * [`Conflict`](./src/models/errors/conflict.ts): This response is sent when a request conflicts with the current state of the server. Status code `409`.\n  * [`InviteExpired`](./src/models/errors/inviteexpired.ts): This response is sent when the requested content has been permanently deleted from server, with no forwarding address. Status code `410`.\n  * [`UnprocessableEntity`](./src/models/errors/unprocessableentity.ts): The request was well-formed but was unable to be followed due to semantic errors. Status code `422`.\n  * [`RateLimitExceeded`](./src/models/errors/ratelimitexceeded.ts): The user has sent too many requests in a given amount of time (\"rate limiting\"). Status code `429`.\n  * [`InternalServerError`](./src/models/errors/internalservererror.ts): The server has encountered a situation it does not know how to handle. Status code `500`.\n\n\u003cdetails\u003e\u003csummary\u003eLess common errors (6)\u003c/summary\u003e\n\n\u003cbr /\u003e\n\n**Network errors:**\n* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.\n* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.\n* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.\n* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.\n* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.\n\n\n**Inherit from [`DubError`](./src/models/errors/duberror.ts)**:\n* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.\n\n\u003c/details\u003e\n\u003c!-- End Error Handling [errors] --\u003e\n\n\u003c!-- Start Server Selection [server] --\u003e\n## Server Selection\n\n### Override Server URL Per-Client\n\nThe default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:\n```typescript\nimport { Dub } from \"dub\";\n\nconst dub = new Dub({\n  serverURL: \"https://api.dub.co\",\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  const result = await dub.links.list();\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Server Selection [server] --\u003e\n\n\u003c!-- Start Custom HTTP Client [http-client] --\u003e\n## Custom HTTP Client\n\nThe TypeScript SDK makes API calls using an `HTTPClient` that wraps the native\n[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This\nclient is a thin wrapper around `fetch` and provides the ability to attach hooks\naround the request lifecycle that can be used to modify the request or handle\nerrors and response.\n\nThe `HTTPClient` constructor takes an optional `fetcher` argument that can be\nused to integrate a third-party HTTP client or when writing tests to mock out\nthe HTTP client and feed in fixtures.\n\nThe following example shows how to:\n- route requests through a proxy server using [undici](https://www.npmjs.com/package/undici)'s ProxyAgent\n- use the `\"beforeRequest\"` hook to add a custom header and a timeout to requests\n- use the `\"requestError\"` hook to log errors\n\n```typescript\nimport { Dub } from \"dub\";\nimport { ProxyAgent } from \"undici\";\nimport { HTTPClient } from \"dub/lib/http\";\n\nconst dispatcher = new ProxyAgent(\"http://proxy.example.com:8080\");\n\nconst httpClient = new HTTPClient({\n  // 'fetcher' takes a function that has the same signature as native 'fetch'.\n  fetcher: (input, init) =\u003e\n    // 'dispatcher' is specific to undici and not part of the standard Fetch API.\n    fetch(input, { ...init, dispatcher } as RequestInit),\n});\n\nhttpClient.addHook(\"beforeRequest\", (request) =\u003e {\n  const nextRequest = new Request(request, {\n    signal: request.signal || AbortSignal.timeout(5000)\n  });\n\n  nextRequest.headers.set(\"x-custom-header\", \"custom value\");\n\n  return nextRequest;\n});\n\nhttpClient.addHook(\"requestError\", (error, request) =\u003e {\n  console.group(\"Request Error\");\n  console.log(\"Reason:\", `${error}`);\n  console.log(\"Endpoint:\", `${request.method} ${request.url}`);\n  console.groupEnd();\n});\n\nconst sdk = new Dub({ httpClient: httpClient });\n```\n\u003c!-- End Custom HTTP Client [http-client] --\u003e\n\n\u003c!-- Start Authentication [security] --\u003e\n## Authentication\n\n### Per-Client Security Schemes\n\nThis SDK supports the following security scheme globally:\n\n| Name    | Type | Scheme      |\n| ------- | ---- | ----------- |\n| `token` | http | HTTP Bearer |\n\nTo authenticate with the API the `token` parameter must be set when initializing the SDK client instance. For example:\n```typescript\nimport { Dub } from \"dub\";\n\nconst dub = new Dub({\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  const result = await dub.links.list();\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Authentication [security] --\u003e\n\n\u003c!-- Start Retries [retries] --\u003e\n## Retries\n\nSome of the endpoints in this SDK support retries.  If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API.  However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.\n\nTo change the default retry strategy for a single API call, simply provide a retryConfig object to the call:\n```typescript\nimport { Dub } from \"dub\";\n\nconst dub = new Dub({\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  const result = await dub.links.list(undefined, {\n    retries: {\n      strategy: \"backoff\",\n      backoff: {\n        initialInterval: 1,\n        maxInterval: 50,\n        exponent: 1.1,\n        maxElapsedTime: 100,\n      },\n      retryConnectionErrors: false,\n    },\n  });\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\nIf you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:\n```typescript\nimport { Dub } from \"dub\";\n\nconst dub = new Dub({\n  retryConfig: {\n    strategy: \"backoff\",\n    backoff: {\n      initialInterval: 1,\n      maxInterval: 50,\n      exponent: 1.1,\n      maxElapsedTime: 100,\n    },\n    retryConnectionErrors: false,\n  },\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  const result = await dub.links.list();\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Retries [retries] --\u003e\n\n\u003c!-- Start Pagination [pagination] --\u003e\n## Pagination\n\nSome of the endpoints in this SDK support pagination. To use pagination, you\nmake your SDK calls as usual, but the returned response object will also be an\nasync iterable that can be consumed using the [`for await...of`][for-await-of]\nsyntax.\n\n[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of\n\nHere's an example of one such pagination call:\n\n```typescript\nimport { Dub } from \"dub\";\n\nconst dub = new Dub({\n  token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n  const result = await dub.links.list();\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Pagination [pagination] --\u003e\n\n\u003c!-- Start Standalone functions [standalone-funcs] --\u003e\n## Standalone functions\n\nAll the methods listed above are available as standalone functions. These\nfunctions are ideal for use in applications running in the browser, serverless\nruntimes or other environments where application bundle size is a primary\nconcern. When using a bundler to build your application, all unused\nfunctionality will be either excluded from the final bundle or tree-shaken away.\n\nTo read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).\n\n\u003cdetails\u003e\n\n\u003csummary\u003eAvailable standalone functions\u003c/summary\u003e\n\n- [`analyticsRetrieve`](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.\n- [`bountiesApproveSubmission`](docs/sdks/bounties/README.md#approvesubmission) - Approve a bounty submission\n- [`bountiesListSubmissions`](docs/sdks/bounties/README.md#listsubmissions) - List bounty submissions\n- [`bountiesRejectSubmission`](docs/sdks/bounties/README.md#rejectsubmission) - Reject a bounty submission\n- [`commissionsList`](docs/sdks/commissions/README.md#list) - List all commissions\n- [`commissionsUpdate`](docs/sdks/commissions/README.md#update) - Update a commission.\n- [`customersDelete`](docs/sdks/customers/README.md#delete) - Delete a customer\n- [`customersGet`](docs/sdks/customers/README.md#get) - Retrieve a customer\n- [`customersList`](docs/sdks/customers/README.md#list) - Retrieve a list of customers\n- [`customersUpdate`](docs/sdks/customers/README.md#update) - Update a customer\n- [`domainsCheckStatus`](docs/sdks/domains/README.md#checkstatus) - Check the availability of one or more domains\n- [`domainsCreate`](docs/sdks/domains/README.md#create) - Create a domain\n- [`domainsDelete`](docs/sdks/domains/README.md#delete) - Delete a domain\n- [`domainsList`](docs/sdks/domains/README.md#list) - Retrieve a list of domains\n- [`domainsRegister`](docs/sdks/domains/README.md#register) - Register a domain\n- [`domainsUpdate`](docs/sdks/domains/README.md#update) - Update a domain\n- [`embedTokensReferrals`](docs/sdks/embedtokens/README.md#referrals) - Create a referrals embed token\n- [`eventsList`](docs/sdks/events/README.md#list) - Retrieve a list of events\n- [`foldersCreate`](docs/sdks/folders/README.md#create) - Create a folder\n- [`foldersDelete`](docs/sdks/folders/README.md#delete) - Delete a folder\n- [`foldersList`](docs/sdks/folders/README.md#list) - Retrieve a list of folders\n- [`foldersUpdate`](docs/sdks/folders/README.md#update) - Update a folder\n- [`linksCount`](docs/sdks/links/README.md#count) - Retrieve links count\n- [`linksCreate`](docs/sdks/links/README.md#create) - Create a link\n- [`linksCreateMany`](docs/sdks/links/README.md#createmany) - Bulk create links\n- [`linksDelete`](docs/sdks/links/README.md#delete) - Delete a link\n- [`linksDeleteMany`](docs/sdks/links/README.md#deletemany) - Bulk delete links\n- [`linksGet`](docs/sdks/links/README.md#get) - Retrieve a link\n- [`linksList`](docs/sdks/links/README.md#list) - Retrieve a list of links\n- [`linksUpdate`](docs/sdks/links/README.md#update) - Update a link\n- [`linksUpdateMany`](docs/sdks/links/README.md#updatemany) - Bulk update links\n- [`linksUpsert`](docs/sdks/links/README.md#upsert) - Upsert a link\n- [`partnersAnalytics`](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner\n- [`partnersBan`](docs/sdks/partners/README.md#ban) - Ban a partner\n- [`partnersCreate`](docs/sdks/partners/README.md#create) - Create or update a partner\n- [`partnersCreateLink`](docs/sdks/partners/README.md#createlink) - Create a link for a partner\n- [`partnersDeactivate`](docs/sdks/partners/README.md#deactivate) - Deactivate a partner\n- [`partnersList`](docs/sdks/partners/README.md#list) - List all partners\n- [`partnersRetrieveLinks`](docs/sdks/partners/README.md#retrievelinks) - Retrieve a partner's links.\n- [`partnersUpsertLink`](docs/sdks/partners/README.md#upsertlink) - Upsert a link for a partner\n- [`payoutsList`](docs/sdks/payouts/README.md#list) - List all payouts\n- [`qrCodesGet`](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code\n- [`tagsCreate`](docs/sdks/tags/README.md#create) - Create a tag\n- [`tagsDelete`](docs/sdks/tags/README.md#delete) - Delete a tag\n- [`tagsList`](docs/sdks/tags/README.md#list) - Retrieve a list of tags\n- [`tagsUpdate`](docs/sdks/tags/README.md#update) - Update a tag\n- [`trackLead`](docs/sdks/track/README.md#lead) - Track a lead\n- [`trackSale`](docs/sdks/track/README.md#sale) - Track a sale\n\n\u003c/details\u003e\n\u003c!-- End Standalone functions [standalone-funcs] --\u003e\n\n\u003c!-- Start Debugging [debug] --\u003e\n## Debugging\n\nYou can setup your SDK to emit debug logs for SDK requests and responses.\n\nYou can pass a logger that matches `console`'s interface as an SDK option.\n\n\u003e [!WARNING]\n\u003e Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.\n\n```typescript\nimport { Dub } from \"dub\";\n\nconst sdk = new Dub({ debugLogger: console });\n```\n\u003c!-- End Debugging [debug] --\u003e\n\n\u003c!-- Start Summary [summary] --\u003e\n## Summary\n\nDub API: Dub is the modern link attribution platform for short links, conversion tracking, and affiliate programs.\n\u003c!-- End Summary [summary] --\u003e\n\n\u003c!-- Placeholder for Future Speakeasy SDK Sections --\u003e\n\n# Development\n\n## Contributions\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically.\nFeel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!\n\n### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubinc%2Fdub-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubinc%2Fdub-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubinc%2Fdub-ts/lists"}