Commit Graph

68 Commits

Author SHA1 Message Date
Samuel Elliott
60c0e592db
Electron app 2022-06-05 15:04:36 +01:00
Samuel Elliott
9f63fc8359
Handle simultaneous znc proxy requests properly 2022-05-30 13:16:06 +01:00
Samuel Elliott
b8f9c2c110
Automatically renew token when znc responds with a token expired error 2022-05-30 12:32:38 +01:00
Samuel Elliott
1573accd73
Generate scripts for znca API server 2022-05-29 20:18:49 +01:00
Samuel Elliott
18761bbb31
Update dependencies 2022-05-29 19:16:54 +01:00
Samuel Elliott
967a063220
Move utility functions
This avoids importing most dependencies when not used.
2022-05-21 23:52:36 +01:00
Samuel Elliott
5f6004bd57
Move authentication functions
app no longer imports from cli
2022-05-21 23:47:41 +01:00
Samuel Elliott
4bc27e3ca9
Add an option to use a specific Discord client 2022-05-14 21:27:00 +01:00
Samuel Elliott
b531fcced4
Move monitoring classes, use nxapi debug namespace for non-app/cli modules 2022-05-14 19:06:43 +01:00
Samuel Elliott
a2f3d7d2e2
Allow selecting multiple users for friend notifications 2022-05-12 21:32:00 +01:00
Samuel Elliott
3e1ba3a863
Fix Electron app bundle 2022-05-09 21:48:29 +01:00
Samuel Elliott
784e882dd4
Move getToken/getMoonToken and add cli-table types 2022-05-09 21:28:31 +01:00
Samuel Elliott
992f8900f2
Merge remote-tracking branch 'github/main' 2022-05-08 00:51:10 +01:00
Samuel Elliott
e46e1e46fb
Always get package root directory from src/util.ts 2022-05-07 23:18:23 +01:00
Samuel Elliott
ebf7f2a6f1
Add an option to set the play time text format 2022-05-01 23:14:14 +01:00
Samuel Elliott
c3d138a93a
Support user and friend URLs for --presence-url in nxapi util discord-activity 2022-05-01 23:03:34 +01:00
Samuel Elliott
dd35b84afa
Support user and friend URLs for --presence-url 2022-04-30 13:33:41 +01:00
Samuel Elliott
a9aca8829f
Fix reconnecting to Discord and add an option to stay connected to Discord 2022-04-30 13:32:39 +01:00
Samuel Elliott
eac5aec23c
Export Discord title configuration 2022-04-30 13:23:50 +01:00
Samuel Elliott
018c92cc62
Remove web service data when removing user data 2022-04-30 11:45:22 +01:00
Samuel Elliott
03aab05619
Fix reloading NookLink and handle errors updating presence in the app 2022-04-30 11:33:30 +01:00
Samuel Elliott
81cec767df
Export NookLink client, remove duplicate ErrorResponse class 2022-04-26 16:50:19 +01:00
Samuel Elliott
9d05161bf3
Fix sharing a friend's presence on Discord 2022-04-26 13:59:54 +01:00
Samuel Elliott
8f5965913d
Add a command to test getting Discord activity from Nintendo Switch presence 2022-04-22 20:00:06 +01:00
Samuel Elliott
0b567e3d3f
Fix user icon in Discord when using --friend-nsaid and show current revision in Discord 2022-04-22 19:37:17 +01:00
Samuel Elliott
5559f8df33
Add a command to validate Discord title configuration 2022-04-21 18:49:24 +01:00
Samuel Elliott
508c8dfa3f
Add command to encrypt/decrypt capture IDs 2022-04-21 18:22:05 +01:00
Samuel Elliott
f294daa5bc
Fix getting current user presence with API proxy 2022-04-21 18:05:24 +01:00
Samuel Elliott
d07dcabe6f
Show demo title names as large image text and show the user's Nintendo Switch icon if sharing friend code 2022-04-21 17:58:16 +01:00
Samuel Elliott
b508fcc072
Add command to encrypt/decrypt capture IDs 2022-04-21 16:54:15 +01:00
Samuel Elliott
b74994327c
Add NookLink commands 2022-04-18 14:45:24 +01:00
Samuel Elliott
f807719f3a
Add Discord Rich Presence and user/friend presence notifications to the Electron app 2022-04-17 22:29:14 +01:00
Samuel Elliott
e999ca85d8
Handle errors opening web services and check NSO membership 2022-04-17 21:53:02 +01:00
Samuel Elliott
68246fbb6b
Implement APIs for web services (required for NookLink) 2022-04-17 00:56:08 +01:00
Samuel Elliott
53a15bbb99
Use /v3/Account/GetToken to renew the app token 2022-04-08 22:13:43 +01:00
Samuel Elliott
e138f67969
Add update check 2022-04-08 20:35:57 +01:00
Samuel Elliott
77a32e1b5e
Add an option to show event data 2022-04-08 19:57:45 +01:00
Samuel Elliott
a53eccd91e
Update znc types, add other endpoints and use /v3/Account/GetToken to renew the app token 2022-04-06 23:17:54 +01:00
Samuel Elliott
8bd6f306f8
Don't update web services and events with friends list 2022-04-06 22:48:35 +01:00
Samuel Elliott
ac921e3f16
Add a command to show/update presence permissions and simplify notify/presence updates 2022-04-06 22:41:17 +01:00
Samuel Elliott
b677b22809
Add a command to start the Electron app 2022-04-05 20:48:26 +01:00
Samuel Elliott
32cf761bf2
Fix pctl auth 2022-03-26 22:13:20 +00:00
Samuel Elliott
5c79874118
Allow automatically updating iksm_session while monitoring SplatNet 2 2022-03-26 22:12:04 +00:00
Samuel Elliott
e801487010
Validate session tokens and znca id_tokens 2022-03-26 21:12:46 +00:00
Samuel Elliott
a737d51839
Use the previous updated timestamp from SplatNet 2 to check for updates
This prevents redownloading (or missing data) if the local system time is slightly different to SplatNet 2's time.
2022-03-25 19:05:00 +00:00
Samuel Elliott
74c6f71a76
Add aliases for --splatnet2-monitor-* options and don't require setting a directory for downloading Parental Controls and SplatNet 2 data 2022-03-25 19:01:31 +00:00
Samuel Elliott
085d8a6a54
Use a single loop class for nso notify/presence and splatnet2 monitor 2022-03-25 18:55:03 +00:00
Samuel Elliott
d5cf1b87a8
Use NXAPI_DATA_PATH and ZNC_PROXY_URL environment variables 2022-03-25 18:43:50 +00:00
Samuel Elliott
f1d262bfa7
Add commands to list stages, challenges, weapon stats, hero stats, battles and stage schedules from SplatNet 2 2022-03-25 18:42:00 +00:00
Samuel Elliott
1a36947720
Add API proxy access tokens
This allows providing access to the API proxy server as your account but only to access certain data (probably user/friend presence for Discord).

For example a token generated using `nxapi nso znc-proxy-tokens --znc-proxy-url "http://[::1]:12345/api/znc" create --policy-user-presence` will only be able to access your presence at http://[::1]:12345/api/znc/user/presence (with the access token provided in the Authorization header as a Bearer token or in the token query string parameter).
2022-03-22 23:39:56 +00:00