Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.246.1 (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Apr 10, 2024
1 parent e26bb05 commit 86e6d9c
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f28179cc-ef59-426d-9e85-60cec22fc642
management:
docChecksum: 37d7e2c33b3d71ced9283276b543de34
docChecksum: 3ef41873dee5fcca0b0407f423aa20bf
docVersion: 0.0.1
speakeasyVersion: 1.246.0
generationVersion: 2.302.0
releaseVersion: 0.20.2
configChecksum: cf1d62f46487352bf64eb9d7f549677a
speakeasyVersion: 1.246.1
generationVersion: 2.302.1
releaseVersion: 0.20.3
configChecksum: d59a77a56a626d3c17af15170f4a04da
repoURL: https://github.com/dubinc/dub-node.git
installationURL: https://github.com/dubinc/dub-node
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.20.2
version: 0.20.3
additionalDependencies:
dependencies: {}
devDependencies:
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ Based on:
### Generated
- [typescript v0.20.2] .
### Releases
- [NPM v0.20.2] https://www.npmjs.com/package/dub/v/0.20.2 - .
- [NPM v0.20.2] https://www.npmjs.com/package/dub/v/0.20.2 - .

## 2024-04-10 16:28:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.246.1 (2.302.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.20.3] .
### Releases
- [NPM v0.20.3] https://www.npmjs.com/package/dub/v/0.20.3 - .
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dub",
"version": "0.20.2",
"version": "0.20.3",
"author": "Dub",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 5 additions & 1 deletion src/hooks/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ import {
SDKInitOptions,
} from "./types";

import { initHooks } from "./registration";

export class SDKHooks implements Hooks {
sdkInitHooks: SDKInitHook[] = [];
beforeRequestHooks: BeforeRequestHook[] = [];
afterSuccessHooks: AfterSuccessHook[] = [];
afterErrorHooks: AfterErrorHook[] = [];

constructor() {}
constructor() {
initHooks(this);
}

registerSDKInitHook(hook: SDKInitHook) {
this.sdkInitHooks.push(hook);
Expand Down
14 changes: 14 additions & 0 deletions src/hooks/registration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Hooks } from "./types";

/*
* This file is only ever generated once on the first generation and then is free to be modified.
* Any hooks you wish to add should be registered in the initHooks function. Feel free to define them
* in this file or in separate files in the hooks folder.
*/

// @ts-expect-error remove this line when you add your first hook and hooks is used
export function initHooks(hooks: Hooks) {
// Add hooks by calling hooks.register{ClientInit/BeforeRequest/AfterSuccess/AfterError}Hook
// with an instance of a hook that implements that specific Hook interface
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
}
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = Object.freeze({
language: "typescript",
openapiDocVersion: "0.0.1",
sdkVersion: "0.20.2",
genVersion: "2.302.0",
userAgent: "speakeasy-sdk/typescript 0.20.2 2.302.0 0.0.1 dub",
sdkVersion: "0.20.3",
genVersion: "2.302.1",
userAgent: "speakeasy-sdk/typescript 0.20.3 2.302.1 0.0.1 dub",
});
40 changes: 40 additions & 0 deletions src/sdk/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -328,6 +332,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -572,6 +580,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -818,6 +830,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -1064,6 +1080,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -1310,6 +1330,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -1556,6 +1580,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -1802,6 +1830,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -2048,6 +2080,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -2292,6 +2328,10 @@ export class Analytics extends ClientSDK {
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
Expand Down
28 changes: 28 additions & 0 deletions src/sdk/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export class Links extends ClientSDK {
const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("page", payload$.page, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("showArchived", payload$.showArchived, {
explode: true,
Expand Down Expand Up @@ -298,6 +302,10 @@ export class Links extends ClientSDK {
const path$ = this.templateURLComponent("/links")();

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -517,6 +525,10 @@ export class Links extends ClientSDK {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("showArchived", payload$.showArchived, {
explode: true,
Expand Down Expand Up @@ -748,6 +760,10 @@ export class Links extends ClientSDK {
const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -977,6 +993,10 @@ export class Links extends ClientSDK {
const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -1203,6 +1223,10 @@ export class Links extends ClientSDK {
const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -1422,6 +1446,10 @@ export class Links extends ClientSDK {
const path$ = this.templateURLComponent("/links/bulk")();

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
Expand Down
8 changes: 8 additions & 0 deletions src/sdk/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export class Tags extends ClientSDK {
const path$ = this.templateURLComponent("/tags")();

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
Expand Down Expand Up @@ -275,6 +279,10 @@ export class Tags extends ClientSDK {
const path$ = this.templateURLComponent("/tags")();

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
Expand Down

0 comments on commit 86e6d9c

Please sign in to comment.