Commit Graph

96 Commits

Author SHA1 Message Date
Samuel Elliott
1aa4aad85a
SplatNet 3 authentication 2022-09-08 19:44:15 +01:00
Samuel Elliott
80afc62268
Add optional strict validation, automatically retry after reconnecting and report server timing for f parameter generation 2022-09-07 22:02:14 +01:00
Samuel Elliott
5b93c63c23
Use coral result object directly 2022-09-07 17:33:40 +01:00
Samuel Elliott
4b5edd73df
Add a command to show the user's active event 2022-09-07 16:29:36 +01:00
Samuel Elliott
8afcd80f5a
Add preferences window 2022-09-07 15:54:38 +01:00
Samuel Elliott
66c8efdb96
Accept numbers for the hash_method option when generating f parameters 2022-09-07 10:22:37 +01:00
Samuel Elliott
428f7131a1
Fix f parameter generation
This fixes `f` parameter generation with nxapi's custom server. This will also work with imink/flapg *if the system time exactly matches the imink/flapg Android device's time*. This commit also makes nxapi's API compatible with imink's API and adds some information about the Android device and NSO app to response headers.
2022-08-23 16:47:15 +01:00
Samuel Elliott
67819b4af5
Fix some issues with X Rank season calculation and add season indexes 2022-08-21 20:28:22 +01:00
Samuel Elliott
f900696a79
Fix NookLink type error 2022-08-20 20:22:39 +01:00
Samuel Elliott
7423da8d98
Update NookLink 2022-08-16 18:41:45 +01:00
Samuel Elliott
f628d371e1
Add NookLink constructor helper functions 2022-08-16 18:16:30 +01:00
Samuel Elliott
65d1069edf
Only request data necessary to appear as if opening Nintendo's app 2022-08-16 17:00:59 +01:00
Samuel Elliott
f24dc2c63c
Remove unidentified-script user agent when running the API proxy server 2022-08-13 00:40:24 +01:00
Samuel Elliott
fc2dec15c0
Add SplatNet 2 constructor helper functions and always send player ID 2022-07-29 18:46:22 +01:00
Samuel Elliott
e8e5a2f5a4
Merge branch 'remote-config' 2022-07-29 16:34:33 +01:00
Samuel Elliott
e9218b9004
Add friend code URL to API proxy 2022-07-28 14:04:29 +01:00
Samuel Elliott
0cc39aad13
Add friend code lookup to API proxy 2022-07-28 13:57:39 +01:00
Samuel Elliott
e12bb364a7
Prevent attempting to authenticate more than four times per hour
This only affects scripts - running this nxapi command in a terminal and the Electron app will ignore this limit.

https://github.com/samuelthomas2774/nxapi/issues/9
2022-07-27 15:48:19 +01:00
Samuel Elliott
163023501d
Remove spaces 2022-07-27 14:47:36 +01:00
Samuel Elliott
b6074ebed0
Add commands for friend requests/friend codes 2022-07-27 14:40:09 +01:00
Samuel Elliott
39ffa02e58
Remote configuration 2022-07-23 19:57:09 +01:00
Samuel Elliott
dddb15aceb
Use package.json exports field 2022-07-23 17:42:41 +01:00
Samuel Elliott
21f5f095a0
Add helper function for setting user agent 2022-07-01 21:22:40 +01:00
Samuel Elliott
a6a69b1799
Rename most instances of znc to coral 2022-06-28 19:22:01 +01:00
Samuel Elliott
a2f3abaebd
Remove unpacked dependencies from app 2022-06-28 15:47:41 +01:00
Samuel Elliott
1ddbe10f25
Add a command and functions to get SplatNet 2 X Rank seasons 2022-06-26 18:00:47 +01:00
Samuel Elliott
ed91f2d085
Add a command to get a NookLink user token 2022-06-26 17:55:56 +01:00
Samuel Elliott
39bfc8ab39
Add a command to get a SplatNet 2 iksm_session cookie 2022-06-26 16:14:02 +01:00
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