feat(imports): Access Pass products through the importer's signed-in account (#20)
Release / release (push) Successful in 4s
CI / test (push) Successful in 7m28s
CI / image (apps/api/Dockerfile, t5de-hub-api) (push) Successful in 5s
CI / image (apps/web/Dockerfile, t5de-hub-web) (push) Successful in 16s

Co-authored-by: dhkatz <[email protected]>
This commit was merged in pull request #20.
This commit is contained in:
dhkatz authored and dhkatz committed 2026-11-08 16:10:34 +00:00
1 parent 56d25f7507
commit cc6959082c
12 files changed
+4871 -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. |