Class RawWebhookSubscriptionsClient
- java.lang.Object
-
- ai.extend.resources.webhooksubscriptions.RawWebhookSubscriptionsClient
-
public class RawWebhookSubscriptionsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawWebhookSubscriptionsClient(ClientOptions clientOptions)
-
Method Summary
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawWebhookSubscriptionsClient
public RawWebhookSubscriptionsClient(ClientOptions clientOptions)
-
-
Method Detail
-
list
public ExtendClientHttpResponse<WebhookSubscriptionsListResponse> list()
List webhook subscriptions. You can filter bywebhookEndpointIdto see all subscriptions for a given endpoint, or byresourceIdto see all subscriptions for a given resource.
-
list
public ExtendClientHttpResponse<WebhookSubscriptionsListResponse> list(RequestOptions requestOptions)
List webhook subscriptions. You can filter bywebhookEndpointIdto see all subscriptions for a given endpoint, or byresourceIdto see all subscriptions for a given resource.
-
list
public ExtendClientHttpResponse<WebhookSubscriptionsListResponse> list(WebhookSubscriptionsListRequest request)
List webhook subscriptions. You can filter bywebhookEndpointIdto see all subscriptions for a given endpoint, or byresourceIdto see all subscriptions for a given resource.
-
list
public ExtendClientHttpResponse<WebhookSubscriptionsListResponse> list(WebhookSubscriptionsListRequest request, RequestOptions requestOptions)
List webhook subscriptions. You can filter bywebhookEndpointIdto see all subscriptions for a given endpoint, or byresourceIdto see all subscriptions for a given resource.
-
create
public ExtendClientHttpResponse<WebhookSubscription> create(WebhookSubscriptionsCreateRequest request)
Create a resource-scoped webhook subscription on an existing webhook endpoint.Subscriptions let you receive events for a specific resource (e.g., a single extractor or workflow) rather than all resources of that type. The
enabledEventsmust be valid for the givenresourceTypeand the endpoint'sapiVersion.If a subscription already exists for the same endpoint and resource, it will be updated with the new
enabledEventsinstead of creating a duplicate.
-
create
public ExtendClientHttpResponse<WebhookSubscription> create(WebhookSubscriptionsCreateRequest request, RequestOptions requestOptions)
Create a resource-scoped webhook subscription on an existing webhook endpoint.Subscriptions let you receive events for a specific resource (e.g., a single extractor or workflow) rather than all resources of that type. The
enabledEventsmust be valid for the givenresourceTypeand the endpoint'sapiVersion.If a subscription already exists for the same endpoint and resource, it will be updated with the new
enabledEventsinstead of creating a duplicate.
-
retrieve
public ExtendClientHttpResponse<WebhookSubscription> retrieve(java.lang.String id)
Retrieve a webhook subscription by ID.
-
retrieve
public ExtendClientHttpResponse<WebhookSubscription> retrieve(java.lang.String id, RequestOptions requestOptions)
Retrieve a webhook subscription by ID.
-
retrieve
public ExtendClientHttpResponse<WebhookSubscription> retrieve(java.lang.String id, WebhookSubscriptionsRetrieveRequest request)
Retrieve a webhook subscription by ID.
-
retrieve
public ExtendClientHttpResponse<WebhookSubscription> retrieve(java.lang.String id, WebhookSubscriptionsRetrieveRequest request, RequestOptions requestOptions)
Retrieve a webhook subscription by ID.
-
update
public ExtendClientHttpResponse<WebhookSubscription> update(java.lang.String id, WebhookSubscriptionsUpdateRequest request)
Update the enabled events on a webhook subscription.
-
update
public ExtendClientHttpResponse<WebhookSubscription> update(java.lang.String id, WebhookSubscriptionsUpdateRequest request, RequestOptions requestOptions)
Update the enabled events on a webhook subscription.
-
delete
public ExtendClientHttpResponse<WebhookSubscriptionsDeleteResponse> delete(java.lang.String id)
Delete a webhook subscription. This operation is permanent and cannot be undone.
-
delete
public ExtendClientHttpResponse<WebhookSubscriptionsDeleteResponse> delete(java.lang.String id, RequestOptions requestOptions)
Delete a webhook subscription. This operation is permanent and cannot be undone.
-
delete
public ExtendClientHttpResponse<WebhookSubscriptionsDeleteResponse> delete(java.lang.String id, WebhookSubscriptionsDeleteRequest request)
Delete a webhook subscription. This operation is permanent and cannot be undone.
-
delete
public ExtendClientHttpResponse<WebhookSubscriptionsDeleteResponse> delete(java.lang.String id, WebhookSubscriptionsDeleteRequest request, RequestOptions requestOptions)
Delete a webhook subscription. This operation is permanent and cannot be undone.
-
-