Package com.chrt.api.resources.utils.dev
Class RawDevClient
- java.lang.Object
-
- com.chrt.api.resources.utils.dev.RawDevClient
-
public class RawDevClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawDevClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChrtApiHttpResponse<TemplateRes>createTemplateV1(TemplateReq request)Development template endpoint that demonstrates transaction handling and request mirroring.ChrtApiHttpResponse<TemplateRes>createTemplateV1(TemplateReq request, RequestOptions requestOptions)Development template endpoint that demonstrates transaction handling and request mirroring.ChrtApiHttpResponse<CredentialInfoRes>getCredentialInfoV1()Returns the verified caller identity and raw credential claims for development purposes.ChrtApiHttpResponse<CredentialInfoRes>getCredentialInfoV1(RequestOptions requestOptions)Returns the verified caller identity and raw credential claims for development purposes.ChrtApiHttpResponse<java.lang.String>getEmailV1()Retrieves the primary email address for the caller from the authentication service.ChrtApiHttpResponse<java.lang.String>getEmailV1(RequestOptions requestOptions)Retrieves the primary email address for the caller from the authentication service.ChrtApiHttpResponse<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.ChrtApiHttpResponse<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.ChrtApiHttpResponse<java.lang.String>getTemplateV1()Development template endpoint that returns the caller's ID for testing.ChrtApiHttpResponse<java.lang.String>getTemplateV1(RequestOptions requestOptions)Development template endpoint that returns the caller's ID for testing.ChrtApiHttpResponse<java.lang.String>getUserIdV1()(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.ChrtApiHttpResponse<java.lang.String>getUserIdV1(RequestOptions requestOptions)(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.ChrtApiHttpResponse<java.lang.String>getUserIdV2()Extracts and returns the user ID from the authenticated request's JWT token.ChrtApiHttpResponse<java.lang.String>getUserIdV2(RequestOptions requestOptions)Extracts and returns the user ID from the authenticated request's JWT token.ChrtApiHttpResponse<java.lang.Iterable<java.lang.String>>postAgentOrderBuilderStreamV1(OrderBuilderReq request)Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes.ChrtApiHttpResponse<java.lang.Iterable<java.lang.String>>postAgentOrderBuilderStreamV1(OrderBuilderReq request, RequestOptions requestOptions)Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes.ChrtApiHttpResponse<OrderBuilderRes>postAgentOrderBuilderV1(OrderBuilderReq request)Populates an existing order draft with cargo, task groups, and tasks parsed from natural language.ChrtApiHttpResponse<OrderBuilderRes>postAgentOrderBuilderV1(OrderBuilderReq request, RequestOptions requestOptions)Populates an existing order draft with cargo, task groups, and tasks parsed from natural language.ChrtApiHttpResponse<ReadOrderAgentRes>postAgentOrderV1(ReadOrderAgentReq request)Fetches expanded order data and returns an AI-generated natural-language summary.ChrtApiHttpResponse<ReadOrderAgentRes>postAgentOrderV1(ReadOrderAgentReq request, RequestOptions requestOptions)Fetches expanded order data and returns an AI-generated natural-language summary.ChrtApiHttpResponse<AgentRes>postAgentV1()Runs a customer service agent that responds with logistics fun facts (real order data not yet available).ChrtApiHttpResponse<AgentRes>postAgentV1(AgentReq request)Runs a customer service agent that responds with logistics fun facts (real order data not yet available).ChrtApiHttpResponse<AgentRes>postAgentV1(AgentReq request, RequestOptions requestOptions)Runs a customer service agent that responds with logistics fun facts (real order data not yet available).
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawDevClient
public RawDevClient(ClientOptions clientOptions)
-
-
Method Detail
-
postAgentV1
public ChrtApiHttpResponse<AgentRes> postAgentV1()
Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
-
postAgentV1
public ChrtApiHttpResponse<AgentRes> postAgentV1(AgentReq request)
Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
-
postAgentV1
public ChrtApiHttpResponse<AgentRes> postAgentV1(AgentReq request, RequestOptions requestOptions)
Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
-
postAgentOrderV1
public ChrtApiHttpResponse<ReadOrderAgentRes> postAgentOrderV1(ReadOrderAgentReq request)
Fetches expanded order data and returns an AI-generated natural-language summary. | (ReadOrderAgentReq) -> (ReadOrderAgentRes)
-
postAgentOrderV1
public ChrtApiHttpResponse<ReadOrderAgentRes> postAgentOrderV1(ReadOrderAgentReq request, RequestOptions requestOptions)
Fetches expanded order data and returns an AI-generated natural-language summary. | (ReadOrderAgentReq) -> (ReadOrderAgentRes)
-
postAgentOrderBuilderV1
public ChrtApiHttpResponse<OrderBuilderRes> postAgentOrderBuilderV1(OrderBuilderReq request)
Populates an existing order draft with cargo, task groups, and tasks parsed from natural language. The frontend must create the draft first via /shipping/order_drafts/new/v1. | (OrderBuilderReq) -> (OrderBuilderRes)
-
postAgentOrderBuilderV1
public ChrtApiHttpResponse<OrderBuilderRes> postAgentOrderBuilderV1(OrderBuilderReq request, RequestOptions requestOptions)
Populates an existing order draft with cargo, task groups, and tasks parsed from natural language. The frontend must create the draft first via /shipping/order_drafts/new/v1. | (OrderBuilderReq) -> (OrderBuilderRes)
-
postAgentOrderBuilderStreamV1
public ChrtApiHttpResponse<java.lang.Iterable<java.lang.String>> postAgentOrderBuilderStreamV1(OrderBuilderReq request)
Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes. | (OrderBuilderReq) -> SSE stream of OrderBuilderProgressEvent, final OrderBuilderRes
-
postAgentOrderBuilderStreamV1
public ChrtApiHttpResponse<java.lang.Iterable<java.lang.String>> postAgentOrderBuilderStreamV1(OrderBuilderReq request, RequestOptions requestOptions)
Same as /agent/order-builder/v1 but streams progress events via SSE as each workflow step completes. | (OrderBuilderReq) -> SSE stream of OrderBuilderProgressEvent, final OrderBuilderRes
-
getUserIdV1
public ChrtApiHttpResponse<java.lang.String> getUserIdV1()
(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV1
public ChrtApiHttpResponse<java.lang.String> getUserIdV1(RequestOptions requestOptions)
(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV2
public ChrtApiHttpResponse<java.lang.String> getUserIdV2()
Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV2
public ChrtApiHttpResponse<java.lang.String> getUserIdV2(RequestOptions requestOptions)
Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getCredentialInfoV1
public ChrtApiHttpResponse<CredentialInfoRes> getCredentialInfoV1()
Returns the verified caller identity and raw credential claims for development purposes. | () -> (CredentialInfoRes)
-
getCredentialInfoV1
public ChrtApiHttpResponse<CredentialInfoRes> getCredentialInfoV1(RequestOptions requestOptions)
Returns the verified caller identity and raw credential claims for development purposes. | () -> (CredentialInfoRes)
-
getEmailV1
public ChrtApiHttpResponse<java.lang.String> getEmailV1()
Retrieves the primary email address for the caller from the authentication service. | () -> (str)
-
getEmailV1
public ChrtApiHttpResponse<java.lang.String> getEmailV1(RequestOptions requestOptions)
Retrieves the primary email address for the caller from the authentication service. | () -> (str)
-
getTemplateV1
public ChrtApiHttpResponse<java.lang.String> getTemplateV1()
Development template endpoint that returns the caller's ID for testing. | () -> (str)
-
getTemplateV1
public ChrtApiHttpResponse<java.lang.String> getTemplateV1(RequestOptions requestOptions)
Development template endpoint that returns the caller's ID for testing. | () -> (str)
-
createTemplateV1
public ChrtApiHttpResponse<TemplateRes> createTemplateV1(TemplateReq request)
Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
-
createTemplateV1
public ChrtApiHttpResponse<TemplateRes> createTemplateV1(TemplateReq request, RequestOptions requestOptions)
Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
-
getGitInfoV1
public ChrtApiHttpResponse<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 ChrtApiHttpResponse<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])
-
-