Skip to content

Commit 86e6d9c

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.246.1 (#67)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent e26bb05 commit 86e6d9c

File tree

11 files changed

+118
-14
lines changed

11 files changed

+118
-14
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f28179cc-ef59-426d-9e85-60cec22fc642
33
management:
4-
docChecksum: 37d7e2c33b3d71ced9283276b543de34
4+
docChecksum: 3ef41873dee5fcca0b0407f423aa20bf
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.246.0
7-
generationVersion: 2.302.0
8-
releaseVersion: 0.20.2
9-
configChecksum: cf1d62f46487352bf64eb9d7f549677a
6+
speakeasyVersion: 1.246.1
7+
generationVersion: 2.302.1
8+
releaseVersion: 0.20.3
9+
configChecksum: d59a77a56a626d3c17af15170f4a04da
1010
repoURL: https://github.com/dubinc/dub-node.git
1111
installationURL: https://github.com/dubinc/dub-node
1212
published: true

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
typescript:
15-
version: 0.20.2
15+
version: 0.20.3
1616
additionalDependencies:
1717
dependencies: {}
1818
devDependencies:

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,14 @@ Based on:
2626
### Generated
2727
- [typescript v0.20.2] .
2828
### Releases
29-
- [NPM v0.20.2] https://www.npmjs.com/package/dub/v/0.20.2 - .
29+
- [NPM v0.20.2] https://www.npmjs.com/package/dub/v/0.20.2 - .
30+
31+
## 2024-04-10 16:28:04
32+
### Changes
33+
Based on:
34+
- OpenAPI Doc
35+
- Speakeasy CLI 1.246.1 (2.302.1) https://github.com/speakeasy-api/speakeasy
36+
### Generated
37+
- [typescript v0.20.3] .
38+
### Releases
39+
- [NPM v0.20.3] https://www.npmjs.com/package/dub/v/0.20.3 - .

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dub",
3-
"version": "0.20.2",
3+
"version": "0.20.3",
44
"author": "Dub",
55
"main": "./index.js",
66
"sideEffects": false,

src/hooks/hooks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ import {
1414
SDKInitOptions,
1515
} from "./types";
1616

17+
import { initHooks } from "./registration";
18+
1719
export class SDKHooks implements Hooks {
1820
sdkInitHooks: SDKInitHook[] = [];
1921
beforeRequestHooks: BeforeRequestHook[] = [];
2022
afterSuccessHooks: AfterSuccessHook[] = [];
2123
afterErrorHooks: AfterErrorHook[] = [];
2224

23-
constructor() {}
25+
constructor() {
26+
initHooks(this);
27+
}
2428

2529
registerSDKInitHook(hook: SDKInitHook) {
2630
this.sdkInitHooks.push(hook);

src/hooks/registration.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Hooks } from "./types";
2+
3+
/*
4+
* This file is only ever generated once on the first generation and then is free to be modified.
5+
* Any hooks you wish to add should be registered in the initHooks function. Feel free to define them
6+
* in this file or in separate files in the hooks folder.
7+
*/
8+
9+
// @ts-expect-error remove this line when you add your first hook and hooks is used
10+
export function initHooks(hooks: Hooks) {
11+
// Add hooks by calling hooks.register{ClientInit/BeforeRequest/AfterSuccess/AfterError}Hook
12+
// with an instance of a hook that implements that specific Hook interface
13+
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
14+
}

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6464
export const SDK_METADATA = Object.freeze({
6565
language: "typescript",
6666
openapiDocVersion: "0.0.1",
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",
67+
sdkVersion: "0.20.3",
68+
genVersion: "2.302.1",
69+
userAgent: "speakeasy-sdk/typescript 0.20.3 2.302.1 0.0.1 dub",
7070
});

src/sdk/analytics.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ export class Analytics extends ClientSDK {
8484
}),
8585
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
8686
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
87+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
88+
explode: true,
89+
charEncoding: "percent",
90+
}),
8791
enc$.encodeForm("referer", payload$.referer, {
8892
explode: true,
8993
charEncoding: "percent",
@@ -328,6 +332,10 @@ export class Analytics extends ClientSDK {
328332
}),
329333
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
330334
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
335+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
336+
explode: true,
337+
charEncoding: "percent",
338+
}),
331339
enc$.encodeForm("referer", payload$.referer, {
332340
explode: true,
333341
charEncoding: "percent",
@@ -572,6 +580,10 @@ export class Analytics extends ClientSDK {
572580
}),
573581
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
574582
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
583+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
584+
explode: true,
585+
charEncoding: "percent",
586+
}),
575587
enc$.encodeForm("referer", payload$.referer, {
576588
explode: true,
577589
charEncoding: "percent",
@@ -818,6 +830,10 @@ export class Analytics extends ClientSDK {
818830
}),
819831
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
820832
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
833+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
834+
explode: true,
835+
charEncoding: "percent",
836+
}),
821837
enc$.encodeForm("referer", payload$.referer, {
822838
explode: true,
823839
charEncoding: "percent",
@@ -1064,6 +1080,10 @@ export class Analytics extends ClientSDK {
10641080
}),
10651081
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
10661082
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
1083+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
1084+
explode: true,
1085+
charEncoding: "percent",
1086+
}),
10671087
enc$.encodeForm("referer", payload$.referer, {
10681088
explode: true,
10691089
charEncoding: "percent",
@@ -1310,6 +1330,10 @@ export class Analytics extends ClientSDK {
13101330
}),
13111331
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
13121332
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
1333+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
1334+
explode: true,
1335+
charEncoding: "percent",
1336+
}),
13131337
enc$.encodeForm("referer", payload$.referer, {
13141338
explode: true,
13151339
charEncoding: "percent",
@@ -1556,6 +1580,10 @@ export class Analytics extends ClientSDK {
15561580
}),
15571581
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
15581582
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
1583+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
1584+
explode: true,
1585+
charEncoding: "percent",
1586+
}),
15591587
enc$.encodeForm("referer", payload$.referer, {
15601588
explode: true,
15611589
charEncoding: "percent",
@@ -1802,6 +1830,10 @@ export class Analytics extends ClientSDK {
18021830
}),
18031831
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
18041832
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
1833+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
1834+
explode: true,
1835+
charEncoding: "percent",
1836+
}),
18051837
enc$.encodeForm("referer", payload$.referer, {
18061838
explode: true,
18071839
charEncoding: "percent",
@@ -2048,6 +2080,10 @@ export class Analytics extends ClientSDK {
20482080
}),
20492081
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
20502082
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
2083+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
2084+
explode: true,
2085+
charEncoding: "percent",
2086+
}),
20512087
enc$.encodeForm("referer", payload$.referer, {
20522088
explode: true,
20532089
charEncoding: "percent",
@@ -2292,6 +2328,10 @@ export class Analytics extends ClientSDK {
22922328
}),
22932329
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
22942330
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
2331+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
2332+
explode: true,
2333+
charEncoding: "percent",
2334+
}),
22952335
enc$.encodeForm("referer", payload$.referer, {
22962336
explode: true,
22972337
charEncoding: "percent",

src/sdk/links.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ export class Links extends ClientSDK {
6666
const query$ = [
6767
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
6868
enc$.encodeForm("page", payload$.page, { explode: true, charEncoding: "percent" }),
69+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
70+
explode: true,
71+
charEncoding: "percent",
72+
}),
6973
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
7074
enc$.encodeForm("showArchived", payload$.showArchived, {
7175
explode: true,
@@ -298,6 +302,10 @@ export class Links extends ClientSDK {
298302
const path$ = this.templateURLComponent("/links")();
299303

300304
const query$ = [
305+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
306+
explode: true,
307+
charEncoding: "percent",
308+
}),
301309
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
302310
explode: true,
303311
charEncoding: "percent",
@@ -517,6 +525,10 @@ export class Links extends ClientSDK {
517525
explode: true,
518526
charEncoding: "percent",
519527
}),
528+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
529+
explode: true,
530+
charEncoding: "percent",
531+
}),
520532
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
521533
enc$.encodeForm("showArchived", payload$.showArchived, {
522534
explode: true,
@@ -748,6 +760,10 @@ export class Links extends ClientSDK {
748760
const query$ = [
749761
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
750762
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
763+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
764+
explode: true,
765+
charEncoding: "percent",
766+
}),
751767
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
752768
explode: true,
753769
charEncoding: "percent",
@@ -977,6 +993,10 @@ export class Links extends ClientSDK {
977993
const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
978994

979995
const query$ = [
996+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
997+
explode: true,
998+
charEncoding: "percent",
999+
}),
9801000
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
9811001
explode: true,
9821002
charEncoding: "percent",
@@ -1203,6 +1223,10 @@ export class Links extends ClientSDK {
12031223
const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
12041224

12051225
const query$ = [
1226+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
1227+
explode: true,
1228+
charEncoding: "percent",
1229+
}),
12061230
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
12071231
explode: true,
12081232
charEncoding: "percent",
@@ -1422,6 +1446,10 @@ export class Links extends ClientSDK {
14221446
const path$ = this.templateURLComponent("/links/bulk")();
14231447

14241448
const query$ = [
1449+
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
1450+
explode: true,
1451+
charEncoding: "percent",
1452+
}),
14251453
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
14261454
explode: true,
14271455
charEncoding: "percent",

0 commit comments

Comments
 (0)