Skip to content

Queries a user and retrieves its related information, such as the wallet, the label access control, or the current XP.

Notifications You must be signed in to change notification settings

ubiquity-os-marketplace/command-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2fce496 · Jan 25, 2025
Jan 16, 2025
Jan 6, 2025
Jan 25, 2025
Jan 6, 2025
May 26, 2024
Jan 6, 2025
Jan 6, 2025
May 22, 2024
Nov 20, 2024
May 20, 2024
Oct 14, 2024
May 20, 2024
May 20, 2024
Jan 16, 2025
Nov 15, 2024
Jan 25, 2025
Nov 25, 2024
Nov 15, 2024
Jan 8, 2025
Jan 25, 2025
Nov 20, 2024
Jan 16, 2025

Repository files navigation

@ubiquity-os-marketplace/command-query-user

This package helps users querying their information, from they wallet address, label access control or current XP.

Usage

The following commands are allowed:

/query @user

Running locally

Supabase types

You can run the type generations against a local database with

yarn supabase:generate:local

Or against an instance by setting the SUPABASE_ACCESS_TOKEN and SUPABASE_PROJECT_ID in your .env file

yarn prebuild

Worker

Start the Worker by running

yarn dev

Make requests

To trigger the worker, POST requests should be made to http://localhost:4000 with a Content-Type: application/json header and a body looking like

{
  "stateId": "",
  "eventName": "",
  "eventPayload": "",
  "settings": "",
  "ref": ""
}

For convenience, you can find an .http file with a valid request here.

Configuration

A valid configuration can be like:

- plugin: https://os.ubq.fi/command-query
  with:
    allowPublicQuery: true
    logLevel: INFO

Testing

Jest

To start Jest tests, run

yarn test

About

Queries a user and retrieves its related information, such as the wallet, the label access control, or the current XP.

Resources

Stars

Watchers

Forks

Packages

No packages published