dub 0.20.1 → 0.20.2
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 +5 -6
- package/.speakeasy/gen.yaml +1 -1
- package/README.md +6 -10
- package/docs/sdks/analytics/README.md +10 -0
- package/docs/sdks/links/README.md +11 -4
- package/docs/sdks/qrcodes/README.md +1 -0
- package/docs/sdks/tags/README.md +2 -0
- package/docs/sdks/workspaces/README.md +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/links.d.ts +1 -1
- package/sdk/links.js +1 -1
- package/src/index.ts +5 -0
- package/src/lib/config.ts +8 -3
- package/src/sdk/links.ts +1 -1
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: 37d7e2c33b3d71ced9283276b543de34
|
|
5
5
|
docVersion: 0.0.1
|
|
6
|
-
speakeasyVersion: 1.
|
|
7
|
-
generationVersion: 2.
|
|
8
|
-
releaseVersion: 0.20.
|
|
9
|
-
configChecksum:
|
|
6
|
+
speakeasyVersion: 1.246.0
|
|
7
|
+
generationVersion: 2.302.0
|
|
8
|
+
releaseVersion: 0.20.2
|
|
9
|
+
configChecksum: cf1d62f46487352bf64eb9d7f549677a
|
|
10
10
|
repoURL: https://github.com/dubinc/dub-node.git
|
|
11
11
|
installationURL: https://github.com/dubinc/dub-node
|
|
12
12
|
published: true
|
|
@@ -35,7 +35,6 @@ generatedFiles:
|
|
|
35
35
|
- .npmignore
|
|
36
36
|
- RUNTIMES.md
|
|
37
37
|
- package.json
|
|
38
|
-
- src/index.ts
|
|
39
38
|
- src/lib/base64.ts
|
|
40
39
|
- src/lib/config.ts
|
|
41
40
|
- src/lib/encodings.ts
|
package/.speakeasy/gen.yaml
CHANGED
package/README.md
CHANGED
|
@@ -7,15 +7,6 @@
|
|
|
7
7
|
</a>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
## 🏗 **Welcome to your new SDK!** 🏗
|
|
12
|
-
|
|
13
|
-
It has been generated successfully based on your OpenAPI spec. However, it is not yet ready for production use. Here are some next steps:
|
|
14
|
-
- [ ] 🛠 Make your SDK feel handcrafted by [customizing it](https://www.speakeasyapi.dev/docs/customize-sdks)
|
|
15
|
-
- [ ] ♻️ Refine your SDK quickly by iterating locally with the [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy)
|
|
16
|
-
- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/advanced-setup/publish-sdks)
|
|
17
|
-
- [ ] ✨ When ready to productionize, delete this section from the README
|
|
18
|
-
|
|
19
10
|
<!-- Start SDK Installation [installation] -->
|
|
20
11
|
## SDK Installation
|
|
21
12
|
|
|
@@ -50,6 +41,7 @@ async function run() {
|
|
|
50
41
|
const sdk = new Dub({
|
|
51
42
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
52
43
|
workspaceId: "<value>",
|
|
44
|
+
projectSlug: "<value>",
|
|
53
45
|
});
|
|
54
46
|
|
|
55
47
|
const result = await sdk.links.list({
|
|
@@ -76,7 +68,7 @@ run();
|
|
|
76
68
|
* [get](docs/sdks/links/README.md#get) - Retrieve a link
|
|
77
69
|
* [update](docs/sdks/links/README.md#update) - Edit a link
|
|
78
70
|
* [delete](docs/sdks/links/README.md#delete) - Delete a link
|
|
79
|
-
* [
|
|
71
|
+
* [createMany](docs/sdks/links/README.md#createmany) - Bulk create links
|
|
80
72
|
|
|
81
73
|
### [qrCodes](docs/sdks/qrcodes/README.md)
|
|
82
74
|
|
|
@@ -136,6 +128,7 @@ async function run() {
|
|
|
136
128
|
const sdk = new Dub({
|
|
137
129
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
138
130
|
workspaceId: "<value>",
|
|
131
|
+
projectSlug: "<value>",
|
|
139
132
|
});
|
|
140
133
|
|
|
141
134
|
let result;
|
|
@@ -222,6 +215,7 @@ async function run() {
|
|
|
222
215
|
serverIdx: 0,
|
|
223
216
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
224
217
|
workspaceId: "<value>",
|
|
218
|
+
projectSlug: "<value>",
|
|
225
219
|
});
|
|
226
220
|
|
|
227
221
|
const result = await sdk.links.list({
|
|
@@ -249,6 +243,7 @@ async function run() {
|
|
|
249
243
|
serverURL: "https://api.dub.co",
|
|
250
244
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
251
245
|
workspaceId: "<value>",
|
|
246
|
+
projectSlug: "<value>",
|
|
252
247
|
});
|
|
253
248
|
|
|
254
249
|
const result = await sdk.links.list({
|
|
@@ -332,6 +327,7 @@ async function run() {
|
|
|
332
327
|
const sdk = new Dub({
|
|
333
328
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
334
329
|
workspaceId: "<value>",
|
|
330
|
+
projectSlug: "<value>",
|
|
335
331
|
});
|
|
336
332
|
|
|
337
333
|
const result = await sdk.links.list({
|
|
@@ -27,6 +27,7 @@ async function run() {
|
|
|
27
27
|
const sdk = new Dub({
|
|
28
28
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
29
29
|
workspaceId: "<value>",
|
|
30
|
+
projectSlug: "<value>",
|
|
30
31
|
});
|
|
31
32
|
|
|
32
33
|
const result = await sdk.analytics.clicks({});
|
|
@@ -78,6 +79,7 @@ async function run() {
|
|
|
78
79
|
const sdk = new Dub({
|
|
79
80
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
80
81
|
workspaceId: "<value>",
|
|
82
|
+
projectSlug: "<value>",
|
|
81
83
|
});
|
|
82
84
|
|
|
83
85
|
const result = await sdk.analytics.timeseries({});
|
|
@@ -129,6 +131,7 @@ async function run() {
|
|
|
129
131
|
const sdk = new Dub({
|
|
130
132
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
131
133
|
workspaceId: "<value>",
|
|
134
|
+
projectSlug: "<value>",
|
|
132
135
|
});
|
|
133
136
|
|
|
134
137
|
const result = await sdk.analytics.countries({});
|
|
@@ -180,6 +183,7 @@ async function run() {
|
|
|
180
183
|
const sdk = new Dub({
|
|
181
184
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
182
185
|
workspaceId: "<value>",
|
|
186
|
+
projectSlug: "<value>",
|
|
183
187
|
});
|
|
184
188
|
|
|
185
189
|
const result = await sdk.analytics.cities({});
|
|
@@ -231,6 +235,7 @@ async function run() {
|
|
|
231
235
|
const sdk = new Dub({
|
|
232
236
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
233
237
|
workspaceId: "<value>",
|
|
238
|
+
projectSlug: "<value>",
|
|
234
239
|
});
|
|
235
240
|
|
|
236
241
|
const result = await sdk.analytics.devices({});
|
|
@@ -282,6 +287,7 @@ async function run() {
|
|
|
282
287
|
const sdk = new Dub({
|
|
283
288
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
284
289
|
workspaceId: "<value>",
|
|
290
|
+
projectSlug: "<value>",
|
|
285
291
|
});
|
|
286
292
|
|
|
287
293
|
const result = await sdk.analytics.browsers({});
|
|
@@ -333,6 +339,7 @@ async function run() {
|
|
|
333
339
|
const sdk = new Dub({
|
|
334
340
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
335
341
|
workspaceId: "<value>",
|
|
342
|
+
projectSlug: "<value>",
|
|
336
343
|
});
|
|
337
344
|
|
|
338
345
|
const result = await sdk.analytics.os({});
|
|
@@ -384,6 +391,7 @@ async function run() {
|
|
|
384
391
|
const sdk = new Dub({
|
|
385
392
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
386
393
|
workspaceId: "<value>",
|
|
394
|
+
projectSlug: "<value>",
|
|
387
395
|
});
|
|
388
396
|
|
|
389
397
|
const result = await sdk.analytics.referers({});
|
|
@@ -435,6 +443,7 @@ async function run() {
|
|
|
435
443
|
const sdk = new Dub({
|
|
436
444
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
437
445
|
workspaceId: "<value>",
|
|
446
|
+
projectSlug: "<value>",
|
|
438
447
|
});
|
|
439
448
|
|
|
440
449
|
const result = await sdk.analytics.topLinks({});
|
|
@@ -486,6 +495,7 @@ async function run() {
|
|
|
486
495
|
const sdk = new Dub({
|
|
487
496
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
488
497
|
workspaceId: "<value>",
|
|
498
|
+
projectSlug: "<value>",
|
|
489
499
|
});
|
|
490
500
|
|
|
491
501
|
const result = await sdk.analytics.topUrls({});
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* [get](#get) - Retrieve a link
|
|
10
10
|
* [update](#update) - Edit a link
|
|
11
11
|
* [delete](#delete) - Delete a link
|
|
12
|
-
* [
|
|
12
|
+
* [createMany](#createmany) - Bulk create links
|
|
13
13
|
|
|
14
14
|
## list
|
|
15
15
|
|
|
@@ -24,6 +24,7 @@ async function run() {
|
|
|
24
24
|
const sdk = new Dub({
|
|
25
25
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
26
26
|
workspaceId: "<value>",
|
|
27
|
+
projectSlug: "<value>",
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
const result = await sdk.links.list({
|
|
@@ -79,6 +80,7 @@ async function run() {
|
|
|
79
80
|
const sdk = new Dub({
|
|
80
81
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
81
82
|
workspaceId: "<value>",
|
|
83
|
+
projectSlug: "<value>",
|
|
82
84
|
});
|
|
83
85
|
|
|
84
86
|
const result = await sdk.links.create({
|
|
@@ -137,6 +139,7 @@ async function run() {
|
|
|
137
139
|
const sdk = new Dub({
|
|
138
140
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
139
141
|
workspaceId: "<value>",
|
|
142
|
+
projectSlug: "<value>",
|
|
140
143
|
});
|
|
141
144
|
|
|
142
145
|
const result = await sdk.links.count({
|
|
@@ -191,6 +194,7 @@ async function run() {
|
|
|
191
194
|
const sdk = new Dub({
|
|
192
195
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
193
196
|
workspaceId: "<value>",
|
|
197
|
+
projectSlug: "<value>",
|
|
194
198
|
});
|
|
195
199
|
|
|
196
200
|
const result = await sdk.links.get({
|
|
@@ -245,6 +249,7 @@ async function run() {
|
|
|
245
249
|
const sdk = new Dub({
|
|
246
250
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
247
251
|
workspaceId: "<value>",
|
|
252
|
+
projectSlug: "<value>",
|
|
248
253
|
});
|
|
249
254
|
|
|
250
255
|
const linkId = "<value>";
|
|
@@ -306,6 +311,7 @@ async function run() {
|
|
|
306
311
|
const sdk = new Dub({
|
|
307
312
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
308
313
|
workspaceId: "<value>",
|
|
314
|
+
projectSlug: "<value>",
|
|
309
315
|
});
|
|
310
316
|
|
|
311
317
|
const linkId = "<value>";
|
|
@@ -346,7 +352,7 @@ run();
|
|
|
346
352
|
| errors.InternalServerError | 500 | application/json |
|
|
347
353
|
| errors.SDKError | 4xx-5xx | */* |
|
|
348
354
|
|
|
349
|
-
##
|
|
355
|
+
## createMany
|
|
350
356
|
|
|
351
357
|
Bulk create up to 100 links for the authenticated workspace.
|
|
352
358
|
|
|
@@ -359,11 +365,12 @@ async function run() {
|
|
|
359
365
|
const sdk = new Dub({
|
|
360
366
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
361
367
|
workspaceId: "<value>",
|
|
368
|
+
projectSlug: "<value>",
|
|
362
369
|
});
|
|
363
370
|
|
|
364
|
-
const result = await sdk.links.
|
|
371
|
+
const result = await sdk.links.createMany([
|
|
365
372
|
{
|
|
366
|
-
url: "
|
|
373
|
+
url: "https://positive-plane.info",
|
|
367
374
|
geo: {
|
|
368
375
|
"key": "<value>",
|
|
369
376
|
},
|
package/docs/sdks/tags/README.md
CHANGED
|
@@ -19,6 +19,7 @@ async function run() {
|
|
|
19
19
|
const sdk = new Dub({
|
|
20
20
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
21
21
|
workspaceId: "<value>",
|
|
22
|
+
projectSlug: "<value>",
|
|
22
23
|
});
|
|
23
24
|
|
|
24
25
|
const result = await sdk.tags.list({});
|
|
@@ -70,6 +71,7 @@ async function run() {
|
|
|
70
71
|
const sdk = new Dub({
|
|
71
72
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
72
73
|
workspaceId: "<value>",
|
|
74
|
+
projectSlug: "<value>",
|
|
73
75
|
});
|
|
74
76
|
|
|
75
77
|
const result = await sdk.tags.create({
|
|
@@ -20,6 +20,7 @@ async function run() {
|
|
|
20
20
|
const sdk = new Dub({
|
|
21
21
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
22
22
|
workspaceId: "<value>",
|
|
23
|
+
projectSlug: "<value>",
|
|
23
24
|
});
|
|
24
25
|
|
|
25
26
|
const result = await sdk.workspaces.list();
|
|
@@ -70,6 +71,7 @@ async function run() {
|
|
|
70
71
|
const sdk = new Dub({
|
|
71
72
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
72
73
|
workspaceId: "<value>",
|
|
74
|
+
projectSlug: "<value>",
|
|
73
75
|
});
|
|
74
76
|
|
|
75
77
|
const result = await sdk.workspaces.create({
|
|
@@ -124,6 +126,7 @@ async function run() {
|
|
|
124
126
|
const sdk = new Dub({
|
|
125
127
|
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
126
128
|
workspaceId: "<value>",
|
|
129
|
+
projectSlug: "<value>",
|
|
127
130
|
});
|
|
128
131
|
|
|
129
132
|
const result = await sdk.workspaces.get({
|
package/index.d.ts
CHANGED
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAIA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAIA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAE3B,yEAAyE;AACzE,eAAe,GAAG,CAAC"}
|
package/index.js
CHANGED
|
@@ -19,4 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./sdk"), exports);
|
|
21
21
|
__exportStar(require("./lib/config"), exports);
|
|
22
|
+
const sdk_1 = require("./sdk");
|
|
23
|
+
/** @deprecated Use named export instead: `import { Dub } from "dub";` */
|
|
24
|
+
exports.default = sdk_1.Dub; // eslint-disable-line import/no-default-export
|
|
22
25
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,wCAAsB;AACtB,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,wCAAsB;AACtB,+CAA6B;AAE7B,+BAA2B;AAE3B,yEAAyE;AACzE,kBAAe,SAAG,CAAC,CAAC,+CAA+C"}
|
package/lib/config.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export type SDKOptions = {
|
|
|
10
10
|
* Allows setting the workspaceId parameter for all supported operations
|
|
11
11
|
*/
|
|
12
12
|
workspaceId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Allows setting the projectSlug parameter for all supported operations
|
|
15
|
+
*/
|
|
16
|
+
projectSlug?: string | undefined;
|
|
13
17
|
httpClient?: HTTPClient;
|
|
14
18
|
/**
|
|
15
19
|
* Allows overriding the default server used by the SDK
|
|
@@ -28,8 +32,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
28
32
|
export declare const SDK_METADATA: Readonly<{
|
|
29
33
|
language: "typescript";
|
|
30
34
|
openapiDocVersion: "0.0.1";
|
|
31
|
-
sdkVersion: "0.20.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.20.
|
|
35
|
+
sdkVersion: "0.20.2";
|
|
36
|
+
genVersion: "2.302.0";
|
|
37
|
+
userAgent: "speakeasy-sdk/typescript 0.20.2 2.302.0 0.0.1 dub";
|
|
34
38
|
}>;
|
|
35
39
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC;;GAEG;AACH,eAAO,MAAM,UAAU,iCAKb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAEzC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;EAMvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC;;GAEG;AACH,eAAO,MAAM,UAAU,iCAKb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAEzC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;EAMvB,CAAC"}
|
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.20.
|
|
36
|
-
genVersion: "2.
|
|
37
|
-
userAgent: "speakeasy-sdk/typescript 0.20.
|
|
35
|
+
sdkVersion: "0.20.2",
|
|
36
|
+
genVersion: "2.302.0",
|
|
37
|
+
userAgent: "speakeasy-sdk/typescript 0.20.2 2.302.0 0.0.1 dub",
|
|
38
38
|
});
|
|
39
39
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,+BAAmC;AAEnC;;GAEG;AACU,QAAA,UAAU,GAAG;IACtB;;OAEG;IACH,oBAAoB;CACd,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,+BAAmC;AAEnC;;GAEG;AACU,QAAA,UAAU,GAAG;IACtB;;OAEG;IACH,oBAAoB;CACd,CAAC;AA8BX,SAAgB,oBAAoB,CAAC,OAAmB;;IACpD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAA2B,EAAE,CAAC;IAE1C,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YAClD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACzD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,gBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC;AAfD,oDAeC;AAEY,QAAA,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,mDAAmD;CACjE,CAAC,CAAC"}
|
package/package.json
CHANGED
package/sdk/links.d.ts
CHANGED
|
@@ -53,6 +53,6 @@ export declare class Links extends ClientSDK {
|
|
|
53
53
|
* @remarks
|
|
54
54
|
* Bulk create up to 100 links for the authenticated workspace.
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
createMany(input: Array<operations.RequestBody> | undefined, options?: RequestOptions): Promise<Array<components.LinkSchema>>;
|
|
57
57
|
}
|
|
58
58
|
//# sourceMappingURL=links.d.ts.map
|
package/sdk/links.js
CHANGED
|
@@ -1139,7 +1139,7 @@ class Links extends sdks_1.ClientSDK {
|
|
|
1139
1139
|
* @remarks
|
|
1140
1140
|
* Bulk create up to 100 links for the authenticated workspace.
|
|
1141
1141
|
*/
|
|
1142
|
-
async
|
|
1142
|
+
async createMany(input, options) {
|
|
1143
1143
|
const headers$ = new Headers();
|
|
1144
1144
|
headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
|
|
1145
1145
|
headers$.set("Content-Type", "application/json");
|
package/src/index.ts
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -24,6 +24,11 @@ export type SDKOptions = {
|
|
|
24
24
|
*/
|
|
25
25
|
workspaceId?: string;
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Allows setting the projectSlug parameter for all supported operations
|
|
29
|
+
*/
|
|
30
|
+
projectSlug?: string | undefined;
|
|
31
|
+
|
|
27
32
|
httpClient?: HTTPClient;
|
|
28
33
|
/**
|
|
29
34
|
* Allows overriding the default server used by the SDK
|
|
@@ -59,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
64
|
export const SDK_METADATA = Object.freeze({
|
|
60
65
|
language: "typescript",
|
|
61
66
|
openapiDocVersion: "0.0.1",
|
|
62
|
-
sdkVersion: "0.20.
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 0.20.
|
|
67
|
+
sdkVersion: "0.20.2",
|
|
68
|
+
genVersion: "2.302.0",
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 0.20.2 2.302.0 0.0.1 dub",
|
|
65
70
|
});
|
package/src/sdk/links.ts
CHANGED
|
@@ -1402,7 +1402,7 @@ export class Links extends ClientSDK {
|
|
|
1402
1402
|
* @remarks
|
|
1403
1403
|
* Bulk create up to 100 links for the authenticated workspace.
|
|
1404
1404
|
*/
|
|
1405
|
-
async
|
|
1405
|
+
async createMany(
|
|
1406
1406
|
input: Array<operations.RequestBody> | undefined,
|
|
1407
1407
|
options?: RequestOptions
|
|
1408
1408
|
): Promise<Array<components.LinkSchema>> {
|