Constructors

Properties

client: AxiosInstance
defaults: Required<SeamHttpRequestOptions>
ltsVersion: "1.0.0" = seamApiLtsVersion
ltsVersion: string = seamApiLtsVersion

Methods

  • Parameters

    • Optionalbody: {
          event_types?: string[];
          url: string;
      }
      • Optionalevent_types?: string[]

        Types of events that you want the new webhook to receive.

      • url: string

        URL for the new webhook.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        webhook: {
            event_types?: string[];
            secret?: string;
            url: string;
            webhook_id: string;
        };
    }>, "webhook">, "webhook">

  • Parameters

    • Optionalparams: {
          webhook_id: string;
      }
      • webhook_id: string

        ID of the webhook that you want to delete.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalparams: {
          webhook_id: string;
      }
      • webhook_id: string

        ID of the webhook that you want to get.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        webhook: {
            event_types?: string[];
            secret?: string;
            url: string;
            webhook_id: string;
        };
    }>, "webhook">, "webhook">

  • Parameters

    • Optionalparams: {}

      Returns SeamHttpRequest<SetNonNullable<Required<{
          webhooks: {
              event_types?: string[];
              secret?: string;
              url: string;
              webhook_id: string;
          }[];
      }>, "webhooks">, "webhooks">

    • Parameters

      • Optionalbody: {
            event_types: string[];
            webhook_id: string;
        }
        • event_types: string[]

          Types of events that you want the webhook to receive.

        • webhook_id: string

          ID of the webhook that you want to update.

      Returns SeamHttpRequest<void, undefined>

    • Parameters

      • clientSessionToken: string

      Returns Promise<void>