feat(imports): Access Pass products through the importer's signed-in account

IMVU hides Access Pass products from the signed out, so the hub learns about them from the importer: a "list" job
has it list a whole shop signed in (queued with each listing once its importer has an account that signed in with
Access Pass), and a job's product the hub can't see is looked up by the importer first (/info). The console no
longer says an account has no Access Pass when IMVU merely doesn't show it publicly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
dhkatzandClaude Opus 5.5 committed 2026-11-08 07:21:49 -08:00
1 parent 56d25f7507
commit e2308aa0aa
12 files changed
+4865 -51

No files matched your search

+4 -2
View File
@@ -82,8 +82,10 @@ catalog's). Only approved catalogs with imports on and not paused.
| | |
| --- | --- |
| `POST /api/v1/importer/jobs/claim` | `{limit}` (1-20) → `{jobs: [{id, kind, imvuProduct, lastRevision, rating}]}`; `rating` is IMVU's (`general`, `adult`, or null when the hub couldn't see it), for the importer to write into `index.xml` as `ProductRating` (GA, AP); claimed jobs not reported within 30 minutes go back to the queue |
| `POST /api/v1/importer/jobs/:id/token` | `{imvuRevision}` → `{token, url}`: a `t5de-import` token and the catalog's upload URL |
| `POST /api/v1/importer/jobs/claim` | `{limit}` (1-20) → `{jobs: [{id, kind, imvuProduct, lastRevision, rating}]}`; `kind` is `import`, `recheck` or `list`; `rating` is IMVU's (`general`, `adult`, or null when IMVU hides the product from the hub: the importer reports what its account sees first, `/info` below), for the importer to write into `index.xml` as `ProductRating` (GA, AP). A `list` job (a whole shop, signed in) has `imvuCreator` (the shop's IMVU account) and `imvuProduct` 0. Claimed jobs not reported within 30 minutes go back to the queue |
| `POST /api/v1/importer/jobs/:id/token` | `{imvuRevision}` → `{token, url}`: a `t5de-import` token and the catalog's upload URL (not for `list` jobs: 409 `not_product`) |
| `POST /api/v1/importer/jobs/:id/listing` | a `list` job's products, as the importer's IMVU account lists the shop: `{products: [{id, name, rating, creatorId, creatorName, purchasable}]}` → `{listed, queued}` (imports.md, "Access Pass products") |
| `POST /api/v1/importer/jobs/:id/info` | an import or recheck job's product, as the importer's IMVU account sees it: `{found, name?, rating?, creatorId?, creatorName?, purchasable?}` → `{rating, covered}` |
| `POST /api/v1/importer/jobs/:id` | `{status: "done" \| "failed" \| "unchanged", imvuRevision?, reason?}` |
| `POST /api/v1/importer/hello` | `{version, publicKey}` (base64 SPKI, RSA 3072 to 4096 bits) → the config, as below. Sent at start. A new key means passwords sealed for the old one can't be read: the catalog's accounts then need their passwords again (imports.md "IMVU accounts"). |
| `GET /api/v1/importer/config` | `{paused, settings: {rate, concurrency}, fingerprint, accounts: [{id, imvuId, username, sealed}]}`, accounts in the order to try them. `sealed` (or null): `{imvuId, password}` as JSON, RSA-OAEP (SHA-256) for the importer's key, base64; check `imvuId`. Polled every minute; accounts no longer listed are forgotten. |