projectId = Optional.empty();
@@ -354,6 +409,8 @@ public Builder from(SubmitRequestDto other) {
edScoreMin(other.getEdScoreMin());
projectId(other.getProjectId());
webhookIds(other.getWebhookIds());
+ fetchAllWatchlistNews(other.getFetchAllWatchlistNews());
+ edAssociationType(other.getEdAssociationType());
return this;
}
@@ -364,6 +421,54 @@ public _FinalStage query(@NotNull String query) {
return this;
}
+ /**
+ * Filter events by entity association type. event_associated keeps only
+ * events where the entity is a direct actor. mention keeps only events
+ * where the entity is merely referenced. Only relevant when
+ * connected_dataset_ids is set.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage edAssociationType(EntityAssociationType edAssociationType) {
+ this.edAssociationType = Optional.ofNullable(edAssociationType);
+ return this;
+ }
+
+ /**
+ * Filter events by entity association type. event_associated keeps only
+ * events where the entity is a direct actor. mention keeps only events
+ * where the entity is merely referenced. Only relevant when
+ * connected_dataset_ids is set.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "ed_association_type", nulls = Nulls.SKIP)
+ public _FinalStage edAssociationType(Optional edAssociationType) {
+ this.edAssociationType = edAssociationType;
+ return this;
+ }
+
+ /**
+ * When true, retrieves all news for connected Company Watchlist entities
+ * without topic filtering. Requires connected_dataset_ids to be set.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage fetchAllWatchlistNews(Boolean fetchAllWatchlistNews) {
+ this.fetchAllWatchlistNews = Optional.ofNullable(fetchAllWatchlistNews);
+ return this;
+ }
+
+ /**
+ * When true, retrieves all news for connected Company Watchlist entities
+ * without topic filtering. Requires connected_dataset_ids to be set.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "fetch_all_watchlist_news", nulls = Nulls.SKIP)
+ public _FinalStage fetchAllWatchlistNews(Optional fetchAllWatchlistNews) {
+ this.fetchAllWatchlistNews = fetchAllWatchlistNews;
+ return this;
+ }
+
/**
* IDs of webhooks to notify when the job completes. Maximum 5 per job.
* @return Reference to {@code this} so that method calls can be chained together.
@@ -587,6 +692,8 @@ public SubmitRequestDto build() {
edScoreMin,
projectId,
webhookIds,
+ fetchAllWatchlistNews,
+ edAssociationType,
additionalProperties);
}
diff --git a/src/main/java/com/newscatcher/catchall/types/ConnectedEntity.java b/src/main/java/com/newscatcher/catchall/types/ConnectedEntity.java
index 57f8063..ff6efea 100644
--- a/src/main/java/com/newscatcher/catchall/types/ConnectedEntity.java
+++ b/src/main/java/com/newscatcher/catchall/types/ConnectedEntity.java
@@ -29,6 +29,8 @@ public final class ConnectedEntity {
private final String relation;
+ private final Optional associationType;
+
private final String type;
private final Optional company;
@@ -40,6 +42,7 @@ private ConnectedEntity(
String name,
int edScore,
String relation,
+ Optional associationType,
String type,
Optional company,
Map additionalProperties) {
@@ -47,6 +50,7 @@ private ConnectedEntity(
this.name = name;
this.edScore = edScore;
this.relation = relation;
+ this.associationType = associationType;
this.type = type;
this.company = company;
this.additionalProperties = additionalProperties;
@@ -90,6 +94,14 @@ public String getRelation() {
return relation;
}
+ /**
+ * @return How the entity relates to the event: event_associated if the entity is a direct actor, mention if merely referenced.
+ */
+ @JsonProperty("association_type")
+ public Optional getAssociationType() {
+ return associationType;
+ }
+
/**
* @return The entity type.
*/
@@ -123,13 +135,15 @@ private boolean equalTo(ConnectedEntity other) {
&& name.equals(other.name)
&& edScore == other.edScore
&& relation.equals(other.relation)
+ && associationType.equals(other.associationType)
&& type.equals(other.type)
&& company.equals(other.company);
}
@java.lang.Override
public int hashCode() {
- return Objects.hash(this.entityId, this.name, this.edScore, this.relation, this.type, this.company);
+ return Objects.hash(
+ this.entityId, this.name, this.edScore, this.relation, this.associationType, this.type, this.company);
}
@java.lang.Override
@@ -191,6 +205,13 @@ public interface _FinalStage {
_FinalStage additionalProperties(Map additionalProperties);
+ /**
+ * How the entity relates to the event: event_associated if the entity is a direct actor, mention if merely referenced.
+ */
+ _FinalStage associationType(Optional associationType);
+
+ _FinalStage associationType(String associationType);
+
/**
* The stored attributes for this entity. Present only when attributes exist in the database.
* The field name matches the value of type — for example, "company" type entities have a company field.
@@ -215,6 +236,8 @@ public static final class Builder
private Optional company = Optional.empty();
+ private Optional associationType = Optional.empty();
+
@JsonAnySetter
private Map additionalProperties = new HashMap<>();
@@ -226,6 +249,7 @@ public Builder from(ConnectedEntity other) {
name(other.getName());
edScore(other.getEdScore());
relation(other.getRelation());
+ associationType(other.getAssociationType());
type(other.getType());
company(other.getCompany());
return this;
@@ -325,9 +349,30 @@ public _FinalStage company(Optional company) {
return this;
}
+ /**
+ * How the entity relates to the event: event_associated if the entity is a direct actor, mention if merely referenced.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage associationType(String associationType) {
+ this.associationType = Optional.ofNullable(associationType);
+ return this;
+ }
+
+ /**
+ * How the entity relates to the event: event_associated if the entity is a direct actor, mention if merely referenced.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "association_type", nulls = Nulls.SKIP)
+ public _FinalStage associationType(Optional associationType) {
+ this.associationType = associationType;
+ return this;
+ }
+
@java.lang.Override
public ConnectedEntity build() {
- return new ConnectedEntity(entityId, name, edScore, relation, type, company, additionalProperties);
+ return new ConnectedEntity(
+ entityId, name, edScore, relation, associationType, type, company, additionalProperties);
}
@java.lang.Override
diff --git a/src/main/java/com/newscatcher/catchall/types/EntityAssociationType.java b/src/main/java/com/newscatcher/catchall/types/EntityAssociationType.java
new file mode 100644
index 0000000..354c9a5
--- /dev/null
+++ b/src/main/java/com/newscatcher/catchall/types/EntityAssociationType.java
@@ -0,0 +1,85 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.newscatcher.catchall.types;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+public final class EntityAssociationType {
+ public static final EntityAssociationType EVENT_ASSOCIATED =
+ new EntityAssociationType(Value.EVENT_ASSOCIATED, "event_associated");
+
+ public static final EntityAssociationType MENTION = new EntityAssociationType(Value.MENTION, "mention");
+
+ private final Value value;
+
+ private final String string;
+
+ EntityAssociationType(Value value, String string) {
+ this.value = value;
+ this.string = string;
+ }
+
+ public Value getEnumValue() {
+ return value;
+ }
+
+ @java.lang.Override
+ @JsonValue
+ public String toString() {
+ return this.string;
+ }
+
+ @java.lang.Override
+ public boolean equals(Object other) {
+ return (this == other)
+ || (other instanceof EntityAssociationType
+ && this.string.equals(((EntityAssociationType) other).string));
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return this.string.hashCode();
+ }
+
+ public T visit(Visitor visitor) {
+ switch (value) {
+ case EVENT_ASSOCIATED:
+ return visitor.visitEventAssociated();
+ case MENTION:
+ return visitor.visitMention();
+ case UNKNOWN:
+ default:
+ return visitor.visitUnknown(string);
+ }
+ }
+
+ @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
+ public static EntityAssociationType valueOf(String value) {
+ switch (value) {
+ case "event_associated":
+ return EVENT_ASSOCIATED;
+ case "mention":
+ return MENTION;
+ default:
+ return new EntityAssociationType(Value.UNKNOWN, value);
+ }
+ }
+
+ public enum Value {
+ MENTION,
+
+ EVENT_ASSOCIATED,
+
+ UNKNOWN
+ }
+
+ public interface Visitor {
+ T visitMention();
+
+ T visitEventAssociated();
+
+ T visitUnknown(String unknownType);
+ }
+}
From 39b64d5afb123b6e39db0889c3ee8d94181e1d05 Mon Sep 17 00:00:00 2001
From: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Date: Wed, 10 Jun 2026 12:30:18 +0000
Subject: [PATCH 2/2] [fern-autoversion] SDK regeneration
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
🌿 Generated with Fern
---
.fern/metadata.json | 2 +-
README.md | 4 ++--
build.gradle | 4 ++--
.../java/com/newscatcher/catchall/core/ClientOptions.java | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.fern/metadata.json b/.fern/metadata.json
index 293e3fd..670b5e8 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -12,5 +12,5 @@
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
- "sdkVersion": "0.0.0-fern-placeholder"
+ "sdkVersion": "3.0.1"
}
\ No newline at end of file
diff --git a/README.md b/README.md
index 21ad583..de3aa29 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ Add the dependency in your `build.gradle` file:
```groovy
dependencies {
- implementation 'com.newscatcherapi:newscatcher-catchall-sdk:0.0.0-fern-placeholder'
+ implementation 'com.newscatcherapi:newscatcher-catchall-sdk:3.0.1'
}
```
@@ -47,7 +47,7 @@ Add the dependency in your `pom.xml` file:
com.newscatcherapi
newscatcher-catchall-sdk
- 0.0.0-fern-placeholder
+ 3.0.1
```
diff --git a/build.gradle b/build.gradle
index e611a96..7e47163 100644
--- a/build.gradle
+++ b/build.gradle
@@ -47,7 +47,7 @@ java {
group = 'com.newscatcherapi'
-version = '0.0.0-fern-placeholder'
+version = '3.0.1'
jar {
dependsOn(":generatePomFileForMavenPublication")
@@ -78,7 +78,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.newscatcherapi'
artifactId = 'newscatcher-catchall-sdk'
- version = '0.0.0-fern-placeholder'
+ version = '3.0.1'
from components.java
pom {
name = 'newscatcher'
diff --git a/src/main/java/com/newscatcher/catchall/core/ClientOptions.java b/src/main/java/com/newscatcher/catchall/core/ClientOptions.java
index 897675d..4a5c40b 100644
--- a/src/main/java/com/newscatcher/catchall/core/ClientOptions.java
+++ b/src/main/java/com/newscatcher/catchall/core/ClientOptions.java
@@ -38,10 +38,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap() {
{
- put("User-Agent", "com.newscatcherapi:newscatcher-catchall-sdk/0.0.0-fern-placeholder");
+ put("User-Agent", "com.newscatcherapi:newscatcher-catchall-sdk/3.0.1");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.newscatcher.fern:api-sdk");
- put("X-Fern-SDK-Version", "0.0.0-fern-placeholder");
+ put("X-Fern-SDK-Version", "3.0.1");
}
});
this.headerSuppliers = headerSuppliers;