feat(libSceNpCppWebApi): cover the UserProfile models and remaining Common instantiations #9015

Merged
akkadbakkad89 merged 3 commits from upstream-pr/9015 into main 2026-10-26 21:28:47 +00:00
akkadbakkad89 commented 2026-10-21 09:49:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-21T09:49:17Z.


What

Second slice of the libSceNpCppWebApi imports a title dump (PPSA20397) ships without the module for: 87 further exports the registry records as used, plus the four previously-throwing ContainerApi exports in scope (ParameterToGetContainer::{initialize,terminate,dtor} and getContainer).

All names resolve through aerolib, so each exported symbol recomputes to the NID the title imports. The classes are:

  • Common instantiations for UserProfile and CommunicationRestrictionStatus types — IntrusivePtr copy/deref/assign/destroy, Transaction/TransactionBase lifecycle and Vector/Iterator/ConstIterator members — using the layouts and helpers established in the file
  • UserProfile::V1 models — BasicProfile, BasicPresence, PersonalDetail and Get*Response accessors, plus ParameterToGet{PublicProfiles,Friends,BlockingUsers} bookkeeping and the BasicProfileApi::getPublicProfiles verb
  • InGameCatalog::V5::ContainerApi — ParameterToGetContainer lifecycle and getContainer

Offline semantics follow the file's documented model: request entry points and transaction start/getResponse/sendData/readData fail with SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; parameter bookkeeping, constructors and destructors succeed without keeping state; response accessors, *IsSet queries, Vector::begin/end, iterator dereference/compare and transaction abort/getId/operator= throw, because a failed request produces no response object and these model layouts are unverified. Everything is generic — no title IDs, paths or trace-specific inputs are special-cased.

Overlap: the overlap report flags #8264, #8561 and #8843 because the same two files receive additions, and #8959 because this branch is stacked on it. The export sets are disjoint at the NID level — these 87 are the registry imports minus everything #8959 and #8561 cover, and none of the open PRs' patches mention any of these symbols.

Tested

  • g++ -fsyntax-only on the updated Export.cpp (GCC, WSL)
  • guest_np_cpp_web_api_string harness compiled and run against the file: all sub-tests pass
  • tools/check_conventions.py --base origin/main: pass
  • tools/pr_overlap.py --branch feat/np-webapi-up-generics: textual file-tail collisions only; no shared exports
  • Title coverage verified by registry audit (tools/import_audit.py); the imports now resolve instead of failing the loader. The title itself still stops at the unrelated AGC stencil replay-safety gate before reaching these flows

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #8959, #10925, #11235
  • Fixes: none
  • Unblocks: none — coverage work from the PPSA20397 import registry; the title still stops at the unrelated AGC stencil gate
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4949638187 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9015). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-21T09:49:17Z. --- ### What Second slice of the `libSceNpCppWebApi` imports a title dump (PPSA20397) ships without the module for: 87 further exports the registry records as used, plus the four previously-throwing `ContainerApi` exports in scope (`ParameterToGetContainer::{initialize,terminate,dtor}` and `getContainer`). All names resolve through aerolib, so each exported symbol recomputes to the NID the title imports. The classes are: - `Common` instantiations for `UserProfile` and `CommunicationRestrictionStatus` types — `IntrusivePtr` copy/deref/assign/destroy, `Transaction`/`TransactionBase` lifecycle and `Vector`/`Iterator`/`ConstIterator` members — using the layouts and helpers established in the file - `UserProfile::V1` models — `BasicProfile`, `BasicPresence`, `PersonalDetail` and `Get*Response` accessors, plus `ParameterToGet{PublicProfiles,Friends,BlockingUsers}` bookkeeping and the `BasicProfileApi::getPublicProfiles` verb - `InGameCatalog::V5::ContainerApi` — `ParameterToGetContainer` lifecycle and `getContainer` Offline semantics follow the file's documented model: request entry points and transaction `start`/`getResponse`/`sendData`/`readData` fail with `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`; parameter bookkeeping, constructors and destructors succeed without keeping state; response accessors, `*IsSet` queries, `Vector::begin`/`end`, iterator dereference/compare and transaction `abort`/`getId`/`operator=` throw, because a failed request produces no response object and these model layouts are unverified. Everything is generic — no title IDs, paths or trace-specific inputs are special-cased. Overlap: the overlap report flags #8264, #8561 and #8843 because the same two files receive additions, and #8959 because this branch is stacked on it. The export sets are disjoint at the NID level — these 87 are the registry imports minus everything #8959 and #8561 cover, and none of the open PRs' patches mention any of these symbols. ### Tested - `g++ -fsyntax-only` on the updated `Export.cpp` (GCC, WSL) - `guest_np_cpp_web_api_string` harness compiled and run against the file: all sub-tests pass - `tools/check_conventions.py --base origin/main`: pass - `tools/pr_overlap.py --branch feat/np-webapi-up-generics`: textual file-tail collisions only; no shared exports - Title coverage verified by registry audit (`tools/import_audit.py`); the imports now resolve instead of failing the loader. The title itself still stops at the unrelated AGC stencil replay-safety gate before reaching these flows ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #8959, #10925, #11235 - [x] Fixes: none - [x] Unblocks: none — coverage work from the PPSA20397 import registry; the title still stops at the unrelated AGC stencil gate - [x] GPUs tested: n/a - [x] AI-assisted: yes
Ondra97 commented 2026-10-22 04:30:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T04:30:59Z.


I opened #9612 to preserve aliased inputs in the existing Common::String::append and Common::Vector::pushBack helpers. Its tests add cases after TestVectorPushBackCopiesStringContent in GuestNpCppWebApiString.cpp, the same insertion point used here and in #8959. The export changes are separate. I declared #9612 dependent on #8959 and #9015 and will reconcile the test insertion after their changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332742329 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9015#issuecomment-6332742329). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-22T04:30:59Z. --- I opened #9612 to preserve aliased inputs in the existing `Common::String::append` and `Common::Vector::pushBack` helpers. Its tests add cases after `TestVectorPushBackCopiesStringContent` in `GuestNpCppWebApiString.cpp`, the same insertion point used here and in #8959. The export changes are separate. I declared #9612 dependent on #8959 and #9015 and will reconcile the test insertion after their changes.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9015
No description provided.