Skip to content

2822 urlscan #2874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
634 changes: 634 additions & 0 deletions docs/content/docs/reference/components/urlscan.mdx

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions server/apps/server-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ dependencies {
implementation(project(":server:libs:modules:components:trello"))
implementation(project(":server:libs:modules:components:twilio"))
implementation(project(":server:libs:modules:components:typeform"))
implementation(project(":server:libs:modules:components:urlscan"))
implementation(project(":server:libs:modules:components:var"))
implementation(project(":server:libs:modules:components:vtiger"))
implementation(project(":server:libs:modules:components:webflow"))
Expand Down
1 change: 1 addition & 0 deletions server/ee/apps/worker-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ dependencies {
implementation(project(":server:libs:modules:components:trello"))
implementation(project(":server:libs:modules:components:twilio"))
implementation(project(":server:libs:modules:components:typeform"))
implementation(project(":server:libs:modules:components:urlscan"))
implementation(project(":server:libs:modules:components:var"))
implementation(project(":server:libs:modules:components:vtiger"))
implementation(project(":server:libs:modules:components:webflow"))
Expand Down
1,027 changes: 1,027 additions & 0 deletions server/libs/modules/components/urlscan/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright 2025 ByteChef
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.bytechef.component.urlscan;

import static com.bytechef.component.definition.ComponentDsl.component;
import static com.bytechef.component.definition.ComponentDsl.tool;

import com.bytechef.component.OpenApiComponentHandler;
import com.bytechef.component.definition.ComponentDefinition;
import com.bytechef.component.urlscan.action.UrlscanResultAction;
import com.bytechef.component.urlscan.action.UrlscanScanAction;
import com.bytechef.component.urlscan.connection.UrlscanConnection;

/**
* Provides the base implementation for the REST based component.
*
* @generated
*/
public abstract class AbstractUrlscanComponentHandler implements OpenApiComponentHandler {
private final ComponentDefinition componentDefinition = modifyComponent(
component("urlscan")
.title("Urlscan.io")
.description(
"Urlscan.io is an online service that allows you to safely analyze websites and URLs to determine potential security threats and risks."))
.actions(modifyActions(UrlscanScanAction.ACTION_DEFINITION, UrlscanResultAction.ACTION_DEFINITION))
.connection(modifyConnection(UrlscanConnection.CONNECTION_DEFINITION))
.clusterElements(modifyClusterElements(tool(UrlscanScanAction.ACTION_DEFINITION),
tool(UrlscanResultAction.ACTION_DEFINITION)))
.triggers(getTriggers());

@Override
public ComponentDefinition getDefinition() {
return componentDefinition;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright 2025 ByteChef
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.bytechef.component.urlscan;

import static com.bytechef.component.definition.ComponentDsl.tool;

import com.bytechef.component.OpenApiComponentHandler;
import com.bytechef.component.definition.ClusterElementDefinition;
import com.bytechef.component.definition.ComponentCategory;
import com.bytechef.component.definition.ComponentDsl.ModifiableActionDefinition;
import com.bytechef.component.definition.ComponentDsl.ModifiableComponentDefinition;
import com.bytechef.component.urlscan.action.UrlscanScreenshotAction;
import com.google.auto.service.AutoService;
import java.util.List;

/**
* This class will not be overwritten on the subsequent calls of the generator.
*/
@AutoService(OpenApiComponentHandler.class)
public class UrlscanComponentHandler extends AbstractUrlscanComponentHandler {

@Override
public List<? extends ModifiableActionDefinition> getCustomActions() {
return List.of(UrlscanScreenshotAction.ACTION_DEFINITION);
}

@Override
public List<ClusterElementDefinition<?>> getCustomClusterElements() {
return List.of(tool(UrlscanScreenshotAction.ACTION_DEFINITION));
}

@Override
public ModifiableComponentDefinition modifyComponent(ModifiableComponentDefinition modifiableComponentDefinition) {
return modifiableComponentDefinition
.icon("path:assets/urlscan.svg")
.categories(ComponentCategory.HELPERS)
.customAction(true);
}
}
Loading