Package com.chrt.api.resources.utils.dev
Class AsyncDevClient
- java.lang.Object
-
- com.chrt.api.resources.utils.dev.AsyncDevClient
-
public class AsyncDevClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncDevClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<TemplateRes>createTemplateV1(TemplateReq request)Development template endpoint that demonstrates transaction handling and request mirroring.java.util.concurrent.CompletableFuture<TemplateRes>createTemplateV1(TemplateReq request, RequestOptions requestOptions)Development template endpoint that demonstrates transaction handling and request mirroring.java.util.concurrent.CompletableFuture<CredentialInfoRes>getCredentialInfoV1()Returns the verified caller identity and raw credential claims for development purposes.java.util.concurrent.CompletableFuture<CredentialInfoRes>getCredentialInfoV1(RequestOptions requestOptions)Returns the verified caller identity and raw credential claims for development purposes.java.util.concurrent.CompletableFuture<java.lang.String>getEmailV1()Retrieves the primary email address for the caller from the authentication service.java.util.concurrent.CompletableFuture<java.lang.String>getEmailV1(RequestOptions requestOptions)Retrieves the primary email address for the caller from the authentication service.java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.util.Optional<java.lang.String>>>getGitInfoV1()Returns the current GitHub PR number and commit hash for the deployment.java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.util.Optional<java.lang.String>>>getGitInfoV1(RequestOptions requestOptions)Returns the current GitHub PR number and commit hash for the deployment.java.util.concurrent.CompletableFuture<java.lang.String>getTemplateV1()Development template endpoint that returns the caller's ID for testing.java.util.concurrent.CompletableFuture<java.lang.String>getTemplateV1(RequestOptions requestOptions)Development template endpoint that returns the caller's ID for testing.java.util.concurrent.CompletableFuture<java.lang.String>getUserIdV1()(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.java.util.concurrent.CompletableFuture<java.lang.String>getUserIdV1(RequestOptions requestOptions)(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.java.util.concurrent.CompletableFuture<java.lang.String>getUserIdV2()Extracts and returns the user ID from the authenticated request's JWT token.java.util.concurrent.CompletableFuture<java.lang.String>getUserIdV2(RequestOptions requestOptions)Extracts and returns the user ID from the authenticated request's JWT token.java.util.concurrent.CompletableFuture<PingOpenAiRes>postAgentOpenaiPingV1(PingOpenAiReq request)Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response.java.util.concurrent.CompletableFuture<PingOpenAiRes>postAgentOpenaiPingV1(PingOpenAiReq request, RequestOptions requestOptions)Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response.java.util.concurrent.CompletableFuture<PingRes>postAgentPingV1()Runs a lightweight Temporal workflow and activity round trip for developer diagnostics.java.util.concurrent.CompletableFuture<PingRes>postAgentPingV1(PingReq request)Runs a lightweight Temporal workflow and activity round trip for developer diagnostics.java.util.concurrent.CompletableFuture<PingRes>postAgentPingV1(PingReq request, RequestOptions requestOptions)Runs a lightweight Temporal workflow and activity round trip for developer diagnostics.AsyncRawDevClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncDevClient
public AsyncDevClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawDevClient withRawResponse()
Get responses with HTTP metadata like headers
-
postAgentOpenaiPingV1
public java.util.concurrent.CompletableFuture<PingOpenAiRes> postAgentOpenaiPingV1(PingOpenAiReq request)
Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
-
postAgentOpenaiPingV1
public java.util.concurrent.CompletableFuture<PingOpenAiRes> postAgentOpenaiPingV1(PingOpenAiReq request, RequestOptions requestOptions)
Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
-
postAgentPingV1
public java.util.concurrent.CompletableFuture<PingRes> postAgentPingV1()
Runs a lightweight Temporal workflow and activity round trip for developer diagnostics. | (PingReq) -> (PingRes)
-
postAgentPingV1
public java.util.concurrent.CompletableFuture<PingRes> postAgentPingV1(PingReq request)
Runs a lightweight Temporal workflow and activity round trip for developer diagnostics. | (PingReq) -> (PingRes)
-
postAgentPingV1
public java.util.concurrent.CompletableFuture<PingRes> postAgentPingV1(PingReq request, RequestOptions requestOptions)
Runs a lightweight Temporal workflow and activity round trip for developer diagnostics. | (PingReq) -> (PingRes)
-
getUserIdV1
public java.util.concurrent.CompletableFuture<java.lang.String> getUserIdV1()
(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV1
public java.util.concurrent.CompletableFuture<java.lang.String> getUserIdV1(RequestOptions requestOptions)
(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV2
public java.util.concurrent.CompletableFuture<java.lang.String> getUserIdV2()
Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV2
public java.util.concurrent.CompletableFuture<java.lang.String> getUserIdV2(RequestOptions requestOptions)
Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getCredentialInfoV1
public java.util.concurrent.CompletableFuture<CredentialInfoRes> getCredentialInfoV1()
Returns the verified caller identity and raw credential claims for development purposes. | () -> (CredentialInfoRes)
-
getCredentialInfoV1
public java.util.concurrent.CompletableFuture<CredentialInfoRes> getCredentialInfoV1(RequestOptions requestOptions)
Returns the verified caller identity and raw credential claims for development purposes. | () -> (CredentialInfoRes)
-
getEmailV1
public java.util.concurrent.CompletableFuture<java.lang.String> getEmailV1()
Retrieves the primary email address for the caller from the authentication service. | () -> (str)
-
getEmailV1
public java.util.concurrent.CompletableFuture<java.lang.String> getEmailV1(RequestOptions requestOptions)
Retrieves the primary email address for the caller from the authentication service. | () -> (str)
-
getTemplateV1
public java.util.concurrent.CompletableFuture<java.lang.String> getTemplateV1()
Development template endpoint that returns the caller's ID for testing. | () -> (str)
-
getTemplateV1
public java.util.concurrent.CompletableFuture<java.lang.String> getTemplateV1(RequestOptions requestOptions)
Development template endpoint that returns the caller's ID for testing. | () -> (str)
-
createTemplateV1
public java.util.concurrent.CompletableFuture<TemplateRes> createTemplateV1(TemplateReq request)
Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
-
createTemplateV1
public java.util.concurrent.CompletableFuture<TemplateRes> createTemplateV1(TemplateReq request, RequestOptions requestOptions)
Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
-
getGitInfoV1
public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.util.Optional<java.lang.String>>> getGitInfoV1()
Returns the current GitHub PR number and commit hash for the deployment. | () -> (dict[str, str])
-
getGitInfoV1
public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.util.Optional<java.lang.String>>> getGitInfoV1(RequestOptions requestOptions)
Returns the current GitHub PR number and commit hash for the deployment. | () -> (dict[str, str])
-
-