import type { ApiClient } from "@promobase/sdk-runtime"; export interface URLFields { engagement: Record; id: string; og_object: Record; ownership_permissions: Record; scopes: Record; } export interface URLUpdateParams { blacklist?: boolean; denylist?: boolean; hmac?: string; locale?: string[]; scopes?: string[]; ts?: string; [key: string]: unknown; } export function uRLNode(client: ApiClient, id: string) { return { __path: id, __brand: undefined as unknown as URLFields, get: (opts: { fields: F; params?: Record }) => client.get>(`${id}`, opts), update: (params: URLUpdateParams) => client.post(`${id}`, params as Record), }; }