feat: importer IMVU accounts and settings from the console
Pull request / title (pull_request) Successful in 2s
CI / test (pull_request) Successful in 1m18s
CI / image (apps/api/Dockerfile, t5de-hub-api) (pull_request) Skipped
CI / image (apps/web/Dockerfile, t5de-hub-web) (pull_request) Skipped

The importer sends its RSA public key (POST /importer/hello); the console
looks IMVU accounts up, confirms them in a dialog, and seals each password
in the browser for that key. The hub keeps only the sealed copy, until the
importer confirms it has it. Accounts are tried in order; settings (rate,
jobs at once) come from the console too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
dhkatzandClaude Opus 5.5 committed 2026-11-07 10:01:11 -08:00
1 parent d716aabbd2
commit dcc39d82ab
16 files changed
+5505 -9

No files matched your search

@@ -0,0 +1,27 @@
CREATE TABLE "importer_account" (
"id" text PRIMARY KEY NOT NULL,
"catalog_id" text NOT NULL,
"imvu_id" bigint NOT NULL,
"username" text NOT NULL,
"position" integer NOT NULL,
"sealed" text,
"sealed_for" text,
"sealed_at" timestamp with time zone,
"state" text DEFAULT 'waiting' NOT NULL,
"state_message" text DEFAULT '' NOT NULL,
"state_at" timestamp with time zone DEFAULT now() NOT NULL,
"access_pass" boolean DEFAULT false NOT NULL,
"age_verified" boolean DEFAULT false NOT NULL,
"added_by" text,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "catalog" ADD COLUMN "importer_public_key" text;--> statement-breakpoint
ALTER TABLE "catalog" ADD COLUMN "importer_fingerprint" text;--> statement-breakpoint
ALTER TABLE "catalog" ADD COLUMN "importer_version" text DEFAULT '' NOT NULL;--> statement-breakpoint
ALTER TABLE "catalog" ADD COLUMN "importer_seen_at" timestamp with time zone;--> statement-breakpoint
ALTER TABLE "catalog" ADD COLUMN "importer_settings" jsonb DEFAULT '{"rate":2,"concurrency":2}'::jsonb NOT NULL;--> statement-breakpoint
ALTER TABLE "importer_account" ADD CONSTRAINT "importer_account_catalog_id_catalog_id_fk" FOREIGN KEY ("catalog_id") REFERENCES "public"."catalog"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "importer_account" ADD CONSTRAINT "importer_account_added_by_user_id_fk" FOREIGN KEY ("added_by") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
CREATE UNIQUE INDEX "importer_account_imvu" ON "importer_account" USING btree ("catalog_id","imvu_id");
File diff suppressed because it is too large. Load diff
+7
View File
@@ -120,6 +120,13 @@
"when": 1793935614967,
"tag": "0016_imports",
"breakpoints": true
},
{
"idx": 17,
"version": "7",
"when": 1794073227716,
"tag": "0017_importer_accounts",
"breakpoints": true
}
]
}