diff --git a/scripts/local/sdk_gen.sh b/scripts/local/sdk_gen.sh index 2e1aced..b53bb56 100755 --- a/scripts/local/sdk_gen.sh +++ b/scripts/local/sdk_gen.sh @@ -16,4 +16,5 @@ echo "✅ Generated SDK for Core API '$version'" echo "🔧 Patching generated code..." sed -i 's/import {/import type {/g' ./src/lib/api/core/Api.ts sed -i 's/import type { ContentType, HttpClient, RequestParams/import { ContentType, HttpClient, type RequestParams/g' ./src/lib/api/core/Api.ts +sed -i '/credentials: "same-origin",/d; /headers: {},/d; /redirect: "follow",/d; /referrerPolicy: "no-referrer",/d' ./src/lib/api/core/http-client.ts echo "✅ Patched generated code" diff --git a/src/lib/api/core/data-contracts.ts b/src/lib/api/core/data-contracts.ts index f3fd56f..c8a59fb 100644 --- a/src/lib/api/core/data-contracts.ts +++ b/src/lib/api/core/data-contracts.ts @@ -121,7 +121,6 @@ export interface PluginVersionPrincipalResp { createdAt?: string; description?: string | null; dockerReference?: string | null; - dockerSha?: string | null; dockerTag?: string | null; } @@ -175,7 +174,6 @@ export interface ProcessorVersionPrincipalResp { createdAt?: string; description?: string | null; dockerReference?: string | null; - dockerSha?: string | null; dockerTag?: string | null; } @@ -263,10 +261,8 @@ export interface TemplateVersionPrincipalResp { createdAt?: string; description?: string | null; blobDockerReference?: string | null; - blobDockerSha?: string | null; - templateDockerReference?: string | null; - templateDockerSha?: string | null; blobDockerTag?: string | null; + templateDockerReference?: string | null; templateDockerTag?: string | null; } diff --git a/src/lib/api/core/http-client.ts b/src/lib/api/core/http-client.ts index ca174b3..8818b65 100644 --- a/src/lib/api/core/http-client.ts +++ b/src/lib/api/core/http-client.ts @@ -68,12 +68,7 @@ export class HttpClient { private customFetch = (...fetchParams: Parameters) => fetch(...fetchParams); - private baseApiParams: RequestParams = { - credentials: "same-origin", - headers: {}, - redirect: "follow", - referrerPolicy: "no-referrer", - }; + private baseApiParams: RequestParams = {}; constructor(apiConfig: ApiConfig = {}) { Object.assign(this, apiConfig);