Package build.cursed.genapi.forgejo.api
Class ActivitypubApi
java.lang.Object
build.cursed.genapi.forgejo.api.ActivitypubApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the instance's Actorokhttp3.CallactivitypubInstanceActorAsync(ApiCallback<ActivityPub> _callback) Returns the instance's Actor (asynchronously)okhttp3.CallactivitypubInstanceActorCall(ApiCallback _callback) Build call for activitypubInstanceActorvoidSend to the inboxokhttp3.CallactivitypubInstanceActorInboxAsync(ApiCallback<Void> _callback) Send to the inbox (asynchronously)okhttp3.CallactivitypubInstanceActorInboxCall(ApiCallback _callback) Build call for activitypubInstanceActorInboxSend to the inboxDisplay the outbox (always empty)okhttp3.CallactivitypubInstanceActorOutboxAsync(ApiCallback<Object> _callback) Display the outbox (always empty) (asynchronously)okhttp3.CallactivitypubInstanceActorOutboxCall(ApiCallback _callback) Build call for activitypubInstanceActorOutboxDisplay the outbox (always empty)Returns the instance's ActoractivitypubPerson(Long userId) Returns the Person actor for a useractivitypubPersonActivity(Integer userId, Integer activityId) Get a specific activity of the userokhttp3.CallactivitypubPersonActivityAsync(Integer userId, Integer activityId, ApiCallback<ActivityPub> _callback) Get a specific activity of the user (asynchronously)okhttp3.CallactivitypubPersonActivityCall(Integer userId, Integer activityId, ApiCallback _callback) Build call for activitypubPersonActivityactivitypubPersonActivityNote(Integer userId, Integer activityId) Get a specific activity object of the userokhttp3.CallactivitypubPersonActivityNoteAsync(Integer userId, Integer activityId, ApiCallback<ActivityPub> _callback) Get a specific activity object of the user (asynchronously)okhttp3.CallactivitypubPersonActivityNoteCall(Integer userId, Integer activityId, ApiCallback _callback) Build call for activitypubPersonActivityNoteactivitypubPersonActivityNoteWithHttpInfo(Integer userId, Integer activityId) Get a specific activity object of the useractivitypubPersonActivityWithHttpInfo(Integer userId, Integer activityId) Get a specific activity of the userokhttp3.CallactivitypubPersonAsync(Long userId, ApiCallback<ActivityPub> _callback) Returns the Person actor for a user (asynchronously)okhttp3.CallactivitypubPersonCall(Long userId, ApiCallback _callback) Build call for activitypubPersonactivitypubPersonFeed(Integer userId) List the user's recorded activityokhttp3.CallactivitypubPersonFeedAsync(Integer userId, ApiCallback<Object> _callback) List the user's recorded activity (asynchronously)okhttp3.CallactivitypubPersonFeedCall(Integer userId, ApiCallback _callback) Build call for activitypubPersonFeedList the user's recorded activityvoidactivitypubPersonInbox(Long userId) Send to the inboxokhttp3.CallactivitypubPersonInboxAsync(Long userId, ApiCallback<Void> _callback) Send to the inbox (asynchronously)okhttp3.CallactivitypubPersonInboxCall(Long userId, ApiCallback _callback) Build call for activitypubPersonInboxSend to the inboxactivitypubPersonWithHttpInfo(Long userId) Returns the Person actor for a useractivitypubRepository(Long repositoryId) Returns the Repository actor for a repookhttp3.CallactivitypubRepositoryAsync(Long repositoryId, ApiCallback<ActivityPub> _callback) Returns the Repository actor for a repo (asynchronously)okhttp3.CallactivitypubRepositoryCall(Long repositoryId, ApiCallback _callback) Build call for activitypubRepositoryvoidactivitypubRepositoryInbox(Long repositoryId, Object body) Send to the inboxokhttp3.CallactivitypubRepositoryInboxAsync(Long repositoryId, Object body, ApiCallback<Void> _callback) Send to the inbox (asynchronously)okhttp3.CallactivitypubRepositoryInboxCall(Long repositoryId, Object body, ApiCallback _callback) Build call for activitypubRepositoryInboxactivitypubRepositoryInboxWithHttpInfo(Long repositoryId, Object body) Send to the inboxactivitypubRepositoryOutbox(Long repositoryId) Display the outboxokhttp3.CallactivitypubRepositoryOutboxAsync(Long repositoryId, ApiCallback<Object> _callback) Display the outbox (asynchronously)okhttp3.CallactivitypubRepositoryOutboxCall(Long repositoryId, ApiCallback _callback) Build call for activitypubRepositoryOutboxactivitypubRepositoryOutboxWithHttpInfo(Long repositoryId) Display the outboxactivitypubRepositoryWithHttpInfo(Long repositoryId) Returns the Repository actor for a repointvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
ActivitypubApi
public ActivitypubApi() -
ActivitypubApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
activitypubInstanceActorCall
Build call for activitypubInstanceActor- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubInstanceActor
Returns the instance's Actor- Returns:
- ActivityPub
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubInstanceActorWithHttpInfo
Returns the instance's Actor- Returns:
- ApiResponse<ActivityPub>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubInstanceActorAsync
public okhttp3.Call activitypubInstanceActorAsync(ApiCallback<ActivityPub> _callback) throws ApiException Returns the instance's Actor (asynchronously)- Parameters:
_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- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubInstanceActorInboxCall
Build call for activitypubInstanceActorInbox- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubInstanceActorInbox
Send to the inbox- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubInstanceActorInboxWithHttpInfo
Send to the inbox- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubInstanceActorInboxAsync
public okhttp3.Call activitypubInstanceActorInboxAsync(ApiCallback<Void> _callback) throws ApiException Send to the inbox (asynchronously)- Parameters:
_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- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubInstanceActorOutboxCall
Build call for activitypubInstanceActorOutbox- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-
activitypubInstanceActorOutbox
Display the outbox (always empty)- Returns:
- Object
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-
activitypubInstanceActorOutboxWithHttpInfo
Display the outbox (always empty)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-
activitypubInstanceActorOutboxAsync
public okhttp3.Call activitypubInstanceActorOutboxAsync(ApiCallback<Object> _callback) throws ApiException Display the outbox (always empty) (asynchronously)- Parameters:
_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- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-
activitypubPersonCall
public okhttp3.Call activitypubPersonCall(@Nonnull Long userId, ApiCallback _callback) throws ApiException Build call for activitypubPerson- Parameters:
userId- user ID of the user (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPerson
Returns the Person actor for a user- Parameters:
userId- user ID of the user (required)- Returns:
- ActivityPub
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonWithHttpInfo
public ApiResponse<ActivityPub> activitypubPersonWithHttpInfo(@Nonnull Long userId) throws ApiException Returns the Person actor for a user- Parameters:
userId- user ID of the user (required)- Returns:
- ApiResponse<ActivityPub>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonAsync
public okhttp3.Call activitypubPersonAsync(@Nonnull Long userId, ApiCallback<ActivityPub> _callback) throws ApiException Returns the Person actor for a user (asynchronously)- Parameters:
userId- user ID of the user (required)_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- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivityCall
public okhttp3.Call activitypubPersonActivityCall(@Nonnull Integer userId, @Nonnull Integer activityId, ApiCallback _callback) throws ApiException Build call for activitypubPersonActivity- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivity
public ActivityPub activitypubPersonActivity(@Nonnull Integer userId, @Nonnull Integer activityId) throws ApiException Get a specific activity of the user- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)- Returns:
- ActivityPub
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivityWithHttpInfo
public ApiResponse<ActivityPub> activitypubPersonActivityWithHttpInfo(@Nonnull Integer userId, @Nonnull Integer activityId) throws ApiException Get a specific activity of the user- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)- Returns:
- ApiResponse<ActivityPub>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivityAsync
public okhttp3.Call activitypubPersonActivityAsync(@Nonnull Integer userId, @Nonnull Integer activityId, ApiCallback<ActivityPub> _callback) throws ApiException Get a specific activity of the user (asynchronously)- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)_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- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivityNoteCall
public okhttp3.Call activitypubPersonActivityNoteCall(@Nonnull Integer userId, @Nonnull Integer activityId, ApiCallback _callback) throws ApiException Build call for activitypubPersonActivityNote- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivityNote
public ActivityPub activitypubPersonActivityNote(@Nonnull Integer userId, @Nonnull Integer activityId) throws ApiException Get a specific activity object of the user- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)- Returns:
- ActivityPub
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivityNoteWithHttpInfo
public ApiResponse<ActivityPub> activitypubPersonActivityNoteWithHttpInfo(@Nonnull Integer userId, @Nonnull Integer activityId) throws ApiException Get a specific activity object of the user- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)- Returns:
- ApiResponse<ActivityPub>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonActivityNoteAsync
public okhttp3.Call activitypubPersonActivityNoteAsync(@Nonnull Integer userId, @Nonnull Integer activityId, ApiCallback<ActivityPub> _callback) throws ApiException Get a specific activity object of the user (asynchronously)- Parameters:
userId- user ID of the user (required)activityId- activity ID of the sought activity (required)_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- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubPersonFeedCall
public okhttp3.Call activitypubPersonFeedCall(@Nonnull Integer userId, ApiCallback _callback) throws ApiException Build call for activitypubPersonFeed- Parameters:
userId- user ID of the user (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox - 403 APIForbiddenError is a forbidden error response -
-
activitypubPersonFeed
List the user's recorded activity- Parameters:
userId- user ID of the user (required)- Returns:
- Object
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox - 403 APIForbiddenError is a forbidden error response -
-
activitypubPersonFeedWithHttpInfo
public ApiResponse<Object> activitypubPersonFeedWithHttpInfo(@Nonnull Integer userId) throws ApiException List the user's recorded activity- Parameters:
userId- user ID of the user (required)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox - 403 APIForbiddenError is a forbidden error response -
-
activitypubPersonFeedAsync
public okhttp3.Call activitypubPersonFeedAsync(@Nonnull Integer userId, ApiCallback<Object> _callback) throws ApiException List the user's recorded activity (asynchronously)- Parameters:
userId- user ID of the user (required)_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- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox - 403 APIForbiddenError is a forbidden error response -
-
activitypubPersonInboxCall
public okhttp3.Call activitypubPersonInboxCall(@Nonnull Long userId, ApiCallback _callback) throws ApiException Build call for activitypubPersonInbox- Parameters:
userId- user ID of the user (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 202 APIEmpty is an empty response -
-
activitypubPersonInbox
Send to the inbox- Parameters:
userId- user ID of the user (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 202 APIEmpty is an empty response -
-
activitypubPersonInboxWithHttpInfo
public ApiResponse<Void> activitypubPersonInboxWithHttpInfo(@Nonnull Long userId) throws ApiException Send to the inbox- Parameters:
userId- user ID of the user (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 202 APIEmpty is an empty response -
-
activitypubPersonInboxAsync
public okhttp3.Call activitypubPersonInboxAsync(@Nonnull Long userId, ApiCallback<Void> _callback) throws ApiException Send to the inbox (asynchronously)- Parameters:
userId- user ID of the user (required)_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- Http Response Details
Response Details Status Code Description Response Headers 202 APIEmpty is an empty response -
-
activitypubRepositoryCall
public okhttp3.Call activitypubRepositoryCall(@Nonnull Long repositoryId, ApiCallback _callback) throws ApiException Build call for activitypubRepository- Parameters:
repositoryId- repository ID of the repo (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubRepository
Returns the Repository actor for a repo- Parameters:
repositoryId- repository ID of the repo (required)- Returns:
- ActivityPub
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubRepositoryWithHttpInfo
public ApiResponse<ActivityPub> activitypubRepositoryWithHttpInfo(@Nonnull Long repositoryId) throws ApiException Returns the Repository actor for a repo- Parameters:
repositoryId- repository ID of the repo (required)- Returns:
- ApiResponse<ActivityPub>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubRepositoryAsync
public okhttp3.Call activitypubRepositoryAsync(@Nonnull Long repositoryId, ApiCallback<ActivityPub> _callback) throws ApiException Returns the Repository actor for a repo (asynchronously)- Parameters:
repositoryId- repository ID of the repo (required)_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- Http Response Details
Response Details Status Code Description Response Headers 200 ActivityPub -
-
activitypubRepositoryInboxCall
public okhttp3.Call activitypubRepositoryInboxCall(@Nonnull Long repositoryId, @Nullable Object body, ApiCallback _callback) throws ApiException Build call for activitypubRepositoryInbox- Parameters:
repositoryId- repository ID of the repo (required)body- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubRepositoryInbox
public void activitypubRepositoryInbox(@Nonnull Long repositoryId, @Nullable Object body) throws ApiException Send to the inbox- Parameters:
repositoryId- repository ID of the repo (required)body- (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubRepositoryInboxWithHttpInfo
public ApiResponse<Void> activitypubRepositoryInboxWithHttpInfo(@Nonnull Long repositoryId, @Nullable Object body) throws ApiException Send to the inbox- Parameters:
repositoryId- repository ID of the repo (required)body- (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubRepositoryInboxAsync
public okhttp3.Call activitypubRepositoryInboxAsync(@Nonnull Long repositoryId, @Nullable Object body, ApiCallback<Void> _callback) throws ApiException Send to the inbox (asynchronously)- Parameters:
repositoryId- repository ID of the repo (required)body- (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- Http Response Details
Response Details Status Code Description Response Headers 204 APIEmpty is an empty response -
-
activitypubRepositoryOutboxCall
public okhttp3.Call activitypubRepositoryOutboxCall(@Nonnull Long repositoryId, ApiCallback _callback) throws ApiException Build call for activitypubRepositoryOutbox- Parameters:
repositoryId- repository ID of the repo (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-
activitypubRepositoryOutbox
Display the outbox- Parameters:
repositoryId- repository ID of the repo (required)- Returns:
- Object
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-
activitypubRepositoryOutboxWithHttpInfo
public ApiResponse<Object> activitypubRepositoryOutboxWithHttpInfo(@Nonnull Long repositoryId) throws ApiException Display the outbox- Parameters:
repositoryId- repository ID of the repo (required)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-
activitypubRepositoryOutboxAsync
public okhttp3.Call activitypubRepositoryOutboxAsync(@Nonnull Long repositoryId, ApiCallback<Object> _callback) throws ApiException Display the outbox (asynchronously)- Parameters:
repositoryId- repository ID of the repo (required)_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- Http Response Details
Response Details Status Code Description Response Headers 200 Outbox -
-