@adventurelabs/scout-core 1.4.83 → 1.4.85

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.
@@ -3,7 +3,7 @@ export type Json = string | number | boolean | null | {
3
3
  } | Json[];
4
4
  export type Database = {
5
5
  __InternalSupabase: {
6
- PostgrestVersion: "14.4";
6
+ PostgrestVersion: "14.5";
7
7
  };
8
8
  public: {
9
9
  Tables: {
@@ -514,47 +514,6 @@ export type Database = {
514
514
  }
515
515
  ];
516
516
  };
517
- credentials: {
518
- Row: {
519
- created_at: string;
520
- expiration: string | null;
521
- id: number;
522
- issuer: string;
523
- tracking_number: string | null;
524
- type: string;
525
- updated_at: string | null;
526
- user_id: string;
527
- };
528
- Insert: {
529
- created_at?: string;
530
- expiration?: string | null;
531
- id?: number;
532
- issuer: string;
533
- tracking_number?: string | null;
534
- type: string;
535
- updated_at?: string | null;
536
- user_id: string;
537
- };
538
- Update: {
539
- created_at?: string;
540
- expiration?: string | null;
541
- id?: number;
542
- issuer?: string;
543
- tracking_number?: string | null;
544
- type?: string;
545
- updated_at?: string | null;
546
- user_id?: string;
547
- };
548
- Relationships: [
549
- {
550
- foreignKeyName: "credentials_user_id_fkey";
551
- columns: ["user_id"];
552
- isOneToOne: false;
553
- referencedRelation: "users";
554
- referencedColumns: ["id"];
555
- }
556
- ];
557
- };
558
517
  devices: {
559
518
  Row: {
560
519
  altitude: number | null;
@@ -932,6 +891,69 @@ export type Database = {
932
891
  }
933
892
  ];
934
893
  };
894
+ herd_credentials: {
895
+ Row: {
896
+ created_at: string;
897
+ expiration: string | null;
898
+ file_uri: string | null;
899
+ herd_id: number;
900
+ id: number;
901
+ issuer: string;
902
+ lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
903
+ lifecycle_changed_at: string;
904
+ lifecycle_changed_by: string | null;
905
+ lifecycle_reason: string | null;
906
+ tracking_number: string | null;
907
+ type: string;
908
+ updated_at: string;
909
+ };
910
+ Insert: {
911
+ created_at?: string;
912
+ expiration?: string | null;
913
+ file_uri?: string | null;
914
+ herd_id: number;
915
+ id?: number;
916
+ issuer: string;
917
+ lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
918
+ lifecycle_changed_at?: string;
919
+ lifecycle_changed_by?: string | null;
920
+ lifecycle_reason?: string | null;
921
+ tracking_number?: string | null;
922
+ type: string;
923
+ updated_at?: string;
924
+ };
925
+ Update: {
926
+ created_at?: string;
927
+ expiration?: string | null;
928
+ file_uri?: string | null;
929
+ herd_id?: number;
930
+ id?: number;
931
+ issuer?: string;
932
+ lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
933
+ lifecycle_changed_at?: string;
934
+ lifecycle_changed_by?: string | null;
935
+ lifecycle_reason?: string | null;
936
+ tracking_number?: string | null;
937
+ type?: string;
938
+ updated_at?: string;
939
+ };
940
+ Relationships: [
941
+ {
942
+ foreignKeyName: "herd_credentials_herd_id_fkey";
943
+ columns: ["herd_id"];
944
+ isOneToOne: false;
945
+ referencedRelation: "herds";
946
+ referencedColumns: ["id"];
947
+ },
948
+ {
949
+ foreignKeyName: "herd_credentials_lifecycle_changed_by_fkey";
950
+ columns: ["lifecycle_changed_by"];
951
+ isOneToOne: false;
952
+ referencedRelation: "users";
953
+ referencedColumns: ["id"];
954
+ }
955
+ ];
956
+ };
935
957
  herd_invitations: {
936
958
  Row: {
937
959
  accepted_at: string | null;
@@ -1063,46 +1085,31 @@ export type Database = {
1063
1085
  auto_delete_media_with_humans: boolean | null;
1064
1086
  auto_delete_media_with_no_tracks: boolean | null;
1065
1087
  description: string;
1066
- earthranger_domain: string | null;
1067
- earthranger_token: string | null;
1068
1088
  id: number;
1069
1089
  inserted_at: string;
1070
1090
  is_public: boolean;
1071
1091
  location: unknown;
1072
1092
  slug: string;
1073
- video_publisher_token: string | null;
1074
- video_server_url: string | null;
1075
- video_subscriber_token: string | null;
1076
1093
  };
1077
1094
  Insert: {
1078
1095
  auto_delete_media_with_humans?: boolean | null;
1079
1096
  auto_delete_media_with_no_tracks?: boolean | null;
1080
1097
  description: string;
1081
- earthranger_domain?: string | null;
1082
- earthranger_token?: string | null;
1083
1098
  id?: number;
1084
1099
  inserted_at?: string;
1085
1100
  is_public?: boolean;
1086
1101
  location?: unknown;
1087
1102
  slug: string;
1088
- video_publisher_token?: string | null;
1089
- video_server_url?: string | null;
1090
- video_subscriber_token?: string | null;
1091
1103
  };
1092
1104
  Update: {
1093
1105
  auto_delete_media_with_humans?: boolean | null;
1094
1106
  auto_delete_media_with_no_tracks?: boolean | null;
1095
1107
  description?: string;
1096
- earthranger_domain?: string | null;
1097
- earthranger_token?: string | null;
1098
1108
  id?: number;
1099
1109
  inserted_at?: string;
1100
1110
  is_public?: boolean;
1101
1111
  location?: unknown;
1102
1112
  slug?: string;
1103
- video_publisher_token?: string | null;
1104
- video_server_url?: string | null;
1105
- video_subscriber_token?: string | null;
1106
1113
  };
1107
1114
  Relationships: [];
1108
1115
  };
@@ -1577,7 +1584,9 @@ export type Database = {
1577
1584
  herd_id: number;
1578
1585
  id: number;
1579
1586
  key: string | null;
1587
+ sensitivity_tier: number | null;
1580
1588
  source: string;
1589
+ timestamp_expiration: string | null;
1581
1590
  type: string;
1582
1591
  };
1583
1592
  Insert: {
@@ -1585,7 +1594,9 @@ export type Database = {
1585
1594
  herd_id: number;
1586
1595
  id?: number;
1587
1596
  key?: string | null;
1597
+ sensitivity_tier?: number | null;
1588
1598
  source: string;
1599
+ timestamp_expiration?: string | null;
1589
1600
  type: string;
1590
1601
  };
1591
1602
  Update: {
@@ -1593,7 +1604,9 @@ export type Database = {
1593
1604
  herd_id?: number;
1594
1605
  id?: number;
1595
1606
  key?: string | null;
1607
+ sensitivity_tier?: number | null;
1596
1608
  source?: string;
1609
+ timestamp_expiration?: string | null;
1597
1610
  type?: string;
1598
1611
  };
1599
1612
  Relationships: [
@@ -1943,6 +1956,69 @@ export type Database = {
1943
1956
  }
1944
1957
  ];
1945
1958
  };
1959
+ user_credentials: {
1960
+ Row: {
1961
+ created_at: string;
1962
+ expiration: string | null;
1963
+ file_uri: string | null;
1964
+ id: number;
1965
+ issuer: string;
1966
+ lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
1967
+ lifecycle_changed_at: string;
1968
+ lifecycle_changed_by: string | null;
1969
+ lifecycle_reason: string | null;
1970
+ tracking_number: string | null;
1971
+ type: string;
1972
+ updated_at: string;
1973
+ user_id: string;
1974
+ };
1975
+ Insert: {
1976
+ created_at?: string;
1977
+ expiration?: string | null;
1978
+ file_uri?: string | null;
1979
+ id?: number;
1980
+ issuer: string;
1981
+ lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
1982
+ lifecycle_changed_at?: string;
1983
+ lifecycle_changed_by?: string | null;
1984
+ lifecycle_reason?: string | null;
1985
+ tracking_number?: string | null;
1986
+ type: string;
1987
+ updated_at?: string;
1988
+ user_id: string;
1989
+ };
1990
+ Update: {
1991
+ created_at?: string;
1992
+ expiration?: string | null;
1993
+ file_uri?: string | null;
1994
+ id?: number;
1995
+ issuer?: string;
1996
+ lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
1997
+ lifecycle_changed_at?: string;
1998
+ lifecycle_changed_by?: string | null;
1999
+ lifecycle_reason?: string | null;
2000
+ tracking_number?: string | null;
2001
+ type?: string;
2002
+ updated_at?: string;
2003
+ user_id?: string;
2004
+ };
2005
+ Relationships: [
2006
+ {
2007
+ foreignKeyName: "user_credentials_lifecycle_changed_by_fkey";
2008
+ columns: ["lifecycle_changed_by"];
2009
+ isOneToOne: false;
2010
+ referencedRelation: "users";
2011
+ referencedColumns: ["id"];
2012
+ },
2013
+ {
2014
+ foreignKeyName: "user_credentials_user_id_fkey";
2015
+ columns: ["user_id"];
2016
+ isOneToOne: false;
2017
+ referencedRelation: "users";
2018
+ referencedColumns: ["id"];
2019
+ }
2020
+ ];
2021
+ };
1946
2022
  users: {
1947
2023
  Row: {
1948
2024
  auto_approve_sessions: boolean;
@@ -2313,6 +2389,10 @@ export type Database = {
2313
2389
  isSetofReturn: true;
2314
2390
  };
2315
2391
  };
2392
+ auto_assign_session_post_approver: {
2393
+ Args: never;
2394
+ Returns: number;
2395
+ };
2316
2396
  check_realtime_schema_status: {
2317
2397
  Args: never;
2318
2398
  Returns: {
@@ -3237,16 +3317,6 @@ export type Database = {
3237
3317
  };
3238
3318
  };
3239
3319
  get_session_summaries: {
3240
- Args: {
3241
- device_id_caller?: number;
3242
- end_date_caller?: string;
3243
- herd_id_caller?: number;
3244
- min_distance_meters_caller?: number;
3245
- min_duration_minutes_caller?: number;
3246
- start_date_caller?: string;
3247
- };
3248
- Returns: Json;
3249
- } | {
3250
3320
  Args: {
3251
3321
  device_id_caller?: number;
3252
3322
  end_date_caller?: string;
@@ -3259,16 +3329,6 @@ export type Database = {
3259
3329
  Returns: Json;
3260
3330
  };
3261
3331
  get_session_usage_over_time: {
3262
- Args: {
3263
- device_id_caller?: number;
3264
- end_date_caller?: string;
3265
- herd_id_caller?: number;
3266
- min_distance_meters_caller?: number;
3267
- min_duration_minutes_caller?: number;
3268
- start_date_caller?: string;
3269
- };
3270
- Returns: Json;
3271
- } | {
3272
3332
  Args: {
3273
3333
  device_id_caller?: number;
3274
3334
  end_date_caller?: string;
@@ -3534,6 +3594,21 @@ export type Database = {
3534
3594
  isSetofReturn: true;
3535
3595
  };
3536
3596
  };
3597
+ migrate_conservaition_users_to_sentala: {
3598
+ Args: {
3599
+ preview?: boolean;
3600
+ source_domains?: string[];
3601
+ target_domain?: string;
3602
+ };
3603
+ Returns: {
3604
+ action: string;
3605
+ detail: string;
3606
+ source_email: string;
3607
+ source_user_id: string;
3608
+ target_email: string;
3609
+ target_user_id: string;
3610
+ }[];
3611
+ };
3537
3612
  preview_fix_all_sessions_missing_distance: {
3538
3613
  Args: never;
3539
3614
  Returns: {
@@ -3889,11 +3964,6 @@ export type Database = {
3889
3964
  slug: string | null;
3890
3965
  description: string | null;
3891
3966
  is_public: boolean | null;
3892
- earthranger_domain: string | null;
3893
- earthranger_token: string | null;
3894
- video_publisher_token: string | null;
3895
- video_subscriber_token: string | null;
3896
- video_server_url: string | null;
3897
3967
  location: string | null;
3898
3968
  latitude: number | null;
3899
3969
  longitude: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.4.83",
3
+ "version": "1.4.85",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",