dub 0.22.1 → 0.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.speakeasy/gen.lock +14 -5
  2. package/.speakeasy/gen.yaml +1 -1
  3. package/README.md +36 -32
  4. package/docs/sdks/analytics/README.md +60 -60
  5. package/docs/sdks/links/README.md +45 -51
  6. package/docs/sdks/metatags/README.md +50 -0
  7. package/docs/sdks/qrcodes/README.md +6 -6
  8. package/docs/sdks/tags/README.md +12 -12
  9. package/docs/sdks/workspaces/README.md +18 -18
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/models/components/linkschema.d.ts +769 -5
  13. package/models/components/linkschema.d.ts.map +1 -1
  14. package/models/components/linkschema.js +1021 -3
  15. package/models/components/linkschema.js.map +1 -1
  16. package/models/operations/bulkcreatelinks.d.ts +1543 -29
  17. package/models/operations/bulkcreatelinks.d.ts.map +1 -1
  18. package/models/operations/bulkcreatelinks.js +1037 -19
  19. package/models/operations/bulkcreatelinks.js.map +1 -1
  20. package/models/operations/createlink.d.ts +1543 -29
  21. package/models/operations/createlink.d.ts.map +1 -1
  22. package/models/operations/createlink.js +1037 -19
  23. package/models/operations/createlink.js.map +1 -1
  24. package/models/operations/editlink.d.ts +1543 -29
  25. package/models/operations/editlink.d.ts.map +1 -1
  26. package/models/operations/editlink.js +1037 -19
  27. package/models/operations/editlink.js.map +1 -1
  28. package/models/operations/getlinks.d.ts +1 -1
  29. package/models/operations/getlinkscount.d.ts +1 -1
  30. package/models/operations/getmetatags.d.ts +48 -0
  31. package/models/operations/getmetatags.d.ts.map +1 -0
  32. package/models/operations/getmetatags.js +83 -0
  33. package/models/operations/getmetatags.js.map +1 -0
  34. package/models/operations/index.d.ts +1 -0
  35. package/models/operations/index.d.ts.map +1 -1
  36. package/models/operations/index.js +1 -0
  37. package/models/operations/index.js.map +1 -1
  38. package/package.json +1 -1
  39. package/sdk/metatags.d.ts +15 -0
  40. package/sdk/metatags.d.ts.map +1 -0
  41. package/sdk/metatags.js +117 -0
  42. package/sdk/metatags.js.map +1 -0
  43. package/sdk/sdk.d.ts +3 -0
  44. package/sdk/sdk.d.ts.map +1 -1
  45. package/sdk/sdk.js +5 -0
  46. package/sdk/sdk.js.map +1 -1
  47. package/src/lib/config.ts +3 -3
  48. package/src/models/components/linkschema.ts +1788 -7
  49. package/src/models/operations/bulkcreatelinks.ts +2578 -47
  50. package/src/models/operations/createlink.ts +2578 -47
  51. package/src/models/operations/editlink.ts +2578 -47
  52. package/src/models/operations/getlinks.ts +1 -1
  53. package/src/models/operations/getlinkscount.ts +1 -1
  54. package/src/models/operations/getmetatags.ts +101 -0
  55. package/src/models/operations/index.ts +1 -0
  56. package/src/sdk/metatags.ts +115 -0
  57. package/src/sdk/sdk.ts +6 -0
@@ -15,13 +15,13 @@ Retrieve a list of tags for the authenticated workspace.
15
15
  ```typescript
16
16
  import { Dub } from "dub";
17
17
 
18
- async function run() {
19
- const sdk = new Dub({
20
- token: "<YOUR_BEARER_TOKEN_HERE>",
21
- workspaceId: "<value>",
22
- });
18
+ const dub = new Dub({
19
+ token: "<YOUR_BEARER_TOKEN_HERE>",
20
+ workspaceId: "<value>",
21
+ });
23
22
 
24
- const result = await sdk.tags.list({});
23
+ async function run() {
24
+ const result = await dub.tags.list({});
25
25
 
26
26
  // Handle the result
27
27
  console.log(result)
@@ -66,13 +66,13 @@ Create a new tag for the authenticated workspace.
66
66
  ```typescript
67
67
  import { Dub } from "dub";
68
68
 
69
- async function run() {
70
- const sdk = new Dub({
71
- token: "<YOUR_BEARER_TOKEN_HERE>",
72
- workspaceId: "<value>",
73
- });
69
+ const dub = new Dub({
70
+ token: "<YOUR_BEARER_TOKEN_HERE>",
71
+ workspaceId: "<value>",
72
+ });
74
73
 
75
- const result = await sdk.tags.create({
74
+ async function run() {
75
+ const result = await dub.tags.create({
76
76
  tag: "<value>",
77
77
  });
78
78
 
@@ -16,13 +16,13 @@ Retrieve a list of workspaces for the authenticated user.
16
16
  ```typescript
17
17
  import { Dub } from "dub";
18
18
 
19
- async function run() {
20
- const sdk = new Dub({
21
- token: "<YOUR_BEARER_TOKEN_HERE>",
22
- workspaceId: "<value>",
23
- });
19
+ const dub = new Dub({
20
+ token: "<YOUR_BEARER_TOKEN_HERE>",
21
+ workspaceId: "<value>",
22
+ });
24
23
 
25
- const result = await sdk.workspaces.list();
24
+ async function run() {
25
+ const result = await dub.workspaces.list();
26
26
 
27
27
  // Handle the result
28
28
  console.log(result)
@@ -66,13 +66,13 @@ Create a new workspace for the authenticated user.
66
66
  ```typescript
67
67
  import { Dub } from "dub";
68
68
 
69
- async function run() {
70
- const sdk = new Dub({
71
- token: "<YOUR_BEARER_TOKEN_HERE>",
72
- workspaceId: "<value>",
73
- });
69
+ const dub = new Dub({
70
+ token: "<YOUR_BEARER_TOKEN_HERE>",
71
+ workspaceId: "<value>",
72
+ });
74
73
 
75
- const result = await sdk.workspaces.create({
74
+ async function run() {
75
+ const result = await dub.workspaces.create({
76
76
  name: "<value>",
77
77
  slug: "<value>",
78
78
  });
@@ -120,13 +120,13 @@ Retrieve a workspace for the authenticated user.
120
120
  ```typescript
121
121
  import { Dub } from "dub";
122
122
 
123
- async function run() {
124
- const sdk = new Dub({
125
- token: "<YOUR_BEARER_TOKEN_HERE>",
126
- workspaceId: "<value>",
127
- });
123
+ const dub = new Dub({
124
+ token: "<YOUR_BEARER_TOKEN_HERE>",
125
+ workspaceId: "<value>",
126
+ });
128
127
 
129
- const result = await sdk.workspaces.get({
128
+ async function run() {
129
+ const result = await dub.workspaces.get({
130
130
  idOrSlug: "<value>",
131
131
  });
132
132
 
package/lib/config.d.ts CHANGED
@@ -32,8 +32,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
32
32
  export declare const SDK_METADATA: Readonly<{
33
33
  language: "typescript";
34
34
  openapiDocVersion: "0.0.1";
35
- sdkVersion: "0.22.1";
36
- genVersion: "2.304.1";
37
- userAgent: "speakeasy-sdk/typescript 0.22.1 2.304.1 0.0.1 dub";
35
+ sdkVersion: "0.22.3";
36
+ genVersion: "2.306.0";
37
+ userAgent: "speakeasy-sdk/typescript 0.22.3 2.306.0 0.0.1 dub";
38
38
  }>;
39
39
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -32,8 +32,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
32
32
  exports.SDK_METADATA = Object.freeze({
33
33
  language: "typescript",
34
34
  openapiDocVersion: "0.0.1",
35
- sdkVersion: "0.22.1",
36
- genVersion: "2.304.1",
37
- userAgent: "speakeasy-sdk/typescript 0.22.1 2.304.1 0.0.1 dub",
35
+ sdkVersion: "0.22.3",
36
+ genVersion: "2.306.0",
37
+ userAgent: "speakeasy-sdk/typescript 0.22.3 2.306.0 0.0.1 dub",
38
38
  });
39
39
  //# sourceMappingURL=config.js.map