Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update page titles and descriptions

Kiran Kce8bff67e15c
diff --git a/apps/docs/sdks/typescript/domains/delete.mdx b/apps/docs/sdks/typescript/domains/delete.mdx
index e69de29bb2..72ce6a30a3 100644
--- a/apps/docs/sdks/typescript/domains/delete.mdx
+++ b/apps/docs/sdks/typescript/domains/delete.mdx
@@ -0,0 +1,5 @@
+---
+title: "Delete"
+"og:title": "dub.domains.delete - Delete a domain - TypeScript SDK"
+description: "Delete a domain from a workspace."
+---
diff --git a/apps/docs/sdks/typescript/domains/list.mdx b/apps/docs/sdks/typescript/domains/list.mdx
index e69de29bb2..8cf89fbfe2 100644
--- a/apps/docs/sdks/typescript/domains/list.mdx
+++ b/apps/docs/sdks/typescript/domains/list.mdx
@@ -0,0 +1,5 @@
+---
+title: "List"
+"og:title": "dub.domains.list - Retrieve a list of domains - TypeScript SDK"
+description: "Retrieve a list of domains associated with the authenticated workspace."
+---
diff --git a/apps/docs/sdks/typescript/domains/set-primary.mdx b/apps/docs/sdks/typescript/domains/set-primary.mdx
new file mode 100644
index 0000000000..742ea65cb8
--- /dev/null
+++ b/apps/docs/sdks/typescript/domains/set-primary.mdx
@@ -0,0 +1,5 @@
+---
+title: "Set Primary"
+"og:title": "dub.domains.setPrimary - Set a domain as primary - TypeScript SDK"
+description: "Set a domain as primary for the authenticated workspace."
+---
diff --git a/apps/docs/sdks/typescript/domains/setPrimary.mdx b/apps/docs/sdks/typescript/domains/setPrimary.mdx
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/apps/docs/sdks/typescript/domains/transfer.mdx b/apps/docs/sdks/typescript/domains/transfer.mdx
index e69de29bb2..be65ea6096 100644
--- a/apps/docs/sdks/typescript/domains/transfer.mdx
+++ b/apps/docs/sdks/typescript/domains/transfer.mdx
@@ -0,0 +1,5 @@
+---
+title: "transfer"
+"og:title": "dub.domains.transfer - Transfer a domain - TypeScript SDK"
+description: "Transfer a domain to another workspace within the authenticated account."
+---
diff --git a/apps/docs/sdks/typescript/domains/update.mdx b/apps/docs/sdks/typescript/domains/update.mdx
index 92326dcc95..3b98a014bb 100644
--- a/apps/docs/sdks/typescript/domains/update.mdx
+++ b/apps/docs/sdks/typescript/domains/update.mdx
@@ -1,75 +1,5 @@
---
title: "Update"
-"og:title": "Edit a domain - TypeScript SDK"
+"og:title": "dub.domains.update - Edit a domain - TypeScript SDK"
description: "Edit a domain for the authenticated workspace."
----
-
-import DomainResponse from "/snippets/domain-response.mdx";
-
-## Arguments
-
-<ParamField body="slug" type="string">
- Name of the domain.
-</ParamField>
-
-<ParamField body="type" type="enum<string>" default="redirect">
- The type of redirect to use for this domain.
- <enum>
- <value>redirect</value>
- <value>rewrite</value>
- </enum>
-</ParamField>
-
-<ParamField body="target" type="string | null">
- The page your users will get redirected to when they visit your domain.
-</ParamField>
-
-<ParamField body="expiredUrl" type="string | null">
- Redirect users to a specific URL when any link under this domain has expired.
-</ParamField>
-
-<ParamField body="archived" type="boolean" default={false}>
- Whether to archive this domain. false will unarchive a previously archived
- domain.
-</ParamField>
-
-<ParamField
- body="placeholder"
- type="string | null"
- default="https://dub.co/help/article/what-is-dub"
->
- Provide context to your teammates in the link creation modal by showing them
- an example of a link to be shortened.
-</ParamField>
-
-<DomainResponse />
-
-<RequestExample>
-
-```ts
-await dub.domains.add({
- slug: "acme.com",
- primary: true,
- expiredUrl: "https://acme.com/expired",
-});
-```
-
-</RequestExample>
-
-<ResponseExample>
-
-```ts
-{
- slug: "acme.com",
- verified: false,
- primary: true,
- archived: false,
- placeholder: "https://dub.co/help/article/what-is-dub",
- expiredUrl: "https://acme.com/expired",
- target: null,
- type: "redirect",
- clicks: 0
-}
-```
-
-</ResponseExample>
+---
\ No newline at end of file
diff --git a/apps/docs/sdks/typescript/links/list.mdx b/apps/docs/sdks/typescript/links/list.mdx
index 147b188508..46961f00a2 100644
--- a/apps/docs/sdks/typescript/links/list.mdx
+++ b/apps/docs/sdks/typescript/links/list.mdx
@@ -1,6 +1,6 @@
---
title: "List"
-"og:title": "Retrieve a list of links - TypeScript SDK"
+"og:title": "dub.links.list - Retrieve a list of links - TypeScript SDK"
description: "Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links."
---
diff --git a/apps/docs/sdks/typescript/links/update.mdx b/apps/docs/sdks/typescript/links/update.mdx
index 3e4b02255e..76ec67746a 100644
--- a/apps/docs/sdks/typescript/links/update.mdx
+++ b/apps/docs/sdks/typescript/links/update.mdx
@@ -1,6 +1,6 @@
---
title: "Update"
-"og:title": Edit a link - TypeScript SDK"
+"og:title":dub.links.update - Edit a link - TypeScript SDK"
description: "Edit a link for the authenticated workspace. Support partial updates."
---
diff --git a/apps/docs/sdks/typescript/metatags/get.mdx b/apps/docs/sdks/typescript/metatags/get.mdx
index 2c92217ff7..e3d84bcd2d 100644
--- a/apps/docs/sdks/typescript/metatags/get.mdx
+++ b/apps/docs/sdks/typescript/metatags/get.mdx
@@ -1,6 +1,6 @@
---
title: "Get"
-"og:title": "Retrieve the metatags for a URL - TypeScript SDK"
+"og:title": "dub.metatags.get - Retrieve the metatags for a URL - TypeScript SDK"
description: "Retrieve the metatags for a URL."
---
diff --git a/apps/docs/sdks/typescript/tags/create.mdx b/apps/docs/sdks/typescript/tags/create.mdx
index 57f81fe3a7..7a7bae1649 100644
--- a/apps/docs/sdks/typescript/tags/create.mdx
+++ b/apps/docs/sdks/typescript/tags/create.mdx
@@ -1,6 +1,6 @@
---
title: "Create"
-"og:title": "Create a new tag - TypeScript SDK"
+"og:title": "dub.tags.create - Create a new tag - TypeScript SDK"
description: "Create a new tag for the authenticated workspace."
---
diff --git a/apps/docs/sdks/typescript/tags/list.mdx b/apps/docs/sdks/typescript/tags/list.mdx
index bb199a0975..3062d5c473 100644
--- a/apps/docs/sdks/typescript/tags/list.mdx
+++ b/apps/docs/sdks/typescript/tags/list.mdx
@@ -1,6 +1,6 @@
---
title: "List"
-"og:title": "Retrieve a list of tags - TypeScript SDK"
+"og:title": "dub.tags.list - Retrieve a list of tags - TypeScript SDK"
description: "Retrieve a list of tags for the authenticated workspace."
---
diff --git a/apps/docs/sdks/typescript/workspaces/create.mdx b/apps/docs/sdks/typescript/workspaces/create.mdx
index ad93c4c44d..c15963b035 100644
--- a/apps/docs/sdks/typescript/workspaces/create.mdx
+++ b/apps/docs/sdks/typescript/workspaces/create.mdx
@@ -1,6 +1,6 @@
---
title: "Create"
-"og:title": "Create a workspace - TypeScript SDK"
+"og:title": "dub.workspaces.create - Create a workspace - TypeScript SDK"
description: "Create a new workspace for the authenticated user."
---
diff --git a/apps/docs/sdks/typescript/workspaces/get.mdx b/apps/docs/sdks/typescript/workspaces/get.mdx
index 96964866b6..81186b8ca5 100644
--- a/apps/docs/sdks/typescript/workspaces/get.mdx
+++ b/apps/docs/sdks/typescript/workspaces/get.mdx
@@ -1,6 +1,6 @@
---
title: "Get"
-"og:title": "Retrieve a workspace - TypeScript SDK"
+"og:title": "dub.workspaces.get - Retrieve a workspace - TypeScript SDK"
description: "Retrieve a workspace for the authenticated user."
---
diff --git a/apps/docs/sdks/typescript/workspaces/list.mdx b/apps/docs/sdks/typescript/workspaces/list.mdx
index 0efa25b747..d9919da445 100644
--- a/apps/docs/sdks/typescript/workspaces/list.mdx
+++ b/apps/docs/sdks/typescript/workspaces/list.mdx
@@ -1,6 +1,6 @@
---
title: "List"
-"og:title": "Retrieve a list of workspaces - TypeScript SDK"
+"og:title": "dub.workspaces.list - Retrieve a list of workspaces - TypeScript SDK"
description: "Retrieve a list of workspaces for the authenticated user."
---