Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .spec-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
spec: openapi-v241.22.0
generator: chat v241.22.0
spec: openapi-v241.22.1
generator: chat v241.22.1
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ private ChannelOwnCapability() {}
public static final String SHARE_LOCATION = "share-location";
public static final String SKIP_SLOW_MODE = "skip-slow-mode";
public static final String SLOW_MODE = "slow-mode";
public static final String TRANSCRIBE_VOICE_MESSAGE = "transcribe-voice-message";
public static final String TYPING_EVENTS = "typing-events";
public static final String UPDATE_ANY_MESSAGE = "update-any-message";
public static final String UPDATE_CHANNEL = "update-channel";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public class ModerationDashboardPreferences {
@JsonProperty("disable_flagging_reviewed_entity")
private Boolean disableFlaggingReviewedEntity;

@Nullable
@JsonProperty("disable_review_queue")
private Boolean disableReviewQueue;

@Nullable
@JsonProperty("enforce_shadow_server_side")
private Boolean enforceShadowServerSide;
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/io/getstream/models/TranscribeMessageRequest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* ========================================================================
* WARNING: GENERATED CODE -- DO NOT EDIT!
* ========================================================================
*
* This file was auto-generated by GetStream internal OpenAPI
*
* Any modifications to this file will be lost upon regeneration.
* To make changes, please modify the source templates and regenerate.
*
* ========================================================================
*/
package io.getstream.models;

/**
* Transcribe message Transcribes the voice recordings of a message that have no transcript yet.
* Transcription runs in the background: the transcript arrives in the attachment's
* voice_transcript field with message.updated. A recording that already has a transcript, or is
* already being transcribed, is not transcribed again Sends events: - message.updated
*/
@lombok.Data
@lombok.Builder
@lombok.NoArgsConstructor
public class TranscribeMessageRequest {}
26 changes: 26 additions & 0 deletions src/main/java/io/getstream/models/TranscribeMessageResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* ========================================================================
* WARNING: GENERATED CODE -- DO NOT EDIT!
* ========================================================================
*
* This file was auto-generated by GetStream internal OpenAPI
*
* Any modifications to this file will be lost upon regeneration.
* To make changes, please modify the source templates and regenerate.
*
* ========================================================================
*/
package io.getstream.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/** Basic response information */
@lombok.Data
@lombok.Builder
@lombok.NoArgsConstructor
@lombok.AllArgsConstructor
public class TranscribeMessageResponse {

@JsonProperty("duration")
private String duration;
}
8 changes: 8 additions & 0 deletions src/main/java/io/getstream/services/Chat.java
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,14 @@ public StreamRequest<QueryReactionsResponse> queryReactions(
public StreamRequest<QueryReactionsResponse> queryReactions(@NotNull String id)
throws StreamException;

@NotNull
public StreamRequest<TranscribeMessageResponse> transcribeMessage(
@NotNull String id, TranscribeMessageRequest request) throws StreamException;

@NotNull
public StreamRequest<TranscribeMessageResponse> transcribeMessage(@NotNull String id)
throws StreamException;

@NotNull
public StreamRequest<TranslateMessageResponse> translateMessage(
@NotNull String id, TranslateMessageRequest request) throws StreamException;
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/io/getstream/services/ChatImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,26 @@ public StreamRequest<QueryReactionsResponse> queryReactions(@NotNull String id)
return queryReactions(id, new QueryReactionsRequest());
}

@NotNull
public StreamRequest<TranscribeMessageResponse> transcribeMessage(
@NotNull String id, TranscribeMessageRequest request) throws StreamException {
var pathParams = Map.of("id", id);

return new StreamRequest<TranscribeMessageResponse>(
client,
"POST",
"/api/v2/chat/messages/{id}/transcribe",
request,
pathParams,
new TypeReference<TranscribeMessageResponse>() {});
}

@NotNull
public StreamRequest<TranscribeMessageResponse> transcribeMessage(@NotNull String id)
throws StreamException {
return transcribeMessage(id, new TranscribeMessageRequest());
}

@NotNull
public StreamRequest<TranslateMessageResponse> translateMessage(
@NotNull String id, TranslateMessageRequest request) throws StreamException {
Expand Down
Loading