@everylanguage/shared-types 1.0.17 → 1.0.19

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.17",
3
+ "version": "1.0.19",
4
4
  "type": "module",
5
5
  "main": "types/database.js",
6
6
  "types": "types/database.d.ts",
@@ -66,6 +66,7 @@
66
66
  "license": "ISC",
67
67
  "description": "Supabase backend for EL audio translation platform",
68
68
  "dependencies": {
69
+ "@cloudflare/workers-types": "^4.20250813.0",
69
70
  "@typescript-eslint/eslint-plugin": "^8.34.1",
70
71
  "@typescript-eslint/parser": "^8.34.1",
71
72
  "backblaze-b2": "^1.7.1",
@@ -80,7 +81,8 @@
80
81
  "prettier": "^3.5.3",
81
82
  "shapefile": "^0.6.6",
82
83
  "sql-formatter": "^15.6.5",
83
- "typescript": "^5.8.3"
84
+ "typescript": "^5.8.3",
85
+ "wa-sqlite": "^1.0.0"
84
86
  },
85
87
  "devDependencies": {
86
88
  "@commitlint/cli": "^19.8.1",
@@ -433,10 +433,11 @@ export type Database = {
433
433
  created_at: string | null;
434
434
  created_by: string | null;
435
435
  deleted_at: string | null;
436
+ file_type: string | null;
436
437
  id: string;
437
438
  object_key: string | null;
439
+ original_filename: string | null;
438
440
  publish_status: Database["public"]["Enums"]["publish_status"];
439
- remote_path: string;
440
441
  set_id: string | null;
441
442
  storage_provider: string | null;
442
443
  target_id: string;
@@ -448,10 +449,11 @@ export type Database = {
448
449
  created_at?: string | null;
449
450
  created_by?: string | null;
450
451
  deleted_at?: string | null;
452
+ file_type?: string | null;
451
453
  id?: string;
452
454
  object_key?: string | null;
455
+ original_filename?: string | null;
453
456
  publish_status?: Database["public"]["Enums"]["publish_status"];
454
- remote_path: string;
455
457
  set_id?: string | null;
456
458
  storage_provider?: string | null;
457
459
  target_id: string;
@@ -463,10 +465,11 @@ export type Database = {
463
465
  created_at?: string | null;
464
466
  created_by?: string | null;
465
467
  deleted_at?: string | null;
468
+ file_type?: string | null;
466
469
  id?: string;
467
470
  object_key?: string | null;
471
+ original_filename?: string | null;
468
472
  publish_status?: Database["public"]["Enums"]["publish_status"];
469
- remote_path?: string;
470
473
  set_id?: string | null;
471
474
  storage_provider?: string | null;
472
475
  target_id?: string;
@@ -842,13 +845,14 @@ export type Database = {
842
845
  duration_seconds: number | null;
843
846
  end_verse_id: string | null;
844
847
  file_size: number | null;
848
+ file_type: string | null;
845
849
  id: string;
846
850
  is_bible_audio: boolean | null;
847
851
  language_entity_id: string;
848
852
  media_type: Database["public"]["Enums"]["media_type"];
849
853
  object_key: string | null;
854
+ original_filename: string | null;
850
855
  publish_status: Database["public"]["Enums"]["publish_status"] | null;
851
- remote_path: string | null;
852
856
  start_verse_id: string | null;
853
857
  storage_provider: string | null;
854
858
  updated_at: string | null;
@@ -865,13 +869,14 @@ export type Database = {
865
869
  duration_seconds?: number | null;
866
870
  end_verse_id?: string | null;
867
871
  file_size?: number | null;
872
+ file_type?: string | null;
868
873
  id?: string;
869
874
  is_bible_audio?: boolean | null;
870
875
  language_entity_id: string;
871
876
  media_type: Database["public"]["Enums"]["media_type"];
872
877
  object_key?: string | null;
878
+ original_filename?: string | null;
873
879
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
874
- remote_path?: string | null;
875
880
  start_verse_id?: string | null;
876
881
  storage_provider?: string | null;
877
882
  updated_at?: string | null;
@@ -888,13 +893,14 @@ export type Database = {
888
893
  duration_seconds?: number | null;
889
894
  end_verse_id?: string | null;
890
895
  file_size?: number | null;
896
+ file_type?: string | null;
891
897
  id?: string;
892
898
  is_bible_audio?: boolean | null;
893
899
  language_entity_id?: string;
894
900
  media_type?: Database["public"]["Enums"]["media_type"];
895
901
  object_key?: string | null;
902
+ original_filename?: string | null;
896
903
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
897
- remote_path?: string | null;
898
904
  start_verse_id?: string | null;
899
905
  storage_provider?: string | null;
900
906
  updated_at?: string | null;
@@ -4259,6 +4265,29 @@ export type Database = {
4259
4265
  Args: Record<PropertyKey, never>;
4260
4266
  Returns: string;
4261
4267
  };
4268
+ recommend_language_versions: {
4269
+ Args: {
4270
+ filter_type?: Database["public"]["Enums"]["version_filter_type"];
4271
+ include_regions?: boolean;
4272
+ lookback_days?: number;
4273
+ max_results?: number;
4274
+ };
4275
+ Returns: {
4276
+ alias_id: string;
4277
+ alias_name: string;
4278
+ alias_similarity_score: number;
4279
+ audio_version_count: number;
4280
+ audio_versions: Json;
4281
+ entity_id: string;
4282
+ entity_level: string;
4283
+ entity_name: string;
4284
+ entity_parent_id: string;
4285
+ regions: Json;
4286
+ similarity_threshold_used: number;
4287
+ text_version_count: number;
4288
+ text_versions: Json;
4289
+ }[];
4290
+ };
4262
4291
  refresh_all_global_orders: {
4263
4292
  Args: Record<PropertyKey, never>;
4264
4293
  Returns: undefined;