rea-agents
    Preparing search index...

    Function fetchWebSourceMaps

    • Fetch and validate approved source maps without browser credentials.

      Parameters

      • requests: readonly WebSourceMapRequest[]
      • input: {
            allowed_origins: string[];
            analysis_limits: {
                max_ast_nodes: number;
                max_findings: number;
                max_original_sources: number;
                max_source_map_bytes: number;
                max_source_map_mappings: number;
                max_source_maps: number;
                max_total_source_map_bytes: number;
            };
            approved: true;
            cdp_endpoint: string;
            console_text_approved: boolean;
            fetch_source_maps: boolean;
            include_accessibility_text: boolean;
            include_console_text: boolean;
            include_json_body_shapes: boolean;
            include_script_sources: true;
            include_storage_keys: boolean;
            include_websocket_shapes: boolean;
            json_body_schema_approved: boolean;
            limits: {
                max_ax_nodes: number;
                max_ax_text_field_bytes: number;
                max_console_events: number;
                max_console_text_field_bytes: number;
                max_dom_nodes: number;
                max_frames: number;
                max_json_body_bytes: number;
                max_json_shape_depth: number;
                max_json_shape_nodes: number;
                max_network_events: number;
                max_resources: number;
                max_script_source_bytes: number;
                max_scripts: number;
                max_storage_keys: number;
                max_total_ax_text_bytes: number;
                max_total_console_text_bytes: number;
                max_total_json_body_bytes: number;
                max_total_script_source_bytes: number;
                max_total_websocket_shape_bytes: number;
                max_websocket_events: number;
                max_websocket_shape_bytes: number;
                max_workers: number;
            };
            observation_ms: number;
            source_capture_approved: true;
            source_map_fetch_approved: boolean;
            target_id: string;
            websocket_shape_approved: boolean;
        }
      • Optionalsignal: AbortSignal
      • host: SourceMapFetchHost = ...

      Returns Promise<
          {
              dropped: number;
              dropped_script_keys: string[];
              items: {
                  artifact: | {
                      bytes: number;
                      charset: "utf-8";
                      media_type: string;
                      sha256: string;
                      text: string;
                      uri: string;
                  }
                  | null;
                  declared_url: string;
                  limitation: string
                  | null;
                  mappings: {
                      generated_column: number;
                      generated_line: number;
                      name: string | null;
                      original_column: number;
                      original_line: number;
                      source: string;
                  }[];
                  original_module_edges: {
                      from_source: string;
                      kind: "static_import"
                      | "dynamic_import"
                      | "require";
                      resolved_source: string | null;
                      specifier: string;
                  }[];
                  original_sources: {
                      artifact: | {
                          bytes: number;
                          charset: "utf-8";
                          media_type: string;
                          sha256: string;
                          text: string;
                          uri: string;
                      }
                      | null;
                      source: string;
                  }[];
                  script_key: string;
                  status: | "truncated"
                  | "invalid"
                  | "policy_filtered"
                  | "included"
                  | "fetch_failed";
              }[];
              processed: number;
              requested: number;
              status: | "truncated"
              | "unavailable"
              | "partial"
              | "included"
              | "not_requested";
          },
      >