Class ModuleConfigQueryValidator<TConfig>

Type Parameters

Implements

Constructors

  • Type Parameters

    • TConfig extends DeepRestrictToStringKeys<
          {
              allowedQueries?: string[];
              archiving?: { archivists?: string[]; queries?: string[] };
              archivist?: string;
              consoleLogger?: LogLevel;
              labels?: { [key: string]: undefined | string };
              name?: string;
              paging?: { [key: string]: { size?: number } };
              retry?: { backoff?: number; interval?: number; retries?: number };
              schema: string;
              security?: {
                  allowAnonymous?: boolean;
                  allowed?: { [key: string]: (Lowercase<string> | Lowercase<string>[])[] };
                  disallowed?: { [key: string]: Lowercase<string>[] };
              };
              sign?: boolean;
              storeQueries?: boolean;
              timestamp?: boolean;
          },
      >

    Parameters

    Returns ModuleConfigQueryValidator<TConfig>

Properties

allowed: Record<string, string[]>
disallowed: Record<string, string[]>
hasAllowedRules: boolean
hasDisallowedRules: boolean
hasRules: boolean
queryAllowed: (schema: string, addresses: Lowercase<string>[]) => boolean
queryDisallowed: (schema: string, addresses: string[]) => boolean