@rimori/client 2.5.7 → 2.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,8 +89,8 @@ export interface DbNormalTableDefinition {
89
89
  * Shared content table schema definition.
90
90
  * Defines the structure for community-shared content tables with automatic columns and verification.
91
91
  * Table naming: {pluginId}_sc_{table_name}
92
- * Automatic columns: title (text), keywords (text[]), verified (boolean), embedding (vector)
93
- * Hardcoded permissions: read ALL public+own, insert/update/delete OWN
92
+ * Automatic columns: title (text), keywords (text[]), content_status (text: featured/community/unverified), embedding (vector)
93
+ * Hardcoded permissions: read ALL public verified (community/featured) + own, insert/update/delete OWN
94
94
  */
95
95
  export interface DbSharedContentTableDefinition {
96
96
  /** Type discriminator for shared content tables */
@@ -101,7 +101,7 @@ export interface DbSharedContentTableDefinition {
101
101
  description: string;
102
102
  /** AI prompt for generating content. Supports placeholders like {{topic}}, {{level}}, etc. */
103
103
  instructions: string;
104
- /** Optional AI prompt to verify content quality before marking as verified */
104
+ /** Optional AI prompt to verify content quality and set content_status to 'community' */
105
105
  verification_prompt: string;
106
106
  /** Column definitions for the table (excluding auto-generated columns) */
107
107
  columns: {
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { setupWorker } from './worker/WorkerSetup';
9
9
  export { AudioController } from './controller/AudioController';
10
10
  export { Translator } from './controller/TranslationController';
11
11
  export type { TOptions } from 'i18next';
12
- export type { SharedContent, BasicSharedContent } from './plugin/module/SharedContentController';
12
+ export type { SharedContent, BasicSharedContent, ContentStatus } from './plugin/module/SharedContentController';
13
13
  export type { Exercise } from './plugin/module/ExerciseModule';
14
14
  export type { UserInfo, Language, UserRole } from './controller/SettingsController';
15
15
  export type { Message, ToolInvocation } from './controller/AIController';
@@ -2,11 +2,12 @@ import { ObjectTool } from '../../fromRimori/PluginTypes';
2
2
  import { SupabaseClient } from '../CommunicationHandler';
3
3
  import { RimoriClient } from '../RimoriClient';
4
4
  export type SharedContent<T> = BasicSharedContent & T;
5
+ export type ContentStatus = 'featured' | 'community' | 'unverified';
5
6
  export interface BasicSharedContent {
6
7
  id: string;
7
8
  title: string;
8
9
  keywords: string[];
9
- verified: boolean;
10
+ content_status: ContentStatus;
10
11
  created_by: string;
11
12
  created_at: string;
12
13
  guild_id: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/client",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {