@teardown/types 0.1.41 → 0.1.43

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": "@teardown/types",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -42,8 +42,8 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@biomejs/biome": "2.3.8",
45
- "@teardown/tsconfig": "0.1.41",
46
- "@types/bun": "1.3.3"
45
+ "@teardown/tsconfig": "0.1.43",
46
+ "@types/bun": "1.3.4"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "typescript": "5.9.3"
@@ -92,6 +92,13 @@ export type Database = {
92
92
  referencedRelation: "devices"
93
93
  referencedColumns: ["id"]
94
94
  },
95
+ {
96
+ foreignKeyName: "device_sessions_device_id_fkey"
97
+ columns: ["device_id"]
98
+ isOneToOne: false
99
+ referencedRelation: "view_device_session_user"
100
+ referencedColumns: ["device_id"]
101
+ },
95
102
  {
96
103
  foreignKeyName: "device_sessions_environment_id_fkey"
97
104
  columns: ["environment_id"]
@@ -133,9 +140,9 @@ export type Database = {
133
140
  metadata: Json | null
134
141
  os_name: string | null
135
142
  os_type: string | null
136
- persona_id: string
137
143
  platform: Database["public"]["Enums"]["device_platform"] | null
138
144
  updated_at: string
145
+ user_id: string
139
146
  }
140
147
  Insert: {
141
148
  created_at?: string
@@ -147,9 +154,9 @@ export type Database = {
147
154
  metadata?: Json | null
148
155
  os_name?: string | null
149
156
  os_type?: string | null
150
- persona_id: string
151
157
  platform?: Database["public"]["Enums"]["device_platform"] | null
152
158
  updated_at?: string
159
+ user_id: string
153
160
  }
154
161
  Update: {
155
162
  created_at?: string
@@ -161,9 +168,9 @@ export type Database = {
161
168
  metadata?: Json | null
162
169
  os_name?: string | null
163
170
  os_type?: string | null
164
- persona_id?: string
165
171
  platform?: Database["public"]["Enums"]["device_platform"] | null
166
172
  updated_at?: string
173
+ user_id?: string
167
174
  }
168
175
  Relationships: [
169
176
  {
@@ -174,18 +181,18 @@ export type Database = {
174
181
  referencedColumns: ["id"]
175
182
  },
176
183
  {
177
- foreignKeyName: "devices_persona_id_fkey"
178
- columns: ["persona_id"]
184
+ foreignKeyName: "devices_user_id_fkey"
185
+ columns: ["user_id"]
179
186
  isOneToOne: false
180
- referencedRelation: "personas"
187
+ referencedRelation: "project_users"
181
188
  referencedColumns: ["id"]
182
189
  },
183
190
  {
184
- foreignKeyName: "devices_persona_id_fkey"
185
- columns: ["persona_id"]
191
+ foreignKeyName: "devices_user_id_fkey"
192
+ columns: ["user_id"]
186
193
  isOneToOne: false
187
- referencedRelation: "view_device_session_persona"
188
- referencedColumns: ["persona_id"]
194
+ referencedRelation: "view_device_session_user"
195
+ referencedColumns: ["user_id"]
189
196
  },
190
197
  ]
191
198
  }
@@ -269,6 +276,13 @@ export type Database = {
269
276
  referencedRelation: "devices"
270
277
  referencedColumns: ["id"]
271
278
  },
279
+ {
280
+ foreignKeyName: "events_device_id_fkey"
281
+ columns: ["device_id"]
282
+ isOneToOne: false
283
+ referencedRelation: "view_device_session_user"
284
+ referencedColumns: ["device_id"]
285
+ },
272
286
  {
273
287
  foreignKeyName: "events_environment_id_fkey"
274
288
  columns: ["environment_id"]
@@ -287,7 +301,7 @@ export type Database = {
287
301
  foreignKeyName: "events_session_id_fkey"
288
302
  columns: ["session_id"]
289
303
  isOneToOne: false
290
- referencedRelation: "view_device_session_persona"
304
+ referencedRelation: "view_device_session_user"
291
305
  referencedColumns: ["session_id"]
292
306
  },
293
307
  ]
@@ -716,78 +730,78 @@ export type Database = {
716
730
  },
717
731
  ]
718
732
  }
719
- personas: {
733
+ project_api_keys: {
720
734
  Row: {
721
735
  created_at: string
722
- email: string | null
723
- environment_id: string
724
736
  id: string
725
- name: string | null
737
+ key: string
738
+ kind: Database["public"]["Enums"]["project_api_key_kind"]
739
+ name: string
740
+ project_id: string
726
741
  updated_at: string
727
- user_id: string | null
728
742
  }
729
743
  Insert: {
730
744
  created_at?: string
731
- email?: string | null
732
- environment_id: string
733
745
  id?: string
734
- name?: string | null
746
+ key?: string
747
+ kind?: Database["public"]["Enums"]["project_api_key_kind"]
748
+ name?: string
749
+ project_id: string
735
750
  updated_at?: string
736
- user_id?: string | null
737
751
  }
738
752
  Update: {
739
753
  created_at?: string
740
- email?: string | null
741
- environment_id?: string
742
754
  id?: string
743
- name?: string | null
755
+ key?: string
756
+ kind?: Database["public"]["Enums"]["project_api_key_kind"]
757
+ name?: string
758
+ project_id?: string
744
759
  updated_at?: string
745
- user_id?: string | null
746
760
  }
747
761
  Relationships: [
748
762
  {
749
- foreignKeyName: "personas_environment_id_fkey"
750
- columns: ["environment_id"]
763
+ foreignKeyName: "project_api_keys_project_id_fkey"
764
+ columns: ["project_id"]
751
765
  isOneToOne: false
752
- referencedRelation: "environments"
766
+ referencedRelation: "projects"
753
767
  referencedColumns: ["id"]
754
768
  },
755
769
  ]
756
770
  }
757
- project_api_keys: {
771
+ project_users: {
758
772
  Row: {
759
773
  created_at: string
774
+ email: string | null
775
+ environment_id: string
760
776
  id: string
761
- key: string
762
- kind: Database["public"]["Enums"]["project_api_key_kind"]
763
- name: string
764
- project_id: string
777
+ name: string | null
765
778
  updated_at: string
779
+ user_id: string | null
766
780
  }
767
781
  Insert: {
768
782
  created_at?: string
783
+ email?: string | null
784
+ environment_id: string
769
785
  id?: string
770
- key?: string
771
- kind?: Database["public"]["Enums"]["project_api_key_kind"]
772
- name?: string
773
- project_id: string
786
+ name?: string | null
774
787
  updated_at?: string
788
+ user_id?: string | null
775
789
  }
776
790
  Update: {
777
791
  created_at?: string
792
+ email?: string | null
793
+ environment_id?: string
778
794
  id?: string
779
- key?: string
780
- kind?: Database["public"]["Enums"]["project_api_key_kind"]
781
- name?: string
782
- project_id?: string
795
+ name?: string | null
783
796
  updated_at?: string
797
+ user_id?: string | null
784
798
  }
785
799
  Relationships: [
786
800
  {
787
- foreignKeyName: "project_api_keys_project_id_fkey"
788
- columns: ["project_id"]
801
+ foreignKeyName: "project_users_environment_id_fkey"
802
+ columns: ["environment_id"]
789
803
  isOneToOne: false
790
- referencedRelation: "projects"
804
+ referencedRelation: "environments"
791
805
  referencedColumns: ["id"]
792
806
  },
793
807
  ]
@@ -799,6 +813,7 @@ export type Database = {
799
813
  major: number
800
814
  minor: number
801
815
  name: string
816
+ notes: string | null
802
817
  patch: number
803
818
  project_id: string
804
819
  release_at: string
@@ -811,6 +826,7 @@ export type Database = {
811
826
  major?: number
812
827
  minor?: number
813
828
  name: string
829
+ notes?: string | null
814
830
  patch?: number
815
831
  project_id: string
816
832
  release_at?: string
@@ -823,6 +839,7 @@ export type Database = {
823
839
  major?: number
824
840
  minor?: number
825
841
  name?: string
842
+ notes?: string | null
826
843
  patch?: number
827
844
  project_id?: string
828
845
  release_at?: string
@@ -959,9 +976,9 @@ export type Database = {
959
976
  fingerprint: string | null
960
977
  id: string
961
978
  name: string | null
979
+ notes: string | null
962
980
  platform: Database["public"]["Enums"]["device_platform"]
963
981
  status: Database["public"]["Enums"]["version_build_status"]
964
- summary: string | null
965
982
  updated_at: string
966
983
  version_id: string
967
984
  }
@@ -972,9 +989,9 @@ export type Database = {
972
989
  fingerprint?: string | null
973
990
  id?: string
974
991
  name?: string | null
992
+ notes?: string | null
975
993
  platform: Database["public"]["Enums"]["device_platform"]
976
994
  status?: Database["public"]["Enums"]["version_build_status"]
977
- summary?: string | null
978
995
  updated_at?: string
979
996
  version_id: string
980
997
  }
@@ -985,9 +1002,9 @@ export type Database = {
985
1002
  fingerprint?: string | null
986
1003
  id?: string
987
1004
  name?: string | null
1005
+ notes?: string | null
988
1006
  platform?: Database["public"]["Enums"]["device_platform"]
989
1007
  status?: Database["public"]["Enums"]["version_build_status"]
990
- summary?: string | null
991
1008
  updated_at?: string
992
1009
  version_id?: string
993
1010
  }
@@ -1003,7 +1020,7 @@ export type Database = {
1003
1020
  }
1004
1021
  }
1005
1022
  Views: {
1006
- view_device_session_persona: {
1023
+ view_device_session_user: {
1007
1024
  Row: {
1008
1025
  device_brand: string | null
1009
1026
  device_id: string | null
@@ -1011,23 +1028,16 @@ export type Database = {
1011
1028
  device_platform: Database["public"]["Enums"]["device_platform"] | null
1012
1029
  environment_id: string | null
1013
1030
  os_version: string | null
1014
- persona_email: string | null
1015
- persona_id: string | null
1016
- persona_name: string | null
1017
- persona_user_id: string | null
1018
1031
  session_id: string | null
1019
1032
  started_at: string | null
1033
+ user_email: string | null
1034
+ user_external_id: string | null
1035
+ user_id: string | null
1036
+ user_name: string | null
1020
1037
  version_build_id: string | null
1021
1038
  version_id: string | null
1022
1039
  }
1023
1040
  Relationships: [
1024
- {
1025
- foreignKeyName: "device_sessions_device_id_fkey"
1026
- columns: ["device_id"]
1027
- isOneToOne: false
1028
- referencedRelation: "devices"
1029
- referencedColumns: ["id"]
1030
- },
1031
1041
  {
1032
1042
  foreignKeyName: "device_sessions_environment_id_fkey"
1033
1043
  columns: ["environment_id"]
@@ -1127,12 +1137,12 @@ export type Database = {
1127
1137
  device_id: string
1128
1138
  device_name: string
1129
1139
  os_version: string
1130
- persona_email: string
1131
- persona_id: string
1132
- persona_name: string
1133
- persona_user_id: string
1134
1140
  session_id: string
1135
1141
  started_at: string
1142
+ user_email: string
1143
+ user_external_id: string
1144
+ user_id: string
1145
+ user_name: string
1136
1146
  }[]
1137
1147
  }
1138
1148
  }