AgentPushKit-Client
view release on metacpan or search on metacpan
use AgentPushKit::Client::EventsApi;
use AgentPushKit::Client::HealthApi;
use AgentPushKit::Client::PreferencesApi;
# load the models
use AgentPushKit::Client::Object::AcceptedResponse;
use AgentPushKit::Client::Object::AddMemberInput;
use AgentPushKit::Client::Object::AgentToken;
use AgentPushKit::Client::Object::AgentTokenCreated;
use AgentPushKit::Client::Object::ApiKeySummary;
use AgentPushKit::Client::Object::AuthResponse;
use AgentPushKit::Client::Object::CreateAgentTokenInput;
use AgentPushKit::Client::Object::CreateOrganizationInput;
use AgentPushKit::Client::Object::CurrentAccount;
use AgentPushKit::Client::Object::DeletedResponse;
use AgentPushKit::Client::Object::DeliverySummary;
use AgentPushKit::Client::Object::Device;
use AgentPushKit::Client::Object::DisabledResponse;
use AgentPushKit::Client::Object::ErrorResponse;
use AgentPushKit::Client::Object::EventDetail;
use AgentPushKit::Client::Object::EventFilter;
use AgentPushKit::Client::Object::EventPage;
use AgentPushKit::Client::Object::EventSummary;
use AgentPushKit::Client::Object::FilterGroup;
use AgentPushKit::Client::Object::FilterNot;
use AgentPushKit::Client::Object::HealthResponse;
use AgentPushKit::Client::Object::IngestionResult;
use AgentPushKit::Client::Object::InheritedResponse;
use AgentPushKit::Client::Object::Membership;
use AgentPushKit::Client::Object::MembershipUser;
use AgentPushKit::Client::Object::Organization;
use AgentPushKit::Client::Object::OrganizationApiKeyCreated;
use AgentPushKit::Client::Object::OrganizationCount;
use AgentPushKit::Client::Object::OrganizationCreated;
use AgentPushKit::Client::Object::OrganizationRecord;
use AgentPushKit::Client::Object::PasswordLoginInput;
use AgentPushKit::Client::Object::PasswordResetCompleteInput;
use AgentPushKit::Client::Object::PasswordResetRequestInput;
use AgentPushKit::Client::Object::PreferenceRecord;
use AgentPushKit::Client::Object::ProviderLoginInput;
use AgentPushKit::Client::Object::RegisterDeviceInput;
use AgentPushKit::Client::Object::RegisterInput;
use AgentPushKit::Client::Object::RegisterWebPushSubscriptionInput;
use AgentPushKit::Client::Object::RegisterWebPushSubscriptionInputKeys;
use AgentPushKit::Client::Object::RevokedResponse;
use AgentPushKit::Client::Object::SearchEventsInput;
use AgentPushKit::Client::Object::SendEventInput;
use AgentPushKit::Client::Object::Service;
use AgentPushKit::Client::Object::ServiceAllOfCount;
use AgentPushKit::Client::Object::ServicePreference;
use AgentPushKit::Client::Object::ServiceSummary;
use AgentPushKit::Client::Object::SetEnabledInput;
use AgentPushKit::Client::Object::TextFilterCondition;
use AgentPushKit::Client::Object::TimeFilterCondition;
use AgentPushKit::Client::Object::TypeOverride;
use AgentPushKit::Client::Object::User;
use AgentPushKit::Client::Object::WebPushConfiguration;
use AgentPushKit::Client::Object::WebPushSubscription;
# for displaying the API response data
use Data::Dumper;
my $api_instance = AgentPushKit::Client::AccountApi->new(
);
eval {
my $result = $api_instance->delete_current_account();
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountApi->delete_current_account: $@\n";
}
```
# DOCUMENTATION FOR API ENDPOINTS
All URIs are relative to *https://api.chatdna.co/agent-push-kit/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccountApi* | [**delete_current_account**](docs/AccountApi.md#delete_current_account) | **DELETE** /me | Delete the current user and customer accounts they own
*AccountApi* | [**get_current_account**](docs/AccountApi.md#get_current_account) | **GET** /me | Get the current user and customer accounts
*AgentTokensApi* | [**call_mcp**](docs/AgentTokensApi.md#call_mcp) | **POST** /mcp | Connect through stateless MCP Streamable HTTP
*AgentTokensApi* | [**create_agent_token**](docs/AgentTokensApi.md#create_agent_token) | **POST** /agent-tokens | Create a named non-expiring agent token
*AgentTokensApi* | [**list_agent_tokens**](docs/AgentTokensApi.md#list_agent_tokens) | **GET** /agent-tokens | List agent access tokens without their secrets
*AgentTokensApi* | [**revoke_agent_token**](docs/AgentTokensApi.md#revoke_agent_token) | **DELETE** /agent-tokens/{tokenId} | Revoke one of the current user's agent tokens
*AuthenticationApi* | [**complete_password_reset**](docs/AuthenticationApi.md#complete_password_reset) | **POST** /auth/password-reset/complete | Choose a new password and log in
*AuthenticationApi* | [**login_with_apple**](docs/AuthenticationApi.md#login_with_apple) | **POST** /auth/apple | Log in or attach an account using a Sign in with Apple identity token
*AuthenticationApi* | [**login_with_google**](docs/AuthenticationApi.md#login_with_google) | **POST** /auth/google | Log in or attach an account using a verified Google ID token
*AuthenticationApi* | [**login_with_password**](docs/AuthenticationApi.md#login_with_password) | **POST** /auth/login | Log in with email and password
*AuthenticationApi* | [**register**](docs/AuthenticationApi.md#register) | **POST** /auth/register | Create a user and first customer account
*AuthenticationApi* | [**request_password_reset**](docs/AuthenticationApi.md#request_password_reset) | **POST** /auth/password-reset/request | Email a single-use password reset token
*CustomerAccountsApi* | [**add_organization_member**](docs/CustomerAccountsApi.md#add_organization_member) | **POST** /organizations/{organizationId}/members | Add an already-registered user to a customer account
*CustomerAccountsApi* | [**create_organization**](docs/CustomerAccountsApi.md#create_organization) | **POST** /organizations | Create another Agent Push Kit customer account
*CustomerAccountsApi* | [**list_organization_members**](docs/CustomerAccountsApi.md#list_organization_members) | **GET** /organizations/{organizationId}/members | List members of a customer account
*CustomerAccountsApi* | [**list_organizations**](docs/CustomerAccountsApi.md#list_organizations) | **GET** /organizations | List customer accounts available to the current user
*CustomerAccountsApi* | [**regenerate_organization_api_key**](docs/CustomerAccountsApi.md#regenerate_organization_api_key) | **POST** /organizations/{organizationId}/api-key/regenerate | Rotate the application event-ingestion key
*DevicesApi* | [**get_web_push_configuration**](docs/DevicesApi.md#get_web_push_configuration) | **GET** /web-push/configuration | Get browser push availability and its public VAPID key
*DevicesApi* | [**register_device**](docs/DevicesApi.md#register_device) | **POST** /devices | Register or refresh an APNs device
*DevicesApi* | [**register_web_push_subscription**](docs/DevicesApi.md#register_web_push_subscription) | **POST** /web-push/subscriptions | Register or refresh a browser push subscription
*DevicesApi* | [**remove_device**](docs/DevicesApi.md#remove_device) | **DELETE** /devices/{installationId} | Disable push delivery to one installation
*DevicesApi* | [**remove_web_push_subscription**](docs/DevicesApi.md#remove_web_push_subscription) | **DELETE** /web-push/subscriptions/{subscriptionId} | Disable a browser push subscription
*EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /organizations/{organizationId}/events/{eventId} | Get one event including metadata
*EventsApi* | [**list_events**](docs/EventsApi.md#list_events) | **GET** /organizations/{organizationId}/events | List a paginated inbox
*EventsApi* | [**list_notification_types**](docs/EventsApi.md#list_notification_types) | **GET** /organizations/{organizationId}/types | List distinct notification types
*EventsApi* | [**list_services**](docs/EventsApi.md#list_services) | **GET** /organizations/{organizationId}/services | List services discovered from ingested events
*EventsApi* | [**search_events**](docs/EventsApi.md#search_events) | **POST** /organizations/{organizationId}/events/search | Search events with a validated Boolean filter tree
*EventsApi* | [**send_event**](docs/EventsApi.md#send_event) | **POST** /events | Send an event using an application ingestion key
*EventsApi* | [**send_event_as_user**](docs/EventsApi.md#send_event_as_user) | **POST** /organizations/{organizationId}/events | Send an event as an authenticated user or agent
*HealthApi* | [**get_health**](docs/HealthApi.md#get_health) | **GET** /health | Check Agent Push Kit API health
*PreferencesApi* | [**list_preferences**](docs/PreferencesApi.md#list_preferences) | **GET** /organizations/{organizationId}/preferences | List service defaults and exact-type overrides
*PreferencesApi* | [**remove_type_preference**](docs/PreferencesApi.md#remove_type_preference) | **DELETE** /services/{serviceId}/types/{type}/preference | Remove an exact-type override so it inherits the service default
*PreferencesApi* | [**set_service_preference**](docs/PreferencesApi.md#set_service_preference) | **PUT** /services/{serviceId}/preference | Enable or disable pushes for a service by default
*PreferencesApi* | [**set_type_preference**](docs/PreferencesApi.md#set_type_preference) | **PUT** /services/{serviceId}/types/{type}/preference | Override push delivery for one exact notification type
# DOCUMENTATION FOR MODELS
- [AgentPushKit::Client::Object::AcceptedResponse](docs/AcceptedResponse.md)
( run in 0.847 second using v1.01-cache-2.11-cpan-28bccf0f6e5 )