From 1bccfb79053e6a369335f4d083105596f40f5eb1 Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Thu, 26 Nov 2026 04:09:30 +0100 Subject: [PATCH] genre_id replaces category_id --- src/developer-surface.ts | 2 +- src/docs/resources.ts | 2 +- test/contract-parity.test.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/developer-surface.ts b/src/developer-surface.ts index 1561343..599c609 100644 --- a/src/developer-surface.ts +++ b/src/developer-surface.ts @@ -196,7 +196,7 @@ const structuredRulesByPath: Readonly> = { app_excluded: booleanRule, desktop_only: booleanRule, orientation: stringRule, - category_id: integerRule, + genre_id: integerRule, categories: { kind: 'array', item: integerRule } } }, diff --git a/src/docs/resources.ts b/src/docs/resources.ts index ff7f3e5..187b156 100644 --- a/src/docs/resources.ts +++ b/src/docs/resources.ts @@ -138,7 +138,7 @@ export const gamesDocumentation: ResourceDocumentation = { field('suggested_description', 'string', 'editable', 'Developer-proposed public description, at most 65535 UTF-8 bytes.'), field('suggested_categories', 'string', 'editable', 'Comma-separated Poki content-category names proposed by the developer, at most 65535 UTF-8 bytes total; use the title values from poki categories list. Playtest and Player Fit targeting use numeric IDs instead.'), field('tracks', 'array', 'read-only', 'Traffic allocation entries containing track, version_id, and weight. versions activate supports games with at most one existing track and replaces the allocation with one public track.'), - field('content_metadata', 'object|null', 'read-only', 'Current content and distribution metadata, including scheduled_release_status, scheduled_release_at, scheduled_release_confirmed (false means a draft), and play_store_url, apple_store_url, and steam_url when supplied by the endpoint.'), + field('content_metadata', 'object|null', 'read-only', 'Current content and distribution metadata, including the main genre_id, scheduled_release_status, scheduled_release_at, scheduled_release_confirmed (false means a draft), and play_store_url, apple_store_url, and steam_url when supplied by the endpoint.'), field('has_upload_token', 'boolean', 'read-only', 'Whether an upload token exists; the token value is never returned.'), field('has_auds_token', 'boolean', 'read-only', 'Internal Poki platform integration indicator; read-only and not actionable through the CLI. The token value is never returned.'), field('cached_has_revshare', 'boolean', 'computed read-only', 'Cached indication that the game currently has revenue sharing.'), diff --git a/test/contract-parity.test.ts b/test/contract-parity.test.ts index c94e9a0..223a8de 100644 --- a/test/contract-parity.test.ts +++ b/test/contract-parity.test.ts @@ -27,6 +27,7 @@ void test('game settings persist archive and personal favorite state, including void test('game reads preserve store URLs, planned releases, and Dialog integration', async t => { const metadata = { + genre_id: 9, release_status: 'live-test', scheduled_release_status: 'full-release', scheduled_release_at: '2026-11-01T10:00:00Z',