Skip to content

Commit 9102ecd

Browse files
committed
Update server capabilities DTO
1 parent 36bdc78 commit 9102ecd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Client/Common/ServerCapabilities.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ final class ServerCapabilities
4343
* it in history
4444
* @param bool $countGroupByExecutionStatus
4545
* True if the server supports count group by execution status
46-
* (-- api-linter: core::0140::prepositions=disabled --)
46+
* @param bool $nexus
47+
* True if the server supports Nexus operations.
48+
* This flag is dependent both on server version and for Nexus to be enabled via server configuration.
4749
*/
4850
public function __construct(
4951
public readonly bool $signalAndQueryHeader = false,
@@ -56,6 +58,7 @@ public function __construct(
5658
public readonly bool $eagerWorkflowStart = false,
5759
public readonly bool $sdkMetadata = false,
5860
public readonly bool $countGroupByExecutionStatus = false,
61+
public readonly bool $nexus = false,
5962
) {}
6063

6164
/**

src/Client/GRPC/BaseClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ public function getServerCapabilities(): ?ServerCapabilities
202202
eagerWorkflowStart: $capabilities->getEagerWorkflowStart(),
203203
sdkMetadata: $capabilities->getSdkMetadata(),
204204
countGroupByExecutionStatus: $capabilities->getCountGroupByExecutionStatus(),
205+
nexus: $capabilities->getNexus(),
205206
);
206207
} catch (ServiceClientException $e) {
207208
if ($e->getCode() === StatusCode::UNIMPLEMENTED) {

0 commit comments

Comments
 (0)