Package ai.shipeasy.admin.api
Class CommentsApi
java.lang.Object
ai.shipeasy.admin.api.CommentsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOpsComment(String handle, CreateOpsCommentRequest createOpsCommentRequest, String xProjectId) Comment on an item Append a comment to a queue item's thread.okhttp3.CallcreateOpsCommentAsync(String handle, CreateOpsCommentRequest createOpsCommentRequest, String xProjectId, ApiCallback<CreateOpsCommentResponse> _callback) Comment on an item (asynchronously) Append a comment to a queue item's thread.okhttp3.CallcreateOpsCommentCall(String handle, CreateOpsCommentRequest createOpsCommentRequest, String xProjectId, ApiCallback _callback) Build call for createOpsCommentcreateOpsCommentWithHttpInfo(String handle, CreateOpsCommentRequest createOpsCommentRequest, String xProjectId) Comment on an item Append a comment to a queue item's thread.intlistOpsComments(String handle, String xProjectId) List an item's comments List the comment thread on a queue item, oldest first.okhttp3.CalllistOpsCommentsAsync(String handle, String xProjectId, ApiCallback<ListOpsCommentsResponse> _callback) List an item's comments (asynchronously) List the comment thread on a queue item, oldest first.okhttp3.CalllistOpsCommentsCall(String handle, String xProjectId, ApiCallback _callback) Build call for listOpsCommentslistOpsCommentsWithHttpInfo(String handle, String xProjectId) List an item's comments List the comment thread on a queue item, oldest first.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
CommentsApi
public CommentsApi() -
CommentsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createOpsCommentCall
public okhttp3.Call createOpsCommentCall(@Nonnull String handle, @Nonnull CreateOpsCommentRequest createOpsCommentRequest, @Nullable String xProjectId, ApiCallback _callback) throws ApiException Build call for createOpsComment- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)createOpsCommentRequest- (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createOpsComment
public CreateOpsCommentResponse createOpsComment(@Nonnull String handle, @Nonnull CreateOpsCommentRequest createOpsCommentRequest, @Nullable String xProjectId) throws ApiException Comment on an item Append a comment to a queue item's thread. The body is markdown (mentions like `@teammate` notify that person; `@shipeasy` asks Jarvis, the AI agent, to reply). Pass `parentId` to reply under an existing top-level comment (one level of threading — a reply to a reply attaches to the same parent). Create-only and append-only, so it is safe for restricted ops keys — the same channel the ops loop and Jarvis use to leave a note on an item.- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)createOpsCommentRequest- (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)- Returns:
- CreateOpsCommentResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createOpsCommentWithHttpInfo
public ApiResponse<CreateOpsCommentResponse> createOpsCommentWithHttpInfo(@Nonnull String handle, @Nonnull CreateOpsCommentRequest createOpsCommentRequest, @Nullable String xProjectId) throws ApiException Comment on an item Append a comment to a queue item's thread. The body is markdown (mentions like `@teammate` notify that person; `@shipeasy` asks Jarvis, the AI agent, to reply). Pass `parentId` to reply under an existing top-level comment (one level of threading — a reply to a reply attaches to the same parent). Create-only and append-only, so it is safe for restricted ops keys — the same channel the ops loop and Jarvis use to leave a note on an item.- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)createOpsCommentRequest- (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)- Returns:
- ApiResponse<CreateOpsCommentResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createOpsCommentAsync
public okhttp3.Call createOpsCommentAsync(@Nonnull String handle, @Nonnull CreateOpsCommentRequest createOpsCommentRequest, @Nullable String xProjectId, ApiCallback<CreateOpsCommentResponse> _callback) throws ApiException Comment on an item (asynchronously) Append a comment to a queue item's thread. The body is markdown (mentions like `@teammate` notify that person; `@shipeasy` asks Jarvis, the AI agent, to reply). Pass `parentId` to reply under an existing top-level comment (one level of threading — a reply to a reply attaches to the same parent). Create-only and append-only, so it is safe for restricted ops keys — the same channel the ops loop and Jarvis use to leave a note on an item.- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)createOpsCommentRequest- (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
listOpsCommentsCall
public okhttp3.Call listOpsCommentsCall(@Nonnull String handle, @Nullable String xProjectId, ApiCallback _callback) throws ApiException Build call for listOpsComments- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
listOpsComments
public ListOpsCommentsResponse listOpsComments(@Nonnull String handle, @Nullable String xProjectId) throws ApiException List an item's comments List the comment thread on a queue item, oldest first. Each comment carries its author (a teammate email, or `system` for a comment authored by Jarvis — the AI agent), its markdown body, and `parentId` for the single level of threaded replies. Removed comments are omitted. **Use case:** Read the discussion on an item before replying or acting on it.- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)- Returns:
- ListOpsCommentsResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listOpsCommentsWithHttpInfo
public ApiResponse<ListOpsCommentsResponse> listOpsCommentsWithHttpInfo(@Nonnull String handle, @Nullable String xProjectId) throws ApiException List an item's comments List the comment thread on a queue item, oldest first. Each comment carries its author (a teammate email, or `system` for a comment authored by Jarvis — the AI agent), its markdown body, and `parentId` for the single level of threaded replies. Removed comments are omitted. **Use case:** Read the discussion on an item before replying or acting on it.- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)- Returns:
- ApiResponse<ListOpsCommentsResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
listOpsCommentsAsync
public okhttp3.Call listOpsCommentsAsync(@Nonnull String handle, @Nullable String xProjectId, ApiCallback<ListOpsCommentsResponse> _callback) throws ApiException List an item's comments (asynchronously) List the comment thread on a queue item, oldest first. Each comment carries its author (a teammate email, or `system` for a comment authored by Jarvis — the AI agent), its markdown body, and `parentId` for the single level of threaded replies. Removed comments are omitted. **Use case:** Read the discussion on an item before replying or acting on it.- Parameters:
handle- Per-project item number (e.g. `7`) or the full ops item id. (required)xProjectId- Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it). (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-