Skip to content

🌿 Fern Regeneration -- June 24, 2025 #343

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

Merged
merged 1 commit into from
Jun 24, 2025
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,24 @@ Intercom client = Intercom
### Retries

The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
retry limit (default: 2).

A request is deemed retriable when any of the following HTTP status codes is returned:
A request is deemed retryable when any of the following HTTP status codes is returned:

- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)

Use the `maxRetries` request option to configure this behavior.
Use the `maxRetries` client option to configure this behavior.

```java
import com.intercom.api.core.RequestOptions;
import com.intercom.api.Intercom;

client.articles().create(
...,
RequestOptions
.builder()
.maxRetries(1)
.build()
);
Intercom client = Intercom
.builder()
.maxRetries(1)
.build();
```

### Timeouts
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ java {

group = 'io.intercom'

version = '3.0.0-alpha7'
version = '3.0.0'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -77,7 +77,7 @@ publishing {
maven(MavenPublication) {
groupId = 'io.intercom'
artifactId = 'intercom-java'
version = '3.0.0-alpha7'
version = '3.0.0'
from components.java
pom {
name = 'intercom'
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
CLASSPATH="\\\"\\\""


# Determine the Java command to use to start the JVM.
Expand Down Expand Up @@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"

# Stop when "xargs" is not available.
Expand Down
4 changes: 2 additions & 2 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ goto fail
:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
set CLASSPATH=


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/intercom/api/AsyncIntercom.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.intercom.api.resources.companies.AsyncCompaniesClient;
import com.intercom.api.resources.contacts.AsyncContactsClient;
import com.intercom.api.resources.conversations.AsyncConversationsClient;
import com.intercom.api.resources.customchannelevents.AsyncCustomChannelEventsClient;
import com.intercom.api.resources.dataattributes.AsyncDataAttributesClient;
import com.intercom.api.resources.dataexport.AsyncDataExportClient;
import com.intercom.api.resources.events.AsyncEventsClient;
Expand All @@ -25,6 +24,7 @@
import com.intercom.api.resources.teams.AsyncTeamsClient;
import com.intercom.api.resources.tickets.AsyncTicketsClient;
import com.intercom.api.resources.tickettypes.AsyncTicketTypesClient;
import com.intercom.api.resources.unstable.AsyncUnstableClient;
import com.intercom.api.resources.visitors.AsyncVisitorsClient;
import java.util.function.Supplier;

Expand Down Expand Up @@ -69,10 +69,10 @@ public class AsyncIntercom {

protected final Supplier<AsyncVisitorsClient> visitorsClient;

protected final Supplier<AsyncCustomChannelEventsClient> customChannelEventsClient;

protected final Supplier<AsyncNewsClient> newsClient;

protected final Supplier<AsyncUnstableClient> unstableClient;

public AsyncIntercom(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.adminsClient = Suppliers.memoize(() -> new AsyncAdminsClient(clientOptions));
Expand All @@ -94,8 +94,8 @@ public AsyncIntercom(ClientOptions clientOptions) {
this.ticketTypesClient = Suppliers.memoize(() -> new AsyncTicketTypesClient(clientOptions));
this.ticketsClient = Suppliers.memoize(() -> new AsyncTicketsClient(clientOptions));
this.visitorsClient = Suppliers.memoize(() -> new AsyncVisitorsClient(clientOptions));
this.customChannelEventsClient = Suppliers.memoize(() -> new AsyncCustomChannelEventsClient(clientOptions));
this.newsClient = Suppliers.memoize(() -> new AsyncNewsClient(clientOptions));
this.unstableClient = Suppliers.memoize(() -> new AsyncUnstableClient(clientOptions));
}

public AsyncAdminsClient admins() {
Expand Down Expand Up @@ -174,14 +174,14 @@ public AsyncVisitorsClient visitors() {
return this.visitorsClient.get();
}

public AsyncCustomChannelEventsClient customChannelEvents() {
return this.customChannelEventsClient.get();
}

public AsyncNewsClient news() {
return this.newsClient.get();
}

public AsyncUnstableClient unstable() {
return this.unstableClient.get();
}

public static AsyncIntercomBuilder builder() {
return new AsyncIntercomBuilder();
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/intercom/api/Intercom.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.intercom.api.resources.companies.CompaniesClient;
import com.intercom.api.resources.contacts.ContactsClient;
import com.intercom.api.resources.conversations.ConversationsClient;
import com.intercom.api.resources.customchannelevents.CustomChannelEventsClient;
import com.intercom.api.resources.dataattributes.DataAttributesClient;
import com.intercom.api.resources.dataexport.DataExportClient;
import com.intercom.api.resources.events.EventsClient;
Expand All @@ -25,6 +24,7 @@
import com.intercom.api.resources.teams.TeamsClient;
import com.intercom.api.resources.tickets.TicketsClient;
import com.intercom.api.resources.tickettypes.TicketTypesClient;
import com.intercom.api.resources.unstable.UnstableClient;
import com.intercom.api.resources.visitors.VisitorsClient;
import java.util.function.Supplier;

Expand Down Expand Up @@ -69,10 +69,10 @@ public class Intercom {

protected final Supplier<VisitorsClient> visitorsClient;

protected final Supplier<CustomChannelEventsClient> customChannelEventsClient;

protected final Supplier<NewsClient> newsClient;

protected final Supplier<UnstableClient> unstableClient;

public Intercom(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.adminsClient = Suppliers.memoize(() -> new AdminsClient(clientOptions));
Expand All @@ -94,8 +94,8 @@ public Intercom(ClientOptions clientOptions) {
this.ticketTypesClient = Suppliers.memoize(() -> new TicketTypesClient(clientOptions));
this.ticketsClient = Suppliers.memoize(() -> new TicketsClient(clientOptions));
this.visitorsClient = Suppliers.memoize(() -> new VisitorsClient(clientOptions));
this.customChannelEventsClient = Suppliers.memoize(() -> new CustomChannelEventsClient(clientOptions));
this.newsClient = Suppliers.memoize(() -> new NewsClient(clientOptions));
this.unstableClient = Suppliers.memoize(() -> new UnstableClient(clientOptions));
}

public AdminsClient admins() {
Expand Down Expand Up @@ -174,14 +174,14 @@ public VisitorsClient visitors() {
return this.visitorsClient.get();
}

public CustomChannelEventsClient customChannelEvents() {
return this.customChannelEventsClient.get();
}

public NewsClient news() {
return this.newsClient.get();
}

public UnstableClient unstable() {
return this.unstableClient.get();
}

public static IntercomBuilder builder() {
return new IntercomBuilder();
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/intercom/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "io.intercom:intercom-java/3.0.0-alpha7");
put("User-Agent", "io.intercom:intercom-java/3.0.0");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.intercom.fern:api-sdk");
put("X-Fern-SDK-Version", "3.0.0-alpha7");
put("X-Fern-SDK-Version", "3.0.0");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,25 @@ public static AdminIdStage builder() {
}

public interface AdminIdStage {
/**
* The unique identifier of a given admin
*/
AwayModeEnabledStage adminId(@NotNull String adminId);

Builder from(ConfigureAwayAdminRequest other);
}

public interface AwayModeEnabledStage {
/**
* Set to "true" to change the status of the admin to away.
*/
AwayModeReassignStage awayModeEnabled(boolean awayModeEnabled);
}

public interface AwayModeReassignStage {
/**
* Set to "true" to assign any new conversation replies to your default inbox.
*/
_FinalStage awayModeReassign(boolean awayModeReassign);
}

Expand Down Expand Up @@ -134,7 +143,7 @@ public Builder from(ConfigureAwayAdminRequest other) {
}

/**
* <p>The unique identifier of a given admin</p>
* The unique identifier of a given admin<p>The unique identifier of a given admin</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand All @@ -145,7 +154,7 @@ public AwayModeEnabledStage adminId(@NotNull String adminId) {
}

/**
* <p>Set to &quot;true&quot; to change the status of the admin to away.</p>
* Set to "true" to change the status of the admin to away.<p>Set to &quot;true&quot; to change the status of the admin to away.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand All @@ -156,7 +165,7 @@ public AwayModeReassignStage awayModeEnabled(boolean awayModeEnabled) {
}

/**
* <p>Set to &quot;true&quot; to assign any new conversation replies to your default inbox.</p>
* Set to "true" to assign any new conversation replies to your default inbox.<p>Set to &quot;true&quot; to assign any new conversation replies to your default inbox.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public static AdminIdStage builder() {
}

public interface AdminIdStage {
/**
* The unique identifier of a given admin
*/
_FinalStage adminId(@NotNull String adminId);

Builder from(FindAdminRequest other);
Expand All @@ -91,7 +94,7 @@ public Builder from(FindAdminRequest other) {
}

/**
* <p>The unique identifier of a given admin</p>
* The unique identifier of a given admin<p>The unique identifier of a given admin</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public static CreatedAtAfterStage builder() {
}

public interface CreatedAtAfterStage {
/**
* The start date that you request data for. It must be formatted as a UNIX timestamp.
*/
_FinalStage createdAtAfter(@NotNull String createdAtAfter);

Builder from(ListAllActivityLogsRequest other);
Expand All @@ -88,6 +91,9 @@ public interface CreatedAtAfterStage {
public interface _FinalStage {
ListAllActivityLogsRequest build();

/**
* <p>The end date that you request data for. It must be formatted as a UNIX timestamp.</p>
*/
_FinalStage createdAtBefore(Optional<String> createdAtBefore);

_FinalStage createdAtBefore(String createdAtBefore);
Expand All @@ -112,7 +118,7 @@ public Builder from(ListAllActivityLogsRequest other) {
}

/**
* <p>The start date that you request data for. It must be formatted as a UNIX timestamp.</p>
* The start date that you request data for. It must be formatted as a UNIX timestamp.<p>The start date that you request data for. It must be formatted as a UNIX timestamp.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand All @@ -132,6 +138,9 @@ public _FinalStage createdAtBefore(String createdAtBefore) {
return this;
}

/**
* <p>The end date that you request data for. It must be formatted as a UNIX timestamp.</p>
*/
@java.lang.Override
@JsonSetter(value = "created_at_before", nulls = Nulls.SKIP)
public _FinalStage createdAtBefore(Optional<String> createdAtBefore) {
Expand Down
Loading
Loading