@gvnrdao/dh-sdk 0.0.243 → 0.0.245

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,12 +3,15 @@ export interface GraphClientConfig {
3
3
  requestTimeoutMs?: number;
4
4
  maxRetries?: number;
5
5
  headers?: Record<string, string>;
6
+ /** Optional async supplier for per-request headers (e.g. session JWT). */
7
+ getHeaders?: () => Promise<Record<string, string>>;
6
8
  }
7
9
  export declare class GraphClient {
8
10
  private endpoint;
9
11
  private requestTimeoutMs;
10
12
  private maxRetries;
11
13
  private headers?;
14
+ private getHeadersFn?;
12
15
  constructor(config: GraphClientConfig);
13
16
  execute<T>(query: string, variables?: Record<string, any>): Promise<T>;
14
17
  paginate<TItem>(query: string, variables: Record<string, any>, select: (page: any) => TItem[], options?: {
@@ -8,6 +8,8 @@ export interface DiamondHandsGraphConfig {
8
8
  maxRetries?: number;
9
9
  defaultPageSize?: number;
10
10
  headers?: Record<string, string>;
11
+ /** Optional async supplier for per-request headers (e.g. session JWT). */
12
+ getHeaders?: () => Promise<Record<string, string>>;
11
13
  }
12
14
  export interface UserData {
13
15
  id: string;