Commit graph

490 commits

Author SHA1 Message Date
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
Jonathan Barrow
15b6f1f4a3
Renamed getPNIDByBearerAuth to getPNIDByTokenAuth (not all tokens are bearer) 2023-05-31 21:31:48 -04:00
Jonathan Barrow
dee432b4a0
Added gRPC service for the API (for future use) 2023-05-31 21:29:41 -04:00
Jonathan Barrow
9c16196435
Fixed missing crc on website tokens 2023-05-31 20:55:41 -04:00
Jonathan Barrow
11984e12a4
Added missing fields to API tokens 2023-05-03 19:49:51 -04:00
Jonathan Barrow
0db626a2b5
Updated API token format 2023-05-03 19:38:49 -04:00
Jonathan Barrow
3c03ce8509
fixed website grant type check 2023-05-03 17:40:26 -04:00
Jonathan Barrow
8b578c750a
Removed password change from PNID.scrub and added 0112 error on deleted accounts 2023-05-03 12:19:55 -04:00