dub 0.20.2 → 0.21.0
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.
- package/.speakeasy/gen.lock +30 -5
- package/.speakeasy/gen.yaml +2 -1
- package/README.md +45 -20
- package/docs/sdks/analytics/README.md +40 -20
- package/docs/sdks/links/README.md +26 -14
- package/docs/sdks/qrcodes/README.md +4 -2
- package/docs/sdks/tags/README.md +8 -4
- package/docs/sdks/workspaces/README.md +12 -6
- package/hooks/auth.d.ts +3 -0
- package/hooks/auth.d.ts.map +1 -0
- package/hooks/auth.js +22 -0
- package/hooks/auth.js.map +1 -0
- package/hooks/base-url.d.ts +3 -0
- package/hooks/base-url.d.ts.map +1 -0
- package/hooks/base-url.js +24 -0
- package/hooks/base-url.js.map +1 -0
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +2 -0
- package/hooks/hooks.js.map +1 -1
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +19 -0
- package/hooks/registration.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/operations/bulkcreatelinks.d.ts +14 -0
- package/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/models/operations/bulkcreatelinks.js +23 -1
- package/models/operations/bulkcreatelinks.js.map +1 -1
- package/models/operations/createlink.d.ts +14 -0
- package/models/operations/createlink.d.ts.map +1 -1
- package/models/operations/createlink.js +23 -1
- package/models/operations/createlink.js.map +1 -1
- package/models/operations/createtag.d.ts +14 -0
- package/models/operations/createtag.d.ts.map +1 -1
- package/models/operations/createtag.js +23 -1
- package/models/operations/createtag.js.map +1 -1
- package/models/operations/createworkspace.d.ts +14 -0
- package/models/operations/createworkspace.d.ts.map +1 -1
- package/models/operations/createworkspace.js +23 -1
- package/models/operations/createworkspace.js.map +1 -1
- package/models/operations/deletelink.d.ts +14 -0
- package/models/operations/deletelink.d.ts.map +1 -1
- package/models/operations/deletelink.js +23 -1
- package/models/operations/deletelink.js.map +1 -1
- package/models/operations/editlink.d.ts +14 -0
- package/models/operations/editlink.d.ts.map +1 -1
- package/models/operations/editlink.js +23 -1
- package/models/operations/editlink.js.map +1 -1
- package/models/operations/getbrowseranalytics.d.ts +14 -0
- package/models/operations/getbrowseranalytics.d.ts.map +1 -1
- package/models/operations/getbrowseranalytics.js +23 -1
- package/models/operations/getbrowseranalytics.js.map +1 -1
- package/models/operations/getcityanalytics.d.ts +14 -0
- package/models/operations/getcityanalytics.d.ts.map +1 -1
- package/models/operations/getcityanalytics.js +23 -1
- package/models/operations/getcityanalytics.js.map +1 -1
- package/models/operations/getclicksanalytics.d.ts +14 -0
- package/models/operations/getclicksanalytics.d.ts.map +1 -1
- package/models/operations/getclicksanalytics.js +23 -1
- package/models/operations/getclicksanalytics.js.map +1 -1
- package/models/operations/getcountryanalytics.d.ts +14 -0
- package/models/operations/getcountryanalytics.d.ts.map +1 -1
- package/models/operations/getcountryanalytics.js +23 -1
- package/models/operations/getcountryanalytics.js.map +1 -1
- package/models/operations/getdeviceanalytics.d.ts +14 -0
- package/models/operations/getdeviceanalytics.d.ts.map +1 -1
- package/models/operations/getdeviceanalytics.js +23 -1
- package/models/operations/getdeviceanalytics.js.map +1 -1
- package/models/operations/getlinkinfo.d.ts +14 -3
- package/models/operations/getlinkinfo.d.ts.map +1 -1
- package/models/operations/getlinkinfo.js +23 -1
- package/models/operations/getlinkinfo.js.map +1 -1
- package/models/operations/getlinks.d.ts +14 -0
- package/models/operations/getlinks.d.ts.map +1 -1
- package/models/operations/getlinks.js +23 -1
- package/models/operations/getlinks.js.map +1 -1
- package/models/operations/getlinkscount.d.ts +14 -0
- package/models/operations/getlinkscount.d.ts.map +1 -1
- package/models/operations/getlinkscount.js +23 -1
- package/models/operations/getlinkscount.js.map +1 -1
- package/models/operations/getosanalytics.d.ts +14 -0
- package/models/operations/getosanalytics.d.ts.map +1 -1
- package/models/operations/getosanalytics.js +23 -1
- package/models/operations/getosanalytics.js.map +1 -1
- package/models/operations/getqrcode.d.ts +14 -0
- package/models/operations/getqrcode.d.ts.map +1 -1
- package/models/operations/getqrcode.js +23 -1
- package/models/operations/getqrcode.js.map +1 -1
- package/models/operations/getrefereranalytics.d.ts +14 -0
- package/models/operations/getrefereranalytics.d.ts.map +1 -1
- package/models/operations/getrefereranalytics.js +23 -1
- package/models/operations/getrefereranalytics.js.map +1 -1
- package/models/operations/gettags.d.ts +14 -0
- package/models/operations/gettags.d.ts.map +1 -1
- package/models/operations/gettags.js +23 -1
- package/models/operations/gettags.js.map +1 -1
- package/models/operations/gettimeseriesanalytics.d.ts +14 -0
- package/models/operations/gettimeseriesanalytics.d.ts.map +1 -1
- package/models/operations/gettimeseriesanalytics.js +23 -1
- package/models/operations/gettimeseriesanalytics.js.map +1 -1
- package/models/operations/gettoplinks.d.ts +14 -0
- package/models/operations/gettoplinks.d.ts.map +1 -1
- package/models/operations/gettoplinks.js +23 -1
- package/models/operations/gettoplinks.js.map +1 -1
- package/models/operations/gettopurls.d.ts +14 -0
- package/models/operations/gettopurls.d.ts.map +1 -1
- package/models/operations/gettopurls.js +23 -1
- package/models/operations/gettopurls.js.map +1 -1
- package/models/operations/getworkspace.d.ts +14 -0
- package/models/operations/getworkspace.d.ts.map +1 -1
- package/models/operations/getworkspace.js +23 -1
- package/models/operations/getworkspace.js.map +1 -1
- package/models/operations/getworkspaces.d.ts +16 -0
- package/models/operations/getworkspaces.d.ts.map +1 -0
- package/models/operations/getworkspaces.js +53 -0
- package/models/operations/getworkspaces.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +2 -1
- package/sdk/analytics.d.ts +10 -10
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +160 -138
- package/sdk/analytics.js.map +1 -1
- package/sdk/links.d.ts +7 -7
- package/sdk/links.d.ts.map +1 -1
- package/sdk/links.js +112 -111
- package/sdk/links.js.map +1 -1
- package/sdk/qrcodes.d.ts +1 -1
- package/sdk/qrcodes.d.ts.map +1 -1
- package/sdk/qrcodes.js +12 -17
- package/sdk/qrcodes.js.map +1 -1
- package/sdk/tags.d.ts +2 -2
- package/sdk/tags.d.ts.map +1 -1
- package/sdk/tags.js +32 -34
- package/sdk/tags.js.map +1 -1
- package/sdk/workspaces.d.ts +3 -3
- package/sdk/workspaces.d.ts.map +1 -1
- package/sdk/workspaces.js +36 -39
- package/sdk/workspaces.js.map +1 -1
- package/src/hooks/auth.ts +23 -0
- package/src/hooks/base-url.ts +24 -0
- package/src/hooks/hooks.ts +5 -1
- package/src/hooks/registration.ts +18 -0
- package/src/lib/config.ts +3 -3
- package/src/models/operations/bulkcreatelinks.ts +35 -0
- package/src/models/operations/createlink.ts +35 -0
- package/src/models/operations/createtag.ts +35 -0
- package/src/models/operations/createworkspace.ts +35 -0
- package/src/models/operations/deletelink.ts +35 -0
- package/src/models/operations/editlink.ts +35 -0
- package/src/models/operations/getbrowseranalytics.ts +35 -0
- package/src/models/operations/getcityanalytics.ts +35 -0
- package/src/models/operations/getclicksanalytics.ts +35 -0
- package/src/models/operations/getcountryanalytics.ts +35 -0
- package/src/models/operations/getdeviceanalytics.ts +35 -0
- package/src/models/operations/getlinkinfo.ts +35 -3
- package/src/models/operations/getlinks.ts +35 -0
- package/src/models/operations/getlinkscount.ts +35 -0
- package/src/models/operations/getosanalytics.ts +35 -0
- package/src/models/operations/getqrcode.ts +35 -0
- package/src/models/operations/getrefereranalytics.ts +35 -0
- package/src/models/operations/gettags.ts +35 -0
- package/src/models/operations/gettimeseriesanalytics.ts +36 -0
- package/src/models/operations/gettoplinks.ts +35 -0
- package/src/models/operations/gettopurls.ts +35 -0
- package/src/models/operations/getworkspace.ts +35 -0
- package/src/models/operations/getworkspaces.ts +40 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/analytics.ts +161 -108
- package/src/sdk/links.ts +117 -91
- package/src/sdk/qrcodes.ts +13 -14
- package/src/sdk/tags.ts +33 -28
- package/src/sdk/workspaces.ts +40 -31
package/.speakeasy/gen.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
lockVersion: 2.0.0
|
|
2
2
|
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
|
3
3
|
management:
|
|
4
|
-
docChecksum:
|
|
4
|
+
docChecksum: f8ac17a98fb5def350bdc78e5e3d074a
|
|
5
5
|
docVersion: 0.0.1
|
|
6
|
-
speakeasyVersion: 1.246.
|
|
7
|
-
generationVersion: 2.302.
|
|
8
|
-
releaseVersion: 0.
|
|
9
|
-
configChecksum:
|
|
6
|
+
speakeasyVersion: 1.246.1
|
|
7
|
+
generationVersion: 2.302.1
|
|
8
|
+
releaseVersion: 0.21.0
|
|
9
|
+
configChecksum: 820075540fd62258f8b88385064cd939
|
|
10
10
|
repoURL: https://github.com/dubinc/dub-node.git
|
|
11
11
|
installationURL: https://github.com/dubinc/dub-node
|
|
12
12
|
published: true
|
|
@@ -21,6 +21,7 @@ features:
|
|
|
21
21
|
globalServerURLs: 2.82.4
|
|
22
22
|
globals: 2.82.1
|
|
23
23
|
hiddenGlobals: 0.1.0
|
|
24
|
+
methodSecurity: 2.82.4
|
|
24
25
|
nameOverrides: 2.81.2
|
|
25
26
|
responseFormat: 0.2.3
|
|
26
27
|
unions: 2.85.3
|
|
@@ -83,6 +84,7 @@ generatedFiles:
|
|
|
83
84
|
- src/models/operations/getrefereranalytics.ts
|
|
84
85
|
- src/models/operations/gettoplinks.ts
|
|
85
86
|
- src/models/operations/gettopurls.ts
|
|
87
|
+
- src/models/operations/getworkspaces.ts
|
|
86
88
|
- src/models/operations/createworkspace.ts
|
|
87
89
|
- src/models/operations/getworkspace.ts
|
|
88
90
|
- src/models/operations/gettags.ts
|
|
@@ -126,70 +128,93 @@ generatedFiles:
|
|
|
126
128
|
- docs/models/errors/internalservererrorcode.md
|
|
127
129
|
- docs/models/errors/internalservererrorerror.md
|
|
128
130
|
- docs/models/errors/internalservererror.md
|
|
131
|
+
- docs/models/operations/getlinkssecurity.md
|
|
129
132
|
- docs/models/operations/queryparamtagids.md
|
|
130
133
|
- docs/models/operations/sort.md
|
|
131
134
|
- docs/models/operations/getlinksrequest.md
|
|
135
|
+
- docs/models/operations/createlinksecurity.md
|
|
132
136
|
- docs/models/operations/tagids.md
|
|
133
137
|
- docs/models/operations/createlinkrequestbody.md
|
|
138
|
+
- docs/models/operations/getlinkscountsecurity.md
|
|
134
139
|
- docs/models/operations/getlinkscountqueryparamtagids.md
|
|
135
140
|
- docs/models/operations/two.md
|
|
136
141
|
- docs/models/operations/one.md
|
|
137
142
|
- docs/models/operations/groupby.md
|
|
138
143
|
- docs/models/operations/getlinkscountrequest.md
|
|
144
|
+
- docs/models/operations/getlinkinfosecurity.md
|
|
139
145
|
- docs/models/operations/getlinkinforequest.md
|
|
146
|
+
- docs/models/operations/editlinksecurity.md
|
|
140
147
|
- docs/models/operations/editlinktagids.md
|
|
141
148
|
- docs/models/operations/editlinkrequestbody.md
|
|
142
149
|
- docs/models/operations/editlinkrequest.md
|
|
150
|
+
- docs/models/operations/deletelinksecurity.md
|
|
143
151
|
- docs/models/operations/deletelinkrequest.md
|
|
144
152
|
- docs/models/operations/deletelinkresponsebody.md
|
|
153
|
+
- docs/models/operations/bulkcreatelinkssecurity.md
|
|
145
154
|
- docs/models/operations/bulkcreatelinkstagids.md
|
|
146
155
|
- docs/models/operations/requestbody.md
|
|
156
|
+
- docs/models/operations/getqrcodesecurity.md
|
|
147
157
|
- docs/models/operations/level.md
|
|
148
158
|
- docs/models/operations/getqrcoderequest.md
|
|
159
|
+
- docs/models/operations/getclicksanalyticssecurity.md
|
|
149
160
|
- docs/models/operations/interval.md
|
|
150
161
|
- docs/models/operations/country.md
|
|
151
162
|
- docs/models/operations/getclicksanalyticsrequest.md
|
|
163
|
+
- docs/models/operations/gettimeseriesanalyticssecurity.md
|
|
152
164
|
- docs/models/operations/queryparaminterval.md
|
|
153
165
|
- docs/models/operations/queryparamcountry.md
|
|
154
166
|
- docs/models/operations/gettimeseriesanalyticsrequest.md
|
|
155
167
|
- docs/models/operations/responsebody.md
|
|
168
|
+
- docs/models/operations/getcountryanalyticssecurity.md
|
|
156
169
|
- docs/models/operations/getcountryanalyticsqueryparaminterval.md
|
|
157
170
|
- docs/models/operations/getcountryanalyticsqueryparamcountry.md
|
|
158
171
|
- docs/models/operations/getcountryanalyticsrequest.md
|
|
159
172
|
- docs/models/operations/getcountryanalyticscountry.md
|
|
160
173
|
- docs/models/operations/getcountryanalyticsresponsebody.md
|
|
174
|
+
- docs/models/operations/getcityanalyticssecurity.md
|
|
161
175
|
- docs/models/operations/getcityanalyticsqueryparaminterval.md
|
|
162
176
|
- docs/models/operations/getcityanalyticsqueryparamcountry.md
|
|
163
177
|
- docs/models/operations/getcityanalyticsrequest.md
|
|
164
178
|
- docs/models/operations/getcityanalyticscountry.md
|
|
165
179
|
- docs/models/operations/getcityanalyticsresponsebody.md
|
|
180
|
+
- docs/models/operations/getdeviceanalyticssecurity.md
|
|
166
181
|
- docs/models/operations/getdeviceanalyticsqueryparaminterval.md
|
|
167
182
|
- docs/models/operations/getdeviceanalyticsqueryparamcountry.md
|
|
168
183
|
- docs/models/operations/getdeviceanalyticsrequest.md
|
|
169
184
|
- docs/models/operations/getdeviceanalyticsresponsebody.md
|
|
185
|
+
- docs/models/operations/getbrowseranalyticssecurity.md
|
|
170
186
|
- docs/models/operations/getbrowseranalyticsqueryparaminterval.md
|
|
171
187
|
- docs/models/operations/getbrowseranalyticsqueryparamcountry.md
|
|
172
188
|
- docs/models/operations/getbrowseranalyticsrequest.md
|
|
173
189
|
- docs/models/operations/getbrowseranalyticsresponsebody.md
|
|
190
|
+
- docs/models/operations/getosanalyticssecurity.md
|
|
174
191
|
- docs/models/operations/getosanalyticsqueryparaminterval.md
|
|
175
192
|
- docs/models/operations/getosanalyticsqueryparamcountry.md
|
|
176
193
|
- docs/models/operations/getosanalyticsrequest.md
|
|
177
194
|
- docs/models/operations/getosanalyticsresponsebody.md
|
|
195
|
+
- docs/models/operations/getrefereranalyticssecurity.md
|
|
178
196
|
- docs/models/operations/getrefereranalyticsqueryparaminterval.md
|
|
179
197
|
- docs/models/operations/getrefereranalyticsqueryparamcountry.md
|
|
180
198
|
- docs/models/operations/getrefereranalyticsrequest.md
|
|
181
199
|
- docs/models/operations/getrefereranalyticsresponsebody.md
|
|
200
|
+
- docs/models/operations/gettoplinkssecurity.md
|
|
182
201
|
- docs/models/operations/gettoplinksqueryparaminterval.md
|
|
183
202
|
- docs/models/operations/gettoplinksqueryparamcountry.md
|
|
184
203
|
- docs/models/operations/gettoplinksrequest.md
|
|
185
204
|
- docs/models/operations/gettoplinksresponsebody.md
|
|
205
|
+
- docs/models/operations/gettopurlssecurity.md
|
|
186
206
|
- docs/models/operations/gettopurlsqueryparaminterval.md
|
|
187
207
|
- docs/models/operations/gettopurlsqueryparamcountry.md
|
|
188
208
|
- docs/models/operations/gettopurlsrequest.md
|
|
189
209
|
- docs/models/operations/gettopurlsresponsebody.md
|
|
210
|
+
- docs/models/operations/getworkspacessecurity.md
|
|
211
|
+
- docs/models/operations/createworkspacesecurity.md
|
|
190
212
|
- docs/models/operations/createworkspacerequestbody.md
|
|
213
|
+
- docs/models/operations/getworkspacesecurity.md
|
|
191
214
|
- docs/models/operations/getworkspacerequest.md
|
|
215
|
+
- docs/models/operations/gettagssecurity.md
|
|
192
216
|
- docs/models/operations/gettagsrequest.md
|
|
217
|
+
- docs/models/operations/createtagsecurity.md
|
|
193
218
|
- docs/models/operations/color.md
|
|
194
219
|
- docs/models/operations/createtagrequestbody.md
|
|
195
220
|
- docs/sdks/dub/README.md
|
package/.speakeasy/gen.yaml
CHANGED
|
@@ -12,10 +12,11 @@ generation:
|
|
|
12
12
|
auth:
|
|
13
13
|
oAuth2ClientCredentialsEnabled: false
|
|
14
14
|
typescript:
|
|
15
|
-
version: 0.
|
|
15
|
+
version: 0.21.0
|
|
16
16
|
additionalDependencies:
|
|
17
17
|
dependencies: {}
|
|
18
18
|
devDependencies:
|
|
19
|
+
'@types/node': ^20.12.7
|
|
19
20
|
vitest: 1.4.0
|
|
20
21
|
peerDependencies: {}
|
|
21
22
|
author: Dub
|
package/README.md
CHANGED
|
@@ -39,14 +39,18 @@ import { Dub } from "dub";
|
|
|
39
39
|
|
|
40
40
|
async function run() {
|
|
41
41
|
const sdk = new Dub({
|
|
42
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
43
42
|
workspaceId: "<value>",
|
|
44
43
|
projectSlug: "<value>",
|
|
45
44
|
});
|
|
46
45
|
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
47
|
+
|
|
48
|
+
const result = await sdk.links.list(
|
|
49
|
+
{
|
|
50
|
+
tagIds: ["<value>"],
|
|
51
|
+
},
|
|
52
|
+
operationSecurity
|
|
53
|
+
);
|
|
50
54
|
|
|
51
55
|
// Handle the result
|
|
52
56
|
console.log(result);
|
|
@@ -126,16 +130,20 @@ import * as errors from "dub/models/errors";
|
|
|
126
130
|
|
|
127
131
|
async function run() {
|
|
128
132
|
const sdk = new Dub({
|
|
129
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
130
133
|
workspaceId: "<value>",
|
|
131
134
|
projectSlug: "<value>",
|
|
132
135
|
});
|
|
133
136
|
|
|
137
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
138
|
+
|
|
134
139
|
let result;
|
|
135
140
|
try {
|
|
136
|
-
result = await sdk.links.list(
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
result = await sdk.links.list(
|
|
142
|
+
{
|
|
143
|
+
tagIds: ["<value>"],
|
|
144
|
+
},
|
|
145
|
+
operationSecurity
|
|
146
|
+
);
|
|
139
147
|
} catch (err) {
|
|
140
148
|
switch (true) {
|
|
141
149
|
case err instanceof errors.SDKValidationError: {
|
|
@@ -213,14 +221,18 @@ import { Dub } from "dub";
|
|
|
213
221
|
async function run() {
|
|
214
222
|
const sdk = new Dub({
|
|
215
223
|
serverIdx: 0,
|
|
216
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
217
224
|
workspaceId: "<value>",
|
|
218
225
|
projectSlug: "<value>",
|
|
219
226
|
});
|
|
220
227
|
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
228
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
229
|
+
|
|
230
|
+
const result = await sdk.links.list(
|
|
231
|
+
{
|
|
232
|
+
tagIds: ["<value>"],
|
|
233
|
+
},
|
|
234
|
+
operationSecurity
|
|
235
|
+
);
|
|
224
236
|
|
|
225
237
|
// Handle the result
|
|
226
238
|
console.log(result);
|
|
@@ -241,14 +253,18 @@ import { Dub } from "dub";
|
|
|
241
253
|
async function run() {
|
|
242
254
|
const sdk = new Dub({
|
|
243
255
|
serverURL: "https://api.dub.co",
|
|
244
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
245
256
|
workspaceId: "<value>",
|
|
246
257
|
projectSlug: "<value>",
|
|
247
258
|
});
|
|
248
259
|
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
|
|
260
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
261
|
+
|
|
262
|
+
const result = await sdk.links.list(
|
|
263
|
+
{
|
|
264
|
+
tagIds: ["<value>"],
|
|
265
|
+
},
|
|
266
|
+
operationSecurity
|
|
267
|
+
);
|
|
252
268
|
|
|
253
269
|
// Handle the result
|
|
254
270
|
console.log(result);
|
|
@@ -320,19 +336,28 @@ This SDK supports the following security scheme globally:
|
|
|
320
336
|
| `token` | http | HTTP Bearer |
|
|
321
337
|
|
|
322
338
|
To authenticate with the API the `token` parameter must be set when initializing the SDK client instance. For example:
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
### Per-Operation Security Schemes
|
|
342
|
+
|
|
343
|
+
Some operations in this SDK require the security scheme to be specified at the request level. For example:
|
|
323
344
|
```typescript
|
|
324
345
|
import { Dub } from "dub";
|
|
325
346
|
|
|
326
347
|
async function run() {
|
|
327
348
|
const sdk = new Dub({
|
|
328
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
329
349
|
workspaceId: "<value>",
|
|
330
350
|
projectSlug: "<value>",
|
|
331
351
|
});
|
|
332
352
|
|
|
333
|
-
const
|
|
334
|
-
|
|
335
|
-
|
|
353
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
354
|
+
|
|
355
|
+
const result = await sdk.links.list(
|
|
356
|
+
{
|
|
357
|
+
tagIds: ["<value>"],
|
|
358
|
+
},
|
|
359
|
+
operationSecurity
|
|
360
|
+
);
|
|
336
361
|
|
|
337
362
|
// Handle the result
|
|
338
363
|
console.log(result);
|
|
@@ -25,12 +25,13 @@ import { Dub } from "dub";
|
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
27
|
const sdk = new Dub({
|
|
28
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
29
28
|
workspaceId: "<value>",
|
|
30
29
|
projectSlug: "<value>",
|
|
31
30
|
});
|
|
32
31
|
|
|
33
|
-
const
|
|
32
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
33
|
+
|
|
34
|
+
const result = await sdk.analytics.clicks({}, operationSecurity);
|
|
34
35
|
|
|
35
36
|
// Handle the result
|
|
36
37
|
console.log(result)
|
|
@@ -44,6 +45,7 @@ run();
|
|
|
44
45
|
| Parameter | Type | Required | Description |
|
|
45
46
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
46
47
|
| `request` | [operations.GetClicksAnalyticsRequest](../../models/operations/getclicksanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
48
|
+
| `security` | [operations.GetClicksAnalyticsSecurity](../../models/operations/getclicksanalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
47
49
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
48
50
|
| `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. |
|
|
49
51
|
|
|
@@ -77,12 +79,13 @@ import { Dub } from "dub";
|
|
|
77
79
|
|
|
78
80
|
async function run() {
|
|
79
81
|
const sdk = new Dub({
|
|
80
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
81
82
|
workspaceId: "<value>",
|
|
82
83
|
projectSlug: "<value>",
|
|
83
84
|
});
|
|
84
85
|
|
|
85
|
-
const
|
|
86
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
87
|
+
|
|
88
|
+
const result = await sdk.analytics.timeseries({}, operationSecurity);
|
|
86
89
|
|
|
87
90
|
// Handle the result
|
|
88
91
|
console.log(result)
|
|
@@ -96,6 +99,7 @@ run();
|
|
|
96
99
|
| Parameter | Type | Required | Description |
|
|
97
100
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
98
101
|
| `request` | [operations.GetTimeseriesAnalyticsRequest](../../models/operations/gettimeseriesanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
102
|
+
| `security` | [operations.GetTimeseriesAnalyticsSecurity](../../models/operations/gettimeseriesanalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
99
103
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
100
104
|
| `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. |
|
|
101
105
|
|
|
@@ -129,12 +133,13 @@ import { Dub } from "dub";
|
|
|
129
133
|
|
|
130
134
|
async function run() {
|
|
131
135
|
const sdk = new Dub({
|
|
132
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
133
136
|
workspaceId: "<value>",
|
|
134
137
|
projectSlug: "<value>",
|
|
135
138
|
});
|
|
136
139
|
|
|
137
|
-
const
|
|
140
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
141
|
+
|
|
142
|
+
const result = await sdk.analytics.countries({}, operationSecurity);
|
|
138
143
|
|
|
139
144
|
// Handle the result
|
|
140
145
|
console.log(result)
|
|
@@ -148,6 +153,7 @@ run();
|
|
|
148
153
|
| Parameter | Type | Required | Description |
|
|
149
154
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
150
155
|
| `request` | [operations.GetCountryAnalyticsRequest](../../models/operations/getcountryanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
156
|
+
| `security` | [operations.GetCountryAnalyticsSecurity](../../models/operations/getcountryanalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
151
157
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
152
158
|
| `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. |
|
|
153
159
|
|
|
@@ -181,12 +187,13 @@ import { Dub } from "dub";
|
|
|
181
187
|
|
|
182
188
|
async function run() {
|
|
183
189
|
const sdk = new Dub({
|
|
184
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
185
190
|
workspaceId: "<value>",
|
|
186
191
|
projectSlug: "<value>",
|
|
187
192
|
});
|
|
188
193
|
|
|
189
|
-
const
|
|
194
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
195
|
+
|
|
196
|
+
const result = await sdk.analytics.cities({}, operationSecurity);
|
|
190
197
|
|
|
191
198
|
// Handle the result
|
|
192
199
|
console.log(result)
|
|
@@ -200,6 +207,7 @@ run();
|
|
|
200
207
|
| Parameter | Type | Required | Description |
|
|
201
208
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
202
209
|
| `request` | [operations.GetCityAnalyticsRequest](../../models/operations/getcityanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
210
|
+
| `security` | [operations.GetCityAnalyticsSecurity](../../models/operations/getcityanalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
203
211
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
204
212
|
| `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. |
|
|
205
213
|
|
|
@@ -233,12 +241,13 @@ import { Dub } from "dub";
|
|
|
233
241
|
|
|
234
242
|
async function run() {
|
|
235
243
|
const sdk = new Dub({
|
|
236
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
237
244
|
workspaceId: "<value>",
|
|
238
245
|
projectSlug: "<value>",
|
|
239
246
|
});
|
|
240
247
|
|
|
241
|
-
const
|
|
248
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
249
|
+
|
|
250
|
+
const result = await sdk.analytics.devices({}, operationSecurity);
|
|
242
251
|
|
|
243
252
|
// Handle the result
|
|
244
253
|
console.log(result)
|
|
@@ -252,6 +261,7 @@ run();
|
|
|
252
261
|
| Parameter | Type | Required | Description |
|
|
253
262
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
254
263
|
| `request` | [operations.GetDeviceAnalyticsRequest](../../models/operations/getdeviceanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
264
|
+
| `security` | [operations.GetDeviceAnalyticsSecurity](../../models/operations/getdeviceanalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
255
265
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
256
266
|
| `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. |
|
|
257
267
|
|
|
@@ -285,12 +295,13 @@ import { Dub } from "dub";
|
|
|
285
295
|
|
|
286
296
|
async function run() {
|
|
287
297
|
const sdk = new Dub({
|
|
288
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
289
298
|
workspaceId: "<value>",
|
|
290
299
|
projectSlug: "<value>",
|
|
291
300
|
});
|
|
292
301
|
|
|
293
|
-
const
|
|
302
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
303
|
+
|
|
304
|
+
const result = await sdk.analytics.browsers({}, operationSecurity);
|
|
294
305
|
|
|
295
306
|
// Handle the result
|
|
296
307
|
console.log(result)
|
|
@@ -304,6 +315,7 @@ run();
|
|
|
304
315
|
| Parameter | Type | Required | Description |
|
|
305
316
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
306
317
|
| `request` | [operations.GetBrowserAnalyticsRequest](../../models/operations/getbrowseranalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
318
|
+
| `security` | [operations.GetBrowserAnalyticsSecurity](../../models/operations/getbrowseranalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
307
319
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
308
320
|
| `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. |
|
|
309
321
|
|
|
@@ -337,12 +349,13 @@ import { Dub } from "dub";
|
|
|
337
349
|
|
|
338
350
|
async function run() {
|
|
339
351
|
const sdk = new Dub({
|
|
340
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
341
352
|
workspaceId: "<value>",
|
|
342
353
|
projectSlug: "<value>",
|
|
343
354
|
});
|
|
344
355
|
|
|
345
|
-
const
|
|
356
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
357
|
+
|
|
358
|
+
const result = await sdk.analytics.os({}, operationSecurity);
|
|
346
359
|
|
|
347
360
|
// Handle the result
|
|
348
361
|
console.log(result)
|
|
@@ -356,6 +369,7 @@ run();
|
|
|
356
369
|
| Parameter | Type | Required | Description |
|
|
357
370
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
358
371
|
| `request` | [operations.GetOSAnalyticsRequest](../../models/operations/getosanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
372
|
+
| `security` | [operations.GetOSAnalyticsSecurity](../../models/operations/getosanalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
359
373
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
360
374
|
| `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. |
|
|
361
375
|
|
|
@@ -389,12 +403,13 @@ import { Dub } from "dub";
|
|
|
389
403
|
|
|
390
404
|
async function run() {
|
|
391
405
|
const sdk = new Dub({
|
|
392
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
393
406
|
workspaceId: "<value>",
|
|
394
407
|
projectSlug: "<value>",
|
|
395
408
|
});
|
|
396
409
|
|
|
397
|
-
const
|
|
410
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
411
|
+
|
|
412
|
+
const result = await sdk.analytics.referers({}, operationSecurity);
|
|
398
413
|
|
|
399
414
|
// Handle the result
|
|
400
415
|
console.log(result)
|
|
@@ -408,6 +423,7 @@ run();
|
|
|
408
423
|
| Parameter | Type | Required | Description |
|
|
409
424
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
410
425
|
| `request` | [operations.GetRefererAnalyticsRequest](../../models/operations/getrefereranalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
426
|
+
| `security` | [operations.GetRefererAnalyticsSecurity](../../models/operations/getrefereranalyticssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
411
427
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
412
428
|
| `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. |
|
|
413
429
|
|
|
@@ -441,12 +457,13 @@ import { Dub } from "dub";
|
|
|
441
457
|
|
|
442
458
|
async function run() {
|
|
443
459
|
const sdk = new Dub({
|
|
444
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
445
460
|
workspaceId: "<value>",
|
|
446
461
|
projectSlug: "<value>",
|
|
447
462
|
});
|
|
448
463
|
|
|
449
|
-
const
|
|
464
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
465
|
+
|
|
466
|
+
const result = await sdk.analytics.topLinks({}, operationSecurity);
|
|
450
467
|
|
|
451
468
|
// Handle the result
|
|
452
469
|
console.log(result)
|
|
@@ -460,6 +477,7 @@ run();
|
|
|
460
477
|
| Parameter | Type | Required | Description |
|
|
461
478
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
462
479
|
| `request` | [operations.GetTopLinksRequest](../../models/operations/gettoplinksrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
480
|
+
| `security` | [operations.GetTopLinksSecurity](../../models/operations/gettoplinkssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
463
481
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
464
482
|
| `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. |
|
|
465
483
|
|
|
@@ -493,12 +511,13 @@ import { Dub } from "dub";
|
|
|
493
511
|
|
|
494
512
|
async function run() {
|
|
495
513
|
const sdk = new Dub({
|
|
496
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
497
514
|
workspaceId: "<value>",
|
|
498
515
|
projectSlug: "<value>",
|
|
499
516
|
});
|
|
500
517
|
|
|
501
|
-
const
|
|
518
|
+
const operationSecurity = "<YOUR_BEARER_TOKEN_HERE>";
|
|
519
|
+
|
|
520
|
+
const result = await sdk.analytics.topUrls({}, operationSecurity);
|
|
502
521
|
|
|
503
522
|
// Handle the result
|
|
504
523
|
console.log(result)
|
|
@@ -512,6 +531,7 @@ run();
|
|
|
512
531
|
| Parameter | Type | Required | Description |
|
|
513
532
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
514
533
|
| `request` | [operations.GetTopURLsRequest](../../models/operations/gettopurlsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
534
|
+
| `security` | [operations.GetTopURLsSecurity](../../models/operations/gettopurlssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
515
535
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
516
536
|
| `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. |
|
|
517
537
|
|