Commit Graph

397 Commits

Author SHA1 Message Date
Jonathan Barrow
da96d5a64b Merge pull request #78 from DaniElectra/system-transfer 2024-04-13 17:59:27 -04:00
Daniel López Guimaraes
603b209cb5 nasc: Add more integrity checks 2024-04-13 22:37:29 +01:00
Daniel López Guimaraes
20eed7fc96 Fix NASC registration path 2024-04-13 22:10:42 +01:00
Daniel López Guimaraes
dc7d44baf0 Remove redundant transactions
We can update the data directly without a transaction.
2024-04-13 22:10:42 +01:00
Daniel López Guimaraes
aa480673d2 Better handling of system transfered devices
If a user performs a system transfer, we can't guarantee the validity of
the linked PIDs to a device, not this device's existance on the
database. Add them to the database if necessary.
2024-04-13 22:10:42 +01:00
Jonathan Barrow
0242fa7450 Merge pull request #84 from MatthewL246/fix-3ds-profile-updates
Fix 3DS profile updates causing an unhandledRejection
2024-02-26 14:40:17 -05:00
Matthew Lopez
93139a121e Update comment syntax and add todo
Co-authored-by: Jonathan Barrow <jonbarrow1998@gmail.com>
2024-02-26 14:39:01 -05:00
Matthew Lopez
426a9574f6 Fix 3DS profile updates causing an unhandledRejection
For example, when attempting to change the email address. The 3DS sends an empty person.tz_name, which is interpreted as an empty object. This additional error handling is necessary in this case because empty objects are truthy.
2024-02-25 20:09:46 -05:00
Jonathan Barrow
88a9c2e04d Merge pull request #83 from PretendoNetwork/ses
Migrate to AWS SES
2024-02-22 12:21:39 -05:00
Jonathan Barrow
ec99749753 chore: move email sending to AWS SES 2024-02-20 13:51:10 -05:00
Jonathan Barrow
27ddfc3c67 Merge pull request #80 from DaniElectra/cbvc
services: Add CBVC endpoint
2024-01-03 21:40:55 -05:00
Daniel López Guimaraes
6779e84782 services: Add CBVC endpoint
This allows any version of the 3DS internet browser to connect using
Pretendo.

The `:unknown` section seems to represent an incrementing "version"
number, but I wasn't able to relate this number with the version shown
in the browser info.
2024-01-03 23:54:51 +00:00
Jonathan Barrow
6db67698e2 updated PNID scrubbing for number values 2023-11-17 10:27:16 -05:00
Jonathan Barrow
80f457c2f7 grpc: updated account details responses 2023-11-17 10:19:55 -05:00
Jonathan Barrow
7d3b7bbd9c updated some packages 2023-11-17 10:09:26 -05:00
Jonathan Barrow
a6c1bd09ee grpc: updated updatePNIDPermissions to latest permissions 2023-11-17 10:08:21 -05:00
Jonathan Barrow
6a880e8908 added UPDATE_PNID_PERMISSIONS PNID permission 2023-11-17 09:59:18 -05:00
Jonathan Barrow
a7ac9c63cb Merge pull request #75 from DaniElectra/undefined-bigint
Check for undefined on latest_webhook_timestamp
2023-08-28 13:46:11 -04:00
Daniel López Guimaraes
5e49ea8666 Check for undefined on latest_webhook_timestamp
Not all accounts are guaranteed to have this field, so we have to check
if it exists. If it doesn't, just set the value to 0.
2023-08-28 17:58:32 +01:00
Jonathan Barrow
e0cae4667e Fix BigInt and Number conflicts in grpc API 2023-08-25 21:06:23 -04:00
Jonathan Barrow
b998f754a8 Added support for BOSS permissions 2023-08-25 20:55:37 -04:00
Jonathan Barrow
7624263d46 Removed old gRPC package from package.json 2023-08-19 09:48:37 -04:00
Jonathan Barrow
93ab251176 Move gRPC to new NPM package and begin migration to new permissions system 2023-08-19 09:46:10 -04:00
Jonathan Barrow
cb097072c8 Actually handle refresh tokens 2023-08-10 20:28:55 -04:00
Jonathan Barrow
94c07680cd Merge pull request #74 from DaniElectra/get-nex-data
Add GetNEXData GRPC method
2023-07-17 15:35:23 -04:00
Daniel López Guimaraes
5658be404e Fix typos 2023-07-17 10:33:38 +01:00
Daniel López Guimaraes
3844531191 Add GetNEXData GRPC method
Returns all details of a NEX account.
2023-07-17 00:20:26 +01:00
Jonathan Barrow
06c9cc9c01 [NNID] - Update certificate middleware header checks. Closes #22 2023-07-13 14:52:41 -04:00
Jonathan Barrow
ee9c1f7821 [API] - Fix invalid characters error when registering. Closes #41 2023-07-13 14:17:21 -04:00
Jonathan Barrow
648e15c9e1 [NNID] /v1/api/miis - Return duplicate results for duplicate inputs 2023-07-13 14:00:16 -04:00
Jonathan Barrow
c704d9af55 [NNID] /v1/api/miis - Filter invalid PIDs 2023-07-13 13:25:16 -04:00
Jonathan Barrow
e42329cb73 [NNID] /v1/api/miis - Send 404 when no valid PIDs are given 2023-07-13 13:12:11 -04:00
Jonathan Barrow
f584a5b499 Make user data update endpoint do something 2023-07-12 18:17:15 -04:00
Jonathan Barrow
cf1f95cb33 Password reset token is hex, not base64 2023-07-08 11:39:23 -04:00
Jonathan Barrow
f3040d69e8 Update email error log 2023-07-05 16:42:32 -04:00
Jonathan Barrow
65beb3d78b Send email when PNID is deleted 2023-07-05 16:38:59 -04:00
Jonathan Barrow
664562f344 Update Stripe checks in PNID scrub method 2023-07-05 16:30:26 -04:00
Jonathan Barrow
70a00bb139 Removed useless unique fields on PNID model 2023-06-15 14:55:13 -04:00
Jonathan Barrow
e408189f77 Fixed NASC import name change 2023-06-14 13:12:12 -04:00
Jonathan Barrow
ca20208041 Fixed PNID scrubbing not saving default Mii data 2023-06-14 13:02:42 -04:00
Jonathan Barrow
976c1bf21f NNID service tokens now check client_id for generation 2023-06-14 12:58:09 -04:00
Jonathan Barrow
08e0d9c436 Invalid password error is wrapped in errors tag 2023-06-14 11:54:57 -04:00
Jonathan Barrow
cb89fb925b Removed is_emulator field from device document schema 2023-06-13 23:21:01 -04:00
Jonathan Barrow
4051a3107f Implemented https://account.nintendo.net/v1/api/admin/time 2023-06-13 19:01:23 -04:00
Jonathan Barrow
dbaa154d47 Added getNEXPassword gRPC method 2023-06-13 18:41:35 -04:00
Jonathan Barrow
b69349f248 v1/api/people/@me/deletion is POST not PUT 2023-06-12 21:19:45 -04:00
Jonathan Barrow
9c3a80be4a Added support for comma separated headers 2023-06-11 21:07:39 -04:00
Jonathan Barrow
26e87b133c Improved PID tracking 2023-06-11 09:51:13 -04:00
Jonathan Barrow
b36c63a0b3 Added better console tracking 2023-06-11 07:46:27 -04:00
Jonathan Barrow
c1d39a4b13 Token access level is now a signed int to allow negative numbers 2023-06-10 20:08:31 -04:00