Package ai.shipeasy.admin.api
Class TriggerApi
java.lang.Object
ai.shipeasy.admin.api.TriggerApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTriggerConnector(CreateTriggerConnectorRequest createTriggerConnectorRequest, String xProjectId) Create a recurring coding-agent trigger Creates (or idempotently updates) a coding-agent **trigger** connector — the recurring, unattended run that burns down the ops queue in `--pr` mode.okhttp3.CallcreateTriggerConnectorAsync(CreateTriggerConnectorRequest createTriggerConnectorRequest, String xProjectId, ApiCallback<CreateConnectorResponse> _callback) Create a recurring coding-agent trigger (asynchronously) Creates (or idempotently updates) a coding-agent **trigger** connector — the recurring, unattended run that burns down the ops queue in `--pr` mode.okhttp3.CallcreateTriggerConnectorCall(CreateTriggerConnectorRequest createTriggerConnectorRequest, String xProjectId, ApiCallback _callback) Build call for createTriggerConnectorcreateTriggerConnectorWithHttpInfo(CreateTriggerConnectorRequest createTriggerConnectorRequest, String xProjectId) Create a recurring coding-agent trigger Creates (or idempotently updates) a coding-agent **trigger** connector — the recurring, unattended run that burns down the ops queue in `--pr` mode.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
TriggerApi
public TriggerApi() -
TriggerApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createTriggerConnectorCall
public okhttp3.Call createTriggerConnectorCall(@Nonnull CreateTriggerConnectorRequest createTriggerConnectorRequest, @Nullable String xProjectId, ApiCallback _callback) throws ApiException Build call for createTriggerConnector- Parameters:
createTriggerConnectorRequest- (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
-
createTriggerConnector
public CreateConnectorResponse createTriggerConnector(@Nonnull CreateTriggerConnectorRequest createTriggerConnectorRequest, @Nullable String xProjectId) throws ApiException Create a recurring coding-agent trigger Creates (or idempotently updates) a coding-agent **trigger** connector — the recurring, unattended run that burns down the ops queue in `--pr` mode. Discriminated on `provider`; only the four Shipeasy-fireable providers are accepted (`claude_trigger`, `cursor_trigger`, `copilot_trigger`, `jules_trigger`). Config + credential(s) arrive together; creates are idempotent by the provider's natural key, so re-creating updates the existing row. Platforms without a fire endpoint (Codex, Windsurf, Cline, OpenClaw, OpenCode, Continue) cannot be created here — they are scheduled on their own platform (typically a GitHub Actions `schedule:` cron running the platform's headless CLI with the trigger prompt). **Use cases** - **Register a Claude routine** — after `RemoteTrigger {action:\"create\"}` returns `trig_…`, `{ \"provider\": \"claude_trigger\", \"config\": { \"routineId\": \"trig_…\" } }` (tokenless is fine; add the fire token later). - **Cold Cursor/Jules run** — repo coordinates + both keys; Shipeasy launches the run and the PR opens via the provider's GitHub App. - **Copilot cloud agent** — repo + a Copilot-licensed user PAT with the \"Agent tasks\" permission.- Parameters:
createTriggerConnectorRequest- (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:
- CreateConnectorResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createTriggerConnectorWithHttpInfo
public ApiResponse<CreateConnectorResponse> createTriggerConnectorWithHttpInfo(@Nonnull CreateTriggerConnectorRequest createTriggerConnectorRequest, @Nullable String xProjectId) throws ApiException Create a recurring coding-agent trigger Creates (or idempotently updates) a coding-agent **trigger** connector — the recurring, unattended run that burns down the ops queue in `--pr` mode. Discriminated on `provider`; only the four Shipeasy-fireable providers are accepted (`claude_trigger`, `cursor_trigger`, `copilot_trigger`, `jules_trigger`). Config + credential(s) arrive together; creates are idempotent by the provider's natural key, so re-creating updates the existing row. Platforms without a fire endpoint (Codex, Windsurf, Cline, OpenClaw, OpenCode, Continue) cannot be created here — they are scheduled on their own platform (typically a GitHub Actions `schedule:` cron running the platform's headless CLI with the trigger prompt). **Use cases** - **Register a Claude routine** — after `RemoteTrigger {action:\"create\"}` returns `trig_…`, `{ \"provider\": \"claude_trigger\", \"config\": { \"routineId\": \"trig_…\" } }` (tokenless is fine; add the fire token later). - **Cold Cursor/Jules run** — repo coordinates + both keys; Shipeasy launches the run and the PR opens via the provider's GitHub App. - **Copilot cloud agent** — repo + a Copilot-licensed user PAT with the \"Agent tasks\" permission.- Parameters:
createTriggerConnectorRequest- (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<CreateConnectorResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createTriggerConnectorAsync
public okhttp3.Call createTriggerConnectorAsync(@Nonnull CreateTriggerConnectorRequest createTriggerConnectorRequest, @Nullable String xProjectId, ApiCallback<CreateConnectorResponse> _callback) throws ApiException Create a recurring coding-agent trigger (asynchronously) Creates (or idempotently updates) a coding-agent **trigger** connector — the recurring, unattended run that burns down the ops queue in `--pr` mode. Discriminated on `provider`; only the four Shipeasy-fireable providers are accepted (`claude_trigger`, `cursor_trigger`, `copilot_trigger`, `jules_trigger`). Config + credential(s) arrive together; creates are idempotent by the provider's natural key, so re-creating updates the existing row. Platforms without a fire endpoint (Codex, Windsurf, Cline, OpenClaw, OpenCode, Continue) cannot be created here — they are scheduled on their own platform (typically a GitHub Actions `schedule:` cron running the platform's headless CLI with the trigger prompt). **Use cases** - **Register a Claude routine** — after `RemoteTrigger {action:\"create\"}` returns `trig_…`, `{ \"provider\": \"claude_trigger\", \"config\": { \"routineId\": \"trig_…\" } }` (tokenless is fine; add the fire token later). - **Cold Cursor/Jules run** — repo coordinates + both keys; Shipeasy launches the run and the PR opens via the provider's GitHub App. - **Copilot cloud agent** — repo + a Copilot-licensed user PAT with the \"Agent tasks\" permission.- Parameters:
createTriggerConnectorRequest- (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
-