@adventurelabs/scout-core 1.4.68 → 1.4.70
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/dist/helpers/herd_allowed_domains.d.ts +5 -0
- package/dist/helpers/herd_allowed_domains.js +15 -0
- package/dist/helpers/herds.d.ts +4 -1
- package/dist/helpers/herds.js +1 -5
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.js +3 -0
- package/dist/helpers/invitations.d.ts +8 -0
- package/dist/helpers/invitations.js +47 -0
- package/dist/helpers/lifecycle.d.ts +14 -0
- package/dist/helpers/lifecycle.js +74 -0
- package/dist/helpers/parts.d.ts +19 -13
- package/dist/helpers/parts.js +51 -47
- package/dist/helpers/pubsub_token.d.ts +5 -0
- package/dist/helpers/pubsub_token.js +14 -0
- package/dist/helpers/pubsub_token_server.d.ts +7 -0
- package/dist/helpers/pubsub_token_server.js +7 -0
- package/dist/helpers/users.d.ts +4 -1
- package/dist/helpers/users.js +15 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -0
- package/dist/providers/ScoutRefreshProvider.d.ts +351 -26
- package/dist/types/db.d.ts +5 -0
- package/dist/types/pubsub_token.d.ts +7 -0
- package/dist/types/pubsub_token.js +1 -0
- package/dist/types/supabase.d.ts +366 -30
- package/dist/types/supabase.js +3 -2
- package/package.json +1 -1
|
@@ -169,6 +169,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
169
169
|
file_path: string;
|
|
170
170
|
file_size_bytes: number | null;
|
|
171
171
|
id: number;
|
|
172
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
173
|
+
lifecycle_changed_at: string;
|
|
174
|
+
lifecycle_changed_by: string | null;
|
|
175
|
+
lifecycle_reason: string | null;
|
|
172
176
|
modality: string | null;
|
|
173
177
|
segmented_at: string | null;
|
|
174
178
|
session_id: number | null;
|
|
@@ -185,6 +189,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
185
189
|
file_path: string;
|
|
186
190
|
file_size_bytes?: number | null;
|
|
187
191
|
id?: number;
|
|
192
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
193
|
+
lifecycle_changed_at?: string;
|
|
194
|
+
lifecycle_changed_by?: string | null;
|
|
195
|
+
lifecycle_reason?: string | null;
|
|
188
196
|
modality?: string | null;
|
|
189
197
|
segmented_at?: string | null;
|
|
190
198
|
session_id?: number | null;
|
|
@@ -201,6 +209,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
201
209
|
file_path?: string;
|
|
202
210
|
file_size_bytes?: number | null;
|
|
203
211
|
id?: number;
|
|
212
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
213
|
+
lifecycle_changed_at?: string;
|
|
214
|
+
lifecycle_changed_by?: string | null;
|
|
215
|
+
lifecycle_reason?: string | null;
|
|
204
216
|
modality?: string | null;
|
|
205
217
|
segmented_at?: string | null;
|
|
206
218
|
session_id?: number | null;
|
|
@@ -216,6 +228,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
216
228
|
isOneToOne: false;
|
|
217
229
|
referencedRelation: "devices";
|
|
218
230
|
referencedColumns: ["id"];
|
|
231
|
+
}, {
|
|
232
|
+
foreignKeyName: "artifacts_lifecycle_changed_by_fkey";
|
|
233
|
+
columns: ["lifecycle_changed_by"];
|
|
234
|
+
isOneToOne: false;
|
|
235
|
+
referencedRelation: "users";
|
|
236
|
+
referencedColumns: ["id"];
|
|
219
237
|
}, {
|
|
220
238
|
foreignKeyName: "artifacts_session_id_fkey";
|
|
221
239
|
columns: ["session_id"];
|
|
@@ -431,10 +449,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
431
449
|
herd_id: number;
|
|
432
450
|
id: number;
|
|
433
451
|
inserted_at: string;
|
|
452
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
453
|
+
lifecycle_changed_at: string;
|
|
454
|
+
lifecycle_changed_by: string | null;
|
|
455
|
+
lifecycle_reason: string | null;
|
|
434
456
|
location: unknown;
|
|
435
457
|
name: string;
|
|
436
|
-
video_publisher_token: string | null;
|
|
437
|
-
video_subscriber_token: string | null;
|
|
438
458
|
};
|
|
439
459
|
Insert: {
|
|
440
460
|
altitude?: number | null;
|
|
@@ -447,10 +467,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
447
467
|
herd_id: number;
|
|
448
468
|
id?: number;
|
|
449
469
|
inserted_at?: string;
|
|
470
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
471
|
+
lifecycle_changed_at?: string;
|
|
472
|
+
lifecycle_changed_by?: string | null;
|
|
473
|
+
lifecycle_reason?: string | null;
|
|
450
474
|
location?: unknown;
|
|
451
475
|
name: string;
|
|
452
|
-
video_publisher_token?: string | null;
|
|
453
|
-
video_subscriber_token?: string | null;
|
|
454
476
|
};
|
|
455
477
|
Update: {
|
|
456
478
|
altitude?: number | null;
|
|
@@ -463,10 +485,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
463
485
|
herd_id?: number;
|
|
464
486
|
id?: number;
|
|
465
487
|
inserted_at?: string;
|
|
488
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
489
|
+
lifecycle_changed_at?: string;
|
|
490
|
+
lifecycle_changed_by?: string | null;
|
|
491
|
+
lifecycle_reason?: string | null;
|
|
466
492
|
location?: unknown;
|
|
467
493
|
name?: string;
|
|
468
|
-
video_publisher_token?: string | null;
|
|
469
|
-
video_subscriber_token?: string | null;
|
|
470
494
|
};
|
|
471
495
|
Relationships: [{
|
|
472
496
|
foreignKeyName: "devices_created_by_fkey";
|
|
@@ -480,6 +504,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
480
504
|
isOneToOne: false;
|
|
481
505
|
referencedRelation: "herds";
|
|
482
506
|
referencedColumns: ["id"];
|
|
507
|
+
}, {
|
|
508
|
+
foreignKeyName: "devices_lifecycle_changed_by_fkey";
|
|
509
|
+
columns: ["lifecycle_changed_by"];
|
|
510
|
+
isOneToOne: false;
|
|
511
|
+
referencedRelation: "users";
|
|
512
|
+
referencedColumns: ["id"];
|
|
483
513
|
}];
|
|
484
514
|
};
|
|
485
515
|
embeddings_vertex_multimodal_001: {
|
|
@@ -571,6 +601,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
571
601
|
id: number;
|
|
572
602
|
inserted_at: string;
|
|
573
603
|
is_public: boolean;
|
|
604
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
605
|
+
lifecycle_changed_at: string;
|
|
606
|
+
lifecycle_changed_by: string | null;
|
|
607
|
+
lifecycle_reason: string | null;
|
|
574
608
|
location: unknown;
|
|
575
609
|
media_type: Database["public"]["Enums"]["media_type"];
|
|
576
610
|
media_url: string | null;
|
|
@@ -591,6 +625,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
591
625
|
id?: number;
|
|
592
626
|
inserted_at?: string;
|
|
593
627
|
is_public?: boolean;
|
|
628
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
629
|
+
lifecycle_changed_at?: string;
|
|
630
|
+
lifecycle_changed_by?: string | null;
|
|
631
|
+
lifecycle_reason?: string | null;
|
|
594
632
|
location?: unknown;
|
|
595
633
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
596
634
|
media_url?: string | null;
|
|
@@ -611,6 +649,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
611
649
|
id?: number;
|
|
612
650
|
inserted_at?: string;
|
|
613
651
|
is_public?: boolean;
|
|
652
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
653
|
+
lifecycle_changed_at?: string;
|
|
654
|
+
lifecycle_changed_by?: string | null;
|
|
655
|
+
lifecycle_reason?: string | null;
|
|
614
656
|
location?: unknown;
|
|
615
657
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
616
658
|
media_url?: string | null;
|
|
@@ -627,6 +669,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
627
669
|
isOneToOne: false;
|
|
628
670
|
referencedRelation: "devices";
|
|
629
671
|
referencedColumns: ["id"];
|
|
672
|
+
}, {
|
|
673
|
+
foreignKeyName: "events_lifecycle_changed_by_fkey";
|
|
674
|
+
columns: ["lifecycle_changed_by"];
|
|
675
|
+
isOneToOne: false;
|
|
676
|
+
referencedRelation: "users";
|
|
677
|
+
referencedColumns: ["id"];
|
|
630
678
|
}, {
|
|
631
679
|
foreignKeyName: "events_session_id_fkey";
|
|
632
680
|
columns: ["session_id"];
|
|
@@ -701,11 +749,85 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
701
749
|
referencedColumns: ["id"];
|
|
702
750
|
}];
|
|
703
751
|
};
|
|
752
|
+
herd_allowed_domains: {
|
|
753
|
+
Row: {
|
|
754
|
+
created_at: string;
|
|
755
|
+
domain: string;
|
|
756
|
+
herd_id: number;
|
|
757
|
+
id: number;
|
|
758
|
+
};
|
|
759
|
+
Insert: {
|
|
760
|
+
created_at?: string;
|
|
761
|
+
domain: string;
|
|
762
|
+
herd_id: number;
|
|
763
|
+
id?: number;
|
|
764
|
+
};
|
|
765
|
+
Update: {
|
|
766
|
+
created_at?: string;
|
|
767
|
+
domain?: string;
|
|
768
|
+
herd_id?: number;
|
|
769
|
+
id?: number;
|
|
770
|
+
};
|
|
771
|
+
Relationships: [{
|
|
772
|
+
foreignKeyName: "herd_allowed_domains_herd_id_fkey";
|
|
773
|
+
columns: ["herd_id"];
|
|
774
|
+
isOneToOne: false;
|
|
775
|
+
referencedRelation: "herds";
|
|
776
|
+
referencedColumns: ["id"];
|
|
777
|
+
}];
|
|
778
|
+
};
|
|
779
|
+
herd_invitations: {
|
|
780
|
+
Row: {
|
|
781
|
+
accepted_at: string | null;
|
|
782
|
+
created_at: string;
|
|
783
|
+
email: string;
|
|
784
|
+
expires_at: string | null;
|
|
785
|
+
herd_id: number;
|
|
786
|
+
id: number;
|
|
787
|
+
invited_by: string;
|
|
788
|
+
role: Database["public"]["Enums"]["role"];
|
|
789
|
+
status: Database["public"]["Enums"]["herd_invitation_status"];
|
|
790
|
+
};
|
|
791
|
+
Insert: {
|
|
792
|
+
accepted_at?: string | null;
|
|
793
|
+
created_at?: string;
|
|
794
|
+
email: string;
|
|
795
|
+
expires_at?: string | null;
|
|
796
|
+
herd_id: number;
|
|
797
|
+
id?: number;
|
|
798
|
+
invited_by: string;
|
|
799
|
+
role: Database["public"]["Enums"]["role"];
|
|
800
|
+
status?: Database["public"]["Enums"]["herd_invitation_status"];
|
|
801
|
+
};
|
|
802
|
+
Update: {
|
|
803
|
+
accepted_at?: string | null;
|
|
804
|
+
created_at?: string;
|
|
805
|
+
email?: string;
|
|
806
|
+
expires_at?: string | null;
|
|
807
|
+
herd_id?: number;
|
|
808
|
+
id?: number;
|
|
809
|
+
invited_by?: string;
|
|
810
|
+
role?: Database["public"]["Enums"]["role"];
|
|
811
|
+
status?: Database["public"]["Enums"]["herd_invitation_status"];
|
|
812
|
+
};
|
|
813
|
+
Relationships: [{
|
|
814
|
+
foreignKeyName: "herd_invitations_herd_id_fkey";
|
|
815
|
+
columns: ["herd_id"];
|
|
816
|
+
isOneToOne: false;
|
|
817
|
+
referencedRelation: "herds";
|
|
818
|
+
referencedColumns: ["id"];
|
|
819
|
+
}, {
|
|
820
|
+
foreignKeyName: "herd_invitations_invited_by_fkey";
|
|
821
|
+
columns: ["invited_by"];
|
|
822
|
+
isOneToOne: false;
|
|
823
|
+
referencedRelation: "users";
|
|
824
|
+
referencedColumns: ["id"];
|
|
825
|
+
}];
|
|
826
|
+
};
|
|
704
827
|
herds: {
|
|
705
828
|
Row: {
|
|
706
829
|
auto_delete_media_with_humans: boolean | null;
|
|
707
830
|
auto_delete_media_with_no_tracks: boolean | null;
|
|
708
|
-
created_by: string;
|
|
709
831
|
description: string;
|
|
710
832
|
earthranger_domain: string | null;
|
|
711
833
|
earthranger_token: string | null;
|
|
@@ -721,7 +843,6 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
721
843
|
Insert: {
|
|
722
844
|
auto_delete_media_with_humans?: boolean | null;
|
|
723
845
|
auto_delete_media_with_no_tracks?: boolean | null;
|
|
724
|
-
created_by: string;
|
|
725
846
|
description: string;
|
|
726
847
|
earthranger_domain?: string | null;
|
|
727
848
|
earthranger_token?: string | null;
|
|
@@ -737,7 +858,6 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
737
858
|
Update: {
|
|
738
859
|
auto_delete_media_with_humans?: boolean | null;
|
|
739
860
|
auto_delete_media_with_no_tracks?: boolean | null;
|
|
740
|
-
created_by?: string;
|
|
741
861
|
description?: string;
|
|
742
862
|
earthranger_domain?: string | null;
|
|
743
863
|
earthranger_token?: string | null;
|
|
@@ -750,13 +870,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
750
870
|
video_server_url?: string | null;
|
|
751
871
|
video_subscriber_token?: string | null;
|
|
752
872
|
};
|
|
753
|
-
Relationships: [
|
|
754
|
-
foreignKeyName: "herds_created_by_fkey";
|
|
755
|
-
columns: ["created_by"];
|
|
756
|
-
isOneToOne: false;
|
|
757
|
-
referencedRelation: "users";
|
|
758
|
-
referencedColumns: ["id"];
|
|
759
|
-
}];
|
|
873
|
+
Relationships: [];
|
|
760
874
|
};
|
|
761
875
|
layers: {
|
|
762
876
|
Row: {
|
|
@@ -903,34 +1017,40 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
903
1017
|
Row: {
|
|
904
1018
|
certificate_id: number | null;
|
|
905
1019
|
created_at: string;
|
|
906
|
-
deleted_at: string | null;
|
|
907
1020
|
device_id: number;
|
|
908
1021
|
id: number;
|
|
1022
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1023
|
+
lifecycle_changed_at: string;
|
|
1024
|
+
lifecycle_changed_by: string | null;
|
|
1025
|
+
lifecycle_reason: string | null;
|
|
909
1026
|
product_number: string;
|
|
910
1027
|
serial_number: string;
|
|
911
|
-
status: Database["public"]["Enums"]["component_status"];
|
|
912
1028
|
updated_at: string | null;
|
|
913
1029
|
};
|
|
914
1030
|
Insert: {
|
|
915
1031
|
certificate_id?: number | null;
|
|
916
1032
|
created_at?: string;
|
|
917
|
-
deleted_at?: string | null;
|
|
918
1033
|
device_id: number;
|
|
919
1034
|
id?: number;
|
|
1035
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1036
|
+
lifecycle_changed_at?: string;
|
|
1037
|
+
lifecycle_changed_by?: string | null;
|
|
1038
|
+
lifecycle_reason?: string | null;
|
|
920
1039
|
product_number: string;
|
|
921
1040
|
serial_number: string;
|
|
922
|
-
status?: Database["public"]["Enums"]["component_status"];
|
|
923
1041
|
updated_at?: string | null;
|
|
924
1042
|
};
|
|
925
1043
|
Update: {
|
|
926
1044
|
certificate_id?: number | null;
|
|
927
1045
|
created_at?: string;
|
|
928
|
-
deleted_at?: string | null;
|
|
929
1046
|
device_id?: number;
|
|
930
1047
|
id?: number;
|
|
1048
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1049
|
+
lifecycle_changed_at?: string;
|
|
1050
|
+
lifecycle_changed_by?: string | null;
|
|
1051
|
+
lifecycle_reason?: string | null;
|
|
931
1052
|
product_number?: string;
|
|
932
1053
|
serial_number?: string;
|
|
933
|
-
status?: Database["public"]["Enums"]["component_status"];
|
|
934
1054
|
updated_at?: string | null;
|
|
935
1055
|
};
|
|
936
1056
|
Relationships: [{
|
|
@@ -945,6 +1065,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
945
1065
|
isOneToOne: false;
|
|
946
1066
|
referencedRelation: "devices";
|
|
947
1067
|
referencedColumns: ["id"];
|
|
1068
|
+
}, {
|
|
1069
|
+
foreignKeyName: "parts_lifecycle_changed_by_fkey";
|
|
1070
|
+
columns: ["lifecycle_changed_by"];
|
|
1071
|
+
isOneToOne: false;
|
|
1072
|
+
referencedRelation: "users";
|
|
1073
|
+
referencedColumns: ["id"];
|
|
948
1074
|
}];
|
|
949
1075
|
};
|
|
950
1076
|
pins: {
|
|
@@ -1082,6 +1208,27 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1082
1208
|
referencedColumns: ["id"];
|
|
1083
1209
|
}];
|
|
1084
1210
|
};
|
|
1211
|
+
pubsub_jwt_public_keys: {
|
|
1212
|
+
Row: {
|
|
1213
|
+
created_at: string;
|
|
1214
|
+
kid: string;
|
|
1215
|
+
public_jwk: import("../types/supabase").Json;
|
|
1216
|
+
revoked_at: string | null;
|
|
1217
|
+
};
|
|
1218
|
+
Insert: {
|
|
1219
|
+
created_at?: string;
|
|
1220
|
+
kid: string;
|
|
1221
|
+
public_jwk: import("../types/supabase").Json;
|
|
1222
|
+
revoked_at?: string | null;
|
|
1223
|
+
};
|
|
1224
|
+
Update: {
|
|
1225
|
+
created_at?: string;
|
|
1226
|
+
kid?: string;
|
|
1227
|
+
public_jwk?: import("../types/supabase").Json;
|
|
1228
|
+
revoked_at?: string | null;
|
|
1229
|
+
};
|
|
1230
|
+
Relationships: [];
|
|
1231
|
+
};
|
|
1085
1232
|
segmentations_sam3: {
|
|
1086
1233
|
Row: {
|
|
1087
1234
|
artifact_id: number | null;
|
|
@@ -1183,6 +1330,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1183
1330
|
distance_total: number;
|
|
1184
1331
|
id: number;
|
|
1185
1332
|
inserted_at: string;
|
|
1333
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1334
|
+
lifecycle_changed_at: string;
|
|
1335
|
+
lifecycle_changed_by: string | null;
|
|
1336
|
+
lifecycle_reason: string | null;
|
|
1186
1337
|
locations: unknown;
|
|
1187
1338
|
post_approver: string | null;
|
|
1188
1339
|
software_version: string;
|
|
@@ -1202,6 +1353,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1202
1353
|
distance_total: number;
|
|
1203
1354
|
id?: number;
|
|
1204
1355
|
inserted_at?: string;
|
|
1356
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1357
|
+
lifecycle_changed_at?: string;
|
|
1358
|
+
lifecycle_changed_by?: string | null;
|
|
1359
|
+
lifecycle_reason?: string | null;
|
|
1205
1360
|
locations?: unknown;
|
|
1206
1361
|
post_approver?: string | null;
|
|
1207
1362
|
software_version: string;
|
|
@@ -1221,6 +1376,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1221
1376
|
distance_total?: number;
|
|
1222
1377
|
id?: number;
|
|
1223
1378
|
inserted_at?: string;
|
|
1379
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1380
|
+
lifecycle_changed_at?: string;
|
|
1381
|
+
lifecycle_changed_by?: string | null;
|
|
1382
|
+
lifecycle_reason?: string | null;
|
|
1224
1383
|
locations?: unknown;
|
|
1225
1384
|
post_approver?: string | null;
|
|
1226
1385
|
software_version?: string;
|
|
@@ -1242,6 +1401,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1242
1401
|
isOneToOne: false;
|
|
1243
1402
|
referencedRelation: "devices";
|
|
1244
1403
|
referencedColumns: ["id"];
|
|
1404
|
+
}, {
|
|
1405
|
+
foreignKeyName: "sessions_lifecycle_changed_by_fkey";
|
|
1406
|
+
columns: ["lifecycle_changed_by"];
|
|
1407
|
+
isOneToOne: false;
|
|
1408
|
+
referencedRelation: "users";
|
|
1409
|
+
referencedColumns: ["id"];
|
|
1245
1410
|
}, {
|
|
1246
1411
|
foreignKeyName: "sessions_post_approver_fkey";
|
|
1247
1412
|
columns: ["post_approver"];
|
|
@@ -1370,7 +1535,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1370
1535
|
earthranger_id: string | null;
|
|
1371
1536
|
first: string | null;
|
|
1372
1537
|
id: string;
|
|
1538
|
+
is_registered: boolean;
|
|
1373
1539
|
last: string | null;
|
|
1540
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1541
|
+
lifecycle_changed_at: string;
|
|
1542
|
+
lifecycle_changed_by: string | null;
|
|
1543
|
+
lifecycle_reason: string | null;
|
|
1374
1544
|
signature_base64: string | null;
|
|
1375
1545
|
title: string | null;
|
|
1376
1546
|
username: string | null;
|
|
@@ -1380,7 +1550,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1380
1550
|
earthranger_id?: string | null;
|
|
1381
1551
|
first?: string | null;
|
|
1382
1552
|
id: string;
|
|
1553
|
+
is_registered?: boolean;
|
|
1383
1554
|
last?: string | null;
|
|
1555
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1556
|
+
lifecycle_changed_at?: string;
|
|
1557
|
+
lifecycle_changed_by?: string | null;
|
|
1558
|
+
lifecycle_reason?: string | null;
|
|
1384
1559
|
signature_base64?: string | null;
|
|
1385
1560
|
title?: string | null;
|
|
1386
1561
|
username?: string | null;
|
|
@@ -1390,12 +1565,23 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1390
1565
|
earthranger_id?: string | null;
|
|
1391
1566
|
first?: string | null;
|
|
1392
1567
|
id?: string;
|
|
1568
|
+
is_registered?: boolean;
|
|
1393
1569
|
last?: string | null;
|
|
1570
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1571
|
+
lifecycle_changed_at?: string;
|
|
1572
|
+
lifecycle_changed_by?: string | null;
|
|
1573
|
+
lifecycle_reason?: string | null;
|
|
1394
1574
|
signature_base64?: string | null;
|
|
1395
1575
|
title?: string | null;
|
|
1396
1576
|
username?: string | null;
|
|
1397
1577
|
};
|
|
1398
|
-
Relationships: [
|
|
1578
|
+
Relationships: [{
|
|
1579
|
+
foreignKeyName: "users_lifecycle_changed_by_fkey";
|
|
1580
|
+
columns: ["lifecycle_changed_by"];
|
|
1581
|
+
isOneToOne: false;
|
|
1582
|
+
referencedRelation: "users";
|
|
1583
|
+
referencedColumns: ["id"];
|
|
1584
|
+
}];
|
|
1399
1585
|
};
|
|
1400
1586
|
users_roles_per_herd: {
|
|
1401
1587
|
Row: {
|
|
@@ -1612,6 +1798,28 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1612
1798
|
};
|
|
1613
1799
|
};
|
|
1614
1800
|
Functions: {
|
|
1801
|
+
accept_herd_invitations_for_current_user: {
|
|
1802
|
+
Args: {
|
|
1803
|
+
p_invitation_ids: number[];
|
|
1804
|
+
};
|
|
1805
|
+
Returns: {
|
|
1806
|
+
accepted_at: string | null;
|
|
1807
|
+
created_at: string;
|
|
1808
|
+
email: string;
|
|
1809
|
+
expires_at: string | null;
|
|
1810
|
+
herd_id: number;
|
|
1811
|
+
id: number;
|
|
1812
|
+
invited_by: string;
|
|
1813
|
+
role: Database["public"]["Enums"]["role"];
|
|
1814
|
+
status: Database["public"]["Enums"]["herd_invitation_status"];
|
|
1815
|
+
}[];
|
|
1816
|
+
SetofOptions: {
|
|
1817
|
+
from: "*";
|
|
1818
|
+
to: "herd_invitations";
|
|
1819
|
+
isOneToOne: false;
|
|
1820
|
+
isSetofReturn: true;
|
|
1821
|
+
};
|
|
1822
|
+
};
|
|
1615
1823
|
ack_queue_message: {
|
|
1616
1824
|
Args: {
|
|
1617
1825
|
message_id: number;
|
|
@@ -1662,6 +1870,31 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1662
1870
|
table_name: string;
|
|
1663
1871
|
}[];
|
|
1664
1872
|
};
|
|
1873
|
+
create_herd_invitation: {
|
|
1874
|
+
Args: {
|
|
1875
|
+
p_email: string;
|
|
1876
|
+
p_expires_at?: string;
|
|
1877
|
+
p_herd_id: number;
|
|
1878
|
+
p_role: Database["public"]["Enums"]["role"];
|
|
1879
|
+
};
|
|
1880
|
+
Returns: {
|
|
1881
|
+
accepted_at: string | null;
|
|
1882
|
+
created_at: string;
|
|
1883
|
+
email: string;
|
|
1884
|
+
expires_at: string | null;
|
|
1885
|
+
herd_id: number;
|
|
1886
|
+
id: number;
|
|
1887
|
+
invited_by: string;
|
|
1888
|
+
role: Database["public"]["Enums"]["role"];
|
|
1889
|
+
status: Database["public"]["Enums"]["herd_invitation_status"];
|
|
1890
|
+
};
|
|
1891
|
+
SetofOptions: {
|
|
1892
|
+
from: "*";
|
|
1893
|
+
to: "herd_invitations";
|
|
1894
|
+
isOneToOne: true;
|
|
1895
|
+
isSetofReturn: false;
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1665
1898
|
delete_all_orphaned_sessions: {
|
|
1666
1899
|
Args: {
|
|
1667
1900
|
min_age_seconds?: number;
|
|
@@ -1753,6 +1986,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1753
1986
|
file_path: string;
|
|
1754
1987
|
file_size_bytes: number | null;
|
|
1755
1988
|
id: number;
|
|
1989
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1990
|
+
lifecycle_changed_at: string;
|
|
1991
|
+
lifecycle_changed_by: string | null;
|
|
1992
|
+
lifecycle_reason: string | null;
|
|
1756
1993
|
modality: string | null;
|
|
1757
1994
|
segmented_at: string | null;
|
|
1758
1995
|
session_id: number | null;
|
|
@@ -1781,6 +2018,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1781
2018
|
file_path: string;
|
|
1782
2019
|
file_size_bytes: number | null;
|
|
1783
2020
|
id: number;
|
|
2021
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2022
|
+
lifecycle_changed_at: string;
|
|
2023
|
+
lifecycle_changed_by: string | null;
|
|
2024
|
+
lifecycle_reason: string | null;
|
|
1784
2025
|
modality: string | null;
|
|
1785
2026
|
segmented_at: string | null;
|
|
1786
2027
|
session_id: number | null;
|
|
@@ -1810,6 +2051,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1810
2051
|
file_path: string;
|
|
1811
2052
|
file_size_bytes: number | null;
|
|
1812
2053
|
id: number;
|
|
2054
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2055
|
+
lifecycle_changed_at: string;
|
|
2056
|
+
lifecycle_changed_by: string | null;
|
|
2057
|
+
lifecycle_reason: string | null;
|
|
1813
2058
|
modality: string | null;
|
|
1814
2059
|
segmented_at: string | null;
|
|
1815
2060
|
session_id: number | null;
|
|
@@ -1839,6 +2084,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1839
2084
|
file_path: string;
|
|
1840
2085
|
file_size_bytes: number | null;
|
|
1841
2086
|
id: number;
|
|
2087
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2088
|
+
lifecycle_changed_at: string;
|
|
2089
|
+
lifecycle_changed_by: string | null;
|
|
2090
|
+
lifecycle_reason: string | null;
|
|
1842
2091
|
modality: string | null;
|
|
1843
2092
|
segmented_at: string | null;
|
|
1844
2093
|
session_id: number | null;
|
|
@@ -1869,6 +2118,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1869
2118
|
file_path: string;
|
|
1870
2119
|
file_size_bytes: number | null;
|
|
1871
2120
|
id: number;
|
|
2121
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2122
|
+
lifecycle_changed_at: string;
|
|
2123
|
+
lifecycle_changed_by: string | null;
|
|
2124
|
+
lifecycle_reason: string | null;
|
|
1872
2125
|
modality: string | null;
|
|
1873
2126
|
segmented_at: string | null;
|
|
1874
2127
|
session_id: number | null;
|
|
@@ -1899,6 +2152,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1899
2152
|
file_path: string;
|
|
1900
2153
|
file_size_bytes: number | null;
|
|
1901
2154
|
id: number;
|
|
2155
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2156
|
+
lifecycle_changed_at: string;
|
|
2157
|
+
lifecycle_changed_by: string | null;
|
|
2158
|
+
lifecycle_reason: string | null;
|
|
1902
2159
|
modality: string | null;
|
|
1903
2160
|
segmented_at: string | null;
|
|
1904
2161
|
session_id: number | null;
|
|
@@ -1930,6 +2187,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1930
2187
|
file_path: string;
|
|
1931
2188
|
file_size_bytes: number | null;
|
|
1932
2189
|
id: number;
|
|
2190
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2191
|
+
lifecycle_changed_at: string;
|
|
2192
|
+
lifecycle_changed_by: string | null;
|
|
2193
|
+
lifecycle_reason: string | null;
|
|
1933
2194
|
modality: string | null;
|
|
1934
2195
|
segmented_at: string | null;
|
|
1935
2196
|
session_id: number | null;
|
|
@@ -1960,6 +2221,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1960
2221
|
file_path: string;
|
|
1961
2222
|
file_size_bytes: number | null;
|
|
1962
2223
|
id: number;
|
|
2224
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2225
|
+
lifecycle_changed_at: string;
|
|
2226
|
+
lifecycle_changed_by: string | null;
|
|
2227
|
+
lifecycle_reason: string | null;
|
|
1963
2228
|
modality: string | null;
|
|
1964
2229
|
segmented_at: string | null;
|
|
1965
2230
|
session_id: number | null;
|
|
@@ -1991,6 +2256,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1991
2256
|
file_path: string;
|
|
1992
2257
|
file_size_bytes: number | null;
|
|
1993
2258
|
id: number;
|
|
2259
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2260
|
+
lifecycle_changed_at: string;
|
|
2261
|
+
lifecycle_changed_by: string | null;
|
|
2262
|
+
lifecycle_reason: string | null;
|
|
1994
2263
|
modality: string | null;
|
|
1995
2264
|
segmented_at: string | null;
|
|
1996
2265
|
session_id: number | null;
|
|
@@ -2354,6 +2623,26 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2354
2623
|
min_value: number;
|
|
2355
2624
|
}[];
|
|
2356
2625
|
};
|
|
2626
|
+
get_herd_invitations_for_current_user: {
|
|
2627
|
+
Args: never;
|
|
2628
|
+
Returns: {
|
|
2629
|
+
accepted_at: string | null;
|
|
2630
|
+
created_at: string;
|
|
2631
|
+
email: string;
|
|
2632
|
+
expires_at: string | null;
|
|
2633
|
+
herd_id: number;
|
|
2634
|
+
id: number;
|
|
2635
|
+
invited_by: string;
|
|
2636
|
+
role: Database["public"]["Enums"]["role"];
|
|
2637
|
+
status: Database["public"]["Enums"]["herd_invitation_status"];
|
|
2638
|
+
}[];
|
|
2639
|
+
SetofOptions: {
|
|
2640
|
+
from: "*";
|
|
2641
|
+
to: "herd_invitations";
|
|
2642
|
+
isOneToOne: false;
|
|
2643
|
+
isSetofReturn: true;
|
|
2644
|
+
};
|
|
2645
|
+
};
|
|
2357
2646
|
get_herd_uptime_summary: {
|
|
2358
2647
|
Args: {
|
|
2359
2648
|
p_device_types?: Database["public"]["Enums"]["device_type"][];
|
|
@@ -2408,6 +2697,14 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2408
2697
|
isSetofReturn: true;
|
|
2409
2698
|
};
|
|
2410
2699
|
};
|
|
2700
|
+
get_pubsub_jwt_public_keys: {
|
|
2701
|
+
Args: never;
|
|
2702
|
+
Returns: import("../types/supabase").Json;
|
|
2703
|
+
};
|
|
2704
|
+
get_pubsub_token_claims: {
|
|
2705
|
+
Args: never;
|
|
2706
|
+
Returns: import("../types/supabase").Json;
|
|
2707
|
+
};
|
|
2411
2708
|
get_segmentations_sam3_for_artifact: {
|
|
2412
2709
|
Args: {
|
|
2413
2710
|
artifact_id_caller: number;
|
|
@@ -2730,6 +3027,21 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2730
3027
|
isSetofReturn: true;
|
|
2731
3028
|
};
|
|
2732
3029
|
};
|
|
3030
|
+
migrate_conservaition_users_to_sentala: {
|
|
3031
|
+
Args: {
|
|
3032
|
+
preview?: boolean;
|
|
3033
|
+
source_domains?: string[];
|
|
3034
|
+
target_domain?: string;
|
|
3035
|
+
};
|
|
3036
|
+
Returns: {
|
|
3037
|
+
action: string;
|
|
3038
|
+
detail: string;
|
|
3039
|
+
source_email: string;
|
|
3040
|
+
source_user_id: string;
|
|
3041
|
+
target_email: string;
|
|
3042
|
+
target_user_id: string;
|
|
3043
|
+
}[];
|
|
3044
|
+
};
|
|
2733
3045
|
preview_fix_all_sessions_missing_distance: {
|
|
2734
3046
|
Args: never;
|
|
2735
3047
|
Returns: {
|
|
@@ -2759,6 +3071,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2759
3071
|
Args: never;
|
|
2760
3072
|
Returns: undefined;
|
|
2761
3073
|
};
|
|
3074
|
+
revoke_pubsub_jwt_public_key: {
|
|
3075
|
+
Args: {
|
|
3076
|
+
p_kid: string;
|
|
3077
|
+
};
|
|
3078
|
+
Returns: undefined;
|
|
3079
|
+
};
|
|
2762
3080
|
search_embeddings_vertex_multimodal_001: {
|
|
2763
3081
|
Args: {
|
|
2764
3082
|
herd_id_caller?: number;
|
|
@@ -2803,15 +3121,23 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2803
3121
|
};
|
|
2804
3122
|
Returns: undefined;
|
|
2805
3123
|
};
|
|
3124
|
+
upsert_pubsub_jwt_public_key: {
|
|
3125
|
+
Args: {
|
|
3126
|
+
p_kid: string;
|
|
3127
|
+
p_public_jwk: import("../types/supabase").Json;
|
|
3128
|
+
};
|
|
3129
|
+
Returns: undefined;
|
|
3130
|
+
};
|
|
2806
3131
|
};
|
|
2807
3132
|
Enums: {
|
|
2808
3133
|
analysis_work_status: "waiting" | "cancelled" | "processing" | "failed" | "success";
|
|
2809
3134
|
app_permission: "herds.delete" | "events.delete";
|
|
2810
|
-
component_status: "active" | "inactive";
|
|
2811
3135
|
device_type: "trail_camera" | "drone_fixed_wing" | "drone_quad" | "gps_tracker" | "sentry_tower" | "smart_buoy" | "radio_mesh_base_station" | "radio_mesh_repeater" | "unknown" | "gps_tracker_vehicle" | "gps_tracker_person" | "radio_mesh_base_station_gateway";
|
|
3136
|
+
entity_lifecycle: "active" | "retired" | "deleted";
|
|
3137
|
+
herd_invitation_status: "pending" | "accepted" | "revoked" | "expired";
|
|
2812
3138
|
media_type: "image" | "video" | "audio" | "text";
|
|
2813
3139
|
plan_type: "mission" | "fence" | "rally" | "markov";
|
|
2814
|
-
role: "admin" | "
|
|
3140
|
+
role: "admin" | "editor" | "viewer";
|
|
2815
3141
|
tag_observation_type: "manual" | "auto";
|
|
2816
3142
|
user_status: "ONLINE" | "OFFLINE";
|
|
2817
3143
|
};
|
|
@@ -2958,7 +3284,6 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2958
3284
|
inserted_at: string | null;
|
|
2959
3285
|
slug: string | null;
|
|
2960
3286
|
description: string | null;
|
|
2961
|
-
created_by: string | null;
|
|
2962
3287
|
is_public: boolean | null;
|
|
2963
3288
|
earthranger_domain: string | null;
|
|
2964
3289
|
earthranger_token: string | null;
|