Hierarchy

Constructors

Methods

  • Parameters

    • data: {
          body: string;
          subject: string;
      }
      • body: string
      • subject: string

    Returns Promise<string>

    Description

    Tests the email configuration by sending a test message.

    Example

    const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
    const result = await resources.run.emailTest({ subject: "Test Email", body: "This is a test message" });
    console.log(result); // E-mail sent to example@email.com
  • Type Parameters

    Parameters

    • query: T

    Returns Promise<UserListItem<T["fields"] extends (keyof UserInfo)[]
        ? any[any][number]
        : "id" | "name">[]>

    Description

    Retrieves a paginated list of Run users with customizable fields and filtering options.

    See

    https://help.tago.io/portal/en/kb/articles/191-tagorun TagoRun

    Example

    If receive an error "Authorization Denied", or return empty list check policy Run User / Access in Access Management.

    const result = await Resources.run.listUsers({
    page: 1,
    fields: ["id", "name", "email"],
    amount: 20
    });
    console.log(result); // [ { id: 'user-id-123', name: 'John Doe', email: 'example@email.com' } ]
  • Parameters

    Returns Promise<LoginResponseRun>

    Description

    Generates a login token to authenticate as a specific Run user.

    Example

    If receive an error "Authorization Denied", check policy Run User / Login as user in Access Management.

    const result = await Resources.run.loginAsUser("user-id-123");
    console.log(result.token); // "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."
  • Parameters

    Returns Promise<{
        id: string;
    }>

    Description

    Creates a new notification for a Run user.

    See

    https://help.tago.io/portal/en/kb/articles/223-notifications-for-users Notifications for Users

    Example

    If receive an error "Authorization Denied", check policy Run User / Create notification in Access Management.

    const result = await Resources.run.notificationCreate("user-id-123", { title: "Update", message: "New feature available" });
    console.log(result); // { id: 'notification-id-123' }
  • Parameters

    • notificationID: string

    Returns Promise<string>

    Description

    Deletes a notification from the Run environment.

    See

    https://help.tago.io/portal/en/kb/articles/223-notifications-for-users Notifications for Users

    Example

    If receive an error "Authorization Denied", check policy Run User / Delete notification in Access Management.

    const result = await Resources.run.notificationDelete("notification-id-123");
    console.log(result); // Successfully Removed
  • Parameters

    Returns Promise<string>

    Description

    Updates an existing notification in the Run environment.

    See

    https://help.tago.io/portal/en/kb/articles/223-notifications-for-users Notifications for Users

    Example

    If receive an error "Authorization Denied", check policy Run User / Edit notification in Access Management.

    const result = await Resources.run.notificationEdit("notification-id-123", { title: "Updated Title" });
    console.log(result); // TagoIO Notification User Successfully Updated
  • Parameters

    • profile_id: string

    Returns Promise<string>

    Description

    Regenerates the custom domain configuration for a Run profile.

    See

    https://help.tago.io/portal/en/kb/articles/custom-domain-configuration Custom Domain Configuration

    Example

    const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
    const result = await resources.run.regenerateCustomDomain("profile-id-123");
    console.log(result);
  • Parameters

    • userID: string

    Returns Promise<string>

    Description

    Permanently deletes a user from the Run environment.

    See

    https://help.tago.io/portal/en/kb/articles/191-tagorun TagoRun

    Example

    If receive an error "Authorization Denied", check policy Run User / Delete in Access Management.

    const result = await Resources.run.userDelete("user-id-123");
    console.log(result); // Successfully Removed
  • Parameters

    Returns Promise<string>

    Description

    Updates information for an existing Run user.

    See

    https://help.tago.io/portal/en/kb/articles/191-tagorun TagoRun

    Example

    If receive an error "Authorization Denied", check policy Run User / Edit in Access Management.

    const userData = ;
    const result = await Resources.run.userEdit("user-id-123", { name: "Updated Name" });
    console.log(result); // TagoIO Run User Successfully Updated
  • Parameters

    • userID: string

    Returns Promise<UserInfo>

    Description

    Retrieves detailed information about a specific Run user.

    See

    https://help.tago.io/portal/en/kb/articles/191-tagorun TagoRun

    Example

    If receive an error "Authorization Denied", check policy Run User / Access in Access Management.

    const result = await Resources.run.userInfo("user-id-123");
    console.log(result); // { id: 'user-id-123', name: 'John Doe', email: 'example@email.com', ... }