@rimori/client 2.5.24 → 2.5.25-next.1

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.
@@ -9,6 +9,7 @@ export interface Guild {
9
9
  description: string | null;
10
10
  id: string;
11
11
  isPublic: boolean;
12
+ isShadowGuild: boolean;
12
13
  name: string;
13
14
  ownerId: string;
14
15
  primaryLanguage: string;
@@ -20,7 +20,7 @@ type DbQueryBuilder<Row extends Record<string, unknown>> = Omit<PostgrestQueryBu
20
20
  count?: 'exact' | 'planned' | 'estimated';
21
21
  }): PostgrestFilterBuilder<any, any, Row, Row[], string, any, 'GET'>;
22
22
  };
23
- export type PublicityLevel = 'own' | 'guild';
23
+ export type PublicityLevel = 'own' | 'guild' | 'lang';
24
24
  /**
25
25
  * Database module for plugin database operations.
26
26
  * Provides access to plugin tables with automatic prefixing and schema management.
@@ -19,7 +19,7 @@ export interface Exercise {
19
19
  plugin_id: string;
20
20
  start_date: string;
21
21
  end_date: string;
22
- trigger_action: TriggerAction;
22
+ attributes: TriggerAction;
23
23
  achievement_topic: string;
24
24
  name: string;
25
25
  description: string;
@@ -29,7 +29,7 @@ export class ExerciseModule {
29
29
  */
30
30
  view() {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
- const { data, error } = yield this.supabase.from('weekly_exercises').select('*');
32
+ const { data, error } = yield this.supabase.schema('public').from('weekly_exercises').select('*');
33
33
  if (error) {
34
34
  throw new Error(`Failed to fetch weekly exercises: ${error.message}`);
35
35
  }
@@ -55,6 +55,7 @@ export declare class PluginModule {
55
55
  id: string;
56
56
  name: string;
57
57
  description: string | null;
58
+ isShadowGuild: boolean;
58
59
  };
59
60
  /**
60
61
  * Register a callback to be notified when RimoriInfo is updated.
@@ -134,7 +135,6 @@ export interface UserInfo {
134
135
  skill_level_listening: LanguageLevel;
135
136
  skill_level_understanding: LanguageLevel;
136
137
  study_buddy: Buddy;
137
- study_duration: number;
138
138
  /**
139
139
  * The language the user speaks natively.
140
140
  */
@@ -143,6 +143,7 @@ export class PluginModule {
143
143
  id: this.rimoriInfo.guild.id,
144
144
  name: this.rimoriInfo.guild.name,
145
145
  description: this.rimoriInfo.guild.description,
146
+ isShadowGuild: this.rimoriInfo.guild.isShadowGuild,
146
147
  };
147
148
  }
148
149
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/client",
3
- "version": "2.5.24",
3
+ "version": "2.5.25-next.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {