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
@@ -1,12 +1,12 @@
1
1
  lockVersion: 2.0.0
2
2
  id: f28179cc-ef59-426d-9e85-60cec22fc642
3
3
  management:
4
- docChecksum: f694a42b01f2e867afec56e4fb1fd88d
4
+ docChecksum: a7672fcdce994905df2837c38c661ab7
5
5
  docVersion: 0.0.1
6
- speakeasyVersion: 1.250.0
7
- generationVersion: 2.304.1
8
- releaseVersion: 0.22.1
9
- configChecksum: 407efa9ff397852657ab57837eda4e18
6
+ speakeasyVersion: 1.252.0
7
+ generationVersion: 2.306.0
8
+ releaseVersion: 0.22.3
9
+ configChecksum: 6dfa60cf43b354c2423e7e6cd94d8557
10
10
  repoURL: https://github.com/dubinc/dub-node.git
11
11
  installationURL: https://github.com/dubinc/dub-node
12
12
  published: true
@@ -30,6 +30,7 @@ generatedFiles:
30
30
  - src/sdk/analytics.ts
31
31
  - src/sdk/workspaces.ts
32
32
  - src/sdk/tags.ts
33
+ - src/sdk/metatags.ts
33
34
  - src/sdk/sdk.ts
34
35
  - .eslintrc.js
35
36
  - .npmignore
@@ -87,9 +88,11 @@ generatedFiles:
87
88
  - src/models/operations/getworkspace.ts
88
89
  - src/models/operations/gettags.ts
89
90
  - src/models/operations/createtag.ts
91
+ - src/models/operations/getmetatags.ts
90
92
  - src/models/errors/index.ts
91
93
  - src/models/components/index.ts
92
94
  - src/models/operations/index.ts
95
+ - docs/models/components/geo.md
93
96
  - docs/models/components/linkschema.md
94
97
  - docs/models/components/color.md
95
98
  - docs/models/components/tagschema.md
@@ -130,6 +133,7 @@ generatedFiles:
130
133
  - docs/models/operations/sort.md
131
134
  - docs/models/operations/getlinksrequest.md
132
135
  - docs/models/operations/tagids.md
136
+ - docs/models/operations/geo.md
133
137
  - docs/models/operations/createlinkrequestbody.md
134
138
  - docs/models/operations/getlinkscountqueryparamtagids.md
135
139
  - docs/models/operations/two.md
@@ -138,11 +142,13 @@ generatedFiles:
138
142
  - docs/models/operations/getlinkscountrequest.md
139
143
  - docs/models/operations/getlinkinforequest.md
140
144
  - docs/models/operations/editlinktagids.md
145
+ - docs/models/operations/editlinkgeo.md
141
146
  - docs/models/operations/editlinkrequestbody.md
142
147
  - docs/models/operations/editlinkrequest.md
143
148
  - docs/models/operations/deletelinkrequest.md
144
149
  - docs/models/operations/deletelinkresponsebody.md
145
150
  - docs/models/operations/bulkcreatelinkstagids.md
151
+ - docs/models/operations/bulkcreatelinksgeo.md
146
152
  - docs/models/operations/requestbody.md
147
153
  - docs/models/operations/level.md
148
154
  - docs/models/operations/getqrcoderequest.md
@@ -192,12 +198,15 @@ generatedFiles:
192
198
  - docs/models/operations/gettagsrequest.md
193
199
  - docs/models/operations/color.md
194
200
  - docs/models/operations/createtagrequestbody.md
201
+ - docs/models/operations/getmetatagsrequest.md
202
+ - docs/models/operations/getmetatagsresponsebody.md
195
203
  - docs/sdks/dub/README.md
196
204
  - docs/sdks/links/README.md
197
205
  - docs/sdks/qrcodes/README.md
198
206
  - docs/sdks/analytics/README.md
199
207
  - docs/sdks/workspaces/README.md
200
208
  - docs/sdks/tags/README.md
209
+ - docs/sdks/metatags/README.md
201
210
  - USAGE.md
202
211
  - .gitattributes
203
212
  - src/hooks/hooks.ts
@@ -12,7 +12,7 @@ generation:
12
12
  auth:
13
13
  oAuth2ClientCredentialsEnabled: false
14
14
  typescript:
15
- version: 0.22.1
15
+ version: 0.22.3
16
16
  additionalDependencies:
17
17
  dependencies: {}
18
18
  devDependencies:
package/README.md CHANGED
@@ -37,13 +37,13 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
37
37
  ```typescript
38
38
  import { Dub } from "dub";
39
39
 
40
- async function run() {
41
- const sdk = new Dub({
42
- token: "<YOUR_BEARER_TOKEN_HERE>",
43
- workspaceId: "<value>",
44
- });
40
+ const dub = new Dub({
41
+ token: "<YOUR_BEARER_TOKEN_HERE>",
42
+ workspaceId: "<value>",
43
+ });
45
44
 
46
- const result = await sdk.links.list({
45
+ async function run() {
46
+ const result = await dub.links.list({
47
47
  tagIds: ["<value>"],
48
48
  });
49
49
 
@@ -96,6 +96,10 @@ run();
96
96
 
97
97
  * [list](docs/sdks/tags/README.md#list) - Retrieve a list of tags
98
98
  * [create](docs/sdks/tags/README.md#create) - Create a new tag
99
+
100
+ ### [metatags](docs/sdks/metatags/README.md)
101
+
102
+ * [get](docs/sdks/metatags/README.md#get) - Retrieve the metatags for a URL
99
103
  <!-- End Available Resources and Operations [operations] -->
100
104
 
101
105
  <!-- Start Error Handling [errors] -->
@@ -123,15 +127,15 @@ Validation errors can also occur when either method arguments or data returned f
123
127
  import { Dub } from "dub";
124
128
  import * as errors from "dub/models/errors";
125
129
 
126
- async function run() {
127
- const sdk = new Dub({
128
- token: "<YOUR_BEARER_TOKEN_HERE>",
129
- workspaceId: "<value>",
130
- });
130
+ const dub = new Dub({
131
+ token: "<YOUR_BEARER_TOKEN_HERE>",
132
+ workspaceId: "<value>",
133
+ });
131
134
 
135
+ async function run() {
132
136
  let result;
133
137
  try {
134
- result = await sdk.links.list({
138
+ result = await dub.links.list({
135
139
  tagIds: ["<value>"],
136
140
  });
137
141
  } catch (err) {
@@ -208,14 +212,14 @@ You can override the default server globally by passing a server index to the `s
208
212
  ```typescript
209
213
  import { Dub } from "dub";
210
214
 
211
- async function run() {
212
- const sdk = new Dub({
213
- serverIdx: 0,
214
- token: "<YOUR_BEARER_TOKEN_HERE>",
215
- workspaceId: "<value>",
216
- });
215
+ const dub = new Dub({
216
+ serverIdx: 0,
217
+ token: "<YOUR_BEARER_TOKEN_HERE>",
218
+ workspaceId: "<value>",
219
+ });
217
220
 
218
- const result = await sdk.links.list({
221
+ async function run() {
222
+ const result = await dub.links.list({
219
223
  tagIds: ["<value>"],
220
224
  });
221
225
 
@@ -235,14 +239,14 @@ The default server can also be overridden globally by passing a URL to the `serv
235
239
  ```typescript
236
240
  import { Dub } from "dub";
237
241
 
238
- async function run() {
239
- const sdk = new Dub({
240
- serverURL: "https://api.dub.co",
241
- token: "<YOUR_BEARER_TOKEN_HERE>",
242
- workspaceId: "<value>",
243
- });
242
+ const dub = new Dub({
243
+ serverURL: "https://api.dub.co",
244
+ token: "<YOUR_BEARER_TOKEN_HERE>",
245
+ workspaceId: "<value>",
246
+ });
244
247
 
245
- const result = await sdk.links.list({
248
+ async function run() {
249
+ const result = await dub.links.list({
246
250
  tagIds: ["<value>"],
247
251
  });
248
252
 
@@ -319,13 +323,13 @@ To authenticate with the API the `token` parameter must be set when initializing
319
323
  ```typescript
320
324
  import { Dub } from "dub";
321
325
 
322
- async function run() {
323
- const sdk = new Dub({
324
- token: "<YOUR_BEARER_TOKEN_HERE>",
325
- workspaceId: "<value>",
326
- });
326
+ const dub = new Dub({
327
+ token: "<YOUR_BEARER_TOKEN_HERE>",
328
+ workspaceId: "<value>",
329
+ });
327
330
 
328
- const result = await sdk.links.list({
331
+ async function run() {
332
+ const result = await dub.links.list({
329
333
  tagIds: ["<value>"],
330
334
  });
331
335
 
@@ -23,13 +23,13 @@ Retrieve the number of clicks for a link, a domain, or the authenticated workspa
23
23
  ```typescript
24
24
  import { Dub } from "dub";
25
25
 
26
- async function run() {
27
- const sdk = new Dub({
28
- token: "<YOUR_BEARER_TOKEN_HERE>",
29
- workspaceId: "<value>",
30
- });
26
+ const dub = new Dub({
27
+ token: "<YOUR_BEARER_TOKEN_HERE>",
28
+ workspaceId: "<value>",
29
+ });
31
30
 
32
- const result = await sdk.analytics.clicks({});
31
+ async function run() {
32
+ const result = await dub.analytics.clicks({});
33
33
 
34
34
  // Handle the result
35
35
  console.log(result)
@@ -74,13 +74,13 @@ Retrieve the number of clicks for a link, a domain, or the authenticated workspa
74
74
  ```typescript
75
75
  import { Dub } from "dub";
76
76
 
77
- async function run() {
78
- const sdk = new Dub({
79
- token: "<YOUR_BEARER_TOKEN_HERE>",
80
- workspaceId: "<value>",
81
- });
77
+ const dub = new Dub({
78
+ token: "<YOUR_BEARER_TOKEN_HERE>",
79
+ workspaceId: "<value>",
80
+ });
82
81
 
83
- const result = await sdk.analytics.timeseries({});
82
+ async function run() {
83
+ const result = await dub.analytics.timeseries({});
84
84
 
85
85
  // Handle the result
86
86
  console.log(result)
@@ -125,13 +125,13 @@ Retrieve the top countries by number of clicks for a link, a domain, or the auth
125
125
  ```typescript
126
126
  import { Dub } from "dub";
127
127
 
128
- async function run() {
129
- const sdk = new Dub({
130
- token: "<YOUR_BEARER_TOKEN_HERE>",
131
- workspaceId: "<value>",
132
- });
128
+ const dub = new Dub({
129
+ token: "<YOUR_BEARER_TOKEN_HERE>",
130
+ workspaceId: "<value>",
131
+ });
133
132
 
134
- const result = await sdk.analytics.countries({});
133
+ async function run() {
134
+ const result = await dub.analytics.countries({});
135
135
 
136
136
  // Handle the result
137
137
  console.log(result)
@@ -176,13 +176,13 @@ Retrieve the top countries by number of clicks for a link, a domain, or the auth
176
176
  ```typescript
177
177
  import { Dub } from "dub";
178
178
 
179
- async function run() {
180
- const sdk = new Dub({
181
- token: "<YOUR_BEARER_TOKEN_HERE>",
182
- workspaceId: "<value>",
183
- });
179
+ const dub = new Dub({
180
+ token: "<YOUR_BEARER_TOKEN_HERE>",
181
+ workspaceId: "<value>",
182
+ });
184
183
 
185
- const result = await sdk.analytics.cities({});
184
+ async function run() {
185
+ const result = await dub.analytics.cities({});
186
186
 
187
187
  // Handle the result
188
188
  console.log(result)
@@ -227,13 +227,13 @@ Retrieve the top devices by number of clicks for a link, a domain, or the authen
227
227
  ```typescript
228
228
  import { Dub } from "dub";
229
229
 
230
- async function run() {
231
- const sdk = new Dub({
232
- token: "<YOUR_BEARER_TOKEN_HERE>",
233
- workspaceId: "<value>",
234
- });
230
+ const dub = new Dub({
231
+ token: "<YOUR_BEARER_TOKEN_HERE>",
232
+ workspaceId: "<value>",
233
+ });
235
234
 
236
- const result = await sdk.analytics.devices({});
235
+ async function run() {
236
+ const result = await dub.analytics.devices({});
237
237
 
238
238
  // Handle the result
239
239
  console.log(result)
@@ -278,13 +278,13 @@ Retrieve the top browsers by number of clicks for a link, a domain, or the authe
278
278
  ```typescript
279
279
  import { Dub } from "dub";
280
280
 
281
- async function run() {
282
- const sdk = new Dub({
283
- token: "<YOUR_BEARER_TOKEN_HERE>",
284
- workspaceId: "<value>",
285
- });
281
+ const dub = new Dub({
282
+ token: "<YOUR_BEARER_TOKEN_HERE>",
283
+ workspaceId: "<value>",
284
+ });
286
285
 
287
- const result = await sdk.analytics.browsers({});
286
+ async function run() {
287
+ const result = await dub.analytics.browsers({});
288
288
 
289
289
  // Handle the result
290
290
  console.log(result)
@@ -329,13 +329,13 @@ Retrieve the top OS by number of clicks for a link, a domain, or the authenticat
329
329
  ```typescript
330
330
  import { Dub } from "dub";
331
331
 
332
- async function run() {
333
- const sdk = new Dub({
334
- token: "<YOUR_BEARER_TOKEN_HERE>",
335
- workspaceId: "<value>",
336
- });
332
+ const dub = new Dub({
333
+ token: "<YOUR_BEARER_TOKEN_HERE>",
334
+ workspaceId: "<value>",
335
+ });
337
336
 
338
- const result = await sdk.analytics.os({});
337
+ async function run() {
338
+ const result = await dub.analytics.os({});
339
339
 
340
340
  // Handle the result
341
341
  console.log(result)
@@ -380,13 +380,13 @@ Retrieve the top referers by number of clicks for a link, a domain, or the authe
380
380
  ```typescript
381
381
  import { Dub } from "dub";
382
382
 
383
- async function run() {
384
- const sdk = new Dub({
385
- token: "<YOUR_BEARER_TOKEN_HERE>",
386
- workspaceId: "<value>",
387
- });
383
+ const dub = new Dub({
384
+ token: "<YOUR_BEARER_TOKEN_HERE>",
385
+ workspaceId: "<value>",
386
+ });
388
387
 
389
- const result = await sdk.analytics.referers({});
388
+ async function run() {
389
+ const result = await dub.analytics.referers({});
390
390
 
391
391
  // Handle the result
392
392
  console.log(result)
@@ -431,13 +431,13 @@ Retrieve the top links by number of clicks for a domain or the authenticated wor
431
431
  ```typescript
432
432
  import { Dub } from "dub";
433
433
 
434
- async function run() {
435
- const sdk = new Dub({
436
- token: "<YOUR_BEARER_TOKEN_HERE>",
437
- workspaceId: "<value>",
438
- });
434
+ const dub = new Dub({
435
+ token: "<YOUR_BEARER_TOKEN_HERE>",
436
+ workspaceId: "<value>",
437
+ });
439
438
 
440
- const result = await sdk.analytics.topLinks({});
439
+ async function run() {
440
+ const result = await dub.analytics.topLinks({});
441
441
 
442
442
  // Handle the result
443
443
  console.log(result)
@@ -482,13 +482,13 @@ Retrieve the top URLs by number of clicks for a given short link.
482
482
  ```typescript
483
483
  import { Dub } from "dub";
484
484
 
485
- async function run() {
486
- const sdk = new Dub({
487
- token: "<YOUR_BEARER_TOKEN_HERE>",
488
- workspaceId: "<value>",
489
- });
485
+ const dub = new Dub({
486
+ token: "<YOUR_BEARER_TOKEN_HERE>",
487
+ workspaceId: "<value>",
488
+ });
490
489
 
491
- const result = await sdk.analytics.topUrls({});
490
+ async function run() {
491
+ const result = await dub.analytics.topUrls({});
492
492
 
493
493
  // Handle the result
494
494
  console.log(result)
@@ -20,13 +20,13 @@ Retrieve a list of links for the authenticated workspace. The list will be pagin
20
20
  ```typescript
21
21
  import { Dub } from "dub";
22
22
 
23
- async function run() {
24
- const sdk = new Dub({
25
- token: "<YOUR_BEARER_TOKEN_HERE>",
26
- workspaceId: "<value>",
27
- });
23
+ const dub = new Dub({
24
+ token: "<YOUR_BEARER_TOKEN_HERE>",
25
+ workspaceId: "<value>",
26
+ });
28
27
 
29
- const result = await sdk.links.list({
28
+ async function run() {
29
+ const result = await dub.links.list({
30
30
  tagIds: [
31
31
  "<value>",
32
32
  ],
@@ -75,18 +75,16 @@ Create a new link for the authenticated workspace.
75
75
  ```typescript
76
76
  import { Dub } from "dub";
77
77
 
78
- async function run() {
79
- const sdk = new Dub({
80
- token: "<YOUR_BEARER_TOKEN_HERE>",
81
- workspaceId: "<value>",
82
- });
78
+ const dub = new Dub({
79
+ token: "<YOUR_BEARER_TOKEN_HERE>",
80
+ workspaceId: "<value>",
81
+ });
83
82
 
84
- const result = await sdk.links.create({
83
+ async function run() {
84
+ const result = await dub.links.create({
85
85
  url: "http://limp-pastry.org",
86
- geo: {
87
- "key": "<value>",
88
- },
89
86
  tagIds: "<value>",
87
+ geo: {},
90
88
  });
91
89
 
92
90
  // Handle the result
@@ -133,13 +131,13 @@ Retrieve the number of links for the authenticated workspace. The provided query
133
131
  import { Dub } from "dub";
134
132
  import { One } from "dub/models/operations";
135
133
 
136
- async function run() {
137
- const sdk = new Dub({
138
- token: "<YOUR_BEARER_TOKEN_HERE>",
139
- workspaceId: "<value>",
140
- });
134
+ const dub = new Dub({
135
+ token: "<YOUR_BEARER_TOKEN_HERE>",
136
+ workspaceId: "<value>",
137
+ });
141
138
 
142
- const result = await sdk.links.count({
139
+ async function run() {
140
+ const result = await dub.links.count({
143
141
  tagIds: "<value>",
144
142
  groupBy: One.Domain,
145
143
  });
@@ -187,13 +185,13 @@ Retrieve the info for a link from their domain and key.
187
185
  ```typescript
188
186
  import { Dub } from "dub";
189
187
 
190
- async function run() {
191
- const sdk = new Dub({
192
- token: "<YOUR_BEARER_TOKEN_HERE>",
193
- workspaceId: "<value>",
194
- });
188
+ const dub = new Dub({
189
+ token: "<YOUR_BEARER_TOKEN_HERE>",
190
+ workspaceId: "<value>",
191
+ });
195
192
 
196
- const result = await sdk.links.get({
193
+ async function run() {
194
+ const result = await dub.links.get({
197
195
  domain: "ringed-blow.name",
198
196
  key: "<key>",
199
197
  });
@@ -241,22 +239,20 @@ Edit a link for the authenticated workspace.
241
239
  ```typescript
242
240
  import { Dub } from "dub";
243
241
 
244
- async function run() {
245
- const sdk = new Dub({
246
- token: "<YOUR_BEARER_TOKEN_HERE>",
247
- workspaceId: "<value>",
248
- });
242
+ const dub = new Dub({
243
+ token: "<YOUR_BEARER_TOKEN_HERE>",
244
+ workspaceId: "<value>",
245
+ });
249
246
 
247
+ async function run() {
250
248
  const linkId = "<value>";
251
249
  const requestBody = {
252
250
  url: "https://alarming-nondisclosure.com",
253
- geo: {
254
- "key": "<value>",
255
- },
256
251
  tagIds: "<value>",
252
+ geo: {},
257
253
  };
258
254
 
259
- const result = await sdk.links.update(linkId, requestBody);
255
+ const result = await dub.links.update(linkId, requestBody);
260
256
 
261
257
  // Handle the result
262
258
  console.log(result)
@@ -302,15 +298,15 @@ Delete a link for the authenticated workspace.
302
298
  ```typescript
303
299
  import { Dub } from "dub";
304
300
 
305
- async function run() {
306
- const sdk = new Dub({
307
- token: "<YOUR_BEARER_TOKEN_HERE>",
308
- workspaceId: "<value>",
309
- });
301
+ const dub = new Dub({
302
+ token: "<YOUR_BEARER_TOKEN_HERE>",
303
+ workspaceId: "<value>",
304
+ });
310
305
 
306
+ async function run() {
311
307
  const linkId = "<value>";
312
308
 
313
- const result = await sdk.links.delete(linkId);
309
+ const result = await dub.links.delete(linkId);
314
310
 
315
311
  // Handle the result
316
312
  console.log(result)
@@ -355,21 +351,19 @@ Bulk create up to 100 links for the authenticated workspace.
355
351
  ```typescript
356
352
  import { Dub } from "dub";
357
353
 
358
- async function run() {
359
- const sdk = new Dub({
360
- token: "<YOUR_BEARER_TOKEN_HERE>",
361
- workspaceId: "<value>",
362
- });
354
+ const dub = new Dub({
355
+ token: "<YOUR_BEARER_TOKEN_HERE>",
356
+ workspaceId: "<value>",
357
+ });
363
358
 
364
- const result = await sdk.links.createMany([
359
+ async function run() {
360
+ const result = await dub.links.createMany([
365
361
  {
366
362
  url: "https://positive-plane.info",
367
- geo: {
368
- "key": "<value>",
369
- },
370
363
  tagIds: [
371
364
  "<value>",
372
365
  ],
366
+ geo: {},
373
367
  },
374
368
  ]);
375
369
 
@@ -0,0 +1,50 @@
1
+ # Metatags
2
+ (*metatags*)
3
+
4
+ ### Available Operations
5
+
6
+ * [get](#get) - Retrieve the metatags for a URL
7
+
8
+ ## get
9
+
10
+ Retrieve the metatags for a URL
11
+
12
+ ### Example Usage
13
+
14
+ ```typescript
15
+ import { Dub } from "dub";
16
+
17
+ const dub = new Dub({
18
+ token: "<YOUR_BEARER_TOKEN_HERE>",
19
+ workspaceId: "<value>",
20
+ });
21
+
22
+ async function run() {
23
+ const result = await dub.metatags.get({
24
+ url: "https://brief-micronutrient.org",
25
+ });
26
+
27
+ // Handle the result
28
+ console.log(result)
29
+ }
30
+
31
+ run();
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ | Parameter | Type | Required | Description |
37
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
38
+ | `request` | [operations.GetMetatagsRequest](../../models/operations/getmetatagsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
39
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
40
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
41
+
42
+
43
+ ### Response
44
+
45
+ **Promise<[operations.GetMetatagsResponseBody](../../models/operations/getmetatagsresponsebody.md)>**
46
+ ### Errors
47
+
48
+ | Error Object | Status Code | Content Type |
49
+ | --------------- | --------------- | --------------- |
50
+ | errors.SDKError | 4xx-5xx | */* |
@@ -14,13 +14,13 @@ Retrieve a QR code for a link.
14
14
  ```typescript
15
15
  import { Dub } from "dub";
16
16
 
17
- async function run() {
18
- const sdk = new Dub({
19
- token: "<YOUR_BEARER_TOKEN_HERE>",
20
- workspaceId: "<value>",
21
- });
17
+ const dub = new Dub({
18
+ token: "<YOUR_BEARER_TOKEN_HERE>",
19
+ workspaceId: "<value>",
20
+ });
22
21
 
23
- const result = await sdk.qrCodes.get({});
22
+ async function run() {
23
+ const result = await dub.qrCodes.get({});
24
24
 
25
25
  // Handle the result
26
26
  console.log(result)