@teardown/types 0.1.41 → 0.1.44

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.44",
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.44",
46
+ "@types/bun": "1.3.4"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "typescript": "5.9.3"
@@ -30,11 +30,13 @@ export type Database = {
30
30
  ota_update_id: string | null
31
31
  ota_update_runtime_version: string | null
32
32
  ota_updates_enabled: boolean | null
33
+ sdk_name: string
34
+ sdk_version: string
33
35
  started_at: string
34
36
  token: string
35
37
  token_expires_at: string
36
38
  updated_at: string
37
- version: string | null
39
+ version: string
38
40
  version_build_id: string
39
41
  version_id: string
40
42
  }
@@ -53,11 +55,13 @@ export type Database = {
53
55
  ota_update_id?: string | null
54
56
  ota_update_runtime_version?: string | null
55
57
  ota_updates_enabled?: boolean | null
58
+ sdk_name: string
59
+ sdk_version?: string
56
60
  started_at?: string
57
61
  token: string
58
62
  token_expires_at: string
59
63
  updated_at?: string
60
- version?: string | null
64
+ version: string
61
65
  version_build_id: string
62
66
  version_id: string
63
67
  }
@@ -76,11 +80,13 @@ export type Database = {
76
80
  ota_update_id?: string | null
77
81
  ota_update_runtime_version?: string | null
78
82
  ota_updates_enabled?: boolean | null
83
+ sdk_name?: string
84
+ sdk_version?: string
79
85
  started_at?: string
80
86
  token?: string
81
87
  token_expires_at?: string
82
88
  updated_at?: string
83
- version?: string | null
89
+ version?: string
84
90
  version_build_id?: string
85
91
  version_id?: string
86
92
  }
@@ -92,6 +98,13 @@ export type Database = {
92
98
  referencedRelation: "devices"
93
99
  referencedColumns: ["id"]
94
100
  },
101
+ {
102
+ foreignKeyName: "device_sessions_device_id_fkey"
103
+ columns: ["device_id"]
104
+ isOneToOne: false
105
+ referencedRelation: "view_device_session_user"
106
+ referencedColumns: ["device_id"]
107
+ },
95
108
  {
96
109
  foreignKeyName: "device_sessions_environment_id_fkey"
97
110
  columns: ["environment_id"]
@@ -133,9 +146,9 @@ export type Database = {
133
146
  metadata: Json | null
134
147
  os_name: string | null
135
148
  os_type: string | null
136
- persona_id: string
137
149
  platform: Database["public"]["Enums"]["device_platform"] | null
138
150
  updated_at: string
151
+ user_id: string
139
152
  }
140
153
  Insert: {
141
154
  created_at?: string
@@ -147,9 +160,9 @@ export type Database = {
147
160
  metadata?: Json | null
148
161
  os_name?: string | null
149
162
  os_type?: string | null
150
- persona_id: string
151
163
  platform?: Database["public"]["Enums"]["device_platform"] | null
152
164
  updated_at?: string
165
+ user_id: string
153
166
  }
154
167
  Update: {
155
168
  created_at?: string
@@ -161,9 +174,9 @@ export type Database = {
161
174
  metadata?: Json | null
162
175
  os_name?: string | null
163
176
  os_type?: string | null
164
- persona_id?: string
165
177
  platform?: Database["public"]["Enums"]["device_platform"] | null
166
178
  updated_at?: string
179
+ user_id?: string
167
180
  }
168
181
  Relationships: [
169
182
  {
@@ -174,18 +187,18 @@ export type Database = {
174
187
  referencedColumns: ["id"]
175
188
  },
176
189
  {
177
- foreignKeyName: "devices_persona_id_fkey"
178
- columns: ["persona_id"]
190
+ foreignKeyName: "devices_user_id_fkey"
191
+ columns: ["user_id"]
179
192
  isOneToOne: false
180
- referencedRelation: "personas"
193
+ referencedRelation: "project_users"
181
194
  referencedColumns: ["id"]
182
195
  },
183
196
  {
184
- foreignKeyName: "devices_persona_id_fkey"
185
- columns: ["persona_id"]
197
+ foreignKeyName: "devices_user_id_fkey"
198
+ columns: ["user_id"]
186
199
  isOneToOne: false
187
- referencedRelation: "view_device_session_persona"
188
- referencedColumns: ["persona_id"]
200
+ referencedRelation: "view_device_session_user"
201
+ referencedColumns: ["user_id"]
189
202
  },
190
203
  ]
191
204
  }
@@ -269,6 +282,13 @@ export type Database = {
269
282
  referencedRelation: "devices"
270
283
  referencedColumns: ["id"]
271
284
  },
285
+ {
286
+ foreignKeyName: "events_device_id_fkey"
287
+ columns: ["device_id"]
288
+ isOneToOne: false
289
+ referencedRelation: "view_device_session_user"
290
+ referencedColumns: ["device_id"]
291
+ },
272
292
  {
273
293
  foreignKeyName: "events_environment_id_fkey"
274
294
  columns: ["environment_id"]
@@ -287,7 +307,7 @@ export type Database = {
287
307
  foreignKeyName: "events_session_id_fkey"
288
308
  columns: ["session_id"]
289
309
  isOneToOne: false
290
- referencedRelation: "view_device_session_persona"
310
+ referencedRelation: "view_device_session_user"
291
311
  referencedColumns: ["session_id"]
292
312
  },
293
313
  ]
@@ -716,78 +736,78 @@ export type Database = {
716
736
  },
717
737
  ]
718
738
  }
719
- personas: {
739
+ project_api_keys: {
720
740
  Row: {
721
741
  created_at: string
722
- email: string | null
723
- environment_id: string
724
742
  id: string
725
- name: string | null
743
+ key: string
744
+ kind: Database["public"]["Enums"]["project_api_key_kind"]
745
+ name: string
746
+ project_id: string
726
747
  updated_at: string
727
- user_id: string | null
728
748
  }
729
749
  Insert: {
730
750
  created_at?: string
731
- email?: string | null
732
- environment_id: string
733
751
  id?: string
734
- name?: string | null
752
+ key?: string
753
+ kind?: Database["public"]["Enums"]["project_api_key_kind"]
754
+ name?: string
755
+ project_id: string
735
756
  updated_at?: string
736
- user_id?: string | null
737
757
  }
738
758
  Update: {
739
759
  created_at?: string
740
- email?: string | null
741
- environment_id?: string
742
760
  id?: string
743
- name?: string | null
761
+ key?: string
762
+ kind?: Database["public"]["Enums"]["project_api_key_kind"]
763
+ name?: string
764
+ project_id?: string
744
765
  updated_at?: string
745
- user_id?: string | null
746
766
  }
747
767
  Relationships: [
748
768
  {
749
- foreignKeyName: "personas_environment_id_fkey"
750
- columns: ["environment_id"]
769
+ foreignKeyName: "project_api_keys_project_id_fkey"
770
+ columns: ["project_id"]
751
771
  isOneToOne: false
752
- referencedRelation: "environments"
772
+ referencedRelation: "projects"
753
773
  referencedColumns: ["id"]
754
774
  },
755
775
  ]
756
776
  }
757
- project_api_keys: {
777
+ project_users: {
758
778
  Row: {
759
779
  created_at: string
780
+ email: string | null
781
+ environment_id: string
760
782
  id: string
761
- key: string
762
- kind: Database["public"]["Enums"]["project_api_key_kind"]
763
- name: string
764
- project_id: string
783
+ name: string | null
765
784
  updated_at: string
785
+ user_id: string | null
766
786
  }
767
787
  Insert: {
768
788
  created_at?: string
789
+ email?: string | null
790
+ environment_id: string
769
791
  id?: string
770
- key?: string
771
- kind?: Database["public"]["Enums"]["project_api_key_kind"]
772
- name?: string
773
- project_id: string
792
+ name?: string | null
774
793
  updated_at?: string
794
+ user_id?: string | null
775
795
  }
776
796
  Update: {
777
797
  created_at?: string
798
+ email?: string | null
799
+ environment_id?: string
778
800
  id?: string
779
- key?: string
780
- kind?: Database["public"]["Enums"]["project_api_key_kind"]
781
- name?: string
782
- project_id?: string
801
+ name?: string | null
783
802
  updated_at?: string
803
+ user_id?: string | null
784
804
  }
785
805
  Relationships: [
786
806
  {
787
- foreignKeyName: "project_api_keys_project_id_fkey"
788
- columns: ["project_id"]
807
+ foreignKeyName: "project_users_environment_id_fkey"
808
+ columns: ["environment_id"]
789
809
  isOneToOne: false
790
- referencedRelation: "projects"
810
+ referencedRelation: "environments"
791
811
  referencedColumns: ["id"]
792
812
  },
793
813
  ]
@@ -799,6 +819,7 @@ export type Database = {
799
819
  major: number
800
820
  minor: number
801
821
  name: string
822
+ notes: string | null
802
823
  patch: number
803
824
  project_id: string
804
825
  release_at: string
@@ -811,6 +832,7 @@ export type Database = {
811
832
  major?: number
812
833
  minor?: number
813
834
  name: string
835
+ notes?: string | null
814
836
  patch?: number
815
837
  project_id: string
816
838
  release_at?: string
@@ -823,6 +845,7 @@ export type Database = {
823
845
  major?: number
824
846
  minor?: number
825
847
  name?: string
848
+ notes?: string | null
826
849
  patch?: number
827
850
  project_id?: string
828
851
  release_at?: string
@@ -959,9 +982,9 @@ export type Database = {
959
982
  fingerprint: string | null
960
983
  id: string
961
984
  name: string | null
985
+ notes: string | null
962
986
  platform: Database["public"]["Enums"]["device_platform"]
963
987
  status: Database["public"]["Enums"]["version_build_status"]
964
- summary: string | null
965
988
  updated_at: string
966
989
  version_id: string
967
990
  }
@@ -972,9 +995,9 @@ export type Database = {
972
995
  fingerprint?: string | null
973
996
  id?: string
974
997
  name?: string | null
998
+ notes?: string | null
975
999
  platform: Database["public"]["Enums"]["device_platform"]
976
1000
  status?: Database["public"]["Enums"]["version_build_status"]
977
- summary?: string | null
978
1001
  updated_at?: string
979
1002
  version_id: string
980
1003
  }
@@ -985,9 +1008,9 @@ export type Database = {
985
1008
  fingerprint?: string | null
986
1009
  id?: string
987
1010
  name?: string | null
1011
+ notes?: string | null
988
1012
  platform?: Database["public"]["Enums"]["device_platform"]
989
1013
  status?: Database["public"]["Enums"]["version_build_status"]
990
- summary?: string | null
991
1014
  updated_at?: string
992
1015
  version_id?: string
993
1016
  }
@@ -1003,7 +1026,7 @@ export type Database = {
1003
1026
  }
1004
1027
  }
1005
1028
  Views: {
1006
- view_device_session_persona: {
1029
+ view_device_session_user: {
1007
1030
  Row: {
1008
1031
  device_brand: string | null
1009
1032
  device_id: string | null
@@ -1011,23 +1034,16 @@ export type Database = {
1011
1034
  device_platform: Database["public"]["Enums"]["device_platform"] | null
1012
1035
  environment_id: string | null
1013
1036
  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
1037
  session_id: string | null
1019
1038
  started_at: string | null
1039
+ user_email: string | null
1040
+ user_external_id: string | null
1041
+ user_id: string | null
1042
+ user_name: string | null
1020
1043
  version_build_id: string | null
1021
1044
  version_id: string | null
1022
1045
  }
1023
1046
  Relationships: [
1024
- {
1025
- foreignKeyName: "device_sessions_device_id_fkey"
1026
- columns: ["device_id"]
1027
- isOneToOne: false
1028
- referencedRelation: "devices"
1029
- referencedColumns: ["id"]
1030
- },
1031
1047
  {
1032
1048
  foreignKeyName: "device_sessions_environment_id_fkey"
1033
1049
  columns: ["environment_id"]
@@ -1127,12 +1143,12 @@ export type Database = {
1127
1143
  device_id: string
1128
1144
  device_name: string
1129
1145
  os_version: string
1130
- persona_email: string
1131
- persona_id: string
1132
- persona_name: string
1133
- persona_user_id: string
1134
1146
  session_id: string
1135
1147
  started_at: string
1148
+ user_email: string
1149
+ user_external_id: string
1150
+ user_id: string
1151
+ user_name: string
1136
1152
  }[]
1137
1153
  }
1138
1154
  }