@everylanguage/shared-types 1.0.13 → 1.0.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everylanguage/shared-types",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "type": "module",
5
5
  "main": "types/database.js",
6
6
  "types": "types/database.d.ts",
@@ -2795,6 +2795,7 @@ export type Database = {
2795
2795
  };
2796
2796
  users_anon: {
2797
2797
  Row: {
2798
+ auth_uid: string | null;
2798
2799
  created_at: string | null;
2799
2800
  device_id: string;
2800
2801
  id: string;
@@ -2802,6 +2803,7 @@ export type Database = {
2802
2803
  user_id: string | null;
2803
2804
  };
2804
2805
  Insert: {
2806
+ auth_uid?: string | null;
2805
2807
  created_at?: string | null;
2806
2808
  device_id: string;
2807
2809
  id?: string;
@@ -2809,6 +2811,7 @@ export type Database = {
2809
2811
  user_id?: string | null;
2810
2812
  };
2811
2813
  Update: {
2814
+ auth_uid?: string | null;
2812
2815
  created_at?: string | null;
2813
2816
  device_id?: string;
2814
2817
  id?: string;
@@ -4205,6 +4208,30 @@ export type Database = {
4205
4208
  regions: Json;
4206
4209
  }[];
4207
4210
  };
4211
+ search_language_aliases_with_versions: {
4212
+ Args: {
4213
+ search_query: string;
4214
+ filter_type?: Database["public"]["Enums"]["version_filter_type"];
4215
+ max_results?: number;
4216
+ min_similarity?: number;
4217
+ include_regions?: boolean;
4218
+ };
4219
+ Returns: {
4220
+ similarity_threshold_used: number;
4221
+ alias_id: string;
4222
+ alias_name: string;
4223
+ alias_similarity_score: number;
4224
+ entity_id: string;
4225
+ entity_name: string;
4226
+ entity_level: string;
4227
+ entity_parent_id: string;
4228
+ regions: Json;
4229
+ audio_version_count: number;
4230
+ text_version_count: number;
4231
+ audio_versions: Json;
4232
+ text_versions: Json;
4233
+ }[];
4234
+ };
4208
4235
  search_region_aliases: {
4209
4236
  Args: {
4210
4237
  search_query: string;
@@ -5986,6 +6013,7 @@ export type Database = {
5986
6013
  testament: "old" | "new";
5987
6014
  text_version_source: "official_translation" | "ai_transcription" | "user_submitted";
5988
6015
  upload_status: "pending" | "uploading" | "completed" | "failed";
6016
+ version_filter_type: "audio_only" | "text_only" | "both_required" | "either";
5989
6017
  };
5990
6018
  CompositeTypes: {
5991
6019
  geometry_dump: {
@@ -6072,6 +6100,7 @@ export declare const Constants: {
6072
6100
  readonly testament: readonly ["old", "new"];
6073
6101
  readonly text_version_source: readonly ["official_translation", "ai_transcription", "user_submitted"];
6074
6102
  readonly upload_status: readonly ["pending", "uploading", "completed", "failed"];
6103
+ readonly version_filter_type: readonly ["audio_only", "text_only", "both_required", "either"];
6075
6104
  };
6076
6105
  };
6077
6106
  };