ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.204.1

This commit is contained in:
speakeasybot
2024-03-08 00:27:35 +00:00
parent 1c5fa25562
commit 9503c9033d
6 changed files with 26 additions and 12 deletions

View File

@@ -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);