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.

remove create and list workspace methods

Kiran Kb8b5f00f4526
diff --git a/apps/docs/sdks/typescript/workspaces/create.mdx b/apps/docs/sdks/typescript/workspaces/create.mdx
deleted file mode 100644
index fe74419758..0000000000
--- a/apps/docs/sdks/typescript/workspaces/create.mdx
+++ /dev/null
@@ -1,63 +0,0 @@
----
-title: "dub.workspaces.create"
-sidebarTitle: "Create"
-"og:title": "dub.workspaces.create - Create a workspace - TypeScript SDK"
-description: "Create a new workspace for the authenticated user."
----
-
-import WorkspaceResponse from "/snippets/workspace-response.mdx";
-
-## Arguments
-
-<ParamField body="name" type="string" required>
- The name of the workspace.
-</ParamField>
-
-<ParamField body="slug" type="string" required>
- The unique slug of the workspace. It must be unique across all workspaces.
-</ParamField>
-
-<ParamField body="domain" type="string">
- The domain of the workspace.
-</ParamField>
-
-## Response
-
-<WorkspaceResponse />
-
-<RequestExample>
-
-```ts
-await dub.workspaces.create({
- name: "Acme",
- slug: "acme",
-});
-```
-
-</RequestExample>
-
-<ResponseExample>
-
-```ts
-{
- id: 'clv3mw4qb00008tvuw86c53db',
- name: 'Acme',
- slug: 'acme',
- logo: null,
- usage: 0,
- usageLimit: 1000,
- linksUsage: 0,
- linksLimit: 25,
- domainsLimit: 3,
- tagsLimit: 5,
- usersLimit: 1,
- plan: 'free',
- stripeId: null,
- billingCycleStart: 17,
- createdAt: '2024-04-17T09:52:27.635Z',
- users: [ { role: 'owner' } ],
- domains: []
-}
-```
-
-</ResponseExample>
diff --git a/apps/docs/sdks/typescript/workspaces/list.mdx b/apps/docs/sdks/typescript/workspaces/list.mdx
deleted file mode 100644
index 4142c75469..0000000000
--- a/apps/docs/sdks/typescript/workspaces/list.mdx
+++ /dev/null
@@ -1,48 +0,0 @@
----
-title: "dub.workspaces.list"
-sidebarTitle: "List"
-"og:title": "dub.workspaces.list - Retrieve a list of workspaces - TypeScript SDK"
-description: "Retrieve a list of workspaces for the authenticated user."
----
-
-import WorkspaceResponse from "/snippets/workspace-response.mdx";
-
-## Response
-
-<WorkspaceResponse />
-
-<RequestExample>
-
-```ts
-await dub.workspaces.list({});
-```
-
-</RequestExample>
-
-<ResponseExample>
-
-```ts
-[
- {
- id: "clv3mw4qb00008tvuw86c53db",
- name: "Acme",
- slug: "acme",
- logo: null,
- usage: 0,
- usageLimit: 1000,
- linksUsage: 0,
- linksLimit: 25,
- domainsLimit: 3,
- tagsLimit: 5,
- usersLimit: 1,
- plan: "free",
- stripeId: null,
- billingCycleStart: 17,
- createdAt: "2024-04-17T09:52:27.635Z",
- users: [{ role: "owner" }],
- domains: [],
- },
-];
-```
-
-</ResponseExample>