This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk/query / EnginexQueryKey

EnginexQueryKey ​

EnginexQueryKey = readonly ["enginex", "public", string, string, ...unknown[]] | readonly ["enginex", "user", string, string, string, ...unknown[]]

SDK query key: ['enginex', 'public', namespace, method, input?] for data without a session (configuration, catalog) and ['enginex', 'user', userId, namespace, method, input?] for the player's data. The input only appears when given. The 'enginex' prefix coexists with the app's keys; no key contains a token, password or personal data other than the userId (the JWT sub).

Example ​

ts
['enginex', 'public', 'config', 'get']
['enginex', 'user', 'u-123', 'wallet', 'listTransactions', { page: 2 }]