Constructors
constructor
- new SeamHttpWebhooks(apiKeyOrOptions?): SeamHttpWebhooks
Properties
client
client: AxiosInstance
Readonly
defaults
Methods
create
- create(body?): SeamHttpRequest<SetNonNullable<Required<{
webhook: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
};
}>, "webhook">, "webhook"> Parameters
Optional
body: {
event_types?: string[];
url: string;
}Optional
event_types?: string[]
url: string
Returns SeamHttpRequest<SetNonNullable<Required<{
webhook: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
};
}>, "webhook">, "webhook">
delete
- delete(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
webhook_id: string;
}
get
- get(body?): SeamHttpRequest<SetNonNullable<Required<{
webhook: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
};
}>, "webhook">, "webhook"> Parameters
Optional
body: {
webhook_id: string;
}
Returns SeamHttpRequest<SetNonNullable<Required<{
webhook: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
};
}>, "webhook">, "webhook">
list
- list(body?): SeamHttpRequest<SetNonNullable<Required<{
webhooks: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}[];
}>, "webhooks">, "webhooks"> Returns SeamHttpRequest<SetNonNullable<Required<{
webhooks: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}[];
}>, "webhooks">, "webhooks">
update
- update(body?): SeamHttpRequest<void, undefined>
Parameters
Optional
body: {
event_types: string[];
webhook_id: string;
}event_types: string[]
webhook_id: string
updateClientSessionToken
- updateClientSessionToken(clientSessionToken): Promise<void>
Parameters
- clientSessionToken: string
Returns Promise<void>
Static
fromApiKey
- fromApiKey(apiKey, options?): SeamHttpWebhooks
Static
fromClient
- fromClient(client, options?): SeamHttpWebhooks
Static
fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpWebhooks
Static
fromConsoleSessionToken
- fromConsoleSessionToken(consoleSessionToken, workspaceId, options?): SeamHttpWebhooks
Static
fromPersonalAccessToken
- fromPersonalAccessToken(personalAccessToken, workspaceId, options?): SeamHttpWebhooks
Static
fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpWebhooks>