Constructors
constructor
- new SeamHttpWebhooks(apiKeyOrOptions?): SeamHttpWebhooks
Properties
client
client: AxiosInstance
Readonlydefaults
Methods
create
- create(body?): SeamHttpRequest<SetNonNullable<Required<{
webhook: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
};
}>, "webhook">, "webhook"> Parameters
Optionalbody: {
event_types?: string[];
url: string;
}Optionalevent_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
Optionalbody: {
webhook_id: string;
}
get
- get(body?): SeamHttpRequest<SetNonNullable<Required<{
webhook: {
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
};
}>, "webhook">, "webhook"> Parameters
Optionalbody: {
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
Optionalbody: {
event_types: string[];
webhook_id: string;
}event_types: string[]
webhook_id: string
updateClientSessionToken
- updateClientSessionToken(clientSessionToken): Promise<void>
Parameters
- clientSessionToken: string
Returns Promise<void>
StaticfromApiKey
- fromApiKey(apiKey, options?): SeamHttpWebhooks
StaticfromClient
- fromClient(client, options?): SeamHttpWebhooks
StaticfromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpWebhooks
StaticfromConsoleSessionToken
- fromConsoleSessionToken(consoleSessionToken, workspaceId, options?): SeamHttpWebhooks
StaticfromPersonalAccessToken
- fromPersonalAccessToken(personalAccessToken, workspaceId, options?): SeamHttpWebhooks
StaticfromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpWebhooks>