Phase 4b, continued (docs/imports.md "Whole shops"):
A whole-shop grant now imports the shop's products, not only the ones people asked for.
GET /imports/available lets the proxy show what's on T5DE in IMVU's shop.
Whole shops
IMVU lists a shop's products to anyone signed out (api.imvu.com/product?creator=<username>), general-rated ones only.
When the hub lists a shop:
when the grant is accepted (or becomes a whole shop)
then daily: a few shops an hour, oldest listing first
on List the shop again (the catalog's team or the creator; at most 3 an hour)
Each listing:
Looks the IMVU account up by ID first, because the listing goes by its current username.
Keeps every product's info (imvu_product_info), so the queue shows names, and their rechecks need no lookup that day.
Records when it listed and how many products (import_grant.shop_listed_at, shop_listed).
Queues the creator's known products that aren't imported in that catalog yet, less exclusions. Queuing now inserts in batches.
A product that drops out of the listing isn't withdrawn for that: it may have become Access Pass. Rechecks decide, as before.
IMVU's paging is unreliable. With pages of 100 (or its default 50), pages overlap: walking NellLuna's 639 products gave 580 different ones. One page of up to 1000 returns them all. So the hub asks for pages of 1000, follows next only on IMVU's API, drops repeats, and stops at 10 pages.
Console: grants show "On IMVU: 639 general-rated products (checked …)" on the catalog's Imports page, the creator's /imports and the console's recorded grants. The catalog's page has List the shop now (or again).
GET /api/v1/imports/available?products=&creators= (anyone; up to 100 of each)
Per product:
imported, with the hub product
adult: imported, but the person can't see adult products
queued
covered: a grant covers it, so asking queues it
none: asking only counts it
requested, when signed in
Per shop: whether a whole-shop grant is active, and how many of the shop's products are on T5DE.
It answers from what the hub knows and never calls IMVU.
Checks
API test: a new test covers:
a fake IMVU listing with overlapping pages, and another creator's product left out
listing on accept
exclusions
the cached info
every availability status and requested
adult products for people without an adult account
"list again" (permissions, new products)
the daily listing
grants of chosen products refused
All 62 tests pass, and type checks pass for the API and the website.
Scratch hub, with real IMVU: clicked List the shop now for NellLuna's grant in a browser:
it listed 639 products and queued 639
List the shop again found 639 and queued 0
the queue shows the products' names
/imports/available answered queued for two of her products, none for a made-up ID, and shop: true for her shop
Not built yet: the spike, t5de-importer, and its report of Access Pass products' info.
Phase 4b, continued (docs/imports.md "Whole shops"):
- A whole-shop grant now imports the shop's products, not only the ones people asked for.
- `GET /imports/available` lets the proxy show what's on T5DE in IMVU's shop.
**Whole shops**
- IMVU lists a shop's products to anyone signed out (`api.imvu.com/product?creator=<username>`), general-rated ones only.
- **When the hub lists a shop:**
- when the grant is accepted (or becomes a whole shop)
- then daily: a few shops an hour, oldest listing first
- on **List the shop again** (the catalog's team or the creator; at most 3 an hour)
- **Each listing:**
- Looks the IMVU account up by ID first, because the listing goes by its current username.
- Keeps every product's info (`imvu_product_info`), so the queue shows names, and their rechecks need no lookup that day.
- Records when it listed and how many products (`import_grant.shop_listed_at`, `shop_listed`).
- Queues the creator's known products that aren't imported in that catalog yet, less exclusions. Queuing now inserts in batches.
- A product that drops out of the listing isn't withdrawn for that: it may have become Access Pass. Rechecks decide, as before.
- **IMVU's paging is unreliable.** With pages of 100 (or its default 50), pages overlap: walking NellLuna's 639 products gave 580 different ones. One page of up to 1000 returns them all. So the hub asks for pages of 1000, follows `next` only on IMVU's API, drops repeats, and stops at 10 pages.
- **Console:** grants show "On IMVU: 639 general-rated products (checked …)" on the catalog's Imports page, the creator's /imports and the console's recorded grants. The catalog's page has **List the shop now** (or **again**).
**`GET /api/v1/imports/available?products=&creators=`** (anyone; up to 100 of each)
- **Per product:**
- `imported`, with the hub product
- `adult`: imported, but the person can't see adult products
- `queued`
- `covered`: a grant covers it, so asking queues it
- `none`: asking only counts it
- `requested`, when signed in
- **Per shop:** whether a whole-shop grant is active, and how many of the shop's products are on T5DE.
- It answers from what the hub knows and never calls IMVU.
**Checks**
- **API test:** a new test covers:
- a fake IMVU listing with overlapping pages, and another creator's product left out
- listing on accept
- exclusions
- the cached info
- every availability status and `requested`
- adult products for people without an adult account
- "list again" (permissions, new products)
- the daily listing
- grants of chosen products refused
- All 62 tests pass, and type checks pass for the API and the website.
- **Scratch hub, with real IMVU:** clicked **List the shop now** for NellLuna's grant in a browser:
- it listed 639 products and queued 639
- **List the shop again** found 639 and queued 0
- the queue shows the products' names
- `/imports/available` answered `queued` for two of her products, `none` for a made-up ID, and `shop: true` for her shop
Not built yet: the spike, `t5de-importer`, and its report of Access Pass products' info.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Whole-shop grants now import the shop's products, not only those people asked for. The hub lists the shop on
IMVU's public API (general-rated products) when the grant is accepted, daily after, and on "List the shop again".
Each listing keeps the products' info and queues what isn't imported yet, less exclusions. IMVU's small pages
overlap and miss products, so the hub asks for pages of 1000 and drops repeats.
GET /imports/available tells the proxy what T5DE has of IMVU products and shops, from what the hub knows only.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dhkatz
merged commit efc7d6b808 into main2026-11-08 00:51:01 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Phase 4b, continued (docs/imports.md "Whole shops"):
GET /imports/availablelets the proxy show what's on T5DE in IMVU's shop.Whole shops
api.imvu.com/product?creator=<username>), general-rated ones only.imvu_product_info), so the queue shows names, and their rechecks need no lookup that day.import_grant.shop_listed_at,shop_listed).nextonly on IMVU's API, drops repeats, and stops at 10 pages.GET /api/v1/imports/available?products=&creators=(anyone; up to 100 of each)imported, with the hub productadult: imported, but the person can't see adult productsqueuedcovered: a grant covers it, so asking queues itnone: asking only counts itrequested, when signed inChecks
requested/imports/availableansweredqueuedfor two of her products,nonefor a made-up ID, andshop: truefor her shopNot built yet: the spike,
t5de-importer, and its report of Access Pass products' info.🤖 Generated with Claude Code